joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e6b1
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 8], eax
push edi
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 3]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 1]
push eax
lea ebx, [ebp + 8]
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
call fcn.0041b722
mov eax, dword [ebp + 8]
add esp, 0x10
xor edi, edi
cmp word [eax], di
mov esi, 0x48b5d4
push esi
je 0x41e78e
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
mov byte [0x4892a9], 0xff
cmp word [eax], 0x2a
mov byte [0x48ae14], 1
jne 0x41e722
cmp word [eax + 2], 0x2a
jne 0x41e722
mov byte [0x4892a9], 0
push 0x48ab6c
push 0x10000
push dword [ebp - 8]
push 0x41e5a9
push 0x100000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [ebp - 0xc], eax
mov ebx, 0x7d0
mov eax, dword [ebp - 8]
cmp word [eax], di
jne 0x41e773
cmp byte [0x48ae14], 0
je 0x41e847
call esi
sub eax, dword [ebp - 0xc]
cmp eax, ebx
jae 0x41e847
push 0x14
mov ecx, 0x48aec0
call fcn.0040ac88
jmp 0x41e75e
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x48adcc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push str.LogohWnd
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
mov ebx, str.SOFTWAREPELOGON
push ebx
mov edi, 0x80000002
push edi
mov dword [ebp - 0x10], 4
call fcn.0042548c
push str.LogohWnd
push ebx
push edi
call fcn.0042557a
xor edi, edi
add esp, 0x24
cmp dword [ebp - 8], edi
jne 0x41e7eb
mov eax, dword [ebp - 0xc]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x41e805
mov al, byte [ebp - 1]
neg al
push edi
sbb eax, eax
add eax, 0x67
push eax
push 0x111
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 8], edi
je 0x41e847
cmp byte [ebp - 2], 0
je 0x41e847
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, eax
call esi
mov ebx, 0x7d0
jmp 0x41e841
cmp dword [0x48adcc], 0
je 0x41e847
push 0xa
mov ecx, 0x48aec0
call fcn.0040ac88
call esi
sub eax, edi
cmp eax, ebx
jb 0x41e82a
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x42548c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ax, word [0x48ab68]
push esi
xor esi, esi
cmp ax, si
jne 0x4254b8
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x48ad58]
jmp 0x425500
push esi
lea ecx, [ebp - 4]
push ecx
push esi
movzx eax, ax
or eax, 0x20019
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x425500
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x425503
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ax, word [0x48ab68]
push esi
xor esi, esi
cmp ax, si
jne 0x42552f
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x48af88]
jmp 0x425577
push esi
lea ecx, [ebp - 4]
push ecx
push esi
movzx eax, ax
or eax, 0x20006
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x425577
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x42557a
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ax, word [0x48ab68]
test ax, ax
jne 0x42559a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x48af8c]
leave
ret
and dword [ebp - 4], 0
movzx eax, ax
lea ecx, [ebp - 4]
push ecx
or eax, 2
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4255d6
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x4255d8
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
lea eax, [ebp - 4]
push eax
movzx eax, word [0x48ab68]
or eax, 0x2001b
push eax
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x42572b
test byte [ebp + 0x10], 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
je 0x42562a
push 0x4758e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 8], eax
jae 0x425658
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea eax, [eax*4 + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0042465d
cmp dword [ebp - 0xc], esi
jne 0x425717
test byte [ebp + 0x10], 4
push ebx
push edi
mov edi, dword [ebp - 0x1c]
je 0x4256c7
mov ebx, dword [ebp - 0x14]
dec ebx
cmp ebx, esi
jl 0x4256c7
mov eax, dword [ebp - 8]
push esi
push esi
push esi
lea eax, [eax*4 + 1]
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
mov word [edi], si
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
jne 0x4256c1
cmp word [edi], si
je 0x4256c4
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x4256c4
mov dword [ebp - 0xc], eax
dec ebx
jns 0x425687
test byte [ebp + 0x10], 2
je 0x425715
mov ebx, dword [ebp - 0x18]
dec ebx
cmp ebx, esi
jl 0x425715
mov eax, dword [ebp - 8]
push esi
push esi
push esi
lea eax, [eax*4 + 1]
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push edi
push ebx
mov word [edi], si
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, esi
jne 0x42570f
cmp word [edi], si
je 0x425712
push edi
push dword [ebp - 4]
call dword [0x48af90]
cmp eax, esi
je 0x425712
mov dword [ebp - 0xc], eax
dec ebx
jns 0x4256d5
pop edi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.00424686
mov eax, dword [ebp - 0xc]
pop esi
leave
ret
Function at 0x4259f8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.00424642
mov esi, dword [eax]
push 0xffffffffffffffff
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.00424642
push dword [eax]
push esi
push str._r_nRegSetDHCP__s__s__r_n
push 0x48aec0
call fcn.0040aa0e
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.00424686
lea ecx, [ebp - 8]
call fcn.00424686
mov esi, str.0.0.0.0
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
push 4
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc]
push eax
push 4
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push str.EnableDHCP
push dword [ebx]
xor edi, edi
inc edi
mov dword [ebp - 0xc], edi
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push str.IPAddress
push dword [ebx]
call esi
push 9
lea eax, [ebp - 0x18]
push eax
push 7
push 0
push str.SubnetMask
push dword [ebx]
call esi
push edi
push 0x4758e0
push 7
push 0
push str.DefaultGateway
push dword [ebx]
call esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x425ad5
cmp byte [eax], 0x2d
jne 0x425ab7
mov dword [ebp + 0xc], 0x4761ce
cmp byte [eax], 0
je 0x425ad5
push dword [ebp + 0xc]
call fcn.004617f0
pop ecx
push eax
push dword [ebp + 0xc]
push edi
push 0
push str.NameServer
push dword [ebx]
call esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x425ddc
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x48afe8], 0
push edi
mov edi, ecx
jne 0x42600b
and dword [ebp - 4], 0
test byte [0x48b16c], 4
jne 0x425e12
or byte [0x48b16c], 8
push 2
push str.SeDebugPrivilege
call fcn.0040c09f
pop ecx
pop ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x48afe4
mov esi, str.WS2_32.DLL
push esi
push str.WSAStartup
call fcn.0042584c
lea eax, [ebp - 4]
push eax
push 0x48afec
push esi
push str.shutdown
call fcn.0042584c
lea eax, [ebp - 4]
push eax
push 0x48aff0
push esi
push str.closesocket
call fcn.0042584c
lea eax, [ebp - 4]
push eax
push 0x48aff4
push esi
push str.connect
call fcn.0042584c
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x48aff8
push esi
push str.send
call fcn.0042584c
lea eax, [ebp - 4]
push eax
push 0x48affc
push esi
push str.select
call fcn.0042584c
lea eax, [ebp - 4]
push eax
push 0x48b000
push esi
push str.recvfrom
call fcn.0042584c
lea eax, [ebp - 4]
push eax
push 0x48b004
push esi
push str.sendto
call fcn.0042584c
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x48b008
push esi
push str.bind
call fcn.0042584c
lea eax, [ebp - 4]
push eax
push 0x48b00c
push esi
push str.listen
call fcn.0042584c
lea eax, [ebp - 4]
push eax
push 0x48b010
push esi
push str.accept
call fcn.0042584c
lea eax, [ebp - 4]
push eax
push 0x48b018
push esi
push str.getsockname
call fcn.0042584c
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x48b014
push esi
push str.getpeername
call fcn.0042584c
lea eax, [ebp - 4]
push eax
push 0x48b01c
push esi
push str.ioctlsocket
call fcn.0042584c
lea eax, [ebp - 4]
push eax
push 0x48b020
push esi
push str.setsockopt
call fcn.0042584c
lea eax, [ebp - 4]
push eax
push 0x48b024
push esi
push str.ntohl
call fcn.0042584c
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x48b028
push esi
push str.htonl
call fcn.0042584c
lea eax, [ebp - 4]
push eax
push 0x48b02c
push esi
push str.htons
call fcn.0042584c
lea eax, [ebp - 4]
push eax
push 0x48b030
push esi
push str.inet_addr
call fcn.0042584c
lea eax, [ebp - 4]
push eax
push 0x48b034
push esi
push str.gethostbyname
call fcn.0042584c
add esp, 0x40
lea eax, [ebp - 4]
push eax
push 0x48b038
push esi
push str.inet_ntoa
call fcn.0042584c
lea eax, [ebp - 4]
push eax
push 0x48b03c
push esi
push str.WSAGetLastError
call fcn.0042584c
lea eax, [ebp - 4]
push eax
push 0x48b040
push esi
push str.__WSAFDIsSet
call fcn.0042584c
lea eax, [ebp - 4]
push eax
push 0x48afe8
push esi
push str.socket
call fcn.0042584c
add esp, 0x40
pop esi
mov eax, edi
pop edi
leave
ret
Function at 0x426565
Capabilities:
Log keystrokes

Disassembly:
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_IsWindow]
mov edi, eax
push edi
call esi
test eax, eax
je 0x4265d0
cmp edi, dword [esp + 0xc]
je 0x4265d0
mov eax, dword [0x48b114]
cmp eax, edi
je 0x4265d0
push ebx
push ebp
push eax
call esi
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
xor ebp, ebp
test eax, eax
je 0x4265b7
push ebp
push ebp
push dword [0x48b114]
call esi
push eax
push ebp
push dword [esp + 0x20]
call esi
push eax
call ebx
push 1
push ebp
push edi
mov dword [0x48b114], edi
call esi
push eax
push ebp
push dword [esp + 0x20]
call esi
push eax
call ebx
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x426ccc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
mov esi, ecx
jne 0x426cdd
lea edi, [ebp + 0x10]
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jl 0x426d09
and dword [esi + 8], 0
and dword [ebp + 0x10], 0
push 0
lea eax, [ebp + 0x10]
push eax
push 0x1000
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jge 0x426d29
lea ecx, [eax + 1]
mov dword [esi + 8], ecx
mov ecx, dword [esi + 4]
mov al, byte [eax + ecx]
mov ecx, dword [ebp + 8]
mov byte [ecx], al
xor eax, eax
inc eax
mov dword [edi], eax
jmp 0x426d2e
and dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x426f12
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
xor eax, eax
push edi
inc eax
xor ebx, ebx
push 0x100000
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov word [ebp - 0x21c], bx
call fcn.0042465d
mov edi, dword [ebp + 0x14]
cmp edi, ebx
jne 0x426f69
lea eax, [ebp - 0x21c]
push eax
push 0x104
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebx
mov dword [ebp - 4], eax
lea edi, [ebp - 0x21c]
je 0x427079
cmp dword [ebp - 0xc], ebx
push esi
mov esi, 0xa0000000
mov dword [ebp - 8], ebx
je 0x426f7c
mov esi, 0xe0000000
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 3
push esi
push dword [ebp + 0xc]
call dword [0x48afb0]
cmp eax, ebx
mov dword [ebp + 0x14], eax
jne 0x426fcf
cmp dword [ebp - 0xc], 1
jne 0x426fc1
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 3
and esi, 0xbfffffff
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
call dword [0x48afb0]
cmp eax, ebx
mov dword [ebp + 0x14], eax
je 0x426f95
cmp dword [ebp + 0x14], ebx
jne 0x426fcf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x42706a
push edi
push dword [ebp + 0x14]
call dword [0x48afb4]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x426ff6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 1
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [0x48afb8]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x427012
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
je 0x42705c
xor esi, esi
cmp dword [ebp - 0xc], ebx
mov edi, 0x200
jne 0x427025
mov esi, edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [0x48afbc]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x42705c
cmp dword [ebp - 0xc], 2
jne 0x427051
or esi, edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
call dword [0x48afbc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jne 0x42705c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 8], ebx
je 0x42706a
push dword [ebp - 8]
call dword [0x48afc0]
cmp dword [ebp + 0x14], ebx
pop esi
je 0x427079
push dword [ebp + 0x14]
call dword [0x48afc0]
lea ecx, [ebp - 0x10]
call fcn.00424686
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x427137
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
or dword [ebp - 8], 0xffffffff
push ebx
push esi
push edi
lea eax, [ebp + 8]
push eax
movzx eax, word [0x48ab68]
or eax, 0x20019
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4271dc
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
push 0xffe
mov ecx, edi
mov dword [esi], 0xffa
call fcn.0042459d
mov eax, dword [edi]
push esi
mov byte [eax], bl
push dword [edi]
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call ebx
cmp eax, 0xea
mov dword [ebp - 4], eax
jne 0x4271c7
add dword [esi], 0xa
mov eax, dword [esi]
add eax, 4
push eax
mov ecx, edi
call fcn.0042459d
push esi
push dword [edi]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call ebx
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or ebx, 0xffffffff
cmp dword [ebp - 4], 0
je 0x4271ea
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x4271e5
mov dword [ecx], eax
lea eax, [ebx - 1]
jmp 0x427215
xor ecx, ecx
cmp dword [esi], ecx
jge 0x4271f2
mov dword [esi], ecx
mov eax, dword [edi]
mov edx, dword [esi]
mov byte [eax + edx], 0
mov eax, dword [edi]
add eax, dword [esi]
mov word [eax + 2], cx
mov word [eax], cx
mov eax, dword [esi]
add eax, 5
push eax
mov ecx, edi
call fcn.0042459d
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4274a5
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x7405c
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call ebx
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x18
push esi
push edi
push edi
push 0x70000
push dword [ebp + 8]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
call ebx
cmp dword [ebp - 8], edi
je 0x427504
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
jmp 0x427521
mov eax, dword [esi + 0x14]
mul dword [esi + 0x10]
push edi
push dword [esi + 0xc]
push edx
push eax
call fcn.00462a80
push dword [esi + 4]
push dword [esi]
push edx
push eax
call fcn.00462a80
pop edi
pop ebx
leave
ret
Function at 0x427525
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor esi, esi
push 0xc0
push esi
push dword [ebp + 0xc]
mov dword [eax], esi
call fcn.00461780
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
add esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
mov ebx, 0x100000
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push esi
push esi
push 0x70050
push dword [ebp + 8]
call edi
test eax, eax
je 0x427572
mov eax, dword [ebp + 0xc]
cmp dword [eax], esi
jne 0x42758b
push esi
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0xc]
push esi
push esi
push 0x7400c
push dword [ebp + 8]
call edi
test eax, eax
jne 0x42758f
xor eax, eax
jmp 0x427599
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4275c8
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 4], ebx
push edi
push dword [ebp + 8]
call fcn.0042572e
add esp, 0x10
cmp eax, edi
jne 0x427689
cmp edx, dword [ebp + 0x10]
jne 0x427689
push esi
push ebx
lea eax, [ebp - 4]
push eax
mov esi, 0x200
push esi
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x427688
push esi
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00461a50
push 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 0x36]
push eax
call fcn.00461a50
push ebx
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call fcn.0042572e
add esp, 0x28
cmp eax, edi
jne 0x427688
cmp edx, dword [ebp + 0x10]
jne 0x427688
push esi
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00461880
add esp, 0xc
test eax, eax
je 0x427688
push ebx
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret
Function at 0x42774b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x134
mov ecx, edi
call fcn.00424699
push 0xca
lea ecx, [ebp - 0x10]
call fcn.0042465d
mov eax, dword [ebp + 0x18]
movzx esi, byte [ebp + 0x18]
and eax, 0x100
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, dword [edi]
test esi, esi
sete bl
neg esi
sbb esi, esi
and esi, 0x19
cmp dword [ebp + 0x14], 0
mov dword [ebp - 4], eax
mov byte [ebp + 0x1b], 0
lea ebx, [ebx + ebx - 1]
mov edx, esi
je 0x427820
cmp dword [ebp + 0x14], 1
not dword [ebp - 4]
jle 0x427820
and dword [ebp - 4], 0xfffffffc
jmp 0x427820
test edx, edx
jl 0x427825
xor eax, eax
mov ecx, edx
inc eax
shl eax, cl
movsx esi, bl
mov cl, dl
add edx, esi
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
add cl, 0x41
test edx, eax
mov byte [ebp + 0x17], cl
je 0x42781d
cmp dword [ebp - 8], 0
je 0x4277ef
movsx ax, cl
push eax
call fcn.004612e9
test eax, eax
pop ecx
je 0x42781d
mov cl, byte [ebp + 0x17]
cmp byte [ebp + 0x1b], 0
je 0x427803
mov ax, word [ebp + 0xc]
test ax, ax
je 0x427803
mov word [edi], ax
inc edi
inc edi
movsx ax, cl
mov word [edi], ax
inc edi
inc edi
cmp dword [ebp + 0x10], 0
mov byte [ebp + 0x1b], 1
je 0x42781d
mov word [edi], 0x3a
inc edi
inc edi
mov edx, dword [ebp - 0xc]
cmp edx, 0x1a
jl 0x4277b5
mov eax, dword [ebp + 8]
and word [edi], 0
mov esi, dword [eax]
lea ecx, [ebp - 0x10]
call fcn.00424686
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x427912
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0x23
push edi
sete byte [ebp + 0xb]
cmp byte [ebp + 0xb], 0
je 0x427929
inc esi
push esi
call fcn.004617f0
mov edi, dword [ebp + 0xc]
pop ecx
lea eax, [eax + eax*2 + 3]
push eax
mov ecx, edi
call fcn.0042459d
mov eax, dword [edi]
xor ebx, ebx
mov byte [eax], 0
mov dword [ebp + 0xc], eax
xor cl, cl
jmp 0x427960
mov dl, byte [esi]
cmp dl, 0x3d
jne 0x42799f
test cl, cl
jle 0x42795f
mov byte [eax], bl
inc eax
xor ebx, ebx
xor cl, cl
inc esi
cmp byte [esi], 0
jne 0x42794d
push dword [ebp + 0xc]
mov byte [eax], 0
call fcn.004617f0
cmp byte [ebp + 0xb], 0
pop ecx
mov esi, eax
je 0x427998
xor ecx, ecx
test esi, esi
jle 0x427998
mov eax, ecx
cdq
push 0x14
pop ebx
idiv ebx
mov eax, dword [ebp + 0xc]
mov dl, byte [edx + 0x479884]
xor byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jl 0x42797f
mov eax, dword [edi]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp dl, 0x2b
jne 0x4279a8
xor dl, dl
jmp 0x4279ce
cmp dl, 0x2f
jne 0x4279b2
add dl, 0xd2
jmp 0x4279ce
cmp dl, 0x39
ja 0x4279bc
add dl, 0xd2
jmp 0x4279ce
cmp dl, 0x5a
ja 0x4279c6
add dl, 0xcb
jmp 0x4279ce
cmp dl, 0x7a
ja 0x4279d3
add dl, 0xc5
movzx edx, dl
jmp 0x4279d6
or edx, 0xffffffff
test edx, edx
jl 0x427a02
shl edx, cl
or ebx, edx
add cl, 6
cmp cl, 8
jge 0x4279f7
test cl, cl
jle 0x42795f
cmp byte [esi], 0
jne 0x42795f
mov byte [eax], bl
inc eax
shr ebx, 8
add cl, 0xf8
jmp 0x4279e1
xor eax, eax
jmp 0x42799a