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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov edx, 0x104
xor ecx, ecx
mov eax, dword [edi + 4]
cmp eax, edx
ja 0x48f2b9
je 0x48f2e3
cmp eax, 0xa1
jb 0x48f326
cmp eax, 0xa2
jbe 0x48f2e3
cmp eax, 0xa3
jbe 0x48f326
cmp eax, 0xa5
jbe 0x48f2e3
cmp eax, 0xa6
jbe 0x48f326
cmp eax, 0xa8
jbe 0x48f2e3
cmp eax, 0x100
jne 0x48f326
cmp dword [esi + 0xc0], 0xffffffff
je 0x48f2e3
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x48f2e1
mov eax, dword [edi + 8]
sub eax, 0x21
je 0x48f241
sub eax, 1
jne 0x48f2e1
mov ecx, dword [esi + 0xc0]
mov eax, dword [esi + 0xbc]
add eax, ecx
lea edi, [ecx + 1]
jmp 0x48f1f4
mov eax, edi
cdq
idiv dword [esi + 0xbc]
mov eax, dword [esi]
mov ecx, edx
mov dword [ebp + 8], ecx
push ecx
mov ecx, esi
call dword [eax + 0x27c]
test eax, eax
jne 0x48f1fa
mov eax, dword [esi + 0xbc]
inc edi
add eax, dword [esi + 0xc0]
cmp edi, eax
jl 0x48f1ca
jmp 0x48f239
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 8]
mov dword [esi + 0x24c], 1
call dword [eax + 0x214]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x210]
mov ecx, eax
call fcn.004237fb
mov edx, dword [esi]
mov ecx, esi
push dword [esi + 0xc0]
call dword [edx + 0x270]
and dword [esi + 0x24c], 0
xor eax, eax
inc eax
jmp 0x48f34c
mov ecx, dword [esi + 0xc0]
lea edi, [ecx - 1]
add edi, dword [esi + 0xbc]
cmp edi, ecx
jle 0x48f239
mov eax, edi
cdq
idiv dword [esi + 0xbc]
mov eax, dword [esi]
mov ecx, edx
mov dword [ebp + 8], ecx
push ecx
mov ecx, esi
call dword [eax + 0x27c]
test eax, eax
jne 0x48f27c
dec edi
cmp edi, dword [esi + 0xc0]
jg 0x48f254
jmp 0x48f239
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 8]
mov dword [esi + 0x24c], 1
call dword [eax + 0x214]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x210]
mov ecx, eax
call fcn.004237fb
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0xc0]
call dword [eax + 0x270]
jmp 0x48f232
cmp eax, 0x200
jb 0x48f326
cmp eax, 0x202
jbe 0x48f2e3
cmp eax, 0x203
jbe 0x48f326
cmp eax, 0x205
jbe 0x48f2e3
add eax, 0xfffffdf9
cmp eax, 1
ja 0x48f326
jmp 0x48f2e3
xor ecx, ecx
mov eax, dword [esi + 0xfc]
test eax, eax
je 0x48f303
cmp dword [eax + 0x20], 0
je 0x48f303
push edi
push ecx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x48f324
cmp dword [eax + 0x20], 0
je 0x48f324
push edi
push 0
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
cmp dword [edi + 4], 0x203
jne 0x48f344
lea eax, [esi + 0x2250]
test eax, eax
je 0x48f33c
mov ecx, dword [eax + 0x20]
cmp dword [edi], ecx
je 0x48f239
push edi
mov ecx, esi
call fcn.00487ad4
pop edi
pop esi
pop ebp
ret 4
Function at 0x49e79f
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5e5044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x8000
lea eax, [esi - 0x60]
cmp eax, 9
ja 0x49e7d1
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test bx, ax
je 0x49e7fc
cmp dword [0x5ecdcc], 0
jne 0x49e7fc
lea ecx, [esi - 0x41]
cmp ecx, 0x19
jbe 0x49e7ef
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test bx, ax
je 0x49e7f3
mov eax, esi
jmp 0x49e86f
push esi
call fcn.00563c18
pop ecx
jmp 0x49e86f
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.0054ee00
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x49e881
call fcn.00432158
push dword [eax + 0x30]
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
push 2
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push esi
call dword [sym.imp.USER32.dll_ToUnicodeEx]
xor eax, eax
mov word [ebp - 0x106], ax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
movzx eax, word [ebp - 0x108]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0054c90d
mov esp, ebp
pop ebp
ret 4
call fcn.00421b16
int3

Function at 0x4a23a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5e4590], 0
push esi
je 0x4a2481
cmp dword [0x5e4800], 0xfffffffe
jne 0x4a246e
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x4a2481
mov eax, dword fs:[0x2c]
mov ecx, dword [0x5f02a4]
push ebx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x5ee3e0]
cmp eax, dword [ecx + 4]
jle 0x4a2418
mov ebx, 0x5ee3e0
push ebx
call fcn.0054d07c
cmp dword [0x5ee3e0], 0xffffffff
pop ecx
jne 0x4a2418
mov ecx, 0x5ee3c0
call fcn.00472fd0
push 0x582cac
call fcn.0054cf4b
push ebx
call fcn.0054d03d
pop ecx
pop ecx
mov ebx, 0x5ee3c8
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5ee3ac], 0
jne 0x4a2484
push 0
push 0
push 0x4a248a
call fcn.00561ec9
add esp, 0xc
mov dword [0x5ee3ac], eax
test eax, eax
je 0x4a245d
cmp eax, 0xffffffff
je 0x4a245d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x5e4800], esi
jmp 0x4a2464
and dword [0x5ee3ac], 0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
jmp 0x4a2481
mov eax, dword [ebp + 8]
mov dword [0x5e4800], eax
inc eax
neg eax
sbb eax, eax
and dword [0x5ee3ac], eax
pop esi
pop ebp
ret
call fcn.00421b16
int3
Function at 0x4aa565
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5e5044]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call fcn.0042339a
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x21
call esi
push 0x20
mov ebx, eax
call esi
mov ecx, edi
mov dword [ebp - 0x1c], eax
call fcn.004289ec
mov edi, dword [ebp - 0x18]
mov esi, eax
test edi, 0x1000
je 0x4aa5dd
cmp esi, 3
jne 0x4aa5cc
push 2
pop esi
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4aa5dd
xor eax, eax
jmp 0x4aa632
cmp esi, 0xa
jl 0x4aa5e7
cmp esi, 0x11
jle 0x4aa5ec
cmp esi, 4
jne 0x4aa630
test edi, 0x800
je 0x4aa5f9
push 2
pop eax
jmp 0x4aa632
mov eax, dword [ebp - 0x1c]
neg ebx
push ebx
neg eax
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
test edi, 0x200
je 0x4aa630
mov eax, esi
sub eax, 4
je 0x4aa67d
sub eax, 9
je 0x4aa669
sub eax, 1
je 0x4aa659
dec eax
sub eax, 1
je 0x4aa645
sub eax, 1
je 0x4aa67d
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054c90d
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, dword [ebp - 8]
setle al
dec eax
and eax, 5
add eax, 0xa
jmp 0x4aa632
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, dword [ebp - 0x10]
setl al
add eax, 0xb
jmp 0x4aa632
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, dword [ebp - 0x10]
setl al
lea eax, [eax*2 + 0xa]
jmp 0x4aa632
mov ecx, dword [ebp + 0xc]
xor eax, eax
cmp ecx, dword [ebp - 8]
setg al
lea eax, [eax*4 + 0xb]
jmp 0x4aa632
Function at 0x4baf46
Capabilities:
Get common file path

Disassembly:
push 0x7c
mov eax, 0x57b454
call fcn.0054d59e
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov ecx, dword [ebp + 0xc]
call fcn.00443e99
test eax, eax
je 0x4bb0e7
lea ecx, [ebp - 0x1c]
xor edi, edi
push ecx
lea ecx, [ebp + 8]
mov dword [ebp - 0x1c], edi
push ecx
lea ecx, [ebx + 4]
call fcn.004bae6e
test eax, eax
je 0x4baf89
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00422a3c
push eax
lea ecx, [ebp - 0x18]
call fcn.00421cd9
mov esi, 0x104
mov dword [ebp - 4], edi
push esi
lea ecx, [ebp - 0x18]
call fcn.0042223e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00423d74
call fcn.00422a3c
push eax
lea ecx, [ebp - 0x14]
call fcn.00421cd9
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0042223e
mov esi, dword [ebp - 0x18]
push eax
push edi
push 0x5a5784
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00423d74
push edi
push 0x4000100
push 2
push edi
push edi
mov edi, dword [ebp - 0x14]
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x4bb021
lea ecx, [edi - 0x10]
call fcn.004222c8
lea ecx, [esi - 0x10]
jmp 0x4bb0e2
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0042f52d
push 0
push 0x1000
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x88]
call fcn.00439739
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x88]
mov dword [ebx + 0x20], 1
push edx
mov byte [ebp - 4], 4
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x88]
call fcn.00439d3b
and dword [ebx + 0x20], 0
lea ecx, [ebp - 0x88]
call fcn.00439849
lea ecx, [ebp - 0x40]
call fcn.0042f624
lea eax, [ebp + 8]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebx + 4]
call fcn.004bac47
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
lea ecx, [edi - 0x10]
call fcn.004222c8
lea ecx, [esi - 0x10]
call fcn.004222c8
xor eax, eax
inc eax
jmp 0x4bb0e9
call fcn.004222c8
xor eax, eax
call fcn.0054d4fc
ret 8
Function at 0x4e0998
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5e5044]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
jne 0x4e09bb
xor eax, eax
jmp 0x4e0a91
cmp dword [ebp + 0xc], 0
je 0x4e09b4
xor ebx, ebx
call fcn.004240bc
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4e09b4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4e09b4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4e0aa7
push eax
call fcn.00561a20
inc eax
pop ecx
mov dword [ebp - 8], eax
lea edx, [eax + eax]
lea ecx, [edx + 8]
cmp edx, ecx
sbb eax, eax
test ecx, eax
je 0x4e0a5f
lea ecx, [edx + 8]
cmp edx, ecx
sbb eax, eax
and eax, ecx
lea ecx, [edx + 8]
cmp eax, 0x400
ja 0x4e0a41
cmp edx, ecx
sbb eax, eax
and eax, ecx
call fcn.0054c920
mov esi, esp
test esi, esi
je 0x4e0aa7
mov dword [esi], 0xcccc
jmp 0x4e0a5a
cmp edx, ecx
sbb eax, eax
and eax, ecx
push eax
call fcn.00555e3e
mov esi, eax
pop ecx
test esi, esi
je 0x4e0aa7
mov dword [esi], 0xdddd
add esi, 8
jmp 0x4e0a61
mov esi, ebx
test esi, esi
je 0x4e0aa7
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call fcn.00422a25
test eax, eax
je 0x4e0a81
mov ecx, dword [ebp - 0x10]
push eax
call fcn.004e233c
xor ebx, ebx
inc ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call fcn.004e2358
pop ecx
mov eax, ebx
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054c90d
mov esp, ebp
pop ebp
ret 8
call fcn.00421b16
int3
Function at 0x503dce
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 0x1b8]
test al, al
jns 0x503ded
or ecx, 0xffffffff
jmp 0x503df3
mov ecx, dword [0x5e4968]
mov eax, dword [esi]
lea edx, [ebp - 4]
push edx
push ecx
mov ecx, esi
call dword [eax + 0x2b4]
push dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x5e4c1c
call fcn.004381fe
mov edi, eax
pop ecx
pop ecx
cmp edi, esi
je 0x503e97
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x503e97
test edi, edi
je 0x503e48
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x228]
push eax
push 0x5e4b44
call fcn.004381fe
pop ecx
pop ecx
mov ebx, eax
jmp 0x503e4a
xor ebx, ebx
mov eax, dword [ebp - 8]
cmp eax, 2
jne 0x503ea2
test ebx, ebx
je 0x503e83
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c0]
test al, 0x40
je 0x503e97
cmp dword [ebp - 4], 0
je 0x503e83
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax + 0x24c]
mov ecx, dword [ebp + 8]
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
mov eax, esi
jmp 0x503e99
mov eax, dword [esi]
mov ecx, esi
push 5
push 0
push edi
call dword [eax + 0x1f8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 3
jne 0x503e97
test edi, edi
je 0x503e97
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x184]
test eax, eax
je 0x503e97
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18c]
test eax, eax
je 0x503e97
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x240]
mov eax, dword [esi]
mov ecx, esi
push 0
push 1
push 5
push edi
call dword [eax + 0x34c]
mov ecx, dword [ebp + 8]
xor edx, edx
test eax, eax
setne dl
mov dword [ecx], edx
jmp 0x503e99
Function at 0x505c94
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
mov edx, dword [0x5f02a4]
push ebx
push esi
push edi
mov edx, dword [eax + edx*4]
mov ebx, ecx
mov eax, dword [0x5ef5b8]
cmp eax, dword [edx + 4]
jle 0x505cef
mov esi, 0x5ef5b8
push esi
call fcn.0054d07c
cmp dword [0x5ef5b8], 0xffffffff
pop ecx
jne 0x505cef
call fcn.00422a3c
push eax
mov ecx, 0x5ef5b4
call fcn.00421cd9
push 0x582e34
call fcn.0054cf4b
push esi
call fcn.0054d03d
pop ecx
pop ecx
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x505d91
mov eax, dword [ebx + 0x34c]
test eax, eax
je 0x505d88
cmp dword [eax + 0x20], 0
je 0x505d88
test eax, eax
je 0x505d15
mov eax, dword [eax + 0x20]
cmp dword [edi], eax
jne 0x505d88
mov eax, dword [edi + 4]
sub eax, 1
je 0x505d5c
sub eax, 1
je 0x505d32
sub eax, 1
jne 0x505d88
mov esi, 0x428e
jmp 0x505d61
push 0x11
mov esi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x505d61
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x340]
test eax, eax
je 0x505d61
add esi, 3
jmp 0x505d61
mov esi, 0x3ea0
push esi
call fcn.00423cdf
test eax, eax
je 0x505d91
push esi
push eax
mov ecx, 0x5ef5b4
call fcn.00403910
test eax, eax
je 0x505d91
mov eax, dword [0x5ef5b4]
mov dword [edi + 0xc], eax
xor eax, eax
inc eax
jmp 0x505d8a
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
call fcn.00421b16
int3
Function at 0x530da8
Capabilities:
Get common file path

Disassembly:
push 0x228
mov eax, 0x581676
call fcn.0054d567
mov ebx, ecx
mov dword [ebp - 0x230], ebx
call fcn.0051f80e
push 0x1c4
call fcn.00421a79
pop ecx
mov dword [ebp - 0x22c], eax
and dword [ebp - 4], 0
test eax, eax
je 0x530deb
push 0
push dword [ebx + 0x60]
mov ecx, eax
call fcn.0053d666
jmp 0x530ded
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
push eax
call fcn.0051ec58
call fcn.004240bc
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x8c]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x218]
push eax
call fcn.005619f9
mov esi, eax
pop ecx
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x218], ax
inc esi
mov dword [ebp - 0x22c], esi
lea eax, [esi + esi]
cmp eax, 0x208
jae 0x531004
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
xor eax, eax
mov dword [ebp - 0x228], eax
test edi, edi
je 0x530ffe
xor ebx, ebx
cmp dword [edi + 4], eax
jle 0x530ffe
call fcn.00422a3c
push eax
lea ecx, [ebp - 0x21c]
call fcn.00421cd9
mov eax, dword [edi]
xor ecx, ecx
inc ecx
push ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x218]
push esi
push ecx
push ebx
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, edi
call dword [eax + 0xc]
test eax, eax
je 0x530fe2
push 0x5a0498
mov esi, 0x5a04a0
lea ecx, [ebp - 0x21c]
push esi
call fcn.00403e40
push esi
push 0x5996d8
lea ecx, [ebp - 0x21c]
call fcn.00403e40
push esi
push 0x5a0498
lea ecx, [ebp - 0x21c]
call fcn.00403e40
call fcn.00422a3c
push eax
lea ecx, [ebp - 0x220]
call fcn.00421cd9
mov eax, dword [ebp - 0x228]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x530f18
push dword [ebp - 0x21c]
lea eax, [ebp - 0x220]
push str.10__Ts
push eax
call fcn.00402630
add esp, 0xc
jmp 0x530f4a
jge 0x530f38
push dword [ebp - 0x21c]
inc eax
push eax
lea eax, [ebp - 0x220]
push str._d__Ts
push eax
call fcn.00402630
add esp, 0x10
jmp 0x530f4a
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00402030
push 0x1c4
call fcn.00421a79
pop ecx
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x530f74
mov ecx, eax
call fcn.004f058b
mov ecx, eax
mov dword [ebp - 0x224], eax
jmp 0x530f7c
xor ecx, ecx
mov dword [ebp - 0x224], ecx
mov eax, dword [ecx]
mov esi, dword [ebp - 0x220]
push esi
mov byte [ebp - 4], 2
call dword [eax + 0xb4]
mov ecx, dword [ebp - 0x224]
lea eax, [ebx + 0xe110]
push eax
mov edx, dword [ecx]
call dword [edx + 0xb0]
push ebx
mov ecx, edi
call fcn.00434cae
mov ecx, dword [ebp - 0x224]
push dword [eax]
mov edx, dword [ecx]
call dword [edx + 0xc8]
mov ecx, dword [ebp - 0x224]
push ecx
mov ecx, dword [ebp - 0x230]
call fcn.0051ec58
inc dword [ebp - 0x228]
lea ecx, [esi - 0x10]
call fcn.004222c8
mov esi, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.004222c8
inc ebx
cmp ebx, dword [edi + 4]
jl 0x530e6d
call fcn.0054d511
ret
call fcn.0054d420
int3
Function at 0x5396f2
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x57b4d8
call fcn.0054d533
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x5397d8
mov edi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
je 0x5397d8
cmp edi, 0x43
je 0x539737
cmp edi, 0x2d
jne 0x5397d8
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x5397d8
call dword [sym.imp.USER32.dll_EmptyClipboard]
call fcn.00422a3c
push eax
lea ecx, [ebp + 8]
call fcn.00421cd9
movzx eax, byte [esi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [esi + 0xe5]
push eax
movzx eax, byte [esi + 0xe4]
push eax
lea eax, [ebp + 8]
push 0x5b94b0
push eax
call fcn.00402630
mov esi, dword [ebp + 8]
add esp, 0x14
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.004222c8
mov esi, dword [ebp - 0x10]
push ebx
mov ecx, esi
call fcn.0042f501
call fcn.0054d4fc
ret 4

Function at 0x56dcc2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056d982
Function at 0x40d9a8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408fab
mov dword [ebp - 0x14], eax
cmp dword [0x4309e0], esi
jne 0x40da9b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40da28
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40db7b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40db7b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40db7b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4309e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4309e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4309e8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4309f0], eax
test eax, eax
je 0x40da98
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4309ec], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40dac0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40dab3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40dad5
push 4
pop eax
jmp 0x40db7d
cmp dword [ebp - 0x14], esi
je 0x40dad5
push dword [0x4309e0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40daba
mov eax, dword [0x4309ec]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40db33
cmp dword [0x4309f0], edi
je 0x40db33
push eax
call ebx
push dword [0x4309f0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40db33
test eax, eax
je 0x40db33
call ecx
test eax, eax
je 0x40db28
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40db28
test byte [ebp - 8], 1
jne 0x40db33
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40db63
mov eax, dword [0x4309e4]
cmp eax, edi
je 0x40db60
push eax
call ebx
test eax, eax
je 0x40db60
call eax
mov esi, eax
test esi, esi
je 0x40db60
mov eax, dword [0x4309e8]
cmp eax, edi
je 0x40db60
push eax
call ebx
test eax, eax
je 0x40db60
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4309e0]
call ebx
test eax, eax
je 0x40db7b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40db7d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404315
mov esp, ebp
pop ebp
ret