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

Disassembly:
push 0xffffffffffffffff
push 0x4b2ea3
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.004a60f9
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_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.004ab792
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004accae
test eax, eax
je 0x470f3c
mov ecx, dword [esp + 0x3c]
call fcn.004ab7bf
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 0x470f00
push edi
mov ecx, esi
call fcn.004a8e25
mov ecx, esi
call fcn.004710e0
cmp dword [esp + 0x38], 1
jne 0x470f35
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.004a8f60
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 0x473140
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x473173
push esi
call fcn.004813d0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47316c
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 0x4731f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4731e2
mov eax, dword [esi + 8]
test eax, eax
je 0x473197
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 0x4731de
cmp eax, 2
je 0x4731e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47318a
cmp eax, 3
je 0x4731bd
cmp eax, 1
jne 0x47318a
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 0x47318a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47318a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00473220
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x473208
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00473220
add esp, 4
pop esi
ret

Function at 0x473aa0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x473ac1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x473ac1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x473ac1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x48ead0
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 0x48eb73
test eax, eax
jbe 0x48eb73
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x48eb73
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 0x48eb1e
xor esi, esi
jmp 0x48eb24
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x48eb4f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0042e590
add esi, eax
push esi
mov ebx, esi
call fcn.0042e590
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x48eb30
pop ebp
test edi, edi
pop edi
jne 0x48eb73
test ebx, ebx
je 0x48eb73
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00495b90
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x48ec95
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 0x48edad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48edad
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a654b
mov esi, eax
test esi, esi
je 0x48edad
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 0x48edad
mov ecx, esi
call fcn.0048ec20
cmp edi, eax
jge 0x48edad
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 0x48ed33
mov dword [esp + 0x34], 1
jmp 0x48ed8e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x48edad
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.0048e220
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 0x4921f0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0xe17894]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x492203
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x492244
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0xe1793c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x492276
mov bl, byte [esp + ecx + 0x4c]
jmp 0x49227a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x49226b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x492298
mov bl, byte [esp + ecx + 0x4c]
jmp 0x49229c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x49228d
xor ecx, ecx
mov eax, 0xe178a4
xor ebx, ebx
mov bl, byte [ecx + 0xe1794c]
cmp byte [esp + ebx + 0x14], 0
je 0x4922c7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0xe17964]
cmp byte [esp + ebx + 0x14], 0
je 0x4922de
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4922ae
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x492237
lea edx, [esp + 0x84]
push edx
call fcn.00492320
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4a6eef
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a6f27
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.004a4fa6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a4f7e
jmp 0x4a6f33
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a85e2
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 0x4a8624
call fcn.004ae099
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a8624
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a861b
xor eax, eax
jmp 0x4a862c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a8632
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ae5c9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ae5f7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ae615
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ae52f
jmp 0x4ae615
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ae615
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ae52f
test edi, edi
mov eax, edi
jne 0x4ae5ff
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404de5
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ecx]
mov ebx, dword [ebp + 0xc]
lea edi, [ebx + 4]
mov dword [ebp - 0x34], 0x10
xor eax, dword [edi]
mov dword [ebp - 0x2c], eax
push 0
push eax
push ebx
push 0
call fcn.00404e30
add esp, 0x10
xor eax, esi
mov esi, dword [ebp - 0x2c]
add edi, 4
dec dword [ebp - 0x34]
jne 0x404dfc
mov ecx, dword [ebx + 0x44]
xor ecx, eax
xor esi, dword [ebx + 0x48]
mov edx, dword [ebp + 0x10]
mov dword [edx], esi
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
ret

Function at 0x404f65
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, 0x4829b8
mov edi, dword [ebp + 0xc]
lea ecx, [edi + 0x4c]
mov edx, 0x100
mov esi, dword [eax]
mov dword [ecx], esi
add eax, 4
add ecx, 4
dec edx
jne 0x404f75
cmp eax, 0x4839b8
jl 0x404f70
xor ecx, ecx
mov esi, 0x482970
add edi, 4
mov edx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 0x3c], 4
xor ebx, ebx
mov bl, byte [ecx + edx]
shl eax, 8
or eax, ebx
inc ecx
cmp ecx, dword [ebp + 0x14]
jl 0x404fb1
xor ecx, ecx
dec dword [ebp - 0x3c]
jne 0x404f9f
xor eax, dword [esi]
mov dword [edi], eax
add esi, 4
add edi, 4
cmp esi, 0x4829b8
jl 0x404f96
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp + 0xc]
lea esi, [ebx + 8]
mov edi, 9
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
push ecx
push ebx
push 0
call fcn.00404d80
add esp, 0x14
mov edx, dword [ebp - 0x24]
mov dword [esi - 4], edx
mov eax, dword [ebp - 0x2c]
mov dword [esi], eax
add esi, 8
dec edi
jne 0x404fdb
lea esi, [ebx + 0x50]
mov dword [ebp - 0x40], 4
mov edi, 0x80
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x24]
push edx
push ebx
push 0
call fcn.00404d80
add esp, 0x14
mov eax, dword [ebp - 0x24]
mov dword [esi - 4], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esi], ecx
add esi, 8
dec edi
jne 0x405010
dec dword [ebp - 0x40]
jne 0x40500b
ret

Function at 0x4051a5
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ecx]
mov ebx, dword [ebp + 0xc]
lea edi, [ebx + 0x48]
mov dword [ebp - 0x34], 0x10
xor eax, dword [edi]
mov dword [ebp - 0x2c], eax
push 0
push eax
push ebx
push 0
call fcn.00404e30
add esp, 0x10
xor eax, esi
mov esi, dword [ebp - 0x2c]
sub edi, 4
dec dword [ebp - 0x34]
jne 0x4051bc
mov ecx, dword [ebx + 8]
xor ecx, eax
xor esi, dword [ebx + 4]
mov edx, dword [ebp + 0x10]
mov dword [edx], esi
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
ret
Function at 0x41dd50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480660
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
push eax
xor eax, eax
pop eax
je 0x41dd76
invalid
mov al, byte [0x4ba188]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2c], al
call fcn.00401760
mov ecx, dword [0x484bc8]
push ecx
push ebx
push 0x4ba188
lea ecx, [ebp - 0x2c]
call fcn.004073c0
mov edi, 0x4a3f0c
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 4], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4a3f0c
lea ecx, [ebp - 0x2c]
call fcn.00418ca0
mov edx, dword [0x484bc8]
lea ecx, [ebp - 0x2c]
push edx
push ebx
push 0x4b69d8
call fcn.004103c0
mov edi, 0x4a3f0c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4a3f0c
lea ecx, [ebp - 0x2c]
call fcn.00418ca0
mov eax, dword [0x484bc8]
lea ecx, [ebp - 0x2c]
push eax
push ebx
push 0x4b69e8
call fcn.004103c0
mov cl, byte [0x4ba188]
push ebx
mov byte [ebp - 0x1c], cl
lea ecx, [ebp - 0x1c]
call fcn.00401760
mov edx, dword [0x484bc8]
lea ecx, [ebp - 0x1c]
push edx
push ebx
push 0x4ba188
call fcn.004073c0
mov edi, 0x4a3f0c
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x14]
repne scasb al, byte es:[edi]
mov eax, dword [0x484bc8]
mov byte [ebp - 4], 1
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x41de53
call fcn.0046d8e0
cmp esi, ebx
jbe 0x41de95
mov ecx, dword [ebp - 0x14]
push 0
lea ebx, [ecx + esi]
lea ecx, [ebp - 0x1c]
push ebx
call fcn.00401800
test al, al
je 0x41de93
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov ecx, esi
mov esi, 0x4a3f0c
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x1c]
call fcn.004078b0
xor ebx, ebx
mov eax, dword [0x484bc8]
lea ecx, [ebp - 0x1c]
push eax
push ebx
push 0x4b69d8
call fcn.004103c0
mov eax, dword [ebp - 0x18]
mov ecx, 0x482818
cmp eax, ebx
je 0x41deb7
mov ecx, eax
mov eax, dword [ebp - 0x28]
cmp eax, ebx
jne 0x41dec3
mov eax, 0x482818
push 5
push ecx
push str._run
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x41defb
mov al, byte [ecx - 1]
test al, al
je 0x41def1
cmp al, 0xff
je 0x41def1
dec al
mov byte [ecx - 1], al
jmp 0x41defb
dec ecx
push ecx
call fcn.00478980
add esp, 4
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], ebx
cmp ecx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
je 0x41df36
mov al, byte [ecx - 1]
test al, al
je 0x41df2c
cmp al, 0xff
je 0x41df2c
dec al
mov byte [ecx - 1], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
push ecx
call fcn.00478980
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431b20
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push eax
xor eax, eax
pop eax
je 0x431b2e
invalid
push eax
xor eax, eax
pop eax
je 0x431b36
invalid
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x431b9b
lea ecx, [ebp - 0x10]
push ecx
push 0x4a77cc
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x431b9b
mov eax, dword [ebp - 4]
push 0
push 0
lea edx, [ebp - 0x14]
push 0
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x431b9b
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov esp, ebp
pop ebp
ret
Function at 0x431ba0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push eax
xor eax, eax
pop eax
je 0x431bb1
invalid
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
test ecx, ecx
mov eax, dword [esi]
mov dword [ebp + 8], eax
je 0x431c1d
mov ecx, eax
cmp eax, ecx
jne 0x431c1d
mov edi, dword [esi + 4]
mov eax, dword [0x4b0d0c]
cmp edi, eax
mov esi, edi
je 0x431bf8
mov eax, dword [esi + 8]
mov ecx, ebx
push eax
call fcn.00407cd0
mov esi, dword [esi]
push edi
call fcn.00478980
mov eax, dword [0x4b0d0c]
add esp, 4
cmp esi, eax
mov edi, esi
jne 0x431bd7
mov ecx, dword [ebx + 4]
lea edx, [ebp - 0x10]
push edx
mov dword [ecx + 4], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 0xc], 0
mov ecx, ebx
mov dword [eax], eax
mov eax, dword [ebx + 4]
mov dword [eax + 8], eax
call fcn.00447ca0
jmp 0x431c3e
cmp eax, esi
je 0x431c3e
lea ecx, [ebp + 8]
mov edi, eax
call fcn.00407740
lea eax, [ebp - 0xc]
push edi
push eax
mov ecx, ebx
call fcn.004078d0
mov eax, dword [ebp + 8]
cmp eax, esi
jne 0x431c21
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x431d64
xor ecx, ecx
mov dword [ebp - 0xc], ecx
jmp 0x431c59
mov eax, dword [ebp - 0x10]
mov edx, 1
shl edx, cl
test eax, edx
je 0x431d54
mov eax, dword [0x4a77e0]
add cl, 0x41
mov dword [ebp - 4], eax
mov byte [ebp - 4], cl
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x431d54
mov edi, dword [ebx + 4]
mov edx, dword [0x4b0d0c]
mov cl, byte [ebp - 4]
mov al, 1
mov esi, dword [edi + 4]
cmp esi, edx
je 0x431cb7
mov al, byte [esi + 0xc]
mov edi, esi
cmp cl, al
setl al
test al, al
je 0x431cb0
mov esi, dword [esi]
jmp 0x431cb3
mov esi, dword [esi + 8]
cmp esi, edx
jne 0x431c9e
mov dl, byte [ebx + 8]
test dl, dl
je 0x431cda
lea edx, [ebp - 4]
lea eax, [ebp - 0x14]
push edx
push edi
push esi
push eax
mov ecx, ebx
call fcn.00410850
mov ecx, dword [eax]
mov byte [ebp - 0x24], 1
mov dword [ebp - 0x28], ecx
jmp 0x431d54
test al, al
mov dword [ebp - 8], edi
je 0x431d1c
lea edx, [ebp - 0x18]
mov ecx, ebx
push edx
call fcn.00447ca0
mov ecx, dword [ebp - 8]
mov edx, dword [eax]
cmp ecx, edx
jne 0x431d11
lea edx, [ebp + 0xb]
lea eax, [ebp - 4]
push edx
push eax
push edi
lea ecx, [ebp - 0x1c]
push esi
push ecx
mov ecx, ebx
mov byte [ebp + 0xb], 1
call fcn.00410850
push eax
jmp 0x431d4c
lea ecx, [ebp - 8]
call fcn.004111d0
mov cl, byte [ebp - 4]
mov edx, dword [ebp - 8]
cmp byte [edx + 0xc], cl
jge 0x431d40
lea eax, [ebp + 0xb]
lea ecx, [ebp - 4]
push eax
push ecx
push edi
lea edx, [ebp - 0x20]
push esi
push edx
mov ecx, ebx
mov byte [ebp + 0xb], 1
call fcn.00410850
push eax
jmp 0x431d4c
lea eax, [ebp + 0xb]
lea ecx, [ebp - 8]
push eax
mov byte [ebp + 0xb], 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00445900
mov ecx, dword [ebp - 0xc]
inc ecx
cmp ecx, 0x1a
mov dword [ebp - 0xc], ecx
jl 0x431c56
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x431d70
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
push eax
xor eax, eax
pop eax
je 0x431d89
invalid
mov bl, byte [ebp + 0xc]
movsx eax, bl
push eax
call fcn.00426194
add esp, 4
test eax, eax
jne 0x431df0
mov ebx, dword [ebp + 8]
mov cl, byte [ebp + 0xf]
mov edi, 0x4af4d4
push 1
mov byte [ebx], cl
or ecx, 0xffffffff
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebx
push esi
mov dword [ebp + 0xc], esi
call fcn.00401800
test al, al
je 0x431ee6
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov esi, 0x4af4d4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x431edc
mov al, byte [0x4af4d4]
mov edx, dword [0x4a77e0]
mov byte [ebp - 0x10c], al
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp - 0x10c]
push esi
push esi
rep stosd dword es:[edi], eax
push esi
push esi
mov dword [ebp - 4], edx
push esi
lea ecx, [ebp - 0x10c]
push 0x104
lea edx, [ebp - 4]
push ecx
push edx
mov byte [ebp - 4], bl
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ebx, dword [ebp + 8]
test eax, eax
jne 0x431e92
mov al, byte [ebp + 0xf]
mov edi, 0x4af4d4
mov byte [ebx], al
or ecx, 0xffffffff
xor eax, eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebx
push esi
mov dword [ebp + 0xc], esi
call fcn.00401800
test al, al
je 0x431ee6
mov edi, dword [ebx + 4]
mov ecx, esi
mov edx, ecx
mov esi, 0x4af4d4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x431edc
lea edi, [ebp - 0x10c]
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [ebp + 0xf]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], esi
mov esi, ecx
push 1
push esi
mov ecx, ebx
mov byte [ebx], dl
mov dword [ebp + 0xc], esi
call fcn.00401800
test al, al
je 0x431ee6
mov edi, dword [ebx + 4]
mov ecx, esi
mov eax, ecx
lea esi, [ebp - 0x10c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [eax + ecx], 0
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x432250
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push eax
xor eax, eax
pop eax
je 0x43225f
invalid
mov bl, byte [ebp + 8]
movsx eax, bl
push eax
call fcn.00426194
add esp, 4
test eax, eax
jne 0x43227f
or eax, 0xffffffff
or edx, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x4a77e0]
lea edx, [ebp - 0xc]
push edx
push 0
lea eax, [ebp - 4]
push 0
mov dword [ebp - 4], ecx
push eax
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x4322ae
or eax, 0xffffffff
or edx, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret 4