joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482450
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x482488]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x482469
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x482478
or bl, 4
test esi, 0x20000000
je 0x482483
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x488b4c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x488b5e
add esp, 0xfffffff0
call fcn.00403bcc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00427a3c
mov eax, dword [0x4cf4c4]
mov dword [eax + 4], ebx
mov dword [eax], 0x488ef0
mov eax, dword [0x4cf4d4]
mov dword [eax + 4], ebx
mov dword [eax], 0x488efc
mov eax, ebx
call fcn.00488f08
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41ea98]
call fcn.00403864
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41ea98]
call fcn.00403864
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41ea98]
call fcn.00403864
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41ea98]
call fcn.00403864
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41ea98]
call fcn.00403864
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, 0x485320
push eax
push 0
push 0
mov eax, dword [0x4cf708]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x429ae0]
call fcn.0042b240
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x429ae0]
call fcn.0042b240
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x429ae0]
call fcn.0042b240
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00489358
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x489220
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x489220
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x489220
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x488c9b
call fcn.00403c24
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x489004
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 0x4891af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x489190
mov dl, 1
mov eax, dword [0x41f0fc]
call fcn.00403864
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040480c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x48917f
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.00476e9c
test al, al
je 0x489172
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, 0x4891c0
lea eax, [ebp - 0x254]
call fcn.0040a504
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x489172
xor eax, eax
push ebp
push 0x48916b
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 0x4891f8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x489154
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a7c
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 0x489154
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489172
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x489075
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00423664
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 0x4891b6
lea eax, [ebp - 0x260]
call fcn.0040480c
ret

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

Disassembly:
push ecx
mov eax, dword [0x4d0c34]
cmp byte [eax + 0xa5], 0
jne 0x489b69
cmp dword [0x4d0c4c], 0
jne 0x489b2a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x489ab4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4d0c4c], eax
cmp dword [0x4d0c48], 0
jne 0x489b45
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4d0c48], eax
cmp dword [0x4d0c50], 0
jne 0x489b69
push esp
push 0
push 0
push 0x489a58
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4d0c50], eax
pop edx
ret
Function at 0x48a1fc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4d0c34]
cmp dword [eax + 0x30], 0
je 0x48a2a6
cmp dword [ebx + 0x94], 0
jne 0x48a2a0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x48a18c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x48a2a0
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 0x48a266
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x48a2a0
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.004212a0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x48a275
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x48ae04
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 0x48ae39
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.004048fc
jmp 0x48ae46
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404860
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x48bdd4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x48be15
mov eax, esi
call fcn.004724c8
test al, al
je 0x48be15
mov eax, dword [ebx + 0x84]
call fcn.004721c4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x48be15
push 0
mov eax, dword [ebx + 0x84]
call fcn.004721c4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x49d2f8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x49d326
mov eax, ebx
call fcn.0049ddac
cmp dword [ebx + 0x40], 0
je 0x49d31f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x49d397
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x49d389
cmp dword [ebx + 8], 0
je 0x49d348
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 0x49d35a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x49d389
cmp dword [ebx + 8], 0
je 0x49d33b
cmp eax, 3
je 0x49d36d
dec eax
jne 0x49d33b
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 0x49d33b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x49d33b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x49d3b5
cmp dword [ebx + 0x14], 0xcc
je 0x49d3b5
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.0049d3c0
pop ebx
ret
Function at 0x4aef64
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4aefb5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4aef9c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4aef8c
jmp 0x4aefb5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4aef9d
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bcc58
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.00404a7c
add esp, 0x108
pop ebx
ret

Function at 0x4bcc8c
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4bcd32
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.004bcc58
mov eax, dword [ebp - 8]
call fcn.00404ccc
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4bcd15
mov ebx, dword [ebp - 4]
push edi
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
xor eax, eax
mov al, byte [esi]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
xor eax, eax
mov al, byte [esi + 1]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
xor eax, eax
mov al, byte [esi + 2]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
xor eax, eax
mov al, byte [esi + 3]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x28]
mov ecx, 3
mov eax, 0x4bcd48
call fcn.0040a59c
jmp 0x4bcd1c
mov eax, edi
call fcn.0040480c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bcd39
lea eax, [ebp - 8]
call fcn.0040480c
ret
Function at 0x4bd118
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404cbc
xor eax, eax
push ebp
push 0x4bd30d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 4]
call fcn.00409bec
cmp dword [ebp - 0x6c], 0
jne 0x4bd1eb
push 0
call sub.kernel32.dll_GetModuleHandleA_1
lea edx, [ebp - 0xc]
call fcn.0040eca0
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0xc]
call fcn.00409c20
push dword [ebp - 0x70]
push 0x4bd328
push dword [ebp - 4]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404b8c
mov eax, dword [ebp - 0x10]
call fcn.00409ac0
test al, al
jne 0x4bd206
lea eax, [ebp - 0x14]
call fcn.004bcd54
cmp dword [ebp - 0x14], 0
je 0x4bd2d2
push dword [ebp - 0x14]
push 0x4bd334
push dword [ebp - 4]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404b8c
mov eax, dword [ebp - 0x10]
call fcn.00409ac0
test al, al
je 0x4bd2d2
jmp 0x4bd206
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.004048a4
mov eax, dword [ebp - 0x10]
call fcn.00409ac0
test al, al
je 0x4bd2d2
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call fcn.00403220
mov dword [ebp - 0x58], 0x44
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov edi, ebx
and edi, 0x7f
mov ecx, dword [edi*4 + 0x4cf128]
lea eax, [ebp - 0x74]
mov edx, dword [ebp - 0x10]
call fcn.00404b18
mov eax, dword [ebp - 0x74]
call fcn.00404ccc
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404ccc
push eax
call sub.kernel32.dll_CreateProcessA
call fcn.0040ed74
mov esi, eax
cmp bl, 2
je 0x4bd2ce
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle
test esi, esi
jne 0x4bd2ce
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [edi*4 + 0x4cf128]
lea eax, [ebp - 0x84]
mov edx, dword [ebp - 0x10]
call fcn.00404b18
mov eax, dword [ebp - 0x84]
call fcn.00404ccc
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], 6
lea edx, [ebp - 0x80]
xor ecx, ecx
mov eax, 0x4bd344
call fcn.0040a59c
mov ecx, dword [ebp - 0x78]
mov dl, 1
mov eax, dword [0x408388]
call fcn.0040d560
call fcn.004040f8
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd314
lea eax, [ebp - 0x84]
call fcn.0040480c
lea eax, [ebp - 0x78]
mov edx, 4
call fcn.00404830
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404830
lea eax, [ebp - 4]
call fcn.0040480c
ret
Function at 0x4be90c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00406588
xor eax, eax
push ebp
push 0x4be9cf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
call fcn.0041ac78
mov eax, dword [ebp - 8]
movzx ebx, word [eax + 0x30]
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x4c]
mov esi, ebx
dec esi
test esi, esi
jl 0x4be9b1
inc esi
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
call fcn.0041ac78
mov eax, dword [ebp - 0xc]
and eax, 3
cmp edi, eax
jne 0x4be9ad
lea eax, [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x20]
call fcn.0041ac78
mov eax, dword [ebp + 8]
call fcn.00406514
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x38]
call fcn.0041ac78
jmp 0x4be9b9
inc ebx
dec esi
jne 0x4be960
mov eax, dword [ebp + 8]
call fcn.00406514
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be9d6
lea eax, [ebp - 4]
call fcn.00406514
ret

Function at 0x4c82bc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov eax, dword [ebp - 4]
call fcn.00404cbc
xor eax, eax
push ebp
push 0x4c83d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404ccc
mov dword [ebp - 8], eax
push 1
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push 0x4c83e0
push esi
call sub.shell32.dll_ShellExecuteA
mov ebx, eax
cmp ebx, 0x20
jg 0x4c83b0
mov eax, ebx
sub eax, 1
jb 0x4c8326
dec eax
je 0x4c833a
dec eax
je 0x4c834e
sub eax, 8
je 0x4c8362
jmp 0x4c8376
push 0
push 0x4c83e8
push 0x4c83f4
push esi
call sub.user32.dll_MessageBoxA_1
jmp 0x4c83b0
push 0
push 0x4c8400
push 0x4c840c
push esi
call sub.user32.dll_MessageBoxA_1
jmp 0x4c83b0
push 0
push 0x4c8400
push 0x4c841c
push esi
call sub.user32.dll_MessageBoxA_1
jmp 0x4c83b0
push 0
push 0x4c8400
push 0x4c842c
push esi
call sub.user32.dll_MessageBoxA_1
jmp 0x4c83b0
push 0
push 0x4c8400
push 0x4c8440
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004095b8
push dword [ebp - 0x10]
push 0x4c8450
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404b8c
mov eax, dword [ebp - 0xc]
call fcn.00404ccc
push eax
push esi
call sub.user32.dll_MessageBoxA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c83da
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404830
lea eax, [ebp - 4]
call fcn.0040480c
ret
Function at 0x4ca050
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4ca226
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
cmp dword [edi + 0x38], 0
jne 0x4ca20d
mov eax, dword [edi + 0x30]
call fcn.00404acc
test eax, eax
jne 0x4ca0a6
mov eax, dword [edi + 0x34]
call fcn.00404acc
test eax, eax
jne 0x4ca0a6
mov eax, edi
call fcn.004ca2c4
jmp 0x4ca20d
cmp dword [edi + 0xa0], 0
jne 0x4ca0dd
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x30]
call fcn.00409f14
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4d0e38]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa0], eax
cmp dword [edi + 0xa4], 0
jne 0x4ca114
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0x34]
call fcn.00409f14
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4d0e38]
mov eax, dword [eax + 0x44]
push eax
call sub.user32.dll_DdeCreateStringHandleA
mov dword [edi + 0xa4], eax
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.004ca304
mov ebx, eax
test bl, bl
jne 0x4ca1c2
mov eax, dword [edi + 0x30]
call fcn.00404acc
test eax, eax
jne 0x4ca14c
mov eax, dword [edi + 0xc0]
call fcn.00404acc
test eax, eax
je 0x4ca1c2
mov eax, dword [edi + 0xc0]
call fcn.00404acc
test eax, eax
je 0x4ca16e
lea eax, [ebp - 0x101]
mov edx, dword [edi + 0xc0]
call fcn.00409f14
jmp 0x4ca19a
push dword [edi + 0x30]
push 0x4ca240
push dword [edi + 0x34]
lea eax, [ebp - 0x108]
mov edx, 3
call fcn.00404b8c
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 0x101]
call fcn.00409f14
push 7
lea eax, [ebp - 0x101]
push eax
call sub.kernel32.dll_WinExec
cmp eax, 0x20
jb 0x4ca1c2
mov ecx, dword [edi + 0xa4]
mov edx, dword [edi + 0xa0]
mov eax, edi
call fcn.004ca304
mov ebx, eax
test bl, bl
jne 0x4ca1cf
mov eax, edi
call fcn.004ca2c4
jmp 0x4ca20d
mov eax, dword [edi + 0x58]
test eax, eax
je 0x4ca1de
mov dword [edi + 0xa8], eax
jmp 0x4ca1e8
mov dword [edi + 0xa8], 1
mov eax, edi
call fcn.004ca37c
test al, al
je 0x4ca20d
mov eax, edi
mov si, 0xffee
call fcn.00403a9c
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.004ca428
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca22d
lea eax, [ebp - 0x108]
call fcn.0040480c
ret
Function at 0x5b37b2
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.005b3831
jae 0x5b37be
xor ecx, ecx
call fcn.005b3831
jae 0x5b37e8
xor eax, eax
call fcn.005b3831
jae 0x5b37f9
mov al, 0x10
call fcn.005b3831
adc al, al
jae 0x5b37da
jne 0x5b3826
stosb byte es:[edi], al
jmp 0x5b37bf
call fcn.005b383d
dec ecx
loop 0x5b3805
mov eax, ebp
call fcn.005b383b
jmp 0x5b3827
lodsb al, byte [esi]
shr eax, 1
je 0x5b384d
adc ecx, 2
mov ebp, eax
jmp 0x5b3827
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.005b383b
cmp eax, 0x7d00
jae 0x5b3825
cmp eax, 0x500
jae 0x5b3826
cmp eax, 0x7f
ja 0x5b3827
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5b37bf
pop ebp
ret 8
Function at 0x1014d5a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10022e0
call fcn.01014f28
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1014d97
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1014d97
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1014daf
cmp eax, 0x20b
je 0x1014d9c
mov dword [ebp - 0x1c], ebx
jmp 0x1014dc3
cmp dword [ecx + 0x84], 0xe
jbe 0x1014d97
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1014dbd
cmp dword [ecx + 0x74], 0xe
jbe 0x1014d97
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x101739c], 0xffffffff
or dword [0x10173a0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1017394]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1017390]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1017398], eax
call fcn.0101500c
cmp dword [0x1017110], ebx
jne 0x1014e1e
push fcn.0101500c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01014ff5
push 0x1017014
push 0x1017010
call sub.msvcrt.dll__initterm
mov eax, dword [0x101738c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1017388]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x101700c
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x1014eb4
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1014e88
cmp al, 0x22
jne 0x1014e7a
cmp byte [esi], 0x22
jne 0x1014e91
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1014e9b
cmp al, 0x20
jbe 0x1014e8d
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1014ebf
movzx eax, word [ebp - 0x50]
jmp 0x1014ec2
cmp byte [esi], 0x20
jbe 0x1014e91
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1014eb4
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1014edf
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1014f14
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01014f63
ret

Function at 0x10b85
Capabilities:
Create device object
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x10b04]
test eax, eax
mov ecx, 0xbb40
je 0x10b9c
cmp eax, ecx
jne 0x10bbf
mov edx, dword [sym.imp.ntoskrnl.exe_KeTickCount]
mov eax, 0x10b04
shr eax, 8
xor eax, dword [edx]
and eax, 0xffff
mov dword [0x10b04], eax
jne 0x10bbf
mov eax, ecx
mov dword [0x10b04], eax
not eax
mov dword [section..data], eax
pop ebp
jmp 0x10820