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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x480fdb
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x480dde
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00480844
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040ba00
cmp al, 1
jne 0x480dde
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00480b5c
test al, al
je 0x480f6a
cmp dword [ebp - 8], 0
jge 0x480dfc
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00480844
mov eax, dword [ebp - 0x210]
call fcn.00403e9c
cmp ebx, eax
jge 0x480e46
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00480844
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4b6f1c]
and eax, 0xff
bt dword [edx], eax
jae 0x480e46
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
cmp eax, dword [ebp - 8]
jg 0x480e5a
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00480d58
cmp ebx, dword [ebp - 8]
je 0x480f5c
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x480e86
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00403114
and eax, 0x7f
movzx eax, word [eax*2 + 0x4b6018]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 1
xor eax, eax
push ebp
push 0x480f49
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00403114
and eax, 0x7f
movzx eax, word [eax*2 + 0x4b6018]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00439528
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00403114
and eax, 0x7f
movzx eax, word [eax*2 + 0x4b6018]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00439528
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480f50
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x218], edx
jmp 0x480fbd
cmp dword [ebp - 8], 0
jge 0x480f75
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00480844
mov eax, dword [ebp - 0x218]
call fcn.00403e9c
cmp eax, dword [ebp - 8]
jg 0x480faf
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00480844
mov eax, dword [ebp - 0x21c]
call fcn.00403e9c
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00480d58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480fe2
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00403c40
ret
Function at 0x4912b8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4912e6
mov eax, ebx
call fcn.00491d5c
cmp dword [ebx + 0x3c], 0
je 0x4912df
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x491357
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x491349
cmp dword [ebx + 8], 0
je 0x491308
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x49131a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x491349
cmp dword [ebx + 8], 0
je 0x4912fb
cmp eax, 3
je 0x49132d
dec eax
jne 0x4912fb
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 0x4912fb
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x4912fb
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x491375
cmp dword [ebx + 0x10], 0xcc
je 0x491375
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00491380
pop ebx
ret

Function at 0x4a2c5c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404050
xor eax, eax
push ebp
push 0x4a2ce6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x48], 0x44
xor eax, eax
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x44], eax
mov word [ebp - 0x16], 0
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404060
push eax
push 0
call sub.kernel32.dll_CreateProcessA
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2ced
lea eax, [ebp - 4]
call fcn.00403c1c
ret

Function at 0x4a4f84
Capabilities:
Find taskbar

Disassembly:
push ebx
mov ebx, eax
push ebx
push 0
push 0x4a4fa8
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_GetWindowRect
test eax, eax
je 0x4a4fa2
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x4a4fb8
Capabilities:
Find taskbar

Disassembly:
push ebx
mov ebx, eax
push ebx
push 0
push 0x4a4fec
push 0
push 0
push 0x4a4ffc
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_FindWindowExA
push eax
call sub.user32.dll_GetWindowRect
test eax, eax
je 0x4a4fe5
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret
Function at 0x4a61f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
cmp byte [0x4b7a54], 0
jne 0x4a626a
cmp byte [0x4b7a55], 0
je 0x4a626a
mov byte [0x4b7a55], 0
mov eax, dword [0x4b7a5c]
push eax
call sub.advapi32.dll_RegCloseKey_1
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x4a6270
push 0x80000006
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4a626a
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
push 0x4b7a58
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4a6284
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov esp, ebp
pop ebp
ret
Function at 0x4b3cd8
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x4b3d7d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x44], 0x44
xor eax, eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x40], eax
mov word [ebp - 0x12], 0
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x5c]
xor eax, eax
call fcn.004029a4
push dword [ebp - 0x5c]
push 0x4b3d90
push 0x4b3d9c
lea eax, [ebp - 0x58]
mov edx, 3
call fcn.00403f5c
mov eax, dword [ebp - 0x58]
call fcn.00404060
push eax
push 0
call sub.kernel32.dll_CreateProcessA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b3d84
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00403c40
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ecx
push ebx
push edx
push esi
push edi
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
mov edx, esi
cmp byte [esi], 0
je 0x4e03de
inc esi
jmp 0x4e03d6
inc esi
sub esi, edx
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
add esi, dword [esi + 0x3c]
mov esi, dword [esi + 0x78]
add esi, dword [ebp + 8]
mov ebx, dword [esi + 0x20]
add ebx, dword [ebp + 8]
xor edx, edx
push esi
mov edi, dword [ebx]
add edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
cld
repe cmpsb byte [esi], byte es:[edi]
jne 0x4e040c
pop esi
jmp 0x4e0418
pop esi
add ebx, 4
inc edx
cmp edx, dword [esi + 0x18]
jb 0x4e03f8
jmp 0x4e043a
sub ebx, dword [esi + 0x20]
sub ebx, dword [ebp + 8]
shr ebx, 1
add ebx, dword [esi + 0x24]
add ebx, dword [ebp + 8]
movzx eax, word [ebx]
shl eax, 2
add eax, dword [esi + 0x1c]
add eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop edx
pop ebx
pop ecx
leave
ret 8
Function at 0x40af50
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x469e6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49d218]
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 0x40b088
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40afb6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045e979
xor eax, eax
jmp 0x40b0ff
push 0x496d7c
lea ecx, [esp + 0xc]
call fcn.0045eab6
push esi
lea ecx, [esp + 0xc]
call fcn.0045ed45
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x496d74
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40b0dd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x496d6c
push accept
call fcn.0040aee0
test eax, eax
jne 0x40b0dd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push 0x496d58
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0040aee0
test eax, eax
jne 0x40b0dd
lea eax, [esp + 0x14]
push 0x496d50
push eax
call fcn.00450310
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b0bc
lea ecx, [esp + 0x14]
push 0x496d4c
push ecx
call fcn.00450290
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b0bc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40b0bf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045ea66
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40afce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045e979
xor eax, eax
jmp 0x40b0ff
mov byte [esi], 0
push 0x496d48
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.0045e979
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 0x43d0b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46c913
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045ff28
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.ect.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.tMessagePos.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004655c0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00466b1f
test eax, eax
je 0x43d1cc
mov ecx, dword [esp + 0x3c]
call fcn.004655ed
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43d190
push edi
mov ecx, esi
call fcn.00462c5a
mov ecx, esi
call fcn.0043d330
cmp dword [esp + 0x38], 1
jne 0x43d1c5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00462d95
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x46843a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x468468
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x468486
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004683a0
jmp 0x468486
mov eax, dword [esi + 0x14]
test eax, eax
je 0x468486
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004683a0
test edi, edi
mov eax, edi
jne 0x468470
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4c53fe
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004c55ae
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 0x4c54fc
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 0x4c549f
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4c54e2
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4c54b6
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4c54d1
test al, 0x40
je 0x4c54c8
mov ecx, dword [edi + 0x20]
jmp 0x4c54cf
test al, 0x80
je 0x4c54e2
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4c54e2
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 0x4c546e
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x5307e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x61946b
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.0060b400
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x530862
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0060868a
mov eax, dword [eax]
push 0xb812ac
push eax
call fcn.005f93d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0060b68b
test bl, bl
je 0x530862
push 0xb812ac
lea ecx, [esp + 0xc]
call fcn.0060ba67
push 0xb84e48
lea ecx, [esp + 0xc]
call fcn.0060ba67
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 0x53089e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0060b68b
jmp 0x530969
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 0x530922
lea edx, [esp + 0x7c]
push 0xb84e44
push edx
call fcn.005f93d4
add esp, 8
test eax, eax
je 0x530922
lea eax, [esp + 0x7c]
push 0xb84e40
push eax
call fcn.005f93d4
add esp, 8
test eax, eax
je 0x530922
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 0x5308b2
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.0060b68b
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 0x531bc0
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 0x531c22
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 0x531c30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x6195cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xb98790]
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 0x531d68
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x531c96
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0060b68b
xor eax, eax
jmp 0x531ddf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0060b814
push esi
lea ecx, [esp + 0xc]
call fcn.0060baa3
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0xb84e80
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x531dbd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00531bc0
test eax, eax
jne 0x531dbd
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.00531bc0
test eax, eax
jne 0x531dbd
lea eax, [esp + 0x14]
push 0xb84e5c
push eax
call fcn.005fa5c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x531d9c
lea ecx, [esp + 0x14]
push 0xb84e58
push ecx
call fcn.005fa540
mov esi, eax
add esp, 8
test esi, esi
jne 0x531d9c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x531d9f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0060b7c4
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x531cae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0060b68b
xor eax, eax
jmp 0x531ddf
mov byte [esi], 0
push 0xb84e54
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.0060b68b
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 0x5483b0
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 0x54841e
cmp si, 0x69
ja 0x54841e
add esi, 0xffd0
cmp si, 0x11
je 0x5483ee
push 0x11
call edi
test ax, ax
jge 0x5483ee
or esi, 0x2000
cmp si, 0x10
je 0x548403
push 0x10
call edi
test ax, ax
jge 0x548403
or esi, 0x4000
cmp si, 0x12
je 0x548418
push 0x12
call edi
test ax, ax
jge 0x548418
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x54842b
mov esi, 0xbd
jmp 0x5483df
cmp si, 0x6e
jne 0x548438
mov esi, 0xbe
jmp 0x5483df
cmp si, 0x6f
jne 0x5483d9
mov esi, 0xbf
jmp 0x5483df

Function at 0x549c30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xbaa218]
xor edx, edx
cmp eax, edx
jne 0x549c56
xor eax, eax
mov byte [eax + 0xbaa118], al
inc eax
cmp eax, 0x100
jl 0x549c3e
mov dword [0xbaa218], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xbaa118
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x549ce7
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 0x549cba
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 0x549c88
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x549d60
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 0x549db3
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 0x549d9a
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