joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [esp], ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
test eax, eax
jg 0x407f9f
jl 0x407f92
test esi, esi
jne 0x407f9f
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ecx + 0x38], 0
mov edi, esi
je 0x408066
mov dword [esp + 0x10], eax
nop
call fcn.004093c0
mov ecx, edx
mov esi, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jl 0x408008
jg 0x407fc7
test esi, esi
je 0x408008
mov eax, dword [esp + 0x10]
cmp eax, ecx
jg 0x407fdb
jl 0x407fd5
cmp edi, esi
jae 0x407fdb
mov esi, edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
push esi
mov eax, dword [eax + 0x1c]
push dword [eax]
push ebx
call fcn.0040c230
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [esp + 0x10]
sub edi, esi
sbb edx, dword [esp + 0x14]
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
jmp 0x408039
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x429180]
mov ecx, dword [esp + 0xc]
call esi
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x408051
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov byte [ebx], al
mov esi, 1
adc edx, 0xffffffff
add ebx, esi
mov dword [esp + 0x10], edx
test edx, edx
jg 0x407fb0
jl 0x408051
test edi, edi
jne 0x407fb0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
sub eax, edi
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4080b3
mov eax, dword [ecx + 0x2c]
lea edx, [ecx + 0x2c]
mov dword [esp + 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4080ba
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push dword [esp + 0x18]
push ebx
call fcn.0040c230
mov eax, dword [esp + 0x1c]
add ebx, esi
mov ecx, dword [esp + 0x18]
sub edi, esi
add esp, 0xc
mov eax, dword [eax]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
jmp 0x4080ba
lea eax, [ecx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ecx + 0x4c], 0
je 0x40813f
mov edx, dword [ecx + 0xc]
lea eax, [ecx + 0x3c]
mov dword [esp + 0x14], edx
cmp dword [edx], eax
jne 0x4080f1
mov edx, dword [ecx + 0x54]
mov eax, dword [esp + 0x14]
mov ecx, dword [ecx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [eax], edx
cmp edi, 0xfff
jbe 0x408126
nop dword [eax]
push dword [ecx + 0x4c]
push 0xfff
push 1
push ebx
call fcn.00410cf7
add esp, 0x10
add ebx, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40813f
mov ecx, dword [esp + 0xc]
cmp edi, eax
ja 0x408100
test edi, edi
je 0x40813f
mov eax, dword [esp + 0xc]
push dword [eax + 0x4c]
push edi
push 1
push ebx
call fcn.00410cf7
add esp, 0x10
sub edi, eax
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4084f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x439050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x408520
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ad3a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x40855c
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [esi + ecx]
cmp ecx, eax
jae 0x40855c
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ad3a
mov esp, ebp
pop ebp
ret 4
cmp dword [edi + 0x4c], 0
je 0x408654
mov esi, dword [edi + 0xc]
lea eax, [edi + 0x3c]
cmp dword [esi], eax
jne 0x408584
mov edx, dword [edi + 0x54]
mov ecx, dword [edi + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [edi + 0x1c]
mov dword [eax], ecx
mov eax, dword [edi + 0x2c]
mov dword [eax], edx
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x4085ba
push dword [edi + 0x4c]
movsx eax, bl
push eax
call fcn.00412777
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop esi
pop edi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ad3a
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x429180]
mov ecx, dword [ebp - 0x34]
call esi
sub eax, 0
je 0x408627
sub eax, 1
je 0x408627
sub eax, 2
jne 0x408654
push dword [edi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.00412777
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop esi
pop edi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ad3a
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x408644
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.004103a4
add esp, 0x10
cmp esi, eax
jne 0x408654
lea eax, [ebp - 0x25]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x408547
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0040ad3a
mov esp, ebp
pop ebp
ret 4
Function at 0x4091a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x439050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x409278
cmp byte [ebx + 0x3d], 0
je 0x409278
mov eax, dword [ebx]
push esi
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x429180]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
je 0x409266
push edi
mov edi, dword [ebx + 0x38]
mov eax, dword [edi]
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x40]
push eax
call dword [0x429180]
mov ecx, edi
call esi
pop edi
sub eax, 0
je 0x40922e
sub eax, 1
je 0x409232
sub eax, 2
jne 0x409266
mov byte [ebx + 0x3d], al
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ad3a
mov esp, ebp
pop ebp
ret
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x40924f
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.004103a4
add esp, 0x10
cmp esi, eax
jne 0x409266
cmp byte [ebx + 0x3d], 0
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ad3a
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ad3a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop ebx
call fcn.0040ad3a
mov esp, ebp
pop ebp
ret

Function at 0x40b81d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b85c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b85c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b85c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40b85c
cmp dword [ecx + 0x74], 0xe
jbe 0x40b85c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41b576
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b3ec

Function at 0x421343
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00420fc0

Function at 0x427a50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x427a7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x427a7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x4693ab]
shl eax, 2
mov dword [0x4693af], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0045d440
pop edx
call fcn.0045d3a4
call fcn.0045d480
push 0
call fcn.0045e6a4
pop ecx
push 0x469354
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4693b3], eax
push 0
jmp fcn.00463770

Function at 0x40554c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00456f34
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
pop ebx
ret

Function at 0x40aa68
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.00456af0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x40aab7
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.00456d20
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x410c74
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 0x410c7a
ret

Function at 0x41311c
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 0x41316d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x413154
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x413144
jmp 0x41316d
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 0x413155
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41bd34
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46ecd0
cmp dword [edi], 0
jne 0x41bdb0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x46eccc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46a1ec
mov ecx, 2
call fcn.004559c8
mov edx, 0x41bd0c
lea eax, [esi + 5]
call fcn.0041bd2c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041bd2c
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 0x41bd85
mov dword [0x46eccc], 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 0x41becc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41bf1c]
test si, 4
je 0x41bee0
or bl, 1
test si, 8
je 0x41beea
or bl, 4
test si, 1
je 0x41bef4
or bl, 8
test si, 2
je 0x41befe
or bl, 0x10
test si, 0x10
je 0x41bf08
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x41bf17
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x41bf20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41bf58]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x41bf39
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x41bf48
or bl, 4
test esi, 0x20000000
je 0x41bf53
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4224a8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4224ba
add esp, 0xfffffff0
call fcn.00456194
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0044a8e0
mov eax, ebx
call fcn.004227f4
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x443d0c]
call fcn.00455e64
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x443d0c]
call fcn.00455e64
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x443d0c]
call fcn.00455e64
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x443d0c]
call fcn.00455e64
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x443d0c]
call fcn.00455e64
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, 0x41ef98
push eax
push 0
push 0
mov eax, dword [0x46ea1c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41019c]
call fcn.004116d4
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x41019c]
call fcn.004116d4
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x41019c]
call fcn.004116d4
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.00422bd4
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x422af0
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x422af0
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x422af0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4225c9
call fcn.004561ec
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4228d4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x422a7f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x422a60
mov dl, 1
mov eax, dword [0x444110]
call fcn.00455e64
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00456af0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x422a4f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004392ac
test al, al
je 0x422a42
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x422a90
lea eax, [ebp - 0x254]
call fcn.00451244
push eax
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x422a42
xor eax, eax
push ebp
push 0x422a3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x422ac8
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x422a24
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00456d20
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x422a24
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00456d20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422a42
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x422945
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0044752c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422a86
lea eax, [ebp - 0x260]
call fcn.00456af0
ret

Function at 0x4232cc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x46ecc0]
cmp byte [eax + 0x95], 0
jne 0x42333d
cmp dword [0x46ecdc], 0
jne 0x4232fe
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x423288
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x46ecdc], eax
cmp dword [0x46ecd8], 0
jne 0x423319
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x46ecd8], eax
cmp dword [0x46ece0], 0
jne 0x42333d
push esp
push 0
push 0
push 0x42322c
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x46ece0], eax
pop edx
ret
Function at 0x423434
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x42344b
add esp, 0xfffffff0
call fcn.00456194
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0044a8e0
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x443d0c]
call fcn.00455e64
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x443d0c]
call fcn.00455e64
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x410b2c]
call fcn.00418198
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x4235c0
mov eax, dword [0x46ebac]
mov eax, dword [eax]
push eax
call sub.USER32.DLL_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00418568
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x424f4c
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46ebac]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.USER32.DLL_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00452674
test eax, eax
je 0x42353e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00450be4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0045269c
test eax, eax
je 0x423552
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.USER32.DLL_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.00456d20
mov eax, dword [0x46ebb4]
cmp byte [eax], 0
jne 0x423583
mov eax, ebx
call fcn.004236ac
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4235b5
call fcn.004561ec
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42391c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46ecc0]
cmp dword [eax + 0x24], 0
je 0x4239bf
cmp dword [ebx + 0x84], 0
jne 0x4239b9
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4238ac
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x4239b9
push 3
mov eax, dword [esp + 4]
push eax
call sub.USER32.DLL_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_GetWindowLongA
test al, 8
je 0x423982
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4239b9
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.00445508
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x423991
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x4243cc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x424401
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.USER32.DLL_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00456bd8
jmp 0x42440b
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00456b44
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4252c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x4252f8
mov eax, esi
call fcn.00435020
test al, al
je 0x4252f8
mov eax, dword [ebx + 0x74]
call fcn.00434d24
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x4252f8
push 0
mov eax, dword [ebx + 0x74]
call fcn.00434d24
push eax
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
ret

Function at 0x42c968
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 [0x46ed5c], 0
sete dl
or al, dl
jne 0x42caa8
mov eax, dword [0x46ed60]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x46ed5c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x42ca77
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x46ed5c]
call fcn.00445508
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42ca6f
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x42ca6f
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x42ca6f
mov eax, dword [ebp - 0x14]
call fcn.00434d24
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x42ca6f
push ebp
call fcn.0042c924
pop ecx
test al, al
jne 0x42ca6f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x42ca2b
mov eax, dword [ebp - 0x14]
call fcn.004336b0
dec eax
jle 0x42ca6f
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.00456070
cmp byte [ebp - 1], 0
je 0x42ca6f
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x42ca6f
mov edx, dword [ebp - 0x14]
mov eax, dword [0x46ed60]
call fcn.0042c170
inc edi
dec esi
jne 0x42c9be
mov eax, dword [0x46ed60]
cmp dword [eax + 8], 0
jle 0x42ca8f
mov eax, dword [0x46ed60]
call fcn.0042c200
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42caa8
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042c78c
pop ecx
test al, al
jne 0x42caa8
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