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

Disassembly:
push 0xffffffffffffffff
push 0x5977a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0058f8a0
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00471cb0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0058f7ce
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0058c092
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0058c092
push 1
push 0
push 0
mov ecx, esi
call fcn.0058c03a
push 1
push 0
push 1
mov ecx, esi
call fcn.0058c03a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0058f912
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4724d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5977c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0058f8a0
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00471cb0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0058f7ce
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x472594
cmp dword [esp + 0x40], 1
jne 0x472592
cmp ecx, eax
jge 0x472594
mov eax, ecx
cmp eax, 0xc8
jge 0x4725a0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00472350
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0058f912
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x472da0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x597873
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.0058a4b3
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.0058fb48
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.005910a7
test eax, eax
je 0x472ebc
mov ecx, dword [esp + 0x3c]
call fcn.0058fb75
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 0x472e80
push edi
mov ecx, esi
call fcn.0058d1e0
mov ecx, esi
call fcn.00473070
cmp dword [esp + 0x38], 1
jne 0x472eb5
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.0058d31b
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 0x4750c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4750f3
push esi
call fcn.00483480
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4750ec
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 0x475179
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x475162
mov eax, dword [esi + 8]
test eax, eax
je 0x475117
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 0x47515e
cmp eax, 2
je 0x475162
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47510a
cmp eax, 3
je 0x47513d
cmp eax, 1
jne 0x47510a
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 0x47510a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47510a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004751a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x475188
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004751a0
add esp, 4
pop esi
ret

Function at 0x475a10
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x475a31
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x475a31
mov eax, dword [eax + 0x44]
test eax, eax
je 0x475a31
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 0x490cb0
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 0x490d53
test eax, eax
jbe 0x490d53
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x490d53
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 0x490cfe
xor esi, esi
jmp 0x490d04
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x490d2f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0042cf60
add esi, eax
push esi
mov ebx, esi
call fcn.0042cf60
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x490d10
pop ebp
test edi, edi
pop edi
jne 0x490d53
test ebx, ebx
je 0x490d53
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.005765f0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x490eb5
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 0x490fcd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x490fcd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0058a905
mov esi, eax
test esi, esi
je 0x490fcd
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 0x490fcd
mov ecx, esi
call fcn.00490e40
cmp edi, eax
jge 0x490fcd
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 0x490f53
mov dword [esp + 0x34], 1
jmp 0x490fae
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x490fcd
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.004903b0
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 0x49da00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x49da13
xor eax, eax
jmp 0x49da46
lea ecx, [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 0x14]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x49dd90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59826c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x49ddbf
jmp 0x49de1d
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
push 0x5c
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.0049eca0
push eax
call fcn.00578bdd
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x49de0b
push str.bbs.125.la
mov ecx, dword [ebp - 0x10]
add ecx, 2
push ecx
call fcn.00578856
add esp, 8
test eax, eax
je 0x49de1d
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.0049eca0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.004995e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x49e4c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x49e4d5
xor eax, eax
jmp 0x49e4f6
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret 8
Function at 0x4adde3
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59863c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], SysStringLen
mov dword [ebp - 0x14], 3
push 0
push 0x80
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x4ade6d
cmp dword [ebp + 0x10], 0
je 0x4ade54
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0xffffffff
mov ecx, dword [ebp + 8]
call fcn.00540f00
mov edx, dword [ebp - 0x30]
or edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 8]
jmp 0x4adfa8
push 0
push 0
push 0
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4adec7
cmp dword [ebp + 0x10], 0
je 0x4adea4
mov edx, dword [ebp + 0x10]
mov dword [edx], 0xffffffff
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
call fcn.00540f00
mov ecx, dword [ebp - 0x30]
or ecx, 1
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
jmp 0x4adfa8
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x10]
push edx
lea ecx, [ebp - 0x18]
call fcn.00498e30
mov dword [ebp - 4], 1
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0049eca0
push eax
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4adf3d
cmp dword [ebp + 0x10], 0
je 0x4adf11
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
call fcn.00540f00
mov edx, dword [ebp - 0x30]
or edx, 1
mov dword [ebp - 0x30], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004995e0
mov eax, dword [ebp + 8]
jmp 0x4adfa8
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.0049eca0
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.004adb13
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x18]
call fcn.00498f00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004995e0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp + 8]
call fcn.00498ea0
mov eax, dword [ebp - 0x30]
or al, 1
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004995e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4aec49
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
and eax, 0xff
test eax, eax
je 0x4aecae
cmp dword [0x6e3e78], 0
jne 0x4aec71
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x6e3e78], eax
cmp dword [0x6e3e50], 0
jne 0x4aec93
mov ecx, dword [0x6e3e78]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x6e3e78]
add eax, dword [edx + 0x3c]
mov dword [0x6e3e50], eax
cmp dword [ebp + 0x10], 0
je 0x4aeca4
mov ecx, dword [ebp + 0x10]
mov edx, dword [0x6e3e50]
mov dword [ecx], edx
mov eax, dword [0x6e3e78]
jmp 0x4aee0b
xor eax, eax
mov al, byte [0x6e3e6c]
and eax, 1
test eax, eax
jne 0x4aece2
mov cl, byte [0x6e3e6c]
or cl, 1
mov byte [0x6e3e6c], cl
mov ecx, 0x6e3e70
call fcn.00540f00
push 0x4aee0f
call fcn.00576b2b
add esp, 4
push 0
call fcn.0057877a
add esp, 4
push eax
call fcn.00575522
add esp, 4
mov ecx, 0x6e3e70
call fcn.00499260
and eax, 0xff
test eax, eax
je 0x4aeda5
push 0x6e3e70
push 0x6e1a50
call fcn.004b7db0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4aeda5
mov edx, 1
test edx, edx
je 0x4aed92
mov eax, dword [ebp + 8]
and eax, 0x200000
test eax, eax
jne 0x4aed92
mov ecx, dword [ebp - 8]
push ecx
push 0xb5
push 0x688b60
push 0xb5
push 0x688ba4
call fcn.004b8320
add esp, 0x14
mov edx, dword [ebp - 8]
push edx
push 0xb5
push 0x688be8
call fcn.004afca3
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
call fcn.00578c4a
cmp dword [ebp + 0x10], 0
je 0x4aeda1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
xor eax, eax
jmp 0x4aee0b
cmp dword [0x6e3e58], 0
jne 0x4aedbd
mov ecx, 0x6e3e70
call fcn.0049eca0
mov dword [0x6e3e58], eax
cmp dword [ebp + 0x14], 0
je 0x4aedd2
mov ecx, 0x6e3e70
call fcn.00526cc0
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
cmp dword [0x6e3e64], 0
jne 0x4aedf5
mov eax, dword [0x6e3e58]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [0x6e3e58]
add edx, dword [ecx + 0x3c]
mov dword [0x6e3e64], edx
cmp dword [ebp + 0x10], 0
je 0x4aee06
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x6e3e64]
mov dword [eax], ecx
mov eax, dword [0x6e3e58]
mov esp, ebp
pop ebp
ret
Function at 0x4afe3a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598910
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push edi
mov dword [ebp - 0x134], 0
push 0x6890e0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4afea9
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4afea9
mov ecx, dword [ebp + 8]
call fcn.00540f00
mov eax, dword [ebp - 0x134]
or al, 1
mov dword [ebp - 0x134], eax
mov eax, dword [ebp + 8]
jmp 0x4b0061
push str.GetProcessImageFileNameA
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4afee0
mov ecx, dword [ebp + 8]
call fcn.00540f00
mov edx, dword [ebp - 0x134]
or edx, 1
mov dword [ebp - 0x134], edx
mov eax, dword [ebp + 8]
jmp 0x4b0061
lea ecx, [ebp - 0x24]
call fcn.00540f00
mov dword [ebp - 4], 1
push 0
push 0x104
lea ecx, [ebp - 0x24]
call fcn.004991d0
push 0x104
lea ecx, [ebp - 0x24]
call fcn.0049eca0
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x24]
call fcn.004991d0
mov dx, word [0x689124]
mov word [ebp - 0x10], dx
mov al, byte [0x689126]
mov byte [ebp - 0xe], al
mov dword [ebp - 0x18], 0
jmp 0x4aff49
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0x1a
jge 0x4b0034
mov byte [ebp - 0x128], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea edx, [ebp - 0x128]
push edx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x4b0026
push 0
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x130]
call fcn.00498e70
mov byte [ebp - 4], 2
push 1
push 0
lea edx, [ebp - 0x130]
push edx
lea ecx, [ebp - 0x24]
call fcn.0049c990
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov byte [ebp - 0x12c], cl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x130]
call fcn.004995e0
mov edx, dword [ebp - 0x12c]
and edx, 0xff
test edx, edx
je 0x4b0026
push 1
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x24]
call fcn.004b9840
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp + 8]
call fcn.00498ea0
mov eax, dword [ebp - 0x134]
or al, 1
mov dword [ebp - 0x134], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004995e0
mov eax, dword [ebp + 8]
jmp 0x4b0061
mov cl, byte [ebp - 0x10]
add cl, 1
mov byte [ebp - 0x10], cl
jmp 0x4aff40
push 0
push 0x6e3e9c
mov ecx, dword [ebp + 8]
call fcn.00498e70
mov edx, dword [ebp - 0x134]
or edx, 1
mov dword [ebp - 0x134], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004995e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4b0070
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598926
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
ja 0x4b00b8
xor eax, eax
jmp 0x4b01d6
mov dword [ebp - 0x144], 0
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x140]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x144], 0x128
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.KERNEL32.dll_Process32First
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x14], al
mov edx, dword [ebp - 0x14]
and edx, 0xff
test edx, edx
je 0x4b01c9
mov eax, dword [ebp - 0x13c]
cmp eax, dword [ebp - 0x18]
jne 0x4b01ab
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
jne 0x4b0128
jmp 0x4b01c9
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
jne 0x4b014a
jmp 0x4b01c9
push 1
mov eax, dword [ebp - 0x148]
push eax
lea ecx, [ebp - 0x14c]
push ecx
call fcn.004afe3a
add esp, 8
mov dword [ebp - 0x150], eax
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x154], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x154]
push eax
mov ecx, dword [ebp + 8]
call fcn.00499190
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.004995e0
mov ecx, dword [ebp - 0x148]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b01c9
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.dll_Process32Next
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x14], al
jmp 0x4b00f4
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret