joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45090d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x4509e5
call fcn.004308bc
sub esp, 4
push ebx
push esi
mov eax, dword [ecx]
push edi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x450935
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 4]
jmp 0x45093e
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x45094e
mov edx, dword [ebp + 8]
cmp dword [ebx + 8], edx
jg 0x450a59
cmp dword [ebp + 0xc], 0
je 0x450a65
test ebx, ebx
jne 0x4509cb
push 0x10
call fcn.004506e2
mov dword [ebp - 0x10], eax
mov edi, eax
mov dword [ebp - 4], 0
test edi, edi
je 0x450993
mov ebx, edi
mov dword [edi], vtable.CNoTrackObject.0
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov dword [edi], vtable.CThreadData.0
jmp 0x450995
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
cmp dword [esi], 0xffffffff
jne 0x4509b3
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea ecx, [esi + 0x18]
call fcn.00450682
cmp dword [esi], 0xffffffff
jne 0x4509cb
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0xc]
lea edi, [esi + 0x10]
test eax, eax
jne 0x4509f8
mov eax, dword [edi]
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x450a07
push 2
mov ecx, dword [edi]
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebx + 0xc], eax
cmp dword [ebx + 0xc], 0
jne 0x450a24
cmp dword [esi], 0xffffffff
jne 0x450a1f
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0043e9a6
mov eax, dword [ebx + 8]
mov ecx, dword [edi]
sub ecx, eax
shl ecx, 2
shl eax, 2
push ecx
push 0
add eax, dword [ebx + 0xc]
push eax
call fcn.00430d40
add esp, 0xc
mov ecx, dword [edi]
mov dword [ebx + 8], ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x450a56
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x450a59
mov dword [esi + 4], ebx
mov edx, dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebp + 0xc]
mov dword [ecx + edx*4], eax
cmp dword [esi], 0xffffffff
jne 0x450a74
add esi, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x450ad5
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ecx + 0x20]
push edi
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x450afc
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
jmp 0x450aff
mov edi, dword [esi + 4]
test edi, edi
je 0x450bb7
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
cmp dword [edi + 8], 1
jle 0x450b7a
mov dword [ebp - 0xc], 8
mov ebx, 4
cmp dword [ebp + 8], 0
je 0x450b4e
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi + 0x14]
mov eax, dword [ebp + 8]
cmp dword [edx + ecx + 4], eax
je 0x450b4e
mov eax, dword [edi + 0xc]
cmp dword [eax + ebx], 0
je 0x450b68
mov dword [ebp - 4], 0
jmp 0x450b68
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + ebx]
test ecx, ecx
je 0x450b5e
push 1
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [edi + 0xc]
mov dword [eax + ebx], 0
add ebx, 4
inc dword [ebp - 8]
add dword [ebp - 0xc], 8
mov eax, dword [ebp - 8]
cmp dword [edi + 8], eax
jg 0x450b27
cmp dword [ebp - 4], 0
je 0x450bb7
push edi
lea ecx, [esi + 0x18]
call fcn.00450695
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x450b9e
push 1
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x450bb0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x450bb7
mov dword [esi + 4], 0
add esi, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x450bca
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
cmp dword [ecx], 0
mov esi, ecx
jne 0x450c0a
cmp dword [0x467d88], 0
jne 0x450bfd
mov ecx, 0x467d90
test ecx, ecx
je 0x450bf3
push 1
call fcn.00450712
mov dword [0x467d88], eax
jmp 0x450bfd
mov dword [0x467d88], 0
mov ecx, dword [0x467d88]
call fcn.00450764
mov dword [esi], eax
mov edi, dword [esi]
mov eax, dword [0x467d88]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x450c2a
cmp dword [eax + 8], edi
jle 0x450c2a
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x450c2c
xor edi, edi
test edi, edi
jne 0x450c44
call dword [esp + 0xc]
push eax
mov edi, eax
push dword [esi]
mov ecx, dword [0x467d88]
call fcn.0045090d
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x450ec5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, 0x467e08
jmp 0x450f3c
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx edi, ah
mov dl, al
and eax, 0x80000000
movzx ecx, dl
shl ecx, 8
shr eax, 0x1f
add ecx, edi
mov dword [esi + 0x70], ecx
mov dword [esi + 0x74], eax
mov ecx, 1
cmp dl, 4
sbb edx, edx
mov edi, ecx
inc edx
sub edi, edx
mov dword [esi + 0x78], edx
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edx
test eax, eax
je 0x450f8c
test edx, edx
jne 0x450f8c
mov dword [esi + 0x84], ecx
jmp 0x450f96
mov dword [esi + 0x84], 0
lea edi, [esi + 0x88]
xor eax, eax
test edx, edx
mov dword [edi], eax
je 0x450fb5
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
cmp eax, 0x40000
sbb eax, eax
inc eax
mov dword [edi], eax
mov ecx, esi
call fcn.00446de9
push 0xc0c0c0
xor edi, edi
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0x808080
mov dword [esi + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], edi
mov ecx, esi
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x40], edi
call fcn.00446d2c
push 0x7f02
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
mov dword [esi + 0x58], eax
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], edi
cmp dword [esi + 0x78], 1
sbb eax, eax
mov dword [esi + 0x6c], edi
add eax, 2
pop edi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov eax, esi
pop esi
ret
Function at 0x451859
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x45188d
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
cmp eax, 1
sbb eax, eax
neg eax
jmp 0x4518d9
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4518d7
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4518d7
mov eax, 1
test esi, esi
je 0x4518d9
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40298c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x444040], 0x8088405
inc edx
mov dword [0x444040], edx
mul edx
mov eax, edx
ret

Function at 0x402ae4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402b7c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402b5c
xor eax, eax
push ebp
push 0x402b55
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402b98
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402b5c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret

Function at 0x403914
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026c8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x444045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4038dc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x404e6c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405028
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404ecd
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405044
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404f3f
xor eax, eax
push ebp
push 0x404f38
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404cc4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404f21
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405064
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404f3f
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405020
cmp byte [ebp - 0xd], 0
jne 0x404f81
cmp byte [ebp - 0x12], 0
je 0x405020
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404f9a
dec ebx
cmp byte [ebx], 0x2e
je 0x404fa9
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404f99
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405020
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404fd6
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405020
cmp byte [ebp - 0xd], 0
je 0x405020
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405020
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408594
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4085cd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403a48
jmp 0x4085d6
mov eax, ebx
mov edx, esi
call fcn.004039b4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4085e0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x408601
mov al, byte [esp]
jmp 0x408603
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x411e58
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x411e6d
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x413c20
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x413c26
ret

Function at 0x415f84
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x415fd5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x415fbc
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x415fac
jmp 0x415fd5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x415fbd
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d5dc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x44477c], 0
sete dl
or al, dl
jne 0x41d71c
mov eax, dword [0x444780]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x44477c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x41d6eb
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x44477c]
call fcn.0040d250
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x41d6e3
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x41d6e3
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x41d6e3
mov eax, dword [ebp - 0x14]
call fcn.00425808
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x41d6e3
push ebp
call fcn.0041d598
pop ecx
test al, al
jne 0x41d6e3
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x41d69f
mov eax, dword [ebp - 0x14]
call fcn.00424194
dec eax
jle 0x41d6e3
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.00402e48
cmp byte [ebp - 1], 0
je 0x41d6e3
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x41d6e3
mov edx, dword [ebp - 0x14]
mov eax, dword [0x444780]
call fcn.0041cde4
inc edi
dec esi
jne 0x41d632
mov eax, dword [0x444780]
cmp dword [eax + 8], 0
jle 0x41d703
mov eax, dword [0x444780]
call fcn.0041ce74
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41d71c
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0041d400
pop ecx
test al, al
jne 0x41d71c
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4231a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x4231d1
je 0x42322b
sub eax, 7
je 0x4231f2
dec eax
je 0x42321c
sub eax, 0x17
je 0x4232d0
jmp 0x42330e
add eax, 0xffffff00
sub eax, 9
jb 0x4232bc
add eax, 0xffffff09
sub eax, 0xb
jb 0x423284
jmp 0x42330e
mov eax, ebx
call fcn.00434ca4
mov edi, eax
test edi, edi
je 0x42336e
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x423377
jmp 0x42336e
test byte [ebx + 0x44], 0x20
jne 0x423377
jmp 0x42336e
mov edx, esi
mov eax, ebx
call fcn.0042086c
cmp dword [esi + 0xc], 0xffffffff
jne 0x423377
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00406888
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0041f3b8
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00423078
test eax, eax
je 0x423377
mov dword [esi + 0xc], 1
jmp 0x423377
mov edx, esi
mov eax, ebx
call fcn.0042310c
test al, al
je 0x42336e
cmp dword [esi + 0xc], 0
jne 0x423377
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.00425808
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x423377
mov eax, ebx
call fcn.0041ff08
test al, al
jne 0x423377
jmp 0x42336e
mov eax, ebx
call fcn.00425808
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x42336e
cmp dword [0x4436d4], 0
je 0x42336e
mov eax, dword [0x4436d4]
cmp ebx, dword [eax + 0x24]
jne 0x42336e
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x4436d4]
call fcn.004207a0
jmp 0x42336e
mov eax, dword [0x444744]
cmp byte [eax + 0x20], 0
je 0x42336e
mov eax, dword [0x444744]
cmp dword [eax + 0x1c], 0
je 0x42336e
mov eax, dword [esi]
mov edx, dword [0x444744]
cmp eax, dword [edx + 0x1c]
jne 0x42336e
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.00434be8
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.00402e48
jmp 0x423377
mov edx, esi
mov eax, ebx
call fcn.0042086c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423838
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x423854
cmp dword [esi + 4], 0
je 0x423881
test byte [ebx + 0x45], 1
jne 0x423873
mov eax, ebx
call fcn.004227dc
test eax, eax
jne 0x423873
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x423991
mov edx, esi
mov eax, ebx
call fcn.004234b0
jmp 0x423991
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x42398a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00425808
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004207a0
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00423838
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00425808
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423991
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42cfe4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403960
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42d033
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403b90
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4349c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4447dc
cmp dword [edi], 0
jne 0x434a3c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4447d8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x443868
mov ecx, 2
call fcn.004027e0
mov edx, 0x434998
lea eax, [esi + 5]
call fcn.004349b8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004349b8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x434a11
mov dword [0x4447d8], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x434b58
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x434ba8]
test si, 4
je 0x434b6c
or bl, 1
test si, 8
je 0x434b76
or bl, 4
test si, 1
je 0x434b80
or bl, 8
test si, 2
je 0x434b8a
or bl, 0x10
test si, 0x10
je 0x434b94
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x434ba3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x434bac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x434be4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x434bc5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x434bd4
or bl, 4
test esi, 0x20000000
je 0x434bdf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x43ad8c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x43ad9e
add esp, 0xfffffff0
call fcn.00402f54
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00411edc
mov eax, ebx
call fcn.0043b0d8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40bb30]
call fcn.00402c3c
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40bb30]
call fcn.00402c3c
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x40bb30]
call fcn.00402c3c
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x40bb30]
call fcn.00402c3c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40bb30]
call fcn.00402c3c
mov dword [ebx + 0x70], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x43ad5c
push eax
push 0
push 0
mov eax, dword [0x443bc8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4133a4]
call fcn.00414680
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x4133a4]
call fcn.00414680
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x4133a4]
call fcn.00414680
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.0043b4b8
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43b3d4
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43b3d4
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43b3d4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43aead
call fcn.00402fac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret