joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448530
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4866f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0047a68b
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047fd24
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048133a
test eax, eax
je 0x44864c
mov ecx, dword [esp + 0x3c]
call fcn.0047fd51
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x448610
push edi
mov ecx, esi
call fcn.0047d3b2
mov ecx, esi
call fcn.004487b0
cmp dword [esp + 0x38], 1
jne 0x448645
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047d4ed
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44b070
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44b0a3
push esi
call fcn.0044e150
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44b09c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44b129
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44b112
mov eax, dword [esi + 8]
test eax, eax
je 0x44b0c7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44b10e
cmp eax, 2
je 0x44b112
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44b0ba
cmp eax, 3
je 0x44b0ed
cmp eax, 1
jne 0x44b0ba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44b0ba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44b0ba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044b150
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44b138
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044b150
add esp, 4
pop esi
ret

Function at 0x457c80
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x457d23
test eax, eax
jbe 0x457d23
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x457d23
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x457cce
xor esi, esi
jmp 0x457cd4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x457cff
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040c600
add esi, eax
push esi
mov ebx, esi
call fcn.0040c600
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x457ce0
pop ebp
test edi, edi
pop edi
jne 0x457d23
test ebx, ebx
je 0x457d23
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00462870
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x457e60
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x457f7d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x457f7d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0047aadd
mov esi, eax
test esi, esi
je 0x457f7d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x457f7d
mov ecx, esi
call fcn.00457dd0
cmp edi, eax
jge 0x457f7d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x457f03
mov dword [esp + 0x34], 1
jmp 0x457f5e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x457f7d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00456670
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x46c3f4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6919f4]
jne 0x46c3fe
repz ret
jmp fcn.00472575
Function at 0x4713ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6919f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004677e3
and dword [ebp - 0x14], 0
cmp dword [0x6ad990], 0
mov dword [ebp - 0x18], eax
jne 0x47145f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x471507
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x471507
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x67a0d0
push ebx
mov dword [0x6ad990], eax
call edi
push eax
call esi
push 0x67a0bc
push ebx
mov dword [0x6ad994], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x6ad998], eax
call edi
push eax
call esi
mov dword [0x6ad9a0], eax
test eax, eax
je 0x47145f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x6ad99c], eax
mov eax, dword [0x6ad99c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4714b8
cmp dword [0x6ad9a0], ecx
je 0x4714b8
push eax
call esi
push dword [0x6ad9a0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4714b8
test ebx, ebx
je 0x4714b8
call edi
test eax, eax
je 0x4714af
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4714af
test byte [ebp - 8], 1
jne 0x4714b8
or dword [ebp + 0x10], 0x200000
jmp 0x4714eb
mov eax, dword [0x6ad994]
cmp eax, dword [ebp - 0x18]
je 0x4714eb
push eax
call esi
test eax, eax
je 0x4714eb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4714eb
mov eax, dword [0x6ad998]
cmp eax, dword [ebp - 0x18]
je 0x4714eb
push eax
call esi
test eax, eax
je 0x4714eb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x6ad990]
call esi
test eax, eax
je 0x471507
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x471509
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046c3f4
leave
ret

Function at 0x47b481
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47b4b9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00479538
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00479510
jmp 0x47b4c5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x47cb6f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47cbb1
call fcn.00482730
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47cbb1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47cba8
xor eax, eax
jmp 0x47cbb9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047cbbf
pop edi
pop esi
pop ebx
ret 4

Function at 0x403b80
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [edx - 0x412f9442]
mov cl, 0x4a
std
iretd
dec esi
in al, 0x7e
xor eax, 0x5254f227
movsd dword es:[edi], dword [esi]
shl dword [ebx + 0x74c73252], cl
cld
mov cl, 0x28
fnstenv [esi]
sub ebx, dword [ecx - 0x53]
pop ecx
lodsd eax, dword [esi]
mov edx, 0x215c4fc8
loop 0x403b0f
add byte [edx + 0x13959ee6], dh
stosb byte es:[edi], al
je 0x403ac7
pop ecx
jae 0x403b67
push cs
xchg dword [ebp + 0x5e], ebp
dec ecx
bswap ebx
shr edi, 1
ror dh, 0x6c
xchg ecx, eax
rcr dword [esi], cl
add byte [esi + edi*4], dh
in eax, dx
pop ds
invalid
loop 0x403b24
in al, 0x8e
push esi
outsd dx, dword [esi]
je 0x403b99
out dx, al
pop esp
jmp 0x5dfb4657
pop ebp
xchg edx, eax
mov dh, 0x24
xchg byte es:[ebx - 0x1fd6bb4b], dh
mov ch, 0xda
cmc
fdivr dword [edi + 0x2e435a5d]
bnd retf
Function at 0x401020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401039
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401074
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401070
lea ebx, [ebx]
cmp esi, eax
jae 0x401074
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401060
cmp esi, eax
jb 0x40107a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401e00
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x477660
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4a9128]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], 0
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401f17
cmp dword [esp + 0x24], eax
mov edi, dword [esp + 0xc]
mov dword [esp + 0x10], edi
je 0x401ee8
push str.upgrade.exe_zhj5
lea edx, [esp + 0x28]
push 0x4aa924
push edx
call fcn.00401d00
add esp, 0xc
mov esi, dword [eax]
xor eax, eax
test esi, esi
setne al
mov byte [esp + 0x1c], 1
test eax, eax
jne 0x401ea5
push 0x80004005
call fcn.00401000
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
push esi
push 1
push 0
push str.Hjjm
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401f0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x401f0c
push 0x481930
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
push 0x481930
push 1
push 0
push str.Hjjm
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test edi, edi
je 0x401f17
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 4
Function at 0x402190
Capabilities:
Read .ini file

Disassembly:
push ecx
push esi
push str.param.ini
lea eax, [esp + 8]
push 0x4aa924
push eax
mov esi, ecx
call fcn.00401d00
mov eax, dword [eax]
add esp, 0xc
push eax
push 0x652
push str.DLLVER
push str.VERSION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0x38], eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4021e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x38]
pop esi
pop ecx
ret
Function at 0x403a10
Capabilities:
Access peb ldr_data
Create process on windows
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x477848
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x4a9128]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x38
xor esi, esi
lea eax, [esp + 0x18]
push esi
push eax
call fcn.0045d2b0
push str.upgrade.exe
lea ecx, [esp + 0x1c]
push 0x4aa924
push ecx
mov dword [esp + 0x28], 0x3c
mov dword [esp + 0x2c], 0x40
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.00401d00
add esp, 0x18
mov edx, dword [esp + 0xc]
push 0x481930
lea ecx, [esp + 0xc]
mov dword [esp + 0x58], esi
mov dword [esp + 0x24], edx
call fcn.00402cf0
mov eax, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 5
mov dword [esp + 0x34], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x403b17
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403ade
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x50
ret
push esi
call fcn.0045d5bc
int3
Function at 0x40a6f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40a70a
test al, 0x10
je 0x40a70a
mov eax, 1
ret
xor eax, eax
ret

Function at 0x40a8b0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jg 0x40a8bf
xor eax, eax
ret
push 6
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x40ad80
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x478358
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4a9128]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
call fcn.00434e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40adbc
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
movsx ecx, byte [esp + 0x1c]
push ecx
lea edx, [esp + 0xc]
push str._c:_
push edx
mov dword [esp + 0x20], 0
call fcn.00401c20
mov esi, dword [esp + 0x14]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x40ae36
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
push 0x482e04
push esi
call fcn.0045c990
add esp, 8
test eax, eax
je 0x40adfc
push 0x482e00
push esi
call fcn.0045c990
add esp, 8
or edx, 0xffffffff
test eax, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
je 0x40ae0d
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x40fc80
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x478d08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a9128]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebp, ecx
push 0xffffffffffffffff
push 0
lea ecx, [ebp + 0x14]
mov dword [esp + 0x20], 1
call fcn.00434111
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
push 0
call ebx
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.0043379c
add esp, 4
mov esi, eax
push esi
push edi
call ebx
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40fce2
sub eax, edx
mov edi, eax
call fcn.00434e50
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40fd09
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
test edi, edi
mov dword [esp + 0x2c], 0
jbe 0x40fdc9
test esi, esi
jne 0x40fd31
xor eax, eax
jmp 0x40fd41
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40fd36
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00401910
mov ebx, dword [esp + 0x14]
cmp dword [ebx - 0xc], 0
jl 0x40fe0e
mov cl, byte [ebx]
mov byte [esp + 0x1c], cl
mov edx, dword [esp + 0x1c]
push edx
call fcn.0040ad80
add esp, 4
test eax, eax
je 0x40fd8b
lea esi, [esi + edi + 1]
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40fd80
jmp 0x40fdbd
cmp dword [ebx - 0xc], 0
jl 0x40fe0e
mov al, byte [ebx]
mov byte [esp + 0x20], al
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, ebp
call fcn.0040eec0
test eax, eax
jne 0x40fdab
mov dword [esp + 0x18], eax
lea esi, [esi + edi + 1]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40fdb4
sub eax, edx
mov edi, eax
test edi, edi
ja 0x40fd29
push esi
call fcn.00433797
lea eax, [ebx - 0x10]
add esp, 4
mov dword [esp + 0x2c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40fdf6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0x80070057
call fcn.00401000
int3
Function at 0x40fe20
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x478d38
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a9128]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
lea ebp, [esi + 0x50]
push 0xffffffffffffffff
xor ebx, ebx
push ebx
mov ecx, ebp
mov dword [esp + 0x1c], ebp
call fcn.00434111
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], ebx
je 0x40ff86
push eax
mov ecx, esi
call fcn.0040f650
cmp dword [esi + 0x58], ebx
je 0x40ff86
call fcn.00434e50
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40fe96
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov esi, dword [esi + 0x58]
cmp esi, ebx
mov dword [esp + 0x24], ebx
jle 0x40ff0b
lea ecx, [esi - 1]
mov dword [esp + 0x2c], ecx
lea ebp, [esi*4 - 4]
jmp 0x40fec5
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jl 0x40ff8a
mov eax, dword [esp + 0x14]
cmp ecx, dword [eax + 8]
jge 0x40ff8a
mov eax, dword [eax + 4]
add eax, ebp
push eax
lea ecx, [esp + 0x1c]
call fcn.00401b60
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x40ff55
sub dword [esp + 0x2c], 1
add ebx, 1
sub ebp, 4
cmp ebx, esi
jl 0x40fec1
mov ebp, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.00434111
add edi, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ff3a
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, 1
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
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
call fcn.00434111
add edi, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ff86
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
xor eax, eax
jmp 0x40ff3f
call fcn.00433e1f
int3