joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4eb318
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 0x4eb50d
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.0040a114
cmp dword [ebp - 0x6c], 0
jne 0x4eb3eb
push 0
call sub.kernel32.dll_GetModuleHandleA_2
lea edx, [ebp - 0xc]
call fcn.0040fdec
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0xc]
call fcn.0040a148
push dword [ebp - 0x70]
push 0x4eb528
push dword [ebp - 4]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404b8c
mov eax, dword [ebp - 0x10]
call fcn.00409f10
test al, al
jne 0x4eb406
lea eax, [ebp - 0x14]
call fcn.004eaf54
cmp dword [ebp - 0x14], 0
je 0x4eb4d2
push dword [ebp - 0x14]
push 0x4eb534
push dword [ebp - 4]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404b8c
mov eax, dword [ebp - 0x10]
call fcn.00409f10
test al, al
je 0x4eb4d2
jmp 0x4eb406
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.004048a4
mov eax, dword [ebp - 0x10]
call fcn.00409f10
test al, al
je 0x4eb4d2
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call fcn.0040325c
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 + 0x55e3d0]
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.0040fec0
mov esi, eax
cmp bl, 2
je 0x4eb4ce
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 0x4eb4ce
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [edi*4 + 0x55e3d0]
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, 0x4eb544
call fcn.0040aab8
mov ecx, dword [ebp - 0x78]
mov dl, 1
mov eax, dword [0x4083c8]
call fcn.0040e30c
call fcn.00404180
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eb514
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 0x4ebc88
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404cbc
xor eax, eax
push ebp
push 0x4ebd34
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x41cf0c]
call fcn.0042293c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4ebd17
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x20]
call fcn.0040bc18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_SystemTimeToFileTime
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
test eax, eax
jns 0x4ebcfb
call fcn.00403810
push eax
call sub.kernel32.dll_SetFileTime
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ebd1e
mov eax, dword [ebp - 8]
call fcn.004038dc
ret
Function at 0x4edc90
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.004067bc
xor eax, eax
push ebp
push 0x4edd53
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.00493e64
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 0x4edd35
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.00493e64
mov eax, dword [ebp - 0xc]
and eax, 3
cmp edi, eax
jne 0x4edd31
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.00493e64
mov eax, dword [ebp + 8]
call fcn.00406748
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.00493e64
jmp 0x4edd3d
inc ebx
dec esi
jne 0x4edce4
mov eax, dword [ebp + 8]
call fcn.00406748
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4edd5a
lea eax, [ebp - 4]
call fcn.00406748
ret

Function at 0x4ee384
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.004067bc
xor eax, eax
push ebp
push 0x4ee447
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.00493e64
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 0x4ee429
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.00493e64
mov eax, dword [ebp - 0xc]
and eax, 3
cmp edi, eax
jne 0x4ee425
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.00493e64
mov eax, dword [ebp + 8]
call fcn.00406748
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.00493e64
jmp 0x4ee431
inc ebx
dec esi
jne 0x4ee3d8
mov eax, dword [ebp + 8]
call fcn.00406748
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ee44e
lea eax, [ebp - 4]
call fcn.00406748
ret
Function at 0x4fa0a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4fa229
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x55e4e4], 0
jne 0x4fa206
push 0x56cdc4
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x4fa1ff
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x55e4e4], 0
jne 0x4fa1e7
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404e58
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00404ccc
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.0040911c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x4fa240
call fcn.0040aab8
mov eax, dword [ebp - 0xc]
call fcn.00404ccc
push eax
push 0x80000000
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x4fa168
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404e58
jmp 0x4fa19f
lea eax, [ebp - 8]
mov edx, 0x4fa260
call fcn.004048a4
xor eax, eax
push ebp
push 0x4fa195
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00494128
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fa19f
mov eax, dword [ebp - 8]
call fcn.00404ccc
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x55e4e4], eax
cmp dword [0x55e4e4], 0
jne 0x4fa1d2
mov ecx, dword [0x56b814]
mov dl, 1
mov eax, dword [0x4083c8]
call fcn.0040e3c8
call fcn.00404180
push 0x4fa26c
mov eax, dword [0x55e4e4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x56cddc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fa206
push 0x56cdc4
call sub.kernel32.dll_LeaveCriticalSection_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fa230
lea eax, [ebp - 0x18]
call fcn.0040480c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404830
ret
Function at 0x505d60
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
cmp byte [ebx + 0x87], 0
je 0x505d9b
cmp dword [ebx + 0x5c], 0
je 0x505d9b
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
mov edx, eax
mov eax, esi
call fcn.004fe0dc
xor eax, eax
mov dword [ebx + 0x5c], eax
mov byte [ebx + 0x87], 0
cmp dword [ebx + 0x5c], 0
jne 0x505ee6
cmp dword [ebx + 0x7c], 0
jne 0x505dc1
mov dl, 1
mov eax, dword [0x41c764]
call fcn.004038ac
mov dword [ebx + 0x7c], eax
cmp dword [ebx + 0xc], 0
je 0x505ebf
mov eax, dword [ebx + 0xc]
push eax
mov al, byte [0x505eec]
push eax
mov al, byte [0x505ef0]
push eax
push 0
mov eax, dword [ebx + 0x7c]
push eax
mov eax, dword [0x56b848]
push eax
mov ecx, dword [ebx + 0x68]
mov dl, 1
mov eax, dword [0x4f5f30]
call fcn.004f7e80
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x505eb8
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.004fe0dc
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc0]
mov edx, eax
mov eax, esi
call fcn.004fe0dc
mov eax, dword [ebx + 0x40]
push eax
lea eax, [ebx + 0x70]
mov ecx, 1
mov edx, dword [0x4fb6d4]
call fcn.00405e7c
add esp, 4
mov eax, dword [ebx + 0x30]
cmp eax, 0x1a
jge 0x505e8b
mov edx, dword [0x56bb14]
mov al, byte [edx + eax]
mov byte [ebx + 0x74], al
jmp 0x505e9c
cmp eax, 0x1007
jne 0x505e98
mov byte [ebx + 0x74], 0x18
jmp 0x505e9c
mov byte [ebx + 0x74], 0
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x505ee6
mov eax, dword [ebp - 4]
call fcn.004038dc
ret
lea eax, [ebx + 0x5c]
push eax
push 0
push 0
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.004fe0dc
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x514124
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
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 0x514384
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x514187
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00513bec
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040ed18
cmp al, 1
jne 0x514187
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00513f04
test al, al
je 0x514313
cmp dword [ebp - 8], 0
jge 0x5141a5
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.00513bec
mov eax, dword [ebp - 0x210]
call fcn.00404acc
cmp ebx, eax
jge 0x5141ef
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00513bec
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x56bc1c]
and eax, 0xff
bt dword [edx], eax
jae 0x5141ef
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x514203
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00514100
cmp ebx, dword [ebp - 8]
je 0x514305
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 0x51422f
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403ae4
and eax, 0x7f
movzx eax, word [eax*2 + 0x56b31c]
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 + 0x23c], 1
xor eax, eax
push ebp
push 0x5142f2
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403ae4
and eax, 0x7f
movzx eax, word [eax*2 + 0x56b31c]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00477378
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403ae4
and eax, 0x7f
movzx eax, word [eax*2 + 0x56b31c]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00477378
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5142f9
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x514366
cmp dword [ebp - 8], 0
jge 0x51431e
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00513bec
mov eax, dword [ebp - 0x218]
call fcn.00404acc
cmp eax, dword [ebp - 8]
jg 0x514358
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00513bec
mov eax, dword [ebp - 0x21c]
call fcn.00404acc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00514100
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51438b
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404830
ret
Function at 0x5464a8
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
xor edx, edx
push ebp
push 0x546605
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, eax
mov dl, 1
mov eax, dword [0x50b908]
call fcn.0050cba0
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5465e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x56b554]
mov eax, dword [eax]
call fcn.005133a4
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 4]
add eax, 0x314
call fcn.00404860
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], edi
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x54661c
call fcn.0040aab8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
call fcn.004be480
mov eax, dword [ebp - 4]
cmp byte [eax + 0xa1], 0
jne 0x5465d2
mov eax, dword [ebp - 4]
call fcn.004c0ce4
mov edx, 0x54665c
mov eax, dword [ebp - 4]
call fcn.004bf4cc
mov edx, esi
call fcn.004b98e0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x24c]
mov eax, dword [0x56b554]
mov eax, dword [eax]
call fcn.005133a4
call fcn.00507538
mov ebx, eax
xor eax, eax
push ebp
push 0x5465be
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov ecx, 0x546670
mov edx, 0x54667c
mov eax, dword [ebp - 4]
call fcn.0050d1ec
mov eax, dword [0x56b554]
mov eax, dword [eax]
call fcn.005133a4
mov edx, ebx
call fcn.005075f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5465d2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5465ef
mov eax, dword [ebp - 4]
call fcn.004038dc
ret
Function at 0x551684
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x551697
add esp, 0xfffffff0
call fcn.00403c54
mov edi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004038ac
mov ecx, edi
mov dl, 1
mov eax, dword [0x551578]
call fcn.0046df28
mov esi, eax
mov dword [ebx + 0x10], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x551514
push 2
call sub.user32.dll_SetWindowsHookExA
mov dword [0x56d200], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
test eax, eax
je 0x5516ea
mov eax, dword [eax + 0x1c]
mov dword [ebx + 4], eax
jmp 0x5516f0
mov eax, dword [ebp + 8]
mov dword [ebx + 4], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x551707
call fcn.00403cac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x551744
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
mov dword [ebp - 8], eax
test ebx, ebx
je 0x5518cb
mov eax, ebx
mov edx, dword [0x549470]
call fcn.00403a74
test al, al
je 0x5518cb
cmp byte [esi + 0x14], 0
jne 0x5518c4
mov edi, ebx
cmp dword [edi + 0x240], 0
jne 0x551793
mov eax, dword [edi + 0x244]
call fcn.0054c434
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 0x240]
mov eax, dword [eax + 0xc]
call fcn.00420870
test eax, eax
jne 0x5517b1
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x2dc]
test eax, eax
je 0x5517cf
call fcn.00420510
mov dword [ebp - 4], eax
cmp byte [edi + 0x2e0], 0
je 0x5517cf
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xffffffff
jle 0x551848
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x551802
mov edi, dword [esi + 8]
test edi, edi
je 0x551802
mov eax, dword [ebx + 0x240]
mov edx, dword [edi + 4]
cmp eax, dword [edx + 0x18]
jne 0x551802
mov eax, edi
call fcn.00420510
cmp eax, dword [ebp - 4]
je 0x551848
mov eax, dword [ebx + 0x240]
mov eax, dword [eax + 0xc]
call fcn.0054bfd4
mov dword [ebp - 8], eax
mov eax, dword [0x56d1f8]
mov edi, dword [eax + 8]
test edi, edi
je 0x55182b
mov edx, edi
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x55183b
mov eax, dword [0x56d1f8]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 8]
call fcn.0054bef4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x55184f
mov dword [ebp - 4], 0xffffffff
xor edx, edx
mov eax, ebx
call fcn.00550714
mov byte [ebx + 0x2e0], 1
cmp word [ebx + 0x322], 0
je 0x55188c
mov eax, dword [ebp - 8]
push eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
setl al
push eax
mov ecx, dword [esi + 8]
mov edx, esi
mov eax, dword [ebx + 0x324]
call dword [ebx + 0x320]
cmp dword [ebp - 8], 0
je 0x55189c
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0055015c
cmp dword [esi + 8], 0
je 0x5518bc
cmp dword [ebp - 4], 0xffffffff
jle 0x5518bc
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x5518bc
mov eax, dword [esi + 8]
call fcn.004038dc
xor eax, eax
mov dword [ebx + 0x2c8], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x7c]
mov eax, dword [0x56d200]
push eax
call sub.user32.dll_UnhookWindowsHookEx
mov ebx, dword [ebp - 8]
mov eax, esi
call fcn.004038dc
xor eax, eax
mov dword [0x56d1f8], eax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x555d8c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x555e15
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x56d210
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x555dff
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040d978
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x555e2c
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x56ba94]
mov dl, 1
mov eax, dword [0x555514]
call fcn.0040e404
call fcn.00404180
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x555e1c
lea eax, [ebp - 0x1c]
call fcn.0040480c
ret

Function at 0x5564bc
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.005563e0
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403ae4
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x556520
call fcn.00555cd4
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x556512
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403ae4
pop esi
pop ebx
ret

Function at 0x556544
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404ccc
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.0040325c
test ebx, ebx
je 0x55658f
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x55666c
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x55669d
mov ecx, dword [0x56b910]
mov dl, 1
mov eax, dword [0x555514]
call fcn.0040e3c8
call fcn.00404180
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x5566ca
mov ecx, dword [0x56b84c]
mov dl, 1
mov eax, dword [0x555514]
call fcn.0040e3c8
call fcn.00404180
xor eax, eax
push ebp
push 0x556746
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403ae4
cmp byte [ebp + 8], 0
je 0x556722
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.005565d4
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.005564bc
jmp 0x55673c
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00555fc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x556763
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc