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

Disassembly:
push 0xffffffffffffffff
push 0x48a058
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.00480a4a
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043f1f0
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.00480978
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.0047d162
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.0047d162
push 1
push 0
push 0
mov ecx, esi
call fcn.0047d10a
push 1
push 0
push 1
mov ecx, esi
call fcn.0047d10a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00480abc
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43f9d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48a078
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.00480a4a
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043f1f0
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.00480978
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 0x43fa94
cmp dword [esp + 0x40], 1
jne 0x43fa92
cmp ecx, eax
jge 0x43fa94
mov eax, ecx
cmp eax, 0xc8
jge 0x43faa0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043f850
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.00480abc
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x440220
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48a0e3
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.0047b57f
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.00480cf2
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048224a
test eax, eax
je 0x44033c
mov ecx, dword [esp + 0x3c]
call fcn.00480d1f
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 0x440300
push edi
mov ecx, esi
call fcn.0047e2e4
mov ecx, esi
call fcn.004404a0
cmp dword [esp + 0x38], 1
jne 0x440335
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.0047e44e
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 0x442d60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x442d93
push esi
call fcn.00445e70
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x442d8c
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 0x442e19
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x442e02
mov eax, dword [esi + 8]
test eax, eax
je 0x442db7
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 0x442dfe
cmp eax, 2
je 0x442e02
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x442daa
cmp eax, 3
je 0x442ddd
cmp eax, 1
jne 0x442daa
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 0x442daa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x442daa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00442e40
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x442e28
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00442e40
add esp, 4
pop esi
ret

Function at 0x44ee50
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 0x44eef3
test eax, eax
jbe 0x44eef3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44eef3
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 0x44ee9e
xor esi, esi
jmp 0x44eea4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44eecf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004530b0
add esi, eax
push esi
mov ebx, esi
call fcn.004530b0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44eeb0
pop ebp
test edi, edi
pop edi
jne 0x44eef3
test ebx, ebx
je 0x44eef3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0046a570
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x44f035
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 0x44f14d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44f14d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0047b9d1
mov esi, eax
test esi, esi
je 0x44f14d
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 0x44f14d
mov ecx, esi
call fcn.0044efa0
cmp edi, eax
jge 0x44f14d
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 0x44f0d3
mov dword [esp + 0x34], 1
jmp 0x44f12e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44f14d
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.0044e540
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 0x45a110
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x45a15c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x45a15c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x45a146
push eax
call ebp
test ax, ax
jl 0x45a154
inc esi
add edi, 4
cmp esi, 6
jb 0x45a138
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.00459e10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x45dcf0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x45dd50
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x45dd50
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x45dd50
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x45dd50
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x45dd60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x47c375
Capabilities:
Get graphical window text

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

Function at 0x47da6a
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 0x47daac
call fcn.004838dc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47daac
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47daa3
xor eax, eax
jmp 0x47dab4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047daba
pop edi
pop esi
pop ebx
ret 4

Function at 0x483e0c
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 0x483e3a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x483e58
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00483d72
jmp 0x483e58
mov eax, dword [esi + 0x14]
test eax, eax
je 0x483e58
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00483d72
test edi, edi
mov eax, edi
jne 0x483e42
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402a7a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x4514b0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402b0e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402acb
cmp dword [ebp + 0x10], ebx
jne 0x402b02
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a7a
test eax, eax
jne 0x402add
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ab2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004060c8
cmp eax, ebx
je 0x402b15
push ebx
push dword [0x4514b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402b0e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x4514b0], ebx
jne 0x402b0b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402b0b
jmp 0x402b0e
Function at 0x402e9f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402ebc
mov dword [ebp - 8], reloc.USER32.dll_CreatePopupMenu
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x402ece
mov dword [ebp - 0xc], 0x421020
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402ee3
mov ecx, dword [0x451458]
add ecx, eax
push ecx
call fcn.004030c7
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004030b1
test eax, eax
je 0x40309f
test byte [ebp + 0x17], 0x80
je 0x40304a
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x413984], 0
and dword [0x413980], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x415008
mov dword [0x413468], 8
mov dword [0x41d010], eax
mov dword [0x41d00c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x41d008], 0x41d008
mov dword [ebp + 8], eax
jle 0x4030a7
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f5c
mov esi, dword [ebp + 0x14]
mov edi, 0x41d020
push esi
push edi
call fcn.004030b1
test eax, eax
je 0x40309f
sub dword [ebp + 0x14], esi
mov dword [0x413458], edi
mov dword [0x41345c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x413458
mov dword [0x413460], edi
mov dword [0x413464], eax
call fcn.004061ab
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403042
mov esi, dword [0x413460]
sub esi, edi
call ebx
test byte [0x4514b4], 1
mov edi, eax
je 0x402ffd
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x402fca
cmp dword [ebp + 0x14], 0
jne 0x402ffd
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push 0x409120
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404f48
mov dword [ebp - 0x10], edi
test esi, esi
je 0x403036
cmp dword [ebp + 0x10], 0
jne 0x40301c
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405a49
test eax, eax
je 0x403046
add dword [ebp - 4], esi
jmp 0x40302a
mov eax, dword [0x413460]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x402f7f
jmp 0x4030a7
cmp dword [ebp + 0x14], 0
jg 0x402f4f
jmp 0x4030a7
push 0xfffffffffffffffc
jmp 0x4030a1
push 0xfffffffffffffffe
jmp 0x4030a1
test edi, edi
jne 0x40308c
cmp dword [ebp + 0x14], edi
jle 0x4030a7
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403060
mov esi, ebx
mov edi, 0x41d020
push esi
push edi
call fcn.004030b1
test eax, eax
je 0x40309f
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405a49
test eax, eax
je 0x403046
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403056
jmp 0x4030a7
cmp dword [ebp + 0x14], esi
jge 0x403094
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004030b1
test eax, eax
jne 0x4030a4
push 0xfffffffffffffffd
pop eax
jmp 0x4030aa
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40540e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x407374
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x407364
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40545f
xor eax, eax
jmp 0x405486
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405486
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x40545b
call esi
pop esi
leave
ret 4

Function at 0x4054c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x447070], 0x44
push eax
xor eax, eax
push 0x447070
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4054ff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405589
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040597d
mov edi, eax
cmp edi, 0xffffffff
je 0x4055ca
test byte [esp + 0x10], 1
push esi
je 0x4055ac
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4055b2
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4055bb
xor eax, eax
inc eax
jmp 0x4055cc
test byte [esp + 0x10], 4
jne 0x4055ca
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4055d1
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040588f
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405610
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x451488], eax
jmp 0x40579a
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40562a
test eax, eax
je 0x405748
test bl, 2
je 0x405748
mov esi, 0x443070
push edi
push esi
call fcn.00405d2f
cmp dword [ebp + 8], 0
je 0x405649
push 0x4093a4
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40564f
push edi
call fcn.004057e8
cmp byte [edi], 0
jne 0x40565d
cmp byte [0x443070], 0x5c
jne 0x405668
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40573e
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.004057cc
cmp byte [eax], 0
je 0x4056ae
cmp byte [ebp - 0x1c], 0
je 0x4056ae
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x4056c4
mov al, byte [esi + 1]
test al, al
je 0x40571d
cmp al, 0x2e
jne 0x4056c4
cmp byte [esi + 2], 0
je 0x40571d
push esi
push ebx
call fcn.00405d2f
test byte [ebp - 0x14c], 0x10
je 0x4056e9
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40571d
push dword [ebp + 0xc]
push edi
call fcn.004055d1
jmp 0x40571d
push dword [ebp - 4]
push edi
call fcn.00405589
test eax, eax
jne 0x405715
cmp dword [ebp - 4], eax
je 0x40570d
push edi
push 0xfffffffffffffff1
call fcn.00404f48
push 0
push edi
call fcn.00405bea
jmp 0x40571d
inc dword [0x451488]
jmp 0x40571d
push edi
push 0xfffffffffffffff2
call fcn.00404f48
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40568c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405748
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40579a
cmp dword [ebp - 0xc], esi
jne 0x40575c
inc dword [0x451488]
jmp 0x40579a
push edi
call fcn.00406033
test eax, eax
je 0x40579a
push edi
call fcn.004057a1
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405589
test eax, eax
jne 0x405792
cmp dword [ebp - 4], esi
je 0x405754
push edi
push 0xfffffffffffffff1
call fcn.00404f48
push esi
push edi
call fcn.00405bea
jmp 0x40579a
push edi
push 0xffffffffffffffe5
call fcn.00404f48
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40588f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x445070
push esi
call fcn.00405d2f
push esi
call fcn.0040583a
mov edi, eax
test edi, edi
jne 0x4058b0
xor eax, eax
jmp 0x405902
push edi
call fcn.00405f9a
test byte [0x451418], 0x80
je 0x4058c9
mov al, byte [edi]
test al, al
je 0x4058ac
cmp al, 0x5c
je 0x4058ac
sub edi, esi
jmp 0x4058e1
call fcn.00406033
test eax, eax
je 0x4058db
test byte [eax], 0x10
je 0x4058ac
push esi
call fcn.004057e8
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4058cd
call fcn.004057a1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40597d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40599c
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x4059a2
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4059d1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4093ac]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405a16
test edi, edi
jne 0x4059dc
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405a10