joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422310
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x442d8b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4521a0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
cmp dword [ebp + 0x50], ebx
je 0x42234a
lea eax, [ebx + 1]
jmp 0x422431
cmp dword [ebp + 0x54], ebx
mov dword [esp + 0x2c], ebx
jle 0x422426
push 0x28
call fcn.00428380
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], ebx
cmp esi, ebx
je 0x42238c
lea eax, [esi + 4]
push eax
mov dword [esi], ebx
call fcn.00422910
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x24], eax
jmp 0x42238e
xor esi, esi
push ebx
lea edi, [esi + 4]
push ebx
push edi
push 0x422aa0
mov dword [esp + 0x34], 0xffffffff
push ebx
push ebx
mov dword [esp + 0x30], esi
mov dword [edi + 0xc], 0x421ec0
mov dword [edi + 0x10], esi
mov dword [edi + 8], ebx
call fcn.0042b492
add esp, 0x18
mov dword [edi + 4], eax
cmp eax, ebx
jne 0x4223ec
cmp esi, ebx
je 0x422414
call fcn.00421840
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x4223da
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.004229e0
push esi
call fcn.00427f1c
add esp, 4
jmp 0x422414
mov esi, dword [ebp + 0x6c]
mov edx, dword [esi + 4]
lea ebx, [ebp + 0x58]
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
call fcn.00422e80
mov ecx, ebx
mov edi, eax
call fcn.00422870
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
xor ebx, ebx
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, dword [ebp + 0x54]
mov dword [esp + 0x2c], eax
jl 0x422357
xor eax, eax
cmp dword [ebp + 0x70], ebx
setne al
mov dword [ebp + 0x50], eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x422450
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov eax, dword [ebx + 0x6c]
mov ecx, dword [eax]
push esi
push edi
mov edi, dword [ebx + 0x58]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
jmp 0x422470
mov esi, dword [ebx + 0x6c]
mov eax, dword [ebx + 0x58]
test edi, edi
je 0x42247e
cmp edi, eax
je 0x422483
call fcn.004285a7
cmp dword [esp + 0xc], esi
je 0x4225af
test edi, edi
jne 0x4225a4
call fcn.004285a7
xor eax, eax
mov edx, dword [esp + 0xc]
cmp edx, dword [eax + 0x14]
jne 0x4224aa
call fcn.004285a7
mov eax, dword [esp + 0xc]
mov edi, dword [eax + 8]
mov eax, dword [edi + 0x24]
mov dword [edi + 0xc], 1
test eax, eax
je 0x4224c6
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [edi + 8]
lea esi, [edi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x422507
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4224f6
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [edi + 0x24]
mov dword [edi + 0xc], 1
test eax, eax
je 0x42251c
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x42255a
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x422549
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x422568
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.004229e0
push edi
call fcn.00427f1c
mov eax, dword [esp + 0xc]
add esp, 4
test eax, eax
jne 0x4225ab
call fcn.004285a7
xor eax, eax
mov esi, dword [esp + 0xc]
cmp esi, dword [eax + 0x14]
jne 0x422595
call fcn.004285a7
mov edx, dword [esi]
mov edi, dword [esp + 8]
mov dword [esp + 0xc], edx
jmp 0x422470
mov eax, dword [edi]
jmp 0x42249c
mov eax, dword [eax]
jmp 0x422587
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [ebx + 0x6c]
mov dword [ecx + 4], ecx
xor ecx, ecx
mov dword [ebx + 0x70], ecx
cmp eax, dword [ebx + 0x6c]
je 0x4225e5
mov esi, dword [eax]
push eax
call fcn.00427f1c
add esp, 4
mov eax, esi
cmp esi, dword [ebx + 0x6c]
jne 0x4225c6
mov dword [ebx + 0x50], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov dword [ebx + 0x50], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4229e0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x442b0b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4521a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CThreadHolder.0
mov dword [esp + 0x14], 0
mov eax, dword [esi + 4]
mov dword [esi + 8], 1
test eax, eax
je 0x422a51
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x422a40
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
cmp dword [esi + 0x14], 0
jne 0x422a62
push esi
call fcn.00422b60
call fcn.00422cb0
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esi + 0x18]
sub esi, 0x10
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x422a89
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x422ec0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4521a0]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
lea eax, [esp + 4]
push eax
xor bl, bl
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x422efe
cmp dword [esp + 0x14], 2
jne 0x422efe
cmp dword [esp + 8], 6
mov al, 1
jae 0x422f00
mov al, bl
mov ecx, dword [esp + 0x118]
pop ebx
xor ecx, esp
call fcn.00427f27
add esp, 0x118
ret
Function at 0x422f20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x518
mov eax, dword [0x4521a0]
xor eax, esp
mov dword [esp + 0x514], eax
push ebx
xor ebx, ebx
cmp edi, ebx
jne 0x422f53
xor al, al
pop ebx
mov ecx, dword [esp + 0x514]
xor ecx, esp
call fcn.00427f27
add esp, 0x518
ret
push esi
push 0x3ff
lea eax, [esp + 0x121]
push ebx
push eax
mov byte [esp + 0x128], bl
call fcn.0042c020
push 0xfe
lea edx, [esp + 0x2e]
xor ecx, ecx
push ebx
mov esi, 0x400
push edx
mov dword [esp + 0x20], esi
mov word [esp + 0x34], cx
call fcn.0042c020
lea eax, [esp + 0x34]
add esp, 0x18
lea ecx, [edi + 8]
test eax, eax
je 0x422fc3
cmp ecx, ebx
je 0x422fc3
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x422fa5
sub eax, esi
inc eax
push eax
lea edx, [esp + 0x20]
push edx
push eax
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [esp + 8]
lea eax, [esp + 0x1c]
push eax
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
push 0xffffffffffffffff
shr esi, 1
lea ecx, [esp + 0x128]
push esi
push ecx
call fcn.00428650
add esp, 0x14
lea edx, [esp + 0xc]
push edx
push 0x20019
push ebx
lea eax, [esp + 0x128]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x423021
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x514]
xor ecx, esp
call fcn.00427f27
add esp, 0x518
ret
push 0x400
lea ecx, [esp + 0x120]
push ebx
push ecx
mov dword [esp + 0x1c], ebx
call fcn.0042c020
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push str.PnpInstanceID
push edx
call esi
test eax, eax
jne 0x423116
lea ecx, [esp + 0x11c]
push ecx
push 0x448bd0
push 0xffffffffffffffff
lea edx, [esp + 0x20]
push 4
push edx
mov word [esp + 0x28], ax
mov dword [esp + 0x2a], eax
mov word [esp + 0x2e], ax
call fcn.00428650
lea eax, [esp + 0x28]
push 4
push eax
call fcn.0042b707
lea ecx, [esp + 0x30]
push 0x448bd8
push ecx
call fcn.0042b82f
add esp, 0x24
test eax, eax
jne 0x423116
call fcn.00422ec0
test al, al
je 0x4230c5
cmp dword [edi + 0x1a0], 6
jmp 0x423112
push 0x400
lea edx, [esp + 0x120]
push ebx
push edx
call fcn.0042c020
add esp, 0xc
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + 0x18]
push edx
push ebx
push str.MediaSubType
push eax
mov dword [esp + 0x20], 0x400
mov dword [esp + 0x28], ebx
call esi
test eax, eax
jne 0x423116
cmp dword [esp + 0x11c], 1
jne 0x423116
mov bl, 1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x51c]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.00427f27
add esp, 0x518
ret
Function at 0x423190
Capabilities:
Get local ipv4 addresses

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push 0x288
xor bl, bl
mov dword [esp + 0x10], 0x288
call fcn.004280ec
mov esi, eax
add esp, 4
lea eax, [esp + 0xc]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4231e1
push esi
call fcn.0042800f
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004280ec
add esp, 8
lea edx, [esp + 0xc]
mov esi, eax
push edx
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x423249
test esi, esi
je 0x423249
push edi
mov edi, esi
lea esp, [esp]
call fcn.00422f20
test al, al
jne 0x423201
mov edi, dword [edi]
test edi, edi
jne 0x4231f0
jmp 0x42320c
mov ecx, ebp
mov eax, edi
call fcn.00423140
mov bl, 1
xor eax, eax
pop edi
cmp ax, word [ebp]
jne 0x423249
mov eax, esi
jmp 0x423220
lea ecx, [eax + 0x1b0]
test ecx, ecx
jne 0x423240
mov eax, dword [eax]
test eax, eax
jne 0x423220
push esi
call fcn.0042800f
add esp, 4
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret
mov ecx, ebp
call fcn.00423140
mov bl, 1
push esi
call fcn.0042800f
add esp, 4
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret

Function at 0x423c50
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x70
mov eax, dword [0x4521a0]
xor eax, esp
mov dword [esp + 0x6c], eax
cmp dword [ecx + 0x18], 0x10
mov eax, dword [ecx + 0x14]
mov byte [esp + 0x68], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp], 0x67452301
mov dword [esp + 4], 0xefcdab89
mov dword [esp + 8], 0x98badcfe
mov dword [esp + 0xc], 0x10325476
jb 0x423ca0
mov ecx, dword [ecx + 4]
jmp 0x423ca3
add ecx, 4
push ecx
lea ecx, [esp + 4]
call fcn.004233a0
cmp byte [esp + 0x68], 0
jne 0x423cc4
push esi
lea esi, [esp + 4]
mov byte [esp + 0x6c], 1
call fcn.00423440
pop esi
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov dword [edi], eax
mov eax, dword [esp + 0x64]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
xor ecx, esp
mov eax, edi
call fcn.00427f27
add esp, 0x70
ret

Function at 0x423cf0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4521a0]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push esi
push 0
push 2
xor bl, bl
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x423d99
push 0x22c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0042c020
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x423d92
mov ecx, edi
lea eax, [esp + 0x2c]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x423d76
test dx, dx
je 0x423d72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x423d76
add eax, 4
add ecx, 4
test dx, dx
jne 0x423d50
xor eax, eax
jmp 0x423d7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x423d90
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x423d47
jmp 0x423d92
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.00427f27
add esp, 0x230
ret
Function at 0x4257a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x124
mov eax, dword [0x4521a0]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
push edi
push 0x114
lea eax, [esp + 0x10]
mov esi, ecx
push 0
push eax
mov dword [esi + 0x14], 0
call fcn.0042c020
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [esp + 0x1c], 2
jne 0x42580c
mov ecx, esi
call fcn.00425ac0
test eax, eax
jne 0x425820
mov ecx, esi
call fcn.00425d40
test eax, eax
jne 0x425820
call fcn.00425f30
jmp 0x425820
xor edi, edi
mov edi, edi
test eax, eax
jne 0x425820
push esi
call fcn.00425960
inc edi
cmp edi, 0xa
jl 0x425810
mov eax, dword [esi + 0x14]
test eax, eax
jl 0x425861
cmp eax, dword [esi + 0x10]
jge 0x425861
mov edx, eax
shl edx, 7
lea ecx, [edx + esi + 0x18]
push ecx
inc eax
push 0x40
push ebx
mov dword [esi + 0x14], eax
call fcn.0042b986
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00427f27
add esp, 0x124
ret
mov ecx, dword [esp + 0x128]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00427f27
add esp, 0x124
ret
Function at 0x425ac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x494
mov eax, dword [0x4521a0]
xor eax, esp
mov dword [esp + 0x48c], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
cmp dword [esi + 0x10], 0x20
jge 0x425d22
xor eax, eax
push 0x1fe
push eax
lea ecx, [esp + 0x2a2]
push ecx
mov word [esp + 0x2a4], ax
call fcn.0042c020
push ebx
push str..PhysicalDrive_d
lea edx, [esp + 0x2ac]
call fcn.004262b0
add esp, 0x14
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea edx, [esp + 0x2b0]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x425d14
xor eax, eax
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x18
lea edx, [esp + 0x30]
push edx
push eax
push eax
push 0x74080
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call ebp
test eax, eax
je 0x425d09
mov bl, byte [esp + 0x27]
test bl, bl
jbe 0x425d09
xor eax, eax
push 0x210
push eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov byte [esp + 0x8c], al
lea eax, [esp + 0x90]
push eax
call fcn.0042c020
mov al, byte [esp + 0x24]
mov cl, al
and cl, 1
add esp, 0xc
or cl, 0xfa
shl cl, 4
push 0
mov byte [esp + 0x71], cl
mov cl, al
shr bl, cl
lea edx, [esp + 0x20]
push edx
push 0x210
and bl, 0x10
mov byte [esp + 0x7c], al
lea eax, [esp + 0x94]
push eax
neg bl
push 0x20
sbb bl, bl
lea ecx, [esp + 0x78]
push ecx
and bl, 0xb5
push 0x7c088
add bl, 0xec
push edi
mov byte [esp + 0x88], 0
mov byte [esp + 0x89], 1
mov byte [esp + 0x8b], 0
mov byte [esp + 0x8c], 0
mov byte [esp + 0x8e], bl
mov dword [esp + 0x84], 0x200
call ebp
test eax, eax
je 0x425d09
movzx eax, word [esp + 0xae]
movzx edx, word [esp + 0xac]
movzx ecx, word [esp + 0xb0]
mov dword [esp + 0x40], eax
movzx eax, word [esp + 0xb4]
mov dword [esp + 0x3c], edx
movzx edx, word [esp + 0xb2]
mov dword [esp + 0x44], ecx
movzx ecx, word [esp + 0xb6]
mov dword [esp + 0x4c], eax
movzx eax, word [esp + 0xba]
mov dword [esp + 0x48], edx
movzx edx, word [esp + 0xb8]
mov dword [esp + 0x50], ecx
movzx ecx, word [esp + 0xbc]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x54], edx
movzx edx, word [esp + 0xbe]
mov dword [esp + 0x5c], ecx
mov ecx, eax
shl ecx, 7
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x20]
lea esi, [ecx + esi + 0x18]
inc eax
lea ecx, [esp + 0x3c]
mov dword [edx + 0x10], eax
call fcn.00425880
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x18]
inc ebx
cmp ebx, 0x10
mov dword [esp + 0x18], ebx
jl 0x425aee
mov ecx, dword [esp + 0x49c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00427f27
add esp, 0x494
ret
Function at 0x425f30
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x221c
call fcn.0042fc70
mov eax, dword [0x4521a0]
xor eax, esp
mov dword [esp + 0x2218], eax
push ebx
push ebp
xor ebx, ebx
push edi
xor edi, edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], edi
jmp 0x425f60
cmp dword [esi + 0x10], 0x20
jge 0x4260d0
push edi
push str..PhysicalDrive_d
lea edx, [esp + 0x2c]
call fcn.004262b0
add esp, 8
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4260c2
mov edi, dword [esi + 0x10]
xor eax, eax
push 0x2000
lea ecx, [esp + 0x228]
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.0042c020
add esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea edx, [esp + 0x18]
push edx
push 0x2000
lea eax, [esp + 0x230]
push eax
push 0xc
lea ecx, [esp + 0x2c]
push ecx
push 0x2d1400
push ebp
call ebx
test eax, eax
je 0x42603b
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x23c]
shl edx, 7
lea ecx, [edx + esi + 0x18]
lea eax, [esp + eax + 0x224]
push ecx
call fcn.004260f0
mov edx, dword [esi + 0x10]
shl edx, 7
movzx eax, word [edx + esi + 0x18]
push eax
call fcn.0042bc47
add esp, 4
test eax, eax
je 0x42603b
mov eax, 1
add dword [esi + 0x10], eax
mov dword [esp + 0xc], eax
cmp edi, dword [esi + 0x10]
jne 0x4260b5
push 0x2000
lea ecx, [esp + 0x228]
push 0
push ecx
call fcn.0042c020
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
push 0x2000
lea eax, [esp + 0x230]
push eax
push 0
push 0
push 0x2d0c10
push ebp
call ebx
test eax, eax
je 0x4260b5
mov ecx, dword [esi + 0x10]
shl ecx, 7
lea ebx, [ecx + esi + 0x18]
lea edi, [esp + 0x234]
call fcn.00426270
mov edx, dword [esi + 0x10]
shl edx, 7
movzx eax, word [edx + esi + 0x18]
push eax
call fcn.0042bc47
add esp, 4
test eax, eax
je 0x4260b5
mov eax, 1
add dword [esi + 0x10], eax
mov dword [esp + 0xc], eax
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
xor ebx, ebx
inc edi
cmp edi, 0x10
mov dword [esp + 0x10], edi
jl 0x425f60
mov ecx, dword [esp + 0x2224]
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00427f27
add esp, 0x221c
ret
Function at 0x4264f7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x454ef0], 0
push esi
jne 0x42646a
call fcn.00426390
test eax, eax
je 0x4264ad
mov eax, dword [0x454ef0]
cmp eax, 1
jne 0x42648b
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4264ad
pop esi
ret
push eax
call dword [0x454ef8]
test eax, eax
jne 0x4264f5
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4264b1
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x454ef0]
call dword [0x454ef8]
mov edi, eax
test edi, edi
je 0x4264d6
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4264f2
mov edi, esi
add esi, 0xff0
push edi
push dword [0x454ef0]
call dword [0x454ef4]
add edi, 0x10
cmp edi, esi
jb 0x4264de
mov eax, edi
pop edi
pop esi
ret
jmp 0x426457

Function at 0x427f27
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4521a0]
jne 0x427f31
repz ret
jmp fcn.0042e86c

Function at 0x43afb7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042fdaa
and dword [ebp - 4], 0
cmp dword [0x455d5c], 0
mov ebx, eax
jne 0x43b068
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43b119
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x43b119
push eax
call fcn.0042fd38
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x455d5c], eax
call esi
push eax
call fcn.0042fd38
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x455d60], eax
call esi
push eax
call fcn.0042fd38
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x455d64], eax
call esi
push eax
call fcn.0042fd38
pop ecx
mov dword [0x455d6c], eax
test eax, eax
je 0x43b068
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042fd38
pop ecx
mov dword [0x455d68], eax
mov eax, dword [0x455d68]
cmp eax, ebx
je 0x43b0c0
cmp dword [0x455d6c], ebx
je 0x43b0c0
push eax
call fcn.0042fdb3
push dword [0x455d6c]
mov esi, eax
call fcn.0042fdb3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43b0c0
test edi, edi
je 0x43b0c0
call esi
test eax, eax
je 0x43b0b7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43b0b7
test byte [ebp - 0xc], 1
jne 0x43b0c0
or dword [ebp + 0x10], 0x200000
jmp 0x43b0f9
mov eax, dword [0x455d60]
cmp eax, ebx
je 0x43b0f9
push eax
call fcn.0042fdb3
pop ecx
test eax, eax
je 0x43b0f9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x43b0f9
mov eax, dword [0x455d64]
cmp eax, ebx
je 0x43b0f9
push eax
call fcn.0042fdb3
pop ecx
test eax, eax
je 0x43b0f9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x455d5c]
call fcn.0042fdb3
pop ecx
test eax, eax
je 0x43b119
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43b11b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret