joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446578
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x477ee8]
cmp byte [eax + 0xc], 0
je 0x4466e5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4466de
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x478b94], 0
jne 0x4465cc
push 0x4466ec
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4466f4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478b94], eax
cmp dword [0x476c88], 0
jne 0x4466c7
push 0x446704
call sub.kernel32.dll_LoadLibraryA
mov dword [0x476c88], eax
cmp dword [0x476c88], 0
je 0x4466c7
push 0x446710
mov eax, dword [0x476c88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478b98], eax
push 0x446720
mov eax, dword [0x476c88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478b9c], eax
push 0x446734
mov eax, dword [0x476c88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478ba0], eax
push 0x44674c
mov eax, dword [0x476c88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478ba4], eax
push 0x446764
mov eax, dword [0x476c88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478ba8], eax
push 0x446778
mov eax, dword [0x476c88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478bac], eax
push 0x446790
mov eax, dword [0x476c88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478bb0], eax
push 0x4467a8
mov eax, dword [0x476c88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478bb4], eax
push 0x4467c4
mov eax, dword [0x476c88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478bb8], eax
push 0x4467d0
mov eax, dword [0x476c88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x478bbc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4466e5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44a5f0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404424
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44a63f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404694
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x451e10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x451e60]
test si, 4
je 0x451e24
or bl, 1
test si, 8
je 0x451e2e
or bl, 4
test si, 1
je 0x451e38
or bl, 8
test si, 2
je 0x451e42
or bl, 0x10
test si, 0x10
je 0x451e4c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451e5b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x451e64
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x451e9c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451e7d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x451e8c
or bl, 4
test esi, 0x20000000
je 0x451e97
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x458560
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x458572
add esp, 0xfffffff0
call fcn.004039b4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d408
mov eax, dword [0x477b5c]
mov dword [eax + 4], ebx
mov dword [eax], 0x458904
mov eax, dword [0x477b68]
mov dword [eax + 4], ebx
mov dword [eax], 0x458910
mov eax, ebx
call fcn.0045891c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41566c]
call fcn.0040364c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41566c]
call fcn.0040364c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41566c]
call fcn.0040364c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41566c]
call fcn.0040364c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41566c]
call fcn.0040364c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x454d34
push eax
push 0
push 0
mov eax, dword [0x477cd8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ee84]
call fcn.0042061c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ee84]
call fcn.0042061c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ee84]
call fcn.0042061c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00458d6c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x458c34
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x458c34
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x458c34
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4586af
call fcn.00403a0c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x458a18
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x458bc3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x458ba4
mov dl, 1
mov eax, dword [0x415a88]
call fcn.0040364c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404424
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x458b93
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004468d8
test al, al
je 0x458b86
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x458bd4
lea eax, [ebp - 0x254]
call fcn.004095e4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x458b86
xor eax, eax
push ebp
push 0x458b7f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x458c0c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x458b68
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404694
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x458b68
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404694
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458b86
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x458a89
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00419564
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458bca
lea eax, [ebp - 0x260]
call fcn.00404424
ret

Function at 0x45950c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x478be0]
cmp byte [eax + 0xa5], 0
jne 0x45957d
cmp dword [0x478bf8], 0
jne 0x45953e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4594c8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x478bf8], eax
cmp dword [0x478bf4], 0
jne 0x459559
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x478bf4], eax
cmp dword [0x478bfc], 0
jne 0x45957d
push esp
push 0
push 0
push 0x45946c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x478bfc], eax
pop edx
ret
Function at 0x459c10
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x478be0]
cmp dword [eax + 0x30], 0
je 0x459cba
cmp dword [ebx + 0x94], 0
jne 0x459cb4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x459ba0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x459cb4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x459c7a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x459cb4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004179d4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x459c89
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45a818
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45a84d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404514
jmp 0x45a85a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404478
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45ba24
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45ba65
mov eax, esi
call fcn.00441f04
test al, al
je 0x45ba65
mov eax, dword [ebx + 0x84]
call fcn.00441c00
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45ba65
push 0
mov eax, dword [ebx + 0x84]
call fcn.00441c00
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45f150
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45f17e
mov eax, ebx
call fcn.0045fc04
cmp dword [ebx + 0x40], 0
je 0x45f177
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45f1ef
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45f1e1
cmp dword [ebx + 8], 0
je 0x45f1a0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45f1b2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45f1e1
cmp dword [ebx + 8], 0
je 0x45f193
cmp eax, 3
je 0x45f1c5
dec eax
jne 0x45f193
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45f193
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45f193
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45f20d
cmp dword [ebx + 0x14], 0xcc
je 0x45f20d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045f218
pop ebx
ret
Function at 0x471ac8
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
push esp
push 7
mov eax, dword [0x477d60]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00414f10
test al, al
je 0x471b18
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x471b10
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404694
mov eax, dword [esp]
call fcn.00471ac0
add esp, 0x10c
pop ebx
ret

Function at 0x472c78
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x472cb0]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x472c8e
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x472c9d
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x472cac
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x473fc0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x477d60]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x473fe6
push 0
mov eax, dword [0x477d60]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x4740a8
Capabilities:
Find taskbar

Disassembly:
push ebx
push esi
mov esi, eax
push 0x4740f4
push 0x4740f8
call sub.user32.dll_FindWindowA
mov ebx, eax
push 0xffffffffffffffec
push ebx
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
push eax
push 0xffffffffffffffec
push ebx
call sub.user32.dll_SetWindowLongA
push 2
mov eax, esi
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.004071a0
push eax
push ebx
mov eax, dword [0x477ca4]
mov eax, dword [eax]
call eax
pop esi
pop ebx
ret
Function at 0x401ec0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sbb edx, 0x5e
or ebx, 0x6d
imul edi
or ebx, 0xe7
bswap ebx
imul edi
mov edi, 0xde
sub edx, 0xad
or edi, 0xc8
rol ebx, 0xe2
dec eax
sbb eax, 0xe5
bswap edi
dec ebx
not edi
and eax, 0xda
not esi
sub esi, 4
rcr ebx, 0x6b
mov edx, 0x77
mov eax, 0xfb
and edx, 0x8f
rcr esi, 0x21
imul edi
sbb ebx, 0xf4
rcr eax, 0x55
inc edx
inc edi
neg edx
imul edx
sbb esi, 0x79
neg edx
dec esi
sbb edi, 0xb6
rcl ebx, 0x74
sub eax, 0x2f
or ebx, 0xfc
sub ebx, 0xb9
bswap eax
sub eax, 0x9f
imul esi
rcl ebx, 0xa0
dec ebx
mov edi, 0x5e
sub esi, 0x7c
bswap ebx
and edx, 0x66
inc esi
sbb esi, 0xc3
rcr eax, 0x59
xor ecx, ecx
xor edi, edi
dec edx
rol edx, 0x93
add ebx, 0x5f
not eax
or eax, 0x66
or esi, 0x37
or edx, 0xa4
mov edx, 0x4d
and esi, 0x4e
add eax, 0x8e
bswap edi
dec edx
inc eax
neg eax
neg edx
inc eax
rcl eax, 0x1a
inc esi
sbb edi, 0x68
mov edi, 0x33
neg edx
bswap edi
rcr edx, 0xe2
sub esi, 0xe8
rcr edi, 0x39
bswap edi
dec esi
and esi, 0x7e
sbb esi, 0x59
rcl edi, 0x9c
rol eax, 0x4c
rol edi, 3
rcr ebx, 0x97
inc eax
dec edx
neg edx
rol edx, 0xdb
rcl edi, 0x1f
rol edi, 0xdd
inc eax
sbb edx, 0x19
neg edx
add esi, 0x2b
inc edi
inc eax
not edx
or eax, 0xed
ror eax, 0xbf
or eax, 0x9d
rol edx, 0x41
mov ecx, dword [ebp + 0xc]
mov esi, 0x7b
not edx
ror edx, 0x93
and ebx, 0x3c
mov eax, 0xdd
rcl ebx, 0xf
sbb edx, 0xdd
inc edx
rcr eax, 0x86
imul edx
sub edi, 0x5d
sub edx, 0xb8
add edx, 0xe2
inc edx
inc esi
sbb eax, 0xf
neg edi
sub eax, 0x22
not eax
bswap edx
not edx
bswap edx
sub eax, 0xb0
dec edi
imul edx
or edi, 0xd3
or edx, 0x12
inc eax
ror edi, 0xbd
rcl ebx, 0x69
rcr esi, 0xbb
rol ebx, 0xcb
not eax
rcl ebx, 0xc5
imul eax
inc edx
imul esi
or edi, 0x12
inc esi
rcl edi, 0xee
rcl eax, 0xd9
rol eax, 0x51
neg edi
neg eax
imul ebx
bswap esi
neg ebx
add eax, 0
neg eax
neg eax
mov edi, dword [ebp + 8]
mov esi, eax
xor ebx, eax
mov esi, eax
not byte [edi]
mov eax, esi
xor esi, eax
xor esi, ebx
add byte [edi], 0x68
xor esi, eax
xor eax, ebx
xor eax, eax
sub byte [edi], 0x34
mov eax, eax
xor ebx, ebx
mov ebx, ebx
imul byte [edi]
inc edi
loop 0x402088
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5cf950
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.005cfb00
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 0x5cfa4e
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 0x5cf9f1
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x5cfa34
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x5cfa08
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x5cfa23
test al, 0x40
je 0x5cfa1a
mov ecx, dword [edi + 0x20]
jmp 0x5cfa21
test al, 0x80
je 0x5cfa34
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x5cfa34
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 0x5cf9c0
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x845058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8451a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x84507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x84506a
add dl, dl
jne 0x845089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8450dc
xor eax, eax
add dl, dl
jne 0x845096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x84517d
add dl, dl
jne 0x8450a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8450b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8450bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8450c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8450d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x845075
mov eax, 1
add dl, dl
jne 0x8450ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8450f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8450e1
sub eax, ebx
mov ebx, 1
jne 0x845128
mov ecx, 1
add dl, dl
jne 0x84510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x845119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x845105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x845075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x84513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x84514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x845136
cmp eax, 0x7d00
jae 0x84516d
cmp eax, 0x500
jb 0x845168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x845075
cmp eax, 0x7f
ja 0x845170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x845075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x84519e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x845075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40e400
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47ffbb
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.004747ee
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40e482
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047208d
mov eax, dword [eax]
push 0x57b1e0
push eax
call fcn.00464d94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00474a79
test bl, bl
je 0x40e482
push 0x57b1e0
lea ecx, [esp + 0xc]
call fcn.00474e09
push 0x57ed8c
lea ecx, [esp + 0xc]
call fcn.00474e09
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 0x40e4be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00474a79
jmp 0x40e589
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 0x40e542
lea edx, [esp + 0x7c]
push 0x57ed88
push edx
call fcn.00464d94
add esp, 8
test eax, eax
je 0x40e542
lea eax, [esp + 0x7c]
push 0x57ed84
push eax
call fcn.00464d94
add esp, 8
test eax, eax
je 0x40e542
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 0x40e4d2
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.00474a79
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 0x40ed80
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 0x40ede2
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 0x40edf0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48003b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x58ab70]
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 0x40ef28
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40ee56
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00474a79
xor eax, eax
jmp 0x40ef9f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00474bb6
push esi
lea ecx, [esp + 0xc]
call fcn.00474e45
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 0x40ef7d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040ed80
test eax, eax
jne 0x40ef7d
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.0040ed80
test eax, eax
jne 0x40ef7d
lea eax, [esp + 0x14]
push 0x57eda0
push eax
call fcn.00465f30
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ef5c
lea ecx, [esp + 0x14]
push 0x57ed9c
push ecx
call fcn.00465eb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ef5c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40ef5f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00474b66
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40ee6e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00474a79
xor eax, eax
jmp 0x40ef9f
mov byte [esi], 0
push 0x57ed98
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.00474a79
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