joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100069a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10026008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10022aa8
mov dword [ebp - 0x20], edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.OpenProcessToken
push ebx
call edi
push str.AdjustTokenPrivileges
push ebx
mov esi, eax
call edi
push str.LookupPrivilegeValueA
push ebx
mov dword [ebp - 0x1c], eax
call edi
push str.kernel32.dll
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push 0x10022afc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x18]
push ecx
push 0x28
call eax
push eax
call esi
test eax, eax
jne 0x10006a22
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008398
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
neg eax
mov dword [ebp - 0x14], 1
sbb eax, eax
and eax, 2
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [ebp - 0x24]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
call dword [ebp - 0x1c]
push 0x10022b10
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x10022b20
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, 1
call eax
push dword [ebp - 0x18]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x10006a94
push ebx
call esi
test edi, edi
je 0x10006a9b
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10008398
mov esp, ebp
pop ebp
ret
Function at 0x1001084d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d8c4
push 0x1001d8bc
push str.FlsAlloc
push 0x1e
call fcn.1001072b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010881
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c2c4]
call esi
jmp 0x10010887
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100108cb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d8d4
push 0x1001d8cc
push str.FlsGetValue
push 0x20
call fcn.1001072b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010902
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001c2c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10014406
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100144a3
push ebx
push esi
call fcn.100143cf
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10014318
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10014450
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100144a2
push edi
push eax
call fcn.10010b4d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10014470
call fcn.10010b13
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100144a1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10014318
add esp, 0x20
test eax, eax
jne 0x1001448f
push edi
call fcn.10010b13
jmp 0x10014497
push ebx
call fcn.10010b13
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1001b620
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001b64d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001b64d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x662109f9
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x66210a00
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x66210a1e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x66210a7c
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x66210a63
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x66210a6c
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x66210a76
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x66210a58
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x662109e2
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x66210ac9
dec eax
je 0x66210ac0
sub eax, 3
je 0x66210ab7
mov dword [ebp - 4], 0x40
jmp 0x66210ae6
mov dword [ebp - 4], 4
jmp 0x66210acc
mov dword [ebp - 4], 0x20
jmp 0x66210acc
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x66210b18
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x66210a98
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.66210329
lodsd eax, dword [esi]
xor dword [0x1475ff8d], eax
push 1
push esi
call edi
mov eax, esi
jmp 0x66210b24
push 0x8000
push ebx
push esi
call dword [ebp - 8]
Function at 0x10003f51
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov ecx, dword [0x10280c08]
xor edx, edx
mov eax, dword [0x10280c34]
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x28]
push edi
div dword [ecx + ebp*4]
mov ecx, dword [0x10280c48]
movzx eax, dx
mov dword [esp + 0x20], eax
mov eax, dword [0x10280c30]
xor eax, 0x18cd
mov edx, dword [0x10280c0c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], edx
movzx ebx, word [eax + 0x3928]
mov ax, word [0x10280c18]
or ebx, 0xd40
inc ax
mov word [0x10280c18], ax
movzx eax, ax
mov dword [esp + 0x1c], eax
mov eax, dword [0x10280c24]
movzx ecx, word [ecx + eax*4]
mov eax, dword [0x10280c44]
or ecx, dword [esi + eax*4]
mov eax, 0x10e2
mov dword [esp + 0x10], ecx
imul ecx, edx, 0xc
xor edx, edx
div dword [ecx + esi]
inc ebp
mov ecx, eax
mov dword [esp + 0x38], ebp
imul eax, ebp, 0xc
mov dword [esp + 0x2c], ecx
mov edi, dword [eax + esi]
movzx esi, word [ecx + ecx + 0x107c]
sub edi, ebp
movzx ebp, word [esp + 0x28]
cmp esi, ebp
ja 0x1000406a
mov eax, dword [esp + 0x18]
xor edx, edx
div ebx
mov ecx, dword [0x10280c20]
and edi, 0xcf3
mov dword [esp + 0x28], eax
mov edx, dword [0x10280c4c]
dec ecx
mov eax, ecx
mov dword [0x10280c20], ecx
sub eax, dword [esp + 0x10]
sub eax, 0x1441
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
movzx eax, byte [edx + eax*4]
add eax, dword [esp + 0x28]
imul eax, ebx
add eax, edi
mov dword [0x10280c04], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x2254]
xor eax, 0x1a8c
cdq
idiv esi
or dword [esp + 0x2c], edx
inc esi
cmp esi, ebp
jle 0x10004019
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
xor ebp, dword [esp + 0x38]
imul ecx, ecx, 6
mov eax, ebp
mov byte [0x10280c00], dl
xor edx, edx
movzx ecx, word [ecx + edi]
add ecx, 0xab2
mov dword [ebx*4 + 0x268c], ecx
mov esi, dword [0x10280c0c]
movzx ecx, word [edi + esi*4]
div ecx
mov eax, dword [esp + 0x30]
mov word [edi + esi*4], dx
mov edx, dword [0x10280c20]
movzx ecx, byte [0x10280c01]
xor edx, 0x1a9c
sub edx, dword [esp + 0x14]
pop edi
pop esi
mov word [eax + ecx*2], dx
mov ecx, dword [0x10280c14]
dec byte [0x10280c01]
mov edx, dword [esp + 0x18]
pop ebp
mov word [eax + ecx*2], dx
mov eax, ebx
pop ebx
add esp, 0x14
ret
Function at 0x402888
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4028b7
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403a6c
jmp 0x4028d5
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402810
mov edi, eax
test ebx, ebx
je 0x4028d5
cmp dword [esi], 0
je 0x4028d5
dec ebx
jmp 0x4028be
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402b8c
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 0x402c24
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x402c04
xor eax, eax
push ebp
push 0x402bfd
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 0x402c40
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402c04
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
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 0x404eb8
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_2
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405074
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x404f19
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405090
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x404f8b
xor eax, eax
push ebp
push 0x404f84
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.00404d10
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x404f6d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4050b0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404f8b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA_1
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40506c
cmp byte [ebp - 0xd], 0
jne 0x404fcd
cmp byte [ebp - 0x12], 0
je 0x40506c
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404fe6
dec ebx
cmp byte [ebx], 0x2e
je 0x404ff5
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404fe5
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40506c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405022
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40506c
cmp byte [ebp - 0xd], 0
je 0x40506c
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA_1
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40506c
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA_1
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 0x40850c
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
test eax, eax
jle 0x408545
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403a6c
jmp 0x40854e
mov eax, ebx
mov edx, esi
call fcn.004039d8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408558
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
test eax, eax
jle 0x408579
mov al, byte [esp]
jmp 0x40857b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41360c
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 0x413612
ret

Function at 0x415970
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 0x4159c1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4159a8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x415998
jmp 0x4159c1
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 0x4159a9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41cfc8
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 [0x440774], 0
sete dl
or al, dl
jne 0x41d108
mov eax, dword [0x440778]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x440774]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x41d0d7
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x440774]
call fcn.0040d09c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x41d0cf
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x41d0cf
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x41d0cf
mov eax, dword [ebp - 0x14]
call fcn.004251f4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x41d0cf
push ebp
call fcn.0041cf84
pop ecx
test al, al
jne 0x41d0cf
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x41d08b
mov eax, dword [ebp - 0x14]
call fcn.00423b80
dec eax
jle 0x41d0cf
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.00402ef0
cmp byte [ebp - 1], 0
je 0x41d0cf
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x41d0cf
mov edx, dword [ebp - 0x14]
mov eax, dword [0x440778]
call fcn.0041c7d0
inc edi
dec esi
jne 0x41d01e
mov eax, dword [0x440778]
cmp dword [eax + 8], 0
jle 0x41d0ef
mov eax, dword [0x440778]
call fcn.0041c860
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x41d108
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0041cdec
pop ecx
test al, al
jne 0x41d108
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 0x422b8c
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 0x422bbd
je 0x422c17
sub eax, 7
je 0x422bde
dec eax
je 0x422c08
sub eax, 0x17
je 0x422cbc
jmp 0x422cfa
add eax, 0xffffff00
sub eax, 9
jb 0x422ca8
add eax, 0xffffff09
sub eax, 0xb
jb 0x422c70
jmp 0x422cfa
mov eax, ebx
call fcn.00434690
mov edi, eax
test edi, edi
je 0x422d5a
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x422d63
jmp 0x422d5a
test byte [ebx + 0x44], 0x20
jne 0x422d63
jmp 0x422d5a
mov edx, esi
mov eax, ebx
call fcn.00420258
cmp dword [esi + 0xc], 0xffffffff
jne 0x422d63
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.004068a4
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0041eda4
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00422a64
test eax, eax
je 0x422d63
mov dword [esi + 0xc], 1
jmp 0x422d63
mov edx, esi
mov eax, ebx
call fcn.00422af8
test al, al
je 0x422d5a
cmp dword [esi + 0xc], 0
jne 0x422d63
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.004251f4
push eax
call sub.user32.dll_DefWindowProcA
jmp 0x422d63
mov eax, ebx
call fcn.0041f8f4
test al, al
jne 0x422d63
jmp 0x422d5a
mov eax, ebx
call fcn.004251f4
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x422d5a
cmp dword [0x43f68c], 0
je 0x422d5a
mov eax, dword [0x43f68c]
cmp ebx, dword [eax + 0x24]
jne 0x422d5a
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x43f68c]
call fcn.0042018c
jmp 0x422d5a
mov eax, dword [0x44073c]
cmp byte [eax + 0x20], 0
je 0x422d5a
mov eax, dword [0x44073c]
cmp dword [eax + 0x1c], 0
je 0x422d5a
mov eax, dword [esi]
mov edx, dword [0x44073c]
cmp eax, dword [edx + 0x1c]
jne 0x422d5a
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.004345d4
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.00402ef0
jmp 0x422d63
mov edx, esi
mov eax, ebx
call fcn.00420258
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423224
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 0x423240
cmp dword [esi + 4], 0
je 0x42326d
test byte [ebx + 0x45], 1
jne 0x42325f
mov eax, ebx
call fcn.004221c8
test eax, eax
jne 0x42325f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x42337d
mov edx, esi
mov eax, ebx
call fcn.00422e9c
jmp 0x42337d
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 0x423376
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004251f4
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.0042018c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00423224
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.004251f4
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42337d
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 0x42c9d0
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.00403984
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42ca1f
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.00403bb4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4343ac
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4407d4
cmp dword [edi], 0
jne 0x434428
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
mov eax, dword [0x4407d0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x43f820
mov ecx, 2
call fcn.004027d0
mov edx, 0x434384
lea eax, [esi + 5]
call fcn.004343a4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004343a4
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 0x4343fd
mov dword [0x4407d0], 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 0x434544
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x434594]
test si, 4
je 0x434558
or bl, 1
test si, 8
je 0x434562
or bl, 4
test si, 1
je 0x43456c
or bl, 8
test si, 2
je 0x434576
or bl, 0x10
test si, 0x10
je 0x434580
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43458f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x434598
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4345d0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4345b1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4345c0
or bl, 4
test esi, 0x20000000
je 0x4345cb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret