joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5f98a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.005e5310
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x5f996b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x5f996b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x5f991e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x5f9929
or bh, 8
and edi, 0x8000000
je 0x5f9944
mov eax, dword [0x6fb07c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x5f996b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5fd545
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x5fd567
cmp dword [edi + 0x3c], 0
jne 0x5fd567
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0060ba01
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.005fd594
pop edi
pop esi
pop ebx
ret 8

Function at 0x5febde
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5fec16
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.00601c99
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00601c71
jmp 0x5fec22
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x5fec26
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x6f91b8
mov ecx, edi
call fcn.00601a55
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x5fec79
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x5fec8c
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.00601c99
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00601c71
jmp 0x5fec8c
mov ecx, esi
call fcn.00601246
test eax, eax
je 0x5fec8c
push edi
mov ecx, eax
call fcn.005febde
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x6004c8
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 0x60050a
call fcn.0060ba01
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x60050a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x600501
xor eax, eax
jmp 0x600512
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00600518
pop edi
pop esi
pop ebx
ret 4

Function at 0x60cb47
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.0060ba01
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x60cb84
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x60cb84
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x60cb88
xor eax, eax
jmp 0x60cc06
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.005fdccd
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x60cbc0
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x60cbaa
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0060ccf7
push ebx
mov edi, eax
call fcn.005fdcf6
test edi, edi
pop ecx
je 0x60cc02
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.0060cac0
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0060cc0b
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x60fa35
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x60fa5d
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x60fa6e
push 2
call edi
test ax, ax
jge 0x60fa6e
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.005fe230
cmp dword [esi + 0x30], ebx
jne 0x60fb48
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.005fe230
cmp eax, dword [esp + 0x34]
jne 0x60fb48
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x60fae4
push 1
push pe_nt_image_headers32
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x60fb29
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x60fb48
cmp eax, 0x205
je 0x60fb48
cmp eax, 0x201
je 0x60fb48
cmp eax, 0x204
je 0x60fb48
cmp eax, ebx
jne 0x60fb0f
cmp dword [esp + 0x1c], 0x1b
je 0x60fb48
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x6f93c8]
jbe 0x60fb3e
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x60faa1
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x300010dc
Capabilities:
Terminate process

Disassembly:
call fcn.300010e6
jmp 0x300011c3
push 0x58
push 0x300012d8
call fcn.30001300
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x30003044
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x300018e7
xor esi, esi
inc esi
mov eax, dword [0x30003040]
cmp eax, esi
je 0x30001905
mov eax, dword [0x30003040]
test eax, eax
jne 0x30001578
mov dword [0x30003040], esi
push 0x300012d0
push 0x300012c8
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
jne 0x300019a7
mov eax, dword [0x30003040]
cmp eax, esi
jne 0x3000126f
push 0x300012c4
push 0x300012bc
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x30003040], 2
test ebx, ebx
jne 0x3000127b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x30003050], 0
jne 0x30001912
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
nop
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
jbe 0x30001538
cmp al, 0x22
je 0x30001528
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
jne 0x3000194b
inc esi
jmp 0x30001290
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x300012a5
test al, al
je 0x30001546
cmp dword [ebp - 0x1c], 0
jne 0x3000129d
mov al, byte [esi]
test al, al
je 0x30001556
cmp al, 0x20
ja 0x30001556
inc esi
mov dword [ebp - 0x20], esi
jmp 0x30001546
test byte [ebp - 0x3c], 1
jne 0x30001572
push 0xa
pop eax
push eax
push esi
push 0
push 0x30000000
call fcn.30001583
jmp 0x30001936
movzx eax, word [ebp - 0x38]
jmp 0x3000155f
mov dword [0x30003058], esi
jmp 0x3000124b
cmp eax, esi
jne 0x300018f5
xor esi, esi
inc esi
mov ebx, esi
jmp 0x30001212
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x300011fd
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x3000124b
push 0x30003050
call fcn.30001ef1
pop ecx
test eax, eax
je 0x30001288
push 0
push 2
push 0
call dword [0x30003050]
jmp 0x30001288
mov dword [0x30003054], eax
cmp dword [0x30003020], 0
jne 0x30001983
push eax
call dword [sym.imp.MSVCR80.dll_exit]
inc esi
mov dword [ebp - 0x20], esi
jmp 0x300012b8
cmp dword [0x30003058], 0
jne 0x30001992
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x30003054]
jmp 0x300019b3
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.30001514
ret
Function at 0x300010e6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x300011b0
push 0x30001194
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x3000111b
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x30001774
push ebx
call edi
test esi, esi
mov dword [0x30001774], esi
je 0x30001778
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [section..data], 0x44bf19b1
pop ebx
leave
ret
mov dword [0x30001774], 0xbb40e64e
jmp 0x30001179

Function at 0x3000164e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x30001718
push 0x80000001
mov dword [ebp - 0x10], 4
call esi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x300016b8
cmp dword [ebp - 4], 0
je 0x300016b8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x30001704
push dword [ebp - 4]
call edi
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
call ebx
cmp dword [ebp - 0x14], 0
je 0x300018b2
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x30001718
push 0x80000002
call esi
test eax, eax
jne 0x300016fc
cmp dword [ebp - 4], eax
je 0x300016fc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x30001704
push dword [ebp - 4]
call edi
push dword [ebp - 4]
mov esi, eax
call ebx
test esi, esi
je 0x300018c9
xor al, al
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 8], 4
jne 0x300016b8
xor eax, eax
cmp dword [ebp - 0xc], eax
setne al
jmp 0x300016fe
cmp dword [ebp - 8], 4
jne 0x300016fc
xor eax, eax
cmp dword [ebp - 0xc], eax
jmp 0x300018c1
Function at 0x30001af0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
mov eax, dword [0x30001774]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x47c], eax
push 0x105
lea eax, [ebp - 0x260]
xor esi, esi
push eax
mov word [ebp - 0x468], si
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
jne 0x30001b33
xor eax, eax
jmp 0x30001bfd
add eax, eax
lea ecx, [ebp + eax - 0x260]
cmp word [ecx], 0x5c
je 0x30001b4f
mov word [ecx], 0x5c
mov word [ebp + eax - 0x25e], si
push edi
mov edi, 0x30001d24
push edi
push 0x106
lea eax, [ebp - 0x260]
push eax
call fcn.30001a5c
push 8
push esi
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, esi
mov dword [ebp - 0x46c], eax
jne 0x30001b92
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, esi
mov dword [ebp - 0x46c], eax
je 0x30001bce
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x30001d10
push dword [ebp - 0x46c]
call edi
push 0x30001cf0
push dword [ebp - 0x46c]
mov dword [ebp - 0x474], eax
call edi
cmp eax, esi
mov dword [ebp - 0x478], eax
jne 0x30001bd2
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x30001bfc
cmp dword [ebp - 0x47c], esi
push ebx
mov ebx, 0x30001760
mov edi, 0x30001ca0
je 0x30001c52
cmp dword [ebp - 0x474], esi
jne 0x30001c0c
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.30001d34
leave
ret 4
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x47c]
call dword [ebp - 0x474]
cmp eax, esi
jne 0x30001c4b
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
lea eax, [ebp - 0x54]
push eax
push esi
push ebx
push edi
mov dword [ebp - 0x470], 0x104
call dword [ebp - 0x478]
cmp eax, esi
je 0x30001c8d
cmp eax, 0x642
je 0x30001c8d
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x468]
push eax
push esi
push esi
push esi
push esi
push ebx
push edi
mov dword [ebp - 0x470], 0x104
call dword [ebp - 0x478]
test eax, eax
je 0x30001c8d
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x30001bfb
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
jmp 0x30001c7a
Function at 0x30001d34
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30001774]
jne 0x30001d3d
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x30003168], eax
mov dword [0x30003164], ecx
mov dword [0x30003160], edx
mov dword [0x3000315c], ebx
mov dword [0x30003158], esi
mov dword [0x30003154], edi
mov word [0x30003180], ss
mov word [0x30003174], cs
mov word [0x30003150], ds
mov word [0x3000314c], es
mov word [0x30003148], fs
mov word [0x30003144], gs
pushfd
pop dword [0x30003178]
mov eax, dword [ebp]
mov dword [0x3000316c], eax
mov eax, dword [ebp + 4]
mov dword [0x30003170], eax
lea eax, [ebp + 8]
mov dword [0x3000317c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x300030b8], 0x10001
mov eax, dword [0x30003170]
mov dword [0x3000306c], eax
mov dword [0x30003060], 0xc0000409
mov dword [0x30003064], 1
mov eax, dword [0x30001774]
mov dword [ebp - 0x328], eax
mov eax, dword [section..data]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x300030b0], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x30001e44
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x300030b0], 0
jne 0x30001e2d
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x40c8a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46ea1b
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.004632c1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c922
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00461040
mov eax, dword [eax]
push 0x6ee1f0
push eax
call fcn.00453c74
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046354c
test bl, bl
je 0x40c922
push 0x6ee1f0
lea ecx, [esp + 0xc]
call fcn.004638dc
push 0x6f1d80
lea ecx, [esp + 0xc]
call fcn.004638dc
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 0x40c95e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046354c
jmp 0x40ca29
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 0x40c9e2
lea edx, [esp + 0x7c]
push 0x6f1d7c
push edx
call fcn.00453c74
add esp, 8
test eax, eax
je 0x40c9e2
lea eax, [esp + 0x7c]
push 0x6f1d78
push eax
call fcn.00453c74
add esp, 8
test eax, eax
je 0x40c9e2
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 0x40c972
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.0046354c
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 0x40d220
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 0x40d282
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 0x40d290
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46ea9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x6f8300]
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 0x40d3c8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40d2f6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046354c
xor eax, eax
jmp 0x40d43f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00463689
push esi
lea ecx, [esp + 0xc]
call fcn.00463918
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x6f1db8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40d41d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040d220
test eax, eax
jne 0x40d41d
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.0040d220
test eax, eax
jne 0x40d41d
lea eax, [esp + 0x14]
push 0x6f1d94
push eax
call fcn.00454cb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40d3fc
lea ecx, [esp + 0x14]
push 0x6f1d90
push ecx
call fcn.00454c30
mov esi, eax
add esp, 8
test esi, esi
jne 0x40d3fc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40d3ff
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00463639
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40d30e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046354c
xor eax, eax
jmp 0x40d43f
mov byte [esi], 0
push 0x6f1d8c
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.0046354c
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
Function at 0x421700
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x42176e
cmp si, 0x69
ja 0x42176e
add esi, 0xffd0
cmp si, 0x11
je 0x42173e
push 0x11
call edi
test ax, ax
jge 0x42173e
or esi, 0x2000
cmp si, 0x10
je 0x421753
push 0x10
call edi
test ax, ax
jge 0x421753
or esi, 0x4000
cmp si, 0x12
je 0x421768
push 0x12
call edi
test ax, ax
jge 0x421768
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42177b
mov esi, 0xbd
jmp 0x42172f
cmp si, 0x6e
jne 0x421788
mov esi, 0xbe
jmp 0x42172f
cmp si, 0x6f
jne 0x421729
mov esi, 0xbf
jmp 0x42172f

Function at 0x422e20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x708970]
xor edx, edx
cmp eax, edx
jne 0x422e46
xor eax, eax
mov byte [eax + 0x708870], al
inc eax
cmp eax, 0x100
jl 0x422e2e
mov dword [0x708970], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x708870
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x422ed7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x422eaa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x422e78
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x422f50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x422fa3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x422f8a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret