joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417d5f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0xac
push 0xffffffffffffffff
push 0x450c9d
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x47129c]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x28], edi
mov esi, dword [ebp + 0xb4]
lea ecx, [ebp + 0x78]
mov ebx, dword [ebp + 0xb8]
mov eax, dword [ebp + 0xbc]
mov dword [ebp - 0x18], esi
push ebx
mov dword [ebp - 0x18], eax
call fcn.004177a5
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x88], eax
je 0x417dff
push eax
lea eax, [ebp + 0x78]
push eax
push edi
lea ecx, [ebp + 0x3c]
call fcn.00417821
push dword [ebp - 0x18]
lea ecx, [ebp + 0x90]
mov byte [ebp - 4], 1
push ecx
push esi
mov ecx, eax
call fcn.00417d5f
lea ecx, [ebp + 0x3c]
call fcn.0041799d
jmp 0x417e96
mov ecx, eax
mov dword [ebp - 0x1c], eax
mov edx, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 2
mov eax, edx
sub eax, ecx
cmp ecx, edx
mov dword [ebp - 0x14], eax
sete byte [ebp - 0xd]
xor eax, eax
cmp ecx, edx
cmove ecx, eax
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x417e2e
mov eax, dword [ebx]
lea edx, [ebp - 0x14]
push edx
push ecx
push dword [ebp - 0x18]
push 0
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x14]
mov edi, eax
cmp edi, 0xea
je 0x417e5c
cmp byte [ebp - 0xd], 0
je 0x417e74
test edi, edi
jne 0x417ed0
test ecx, ecx
je 0x417e78
lea eax, [ebp - 0xd]
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.004075be
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
jmp 0x417e10
test edi, edi
jne 0x417ed0
lea eax, [ebp - 0xd]
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.004075be
mov eax, dword [ebp - 0x24]
mov dword [esi], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 8], eax
lea ecx, [ebp + 0x90]
call fcn.0040524f
lea ecx, [ebp + 0x78]
call fcn.0040524f
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa8]
xor ecx, ebp
call fcn.0042a435
add ebp, 0xac
leave
ret 0xc
push str.query_value
lea ecx, [ebp + 0x60]
call fcn.004033eb
lea ecx, [ebp]
call fcn.004035d6
mov ecx, dword [ebp - 0x28]
push eax
push ebx
lea eax, [ebp + 0x60]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.00417b0d
push eax
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 5
call fcn.0040e7af
push str.System_error
push edi
push dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x38]
call fcn.0041863a
mov esi, eax
push 0x12b
push str.Registry::getValue
push str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u401_683_install_src_windows_common_Registry.cpp
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
call fcn.004036cc
push eax
lea eax, [ebp + 0x18]
push esi
push eax
call fcn.004073ff
add esp, 0xc
lea eax, [ebp + 0x18]
push 0x469fa8
push eax
call fcn.0042d22c
int3
Function at 0x418958
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x10c
mov eax, 0x450f78
call fcn.0042a4a8
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
call fcn.004188a1
mov ebx, eax
test ebx, ebx
je 0x418a45
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push dword [esi + 0x38]
call edi
test eax, eax
jne 0x4189fb
push str.cannot_load_resource
lea ecx, [ebp - 0x28]
call fcn.004033eb
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.004188bf
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 5
call fcn.0040e7af
push str.System_error
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x80]
call fcn.0041863a
mov esi, eax
push 0x46
push str.Resource::getPtr
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x74]
push str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u401_683_install_src_windows_common_Resources.cpp
jmp 0x418aaf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [esi + 0x34], 6
mov edi, eax
jne 0x418a2c
mov edx, dword [esi + 0x18]
mov ecx, edi
and edx, 0xf
jbe 0x418a22
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
sub edx, 1
jne 0x418a14
movzx eax, word [ecx]
lea edi, [ecx + 2]
add eax, eax
jmp 0x418a36
push ebx
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x68]
mov dword [ecx], eax
mov eax, edi
call fcn.0042a457
ret 4
push str.cannot_find_resource
lea ecx, [ebp - 0x28]
call fcn.004033eb
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.004188bf
push eax
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.0040e7af
push str.System_error
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [sym.imp.KERNEL32.dll_FindResourceA]
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x74]
call fcn.0041863a
mov esi, eax
push 0x41
push str.Resource::getPtr
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
push str.c:_jenkins_workspace_8_2_build_windows_x64_cygwin_sans_NAS_jdk8u401_683_install_src_windows_common_Resources.cpp
call fcn.004036cc
push eax
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.004073ff
add esp, 0xc
lea eax, [ebp - 0x4c]
push 0x469fa8
push eax
call fcn.0042d22c
int3
Function at 0x422da0
Capabilities:
Read file on windows

Disassembly:
push 0x2c
mov eax, 0x4529ed
call fcn.0042a475
push 0x458748
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
call fcn.00422570
add esp, 0xc
mov cl, byte [eax + 4]
mov edi, dword [eax]
mov byte [ebp - 0xd], cl
mov byte [eax + 4], bl
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], cl
xor esi, esi
inc esi
mov dword [ebp - 4], esi
cmp byte [ebp - 0x1c], bl
je 0x422dea
push dword [ebp - 0x20]
mov byte [ebp - 0x1c], bl
call fcn.0044d6d1
pop ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0xe]
mov byte [ebp - 4], 2
push eax
push 0x100001
lea ecx, [ebp - 0x24]
call fcn.004075be
push edi
push 0x100000
push esi
mov esi, dword [ebp - 0x24]
push esi
call fcn.0043223b
mov ebx, eax
add esp, 0x10
cmp ebx, 0x100000
ja 0x422ebb
push edi
call fcn.004396ea
pop ecx
test eax, eax
je 0x422e3e
push 0x133
jmp 0x422ec0
push edi
call fcn.004396be
pop ecx
test eax, eax
jne 0x422e50
push 0x13b
jmp 0x422ec0
push ebx
push esi
call fcn.00423631
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xe]
push eax
lea eax, [esi + ebx]
push eax
push esi
call fcn.004091dc
test esi, esi
je 0x422e9e
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x422e95
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404387
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
pop ecx
pop ecx
push eax
push esi
call fcn.0042a1d1
pop ecx
pop ecx
cmp byte [ebp - 0xd], 0
mov dword [ebp - 4], 3
je 0x422eb2
push edi
call fcn.0044d6d1
pop ecx
mov eax, dword [ebp + 8]
call fcn.0042a443
ret
push 0xc8
lea ecx, [ebp - 0x38]
call fcn.00419ef0
push 0x46d018
lea eax, [ebp - 0x38]
push eax
call fcn.0042d22c
int3
Function at 0x42654f
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, 0x7fffffff
push edi
mov edi, dword [esp + 0x24]
test edi, edi
jl 0x4265d3
jg 0x42657c
test esi, esi
je 0x4265d3
test edi, edi
jg 0x42657c
jl 0x426578
cmp esi, ebp
jae 0x42657c
mov eax, esi
jmp 0x42657e
mov eax, ebp
and dword [esp + 0x1c], 0
cmp dword [esp + 0x14], 0xffffffff
je 0x4265c4
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4265ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x4265ce
jmp 0x4265c4
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x4265bf
add ebx, eax
cdq
sub esi, eax
sbb edi, edx
jmp 0x426564
cmp eax, 0xffffffff
jne 0x4265ce
call fcn.00431030
cmp dword [eax], 4
je 0x426564
or eax, 0xffffffff
jmp 0x4265d5
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x42860b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push 4
pop edx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4597b8]
sub edx, 1
jne 0x428612
ret

Function at 0x440cc2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00440b38

Function at 0x447173
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00446cc6

Function at 0x44d7f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44d81d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44d81d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40109d
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push ebx
push esi
push edi
mov ebx, eax
lea eax, [ebp - 0x220]
push eax
push 0x104
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
call fcn.004013e2
lea edi, [ebx + 0x10]
cmp dword [edi], 0
jne 0x4010e6
push 0xffffffffffffffff
push dword [ebx + 0x18]
mov esi, 0x47bd30
push 1
call fcn.0040fa56
jmp 0x401137
lea eax, [ebp - 2]
push eax
mov al, byte [0x4679c4]
lea esi, [ebx + 0x24]
push edi
mov ecx, 0x47bd30
call fcn.0040fee1
test al, al
jne 0x401110
mov dword [0x4679dc], 1
jmp 0x40126b
mov al, byte [0x47bd30]
mov byte [ebx + 0x14], al
mov al, byte [0x47bd31]
mov byte [ebp - 1], al
lea eax, [ebx + 0xc]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov esi, 0x47bd30
call fcn.0040feaf
push dword [edi]
lea eax, [ebx + 0x24]
mov dword [ebp - 8], eax
push eax
mov esi, 0x479e08
mov eax, esi
call fcn.0041fea4
test eax, eax
je 0x401180
mov edi, 0x47bd30
call fcn.0040fbfe
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x4679dc], 1
jmp 0x401278
cmp byte [ebp - 1], 1
jne 0x40123e
cmp byte [0x479bbd], 1
jne 0x40123e
call fcn.0041629f
test al, al
jne 0x40123e
push 0x104
lea eax, [ebp - 0x42c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp byte [ebp - 2], 0
je 0x401214
mov edi, 0x45c5b4
push edi
lea esi, [ebp - 0x14]
call fcn.00416bfe
push dword [ebp - 8]
or eax, 0xffffffff
mov ecx, esi
call fcn.00416ee1
push edi
or eax, 0xffffffff
mov ecx, esi
call fcn.00416ee1
push 1
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x42c]
push eax
push str.runas
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x14]
call fcn.00449078
pop ecx
jmp 0x401261
push 1
lea eax, [ebp - 0x220]
push eax
push dword [0x47bcf8]
lea eax, [ebp - 0x42c]
push eax
push str.runas
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x401261
call fcn.0040127d
call fcn.00401371
cmp byte [ebx + 0x14], 0
jne 0x401258
mov ebx, 0x47a6a8
call fcn.004128c6
push 1
mov ecx, esi
call fcn.004200f5
mov edi, 0x47bd30
call fcn.0040fbfe
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401db3
Capabilities:
Log keystrokes

Disassembly:
mov eax, dword [esi]
push ebp
xor ebp, ebp
cmp eax, ebp
jne 0x401dc3
xor al, al
jmp 0x401e4f
push ebx
push edi
push 1
push eax
push esi
call fcn.00403204
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push ebp
push 0x25
call edi
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
shl eax, 0x10
or eax, 1
cmp dword [esp + 0x10], ebp
push eax
jge 0x401e10
push 0x25
push 0x100
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x25
jmp 0x401e32
push 0x27
push 0x100
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x27
push 0x101
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push dword [esi]
push esi
call fcn.00403204
pop edi
mov al, 1
pop ebx
pop ebp
ret 4

Function at 0x402398
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
test eax, eax
jne 0x4023ab
xor al, al
jmp 0x402435
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0xb0
push eax
call esi
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x4023ce
xor al, al
jmp 0x402434
push edi
push 0
push 0
push 0xe
push dword [ebx]
call esi
mov edi, eax
test edi, edi
je 0x402431
lea eax, [edi + edi + 0x202]
push eax
call fcn.00449170
pop ecx
push eax
mov dword [ebp - 4], eax
lea eax, [edi + 1]
push eax
push 0xd
push dword [ebx]
call esi
test eax, eax
je 0x402428
mov eax, dword [ebp - 8]
cmp eax, edi
mov esi, dword [ebp - 4]
je 0x40240e
and word [esi + eax*2], 0
mov eax, dword [ebp - 0xc]
lea eax, [esi + eax*2]
push eax
push dword [ebp + 8]
call fcn.00416d00
push esi
call fcn.00449078
pop ecx
mov al, 1
jmp 0x402433
push dword [ebp - 4]
call fcn.00449078
pop ecx
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x402ea9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
and dword [ebp - 8], 0
and dword [ebp - 4], 0
cmp byte [esi + 8], 0
push edi
je 0x402ee1
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp dword [esi + 0x30], eax
jne 0x402eda
mov dword [esi + 0x38], edi
xor eax, eax
jmp 0x402ff2
mov dword [ebp - 4], 1
cmp byte [esi + 4], 0
mov edi, dword [sym.imp.USER32.dll_GetClassNameW]
push ebx
mov ebx, 0x100
je 0x402f20
push ebx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call edi
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x80c]
push ecx
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
jne 0x402f1d
mov dword [ebp - 8], 1
inc dword [ebp - 4]
cmp byte [esi + 7], 0
je 0x402f92
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x80c]
push eax
push ebx
call edi
mov edi, dword [esi + 0x18]
lea eax, [ebp - 0x80c]
push eax
call fcn.004493b8
push eax
lea eax, [ebp - 0x80c]
push eax
push edi
call fcn.00449383
add esp, 0x10
test eax, eax
jne 0x402f8d
inc dword [esi + 0x3c]
push dword [esi + 0x3c]
lea eax, [ebp - 0x80c]
push eax
push str._s_u
push eax
call fcn.004493ce
push dword [esi + 0x18]
lea eax, [ebp - 0x80c]
push eax
call fcn.0044925f
add esp, 0x18
test eax, eax
jne 0x402f8d
mov dword [esi + 0x38], ebx
xor eax, eax
jmp 0x402ff1
inc dword [ebp - 4]
jmp 0x402f95
mov ebx, dword [ebp + 8]
cmp byte [esi + 6], 0
je 0x402fc7
push 0x400
lea eax, [ebp - 0x80c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0x24]
lea ecx, [ebp - 0x80c]
push ecx
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
je 0x402f86
inc dword [ebp - 4]
cmp byte [esi + 5], 0
je 0x402fe6
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x402fe3
inc dword [esi + 0x3c]
mov eax, dword [esi + 0x3c]
cmp eax, dword [esi + 0x34]
jne 0x402fe3
inc dword [ebp - 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
je 0x402f86
xor eax, eax
inc eax
pop ebx
pop edi
leave
ret 4

Function at 0x4030fc
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 1
jne 0x403127
lea eax, [ebp + 0xc]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x403142
push 1
jmp 0x403129
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop ebp
ret 8

Function at 0x403204
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 0xc], 1
jne 0x40321c
push dword [esp + 8]
call fcn.004031de
test al, al
jne 0x403238
push 1
jmp 0x40321e
push 0
push 0
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
ret 0xc
Function at 0x4032cf
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x45c6d0
push dword [ebp + 8]
call fcn.00416d00
mov eax, dword [ebx]
test eax, eax
jne 0x4032ea
xor al, al
jmp 0x40333e
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push 0
push 0xe
push eax
call esi
mov edi, eax
test edi, edi
je 0x40333a
lea eax, [edi + edi + 2]
push eax
call fcn.00449170
pop ecx
push eax
inc edi
push edi
push 0xd
push dword [ebx]
mov dword [ebp - 4], eax
call esi
test eax, eax
push dword [ebp - 4]
jg 0x403329
call fcn.00449078
pop ecx
xor al, al
jmp 0x40333c
push dword [ebp + 8]
call fcn.00416d00
push dword [ebp - 4]
call fcn.00449078
pop ecx
mov al, 1
pop edi
pop esi
leave
ret 4
Function at 0x403ab0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
and dword [ebp - 4], 0
and dword [ebp - 8], 0
cmp byte [edi + 0xb], 0
je 0x403ad0
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
cmp byte [edi + 9], 0
push esi
mov esi, 0x400
je 0x403b09
push esi
lea eax, [ebp - 0x818]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameW]
mov eax, dword [edi + 0x48]
lea ecx, [ebp - 0x818]
push ecx
push eax
call fcn.0044925f
test eax, eax
pop ecx
pop ecx
jne 0x403b06
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [edi + 6], 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextW]
je 0x403b9f
push esi
lea eax, [ebp - 0x818]
push eax
push dword [ebp + 8]
call ebx
cmp byte [edi + 0xc], 0
jne 0x403b48
lea eax, [ebp - 0x818]
push eax
call fcn.004493b8
pop ecx
push eax
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
mov eax, dword [edi + 0x10]
dec eax
je 0x403b7e
dec eax
je 0x403b67
dec eax
jne 0x403b9c
push dword [edi + 0x14]
lea eax, [ebp - 0x818]
push eax
call fcn.0044925f
pop ecx
pop ecx
jmp 0x403b95
push dword [edi + 0x14]
lea eax, [ebp - 0x818]
push eax
call fcn.00449508
test eax, eax
pop ecx
pop ecx
je 0x403b9c
jmp 0x403b99
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
push eax
lea eax, [ebp - 0x818]
push eax
push ecx
call fcn.00449383
add esp, 0xc
test eax, eax
jne 0x403b9c
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [edi + 7], 0
je 0x403be1
push esi
lea eax, [ebp - 0x818]
push eax
push dword [ebp + 8]
call ebx
lea eax, [ebp - 0x818]
push eax
lea esi, [ebp - 0x14]
call fcn.00416bfe
lea esi, [edi + 0x2c]
lea eax, [ebp - 0x14]
call fcn.0040f24d
push dword [ebp - 0x14]
mov bl, al
call fcn.00449078
test bl, bl
pop ecx
je 0x403bde
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [edi + 8], 0
pop ebx
je 0x403c04
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x403c01
push dword [ebp + 8]
mov esi, edi
call fcn.00403c4c
test al, al
je 0x403c01
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [edi + 0xa], 0
je 0x403c23
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x403c20
inc dword [edi + 0x58]
mov eax, dword [edi + 0x58]
cmp eax, dword [edi + 0x54]
jne 0x403c20
inc dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x403c44
lea eax, [ebp + 8]
push eax
lea esi, [edi + 0x68]
call fcn.00403d50
inc dword [edi + 0x5c]
xor eax, eax
cmp byte [edi + 4], al
sete al
jmp 0x403c47
xor eax, eax
inc eax
pop esi
leave
ret 4
Function at 0x403c97
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x403cb0
cmp byte [ebx + 5], 1
jne 0x403d2e
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xe
push dword [ebp + 8]
call esi
mov edi, eax
test edi, edi
je 0x403d2e
lea eax, [edi + edi + 2]
push eax
call fcn.00449170
pop ecx
push eax
inc edi
push edi
push 0xd
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
test eax, eax
jg 0x403ce8
xor esi, esi
inc esi
jmp 0x403d18
cmp byte [ebx + 0xc], 0
jne 0x403d01
push dword [ebp - 4]
call fcn.004493b8
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_CharUpperBuffW]
push dword [ebx + 0x20]
push dword [ebp - 4]
call fcn.00449508
test eax, eax
pop ecx
pop ecx
je 0x403d25
mov byte [ebx + 0x60], 1
xor esi, esi
push dword [ebp - 4]
call fcn.00449078
pop ecx
mov eax, esi
jmp 0x403d31
push dword [ebp - 4]
call fcn.00449078
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
Function at 0x405e8e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [esi]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x412c], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x4130], eax
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
lea eax, [esi + 0x4134]
cmp ecx, dword [eax]
jne 0x405ed6
cmp edx, dword [esi + 0x4138]
je 0x405ef2
cmp dword [ebp + 0xc], 1
mov dword [eax], ecx
mov dword [esi + 0x4138], edx
jne 0x405ef2
push edx
push ecx
push esi
push dword [ebp + 8]
push 0xfffffffffffffff5
pop ebx
call fcn.0040446a
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 1
call ebx
mov edi, 0x8000
test di, ax
jne 0x405f1a
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
jne 0x405f1a
and dword [ebp - 8], 0
jmp 0x405f21
mov dword [ebp - 8], 1
push 2
call ebx
test di, ax
jne 0x405f3d
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
jne 0x405f3d
and dword [ebp - 4], 0
jmp 0x405f44
mov dword [ebp - 4], 1
mov edi, dword [ebp - 8]
cmp edi, dword [esi + 0x413c]
je 0x405fa6
cmp dword [ebp + 0xc], 1
jne 0x405fa6
test edi, edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
je 0x405f67
push 0xfffffffffffffff9
jmp 0x405f99
push 0xfffffffffffffff8
pop ebx
call fcn.0040446a
cmp byte [esi + 0x4144], 0
je 0x405f9f
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x1000000
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
je 0x405f97
push 0xfffffffffffffffa
jmp 0x405f99
push 0xfffffffffffffff4
pop ebx
call fcn.0040446a
mov byte [esi + 0x4144], 0
cmp dword [ebp + 0xc], 0
je 0x405fb2
mov dword [esi + 0x413c], edi
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x4140]
pop edi
je 0x405fe4
cmp dword [ebp + 0xc], 1
jne 0x405fe4
test eax, eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
je 0x405fdc
push 0xfffffffffffffff7
pop ebx
call fcn.0040446a
jmp 0x405fea
push 0xfffffffffffffff6
pop ebx
call fcn.0040446a
cmp dword [ebp + 0xc], 0
je 0x405ff3
mov eax, dword [ebp - 4]
mov dword [esi + 0x4140], eax
pop ebx
leave
ret 8