joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ed3
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 [0x7c7bb0]
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 0x402f4e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402f55
cmp dword [ebp + 0x10], ebx
jne 0x402f42
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ed3
test eax, eax
jne 0x402f55
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402f15
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040645a
cmp eax, ebx
je 0x402f7a
push ebx
push dword [0x7c7bb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402f4e
cmp dword [0x7c7bb0], ebx
jne 0x402f4b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402f4b
jmp 0x402f4e
Function at 0x40573f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x7be4f0], 0x44
push eax
xor eax, eax
push 0x7be4f0
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 0x40577a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405b31
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7bbcf0
push esi
call fcn.00405f65
push esi
call fcn.00405ae2
mov edi, eax
test edi, edi
jne 0x405b52
xor eax, eax
jmp 0x405ba4
push edi
call fcn.004061ed
test byte [0x7c7b18], 0x80
je 0x405b6b
mov al, byte [edi]
test al, al
je 0x405b4e
cmp al, 0x5c
je 0x405b4e
sub edi, esi
push esi
call fcn.00405f7b
cmp eax, edi
push esi
jle 0x405b8e
call fcn.00406433
test eax, eax
je 0x405b86
test byte [eax], 0x10
je 0x405b4e
push esi
call fcn.00405a95
jmp 0x405b6d
call fcn.00405a4e
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 0x405c1b
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 0x405c37
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop 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 0x405cae
mov eax, edi
dec edi
test eax, eax
jne 0x405c74
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405ca8
Function at 0x405cb2
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.0040645a
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405cd6
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405e0f
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x7be678], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x7be678
je 0x405d1a
push 1
push 0
push esi
call fcn.00405c3a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405e15
cmp eax, edi
jg 0x405e15
mov esi, 0x7be0f0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405e15
cmp eax, edi
jg 0x405e15
push esi
push ebp
push str._s_s_r_n
push 0x7bdcf0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7c7b10]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405f99
push 4
push 0xc0000000
push esi
call fcn.00405c3a
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405e0f
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 0x405e08
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 0x405e08
cmp edi, dword [esp + 0x18]
jne 0x405e08
push str._Rename__r_n
push esi
call fcn.00405ba9
test eax, eax
jne 0x405e1c
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405f65
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x7bdcf0
push eax
call fcn.00405bf5
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 [0x7c7b90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aad0
push eax
call fcn.00405ba9
test eax, eax
je 0x405dd3
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405e43
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405e38
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405dd5
Function at 0x405e4b
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 0x405ebc
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 0x405eab
cmp dword [ebp + 0x14], 1
je 0x405ead
cmp dword [ebp + 0x14], 2
je 0x405ead
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 0x406286
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4062ab
mov eax, dword [0x40a8a0]
cmp eax, 0xffffffff
je 0x4062a2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a0], 0xffffffff
jmp 0x40631e
cmp dword [0x7bf280], ebx
je 0x40631e
cmp byte [0x7bee80], bl
je 0x4062ea
cmp dword [0x40a8a0], 0xffffffff
jne 0x4062f3
push 4
push 0x40000000
push 0x7bee80
call fcn.00405c3a
cmp eax, 0xffffffff
mov dword [0x40a8a0], eax
je 0x40631e
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a0], 0xffffffff
je 0x40631e
push esi
mov esi, 0x7c32a0
push 0x40aae8
push esi
call fcn.00405f88
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f7b
push eax
push esi
push dword [0x40a8a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4064d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x7bea7c], esi
push edi
jne 0x40650a
mov ecx, 0x7bea78
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x4064e6
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x7bee78
jl 0x4064e1
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x40653f
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7bea78]
xor eax, esi
inc ecx
dec edx
jne 0x406522
pop edi
pop esi
not eax
ret 0xc
Function at 0x402b1c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40f00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402bb4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402b94
xor eax, eax
push ebp
push 0x402b8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402bd0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402b94
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40f00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40f00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x40321c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x410034], 0
je 0x40327d
cmp word [0x410208], 0xd7b2
jne 0x403245
cmp dword [0x410210], 0
jbe 0x403245
mov eax, 0x410204
call dword [0x410220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40f054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4032a4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40f018], 0
jne 0x403299
push 0
push 0x40f04c
push 0x40f054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403b18
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403b7e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403518
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004029b0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x403b68
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b85
lea eax, [ebp - 0x10]
call fcn.004033a0
ret
Function at 0x4046fc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x218], ecx
mov esi, edx
mov ebx, eax
lea edi, [ebp - 4]
xor eax, eax
push ebp
push 0x404800
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x404750
push 0x20a
lea eax, [ebp - 0x212]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
lea edx, [ebp - 0x212]
mov eax, esi
call fcn.004036e0
jmp 0x4047e7
call sub.kernel32.dll_GetCommandLineW
mov dword [edi], eax
mov eax, dword [edi]
call fcn.00404670
mov dword [edi], eax
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi]
call fcn.004046a0
mov dword [edi], eax
test ebx, ebx
je 0x40477e
dec ebx
test ebx, ebx
jl 0x40477e
mov eax, dword [edi]
cmp eax, dword [ebp - 8]
jne 0x404757
push esi
lea eax, [ebp - 0x218]
mov edx, dword [ebp - 8]
call fcn.00403704
mov eax, dword [ebp - 0x218]
mov ecx, dword [edi]
sub ecx, dword [ebp - 8]
sar ecx, 1
jns 0x40479f
adc ecx, 0
mov edx, 1
call fcn.0040391c
mov eax, dword [esi]
call fcn.0040377c
cmp eax, 2
jl 0x4047e7
mov eax, dword [esi]
cmp word [eax], 0x22
jne 0x4047e7
mov eax, dword [esi]
call fcn.0040377c
mov edx, dword [esi]
cmp word [edx + eax*2 - 2], 0x22
jne 0x4047e7
push esi
mov eax, dword [esi]
call fcn.0040377c
mov ecx, eax
sub ecx, 2
mov eax, dword [esi]
mov edx, 2
call fcn.0040391c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404807
lea eax, [ebp - 0x218]
call fcn.004035ec
ret

Function at 0x404810
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040376c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x404829
test al, 0x10
je 0x40482d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4048a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.0040376c
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
sete al
pop ebp
ret

Function at 0x404948
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x40497e
mov eax, esi
call fcn.0040377c
inc eax
add eax, eax
push eax
mov eax, esi
call fcn.0040376c
push eax
push 1
push 0
mov eax, edi
call fcn.0040376c
push eax
push ebx
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x404982
xor eax, eax
jmp 0x404984
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x404b24
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x404b2d
mov eax, dword [ebp - 4]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
cmp byte [ebx + 0x18], 0
jne 0x404bab
mov word [ebp - 0x2004], 0
mov eax, dword [ebx + 0x19]
call fcn.0040376c
push eax
push 0x1000
lea eax, [ebp - 0x2004]
push eax
mov eax, esi
call fcn.0040376c
push eax
mov eax, dword [ebp - 4]
call fcn.0040376c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.0040376c
push eax
call sub.kernel32.dll_GetPrivateProfileStringW
test eax, eax
je 0x404ba2
mov eax, edi
lea edx, [ebp - 0x2004]
mov ecx, 0x1000
call fcn.00403740
jmp 0x404bdc
mov eax, edi
call fcn.004035ec
jmp 0x404bdc
mov eax, edi
mov edx, esi
call fcn.00403628
mov eax, dword [ebx + 0x19]
call fcn.0040376c
push eax
mov eax, esi
call fcn.0040376c
push eax
mov eax, dword [ebp - 4]
call fcn.0040376c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.0040376c
push eax
call sub.kernel32.dll_WritePrivateProfileStringW
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x407134
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x37], 0xef
test dl, dl
je 0x407140
or byte [eax + 0x37], 0x10
mov byte [eax + 0x52], dl
mov ecx, dword [eax + 0x28]
jecxz 0x40715c
push eax
je 0x40715d
call dword [0x40f120]
pop eax
push 5
push dword [eax + 0x28]
call sub.user32.dll_ShowWindow
ret
mov byte [eax + 0x174], dl
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x40f120]
ret
Function at 0x432003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7e057b7e
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xca75d6f
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x4023a9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0040723e
call fcn.004020f5
cmp eax, esi
pop esi
jne 0x4023c5
mov ecx, 0x5637a0
jmp fcn.00411b2f
ret

Function at 0x566f2f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460114], 0
jne 0x566f6d
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x566f43
mov dword [ecx*4 + 0x460110], eax
inc ecx
cmp ecx, 0x100
jl 0x566f3e
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x566f9a
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460110]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x566f7b
not eax
pop ebp
ret 0xc
Function at 0x514a12
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00514a91
jae 0x514a1e
xor ecx, ecx
call fcn.00514a91
jae 0x514a48
xor eax, eax
call fcn.00514a91
jae 0x514a59
mov al, 0x10
call fcn.00514a91
adc al, al
jae 0x514a3a
jne 0x514a86
stosb byte es:[edi], al
jmp 0x514a1f
call fcn.00514a9d
dec ecx
loop 0x514a65
mov eax, ebp
call fcn.00514a9b
jmp 0x514a87
lodsb al, byte [esi]
shr eax, 1
je 0x514aad
adc ecx, 2
mov ebp, eax
jmp 0x514a87
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00514a9b
cmp eax, 0x7d00
jae 0x514a85
cmp eax, 0x500
jae 0x514a86
cmp eax, 0x7f
ja 0x514a87
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x514a1f
pop ebp
ret 8
Function at 0x408570
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x464bab
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.004597b6
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4085f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004576cd
mov eax, dword [eax]
push 0x47b1c0
push eax
call fcn.0044a534
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00459a41
test bl, bl
je 0x4085f2
push 0x47b1c0
lea ecx, [esp + 0xc]
call fcn.00459dd1
push 0x47ed48
lea ecx, [esp + 0xc]
call fcn.00459dd1
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 0x40862e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00459a41
jmp 0x4086f9
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 0x4086b2
lea edx, [esp + 0x7c]
push 0x47ed44
push edx
call fcn.0044a534
add esp, 8
test eax, eax
je 0x4086b2
lea eax, [esp + 0x7c]
push 0x47ed40
push eax
call fcn.0044a534
add esp, 8
test eax, eax
je 0x4086b2
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 0x408642
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.00459a41
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 0x408ef0
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 0x408f52
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 0x408f60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x464c2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4851f0]
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 0x409098
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408fc6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00459a41
xor eax, eax
jmp 0x40910f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00459b7e
push esi
lea ecx, [esp + 0xc]
call fcn.00459e0d
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4090ed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00408ef0
test eax, eax
jne 0x4090ed
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 accept
mov ecx, edi
call fcn.00408ef0
test eax, eax
jne 0x4090ed
lea eax, [esp + 0x14]
push 0x47ed5c
push eax
call fcn.0044b570
mov esi, eax
add esp, 8
test esi, esi
jne 0x4090cc
lea ecx, [esp + 0x14]
push 0x47ed58
push ecx
call fcn.0044b4f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4090cc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4090cf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00459b2e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x408fde
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00459a41
xor eax, eax
jmp 0x40910f
mov byte [esi], 0
push 0x47ed54
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.00459a41
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