joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450b40
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x450b73
push esi
call fcn.00453c40
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x450b6c
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 0x450bf9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x450be2
mov eax, dword [esi + 8]
test eax, eax
je 0x450b97
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 0x450bde
cmp eax, 2
je 0x450be2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x450b8a
cmp eax, 3
je 0x450bbd
cmp eax, 1
jne 0x450b8a
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 0x450b8a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x450b8a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00450c20
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x450c08
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00450c20
add esp, 4
pop esi
ret

Function at 0x46f9d5
Capabilities:
Get graphical window text

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

Function at 0x4710c6
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 0x471108
call fcn.00476b84
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x471108
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4710ff
xor eax, eax
jmp 0x471110
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00471116
pop edi
pop esi
pop ebx
ret 4

Function at 0x4770b4
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 0x4770e2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x477100
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047701a
jmp 0x477100
mov eax, dword [esi + 0x14]
test eax, eax
je 0x477100
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047701a
test edi, edi
mov eax, edi
jne 0x4770ea
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402a28
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 [0x446f50]
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 0x402abc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a79
cmp dword [ebp + 0x10], ebx
jne 0x402ab0
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a28
test eax, eax
jne 0x402a8b
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a60
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405d61
cmp eax, ebx
je 0x402ac3
push ebx
push dword [0x446f50]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402abc
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 [0x446f50], ebx
jne 0x402ab9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ab9
jmp 0x402abc
Function at 0x402f01
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f2e
mov ecx, dword [0x446ef8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x41fc3c], eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.0040302c
cmp eax, edi
jl 0x403025
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409014]
call ebx
test eax, eax
je 0x403022
cmp dword [ebp - 4], esi
jne 0x403022
push dword [ebp + 8]
add dword [0x41fc3c], esi
call fcn.0040302c
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403025
cmp dword [ebp + 0x10], edi
jne 0x402ff1
cmp dword [ebp + 8], edi
jle 0x40301d
mov esi, 0x41bc38
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402fa1
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409014]
call ebx
test eax, eax
je 0x403022
cmp edi, dword [ebp - 4]
jne 0x403022
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fed
cmp dword [ebp + 0x14], edi
jne 0x402fed
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41fc3c], eax
cmp dword [ebp + 8], 0
jg 0x402f94
jmp 0x40301d
push 0xfffffffffffffffe
jmp 0x403024
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x402ffc
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409014]
call ebx
test eax, eax
je 0x403022
mov eax, dword [ebp - 4]
add dword [0x41fc3c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403025
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40302c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41fc3c]
sub esi, dword [0x413ba8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x446eac], eax
jle 0x403196
push dword [0x427c4c]
call fcn.004031da
push ebx
push ebx
push dword [0x413ba8]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x427c48], esi
mov dword [0x41fc38], ebx
mov ebp, 0x413c38
mov eax, dword [0x41fc40]
mov edi, 0x4000
sub eax, dword [0x427c4c]
cmp eax, edi
jg 0x4030a1
mov edi, eax
mov esi, 0x41bc38
push edi
push esi
call fcn.004031a8
test eax, eax
je 0x403188
add dword [0x427c4c], edi
mov dword [0x413bc8], esi
mov dword [0x413bcc], edi
cmp dword [0x446eb0], ebx
je 0x4030f8
cmp dword [0x446f40], ebx
jne 0x4030f8
mov eax, dword [0x427c48]
push ebx
sub eax, dword [0x41fc3c]
sub eax, dword [esp + 0x1c]
add eax, dword [0x413ba8]
mov dword [0x41fc38], eax
call fcn.00402bc5
pop ecx
mov ecx, 0x413bb0
mov dword [0x413bd0], ebp
mov dword [0x413bd4], 0x8000
call fcn.00405e5b
test eax, eax
jl 0x403191
mov esi, dword [0x413bd0]
sub esi, ebp
je 0x403152
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40318d
cmp esi, dword [esp + 0x10]
jne 0x40318d
add dword [0x413ba8], esi
cmp dword [0x413bcc], ebx
jne 0x4030c7
jmp 0x40315e
cmp dword [0x413bcc], ebx
jne 0x403191
cmp edi, ebx
je 0x403191
mov eax, dword [0x41fc3c]
mov ecx, eax
sub ecx, dword [0x413ba8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x40308b
push ebx
push ebx
push eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403196
or eax, 0xffffffff
jmp 0x4031a0
push 0xfffffffffffffffe
jmp 0x403193
push 0xfffffffffffffffd
pop eax
jmp 0x4031a0
push 1
call fcn.00402bc5
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4052a3
Capabilities:
Create process on windows

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

Function at 0x405368
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405617
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x40539c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x446f28], eax
jmp 0x405530
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4053ba
test eax, eax
je 0x4054db
test byte [ebp + 0xc], 2
je 0x4054db
mov esi, 0x439ca0
push edi
push esi
call fcn.00405a43
test ebx, ebx
je 0x4053d7
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4053dd
push edi
call fcn.0040557d
cmp byte [edi], 0
jne 0x4053eb
cmp byte [0x439ca0], 0x5c
jne 0x4053f6
push 0x40900c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4054d1
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405561
cmp byte [eax], 0
je 0x40543c
cmp byte [ebp - 0x18], 0
je 0x40543c
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405452
mov al, byte [esi + 1]
test al, al
je 0x4054b0
cmp al, 0x2e
jne 0x405452
cmp byte [esi + 2], 0
je 0x4054b0
push esi
push ebx
call fcn.00405a43
test byte [ebp - 0x148], 0x10
je 0x405477
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4054b0
push dword [ebp + 0xc]
push edi
call fcn.00405368
jmp 0x4054b0
push edi
call fcn.004056fb
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4054a8
test byte [ebp + 0xc], 4
je 0x4054a0
push edi
push 0xfffffffffffffff1
call fcn.00404de1
push 0
push edi
call fcn.00405791
jmp 0x4054b0
inc dword [0x446f28]
jmp 0x4054b0
push edi
push 0xfffffffffffffff2
call fcn.00404de1
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40541a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4054db
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405530
cmp dword [ebp - 8], esi
jne 0x4054f0
inc dword [0x446f28]
jmp 0x405530
push edi
call fcn.00405d3a
test eax, eax
je 0x405530
push edi
call fcn.00405536
push edi
call fcn.004056fb
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405528
test byte [ebp + 0xc], 4
je 0x4054e8
push edi
push 0xfffffffffffffff1
call fcn.00404de1
push esi
push edi
call fcn.00405791
jmp 0x405530
push edi
push 0xffffffffffffffe5
call fcn.00404de1
pop edi
pop esi
leave
ret 8
Function at 0x405617
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43bca0
push esi
call fcn.00405a43
push esi
call fcn.004055ca
mov edi, eax
test edi, edi
jne 0x405638
xor eax, eax
jmp 0x40568a
push edi
call fcn.00405ca1
test byte [0x446eb8], 0x80
je 0x405651
mov al, byte [edi]
test al, al
je 0x405634
cmp al, 0x5c
je 0x405634
sub edi, esi
jmp 0x405669
call fcn.00405d3a
test eax, eax
je 0x405663
test byte [eax], 0x10
je 0x405634
push esi
call fcn.0040557d
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405655
call fcn.00405536
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 0x4056fb
Capabilities:
Check if file exists
Get file attributes
Set file attributes

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

Function at 0x40571a
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 0x405749
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
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 0x40578d
test edi, edi
jne 0x405754
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405787
Function at 0x405791
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405d61
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4057b5
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4058ee
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43e628], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x43e628
je 0x4057f9
push 1
push 0
push esi
call fcn.0040571a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4058f4
cmp eax, edi
jg 0x4058f4
mov esi, 0x43e0a0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4058f4
cmp eax, edi
jg 0x4058f4
push esi
push ebp
push str._s_s_r_n
push 0x43dca0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x446eb0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405a65
push 4
push 0xc0000000
push esi
call fcn.0040571a
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x4058ee
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4058e7
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4058e7
cmp edi, dword [esp + 0x18]
jne 0x4058e7
push str._Rename__r_n
push esi
call fcn.0040568f
test eax, eax
jne 0x4058fb
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405a43
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x43dca0
push eax
call fcn.004056db
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x446f30]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409348
push eax
call fcn.0040568f
test eax, eax
je 0x4058b2
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405922
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405917
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4058b4
Function at 0x40592a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40599b
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40598a
cmp dword [ebp + 0x14], 1
je 0x40598c
cmp dword [ebp + 0x14], 2
je 0x40598c
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405dcd
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43ea2c], 0
push esi
jne 0x405e04
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dde
mov dword [ecx*4 + 0x43ea28], eax
inc ecx
cmp ecx, 0x100
jl 0x405dd9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e35
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43ea28]
xor eax, esi
inc ecx
dec edx
jne 0x405e17
pop edi
not eax
pop esi
ret 0xc
Function at 0x403a88
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00403c38
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x403b86
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x403b29
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x403b6c
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x403b40
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x403b5b
test al, 0x40
je 0x403b52
mov ecx, dword [edi + 0x20]
jmp 0x403b59
test al, 0x80
je 0x403b6c
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x403b6c
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x403af8
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x413b50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x490f3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00484bcc
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x413bd2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00481d24
mov eax, dword [eax]
push 0x4cc218
push eax
call fcn.00473bc4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00484e57
test bl, bl
je 0x413bd2
push 0x4cc218
lea ecx, [esp + 0xc]
call fcn.004851e7
push 0x4cfdb0
lea ecx, [esp + 0xc]
call fcn.004851e7
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x413c0e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00484e57
jmp 0x413cd9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x413c92
lea edx, [esp + 0x7c]
push 0x4cfdac
push edx
call fcn.00473bc4
add esp, 8
test eax, eax
je 0x413c92
lea eax, [esp + 0x7c]
push 0x4cfda8
push eax
call fcn.00473bc4
add esp, 8
test eax, eax
je 0x413c92
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x413c22
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00484e57
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4144d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x414532
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x414540
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x490fbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4d7184]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x414678
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4145a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00484e57
xor eax, eax
jmp 0x4146ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00484f94
push esi
lea ecx, [esp + 0xc]
call fcn.00485223
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4cfde8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4146cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004144d0
test eax, eax
jne 0x4146cd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.004144d0
test eax, eax
jne 0x4146cd
lea eax, [esp + 0x14]
push 0x4cfdc4
push eax
call fcn.00474c00
mov esi, eax
add esp, 8
test esi, esi
jne 0x4146ac
lea ecx, [esp + 0x14]
push 0x4cfdc0
push ecx
call fcn.00474b80
mov esi, eax
add esp, 8
test esi, esi
jne 0x4146ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4146af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00484f44
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4145be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00484e57
xor eax, eax
jmp 0x4146ef
mov byte [esi], 0
push 0x4cfdbc
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00484e57
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4