joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412870
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx + 8], 0
je 0x41289a
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebx + 8]
push ecx
call sub.KERNEL32.DLL_TerminateThread
test eax, eax
je 0x41289a
xor edx, edx
xor ecx, ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
pop ebx
pop ebp
ret

Function at 0x412dd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x412df4
cmp dword [ebp + 0x10], 0
jle 0x412df4
test eax, eax
je 0x412df4
test edx, edx
jg 0x412df8
xor ecx, ecx
jmp 0x412dfd
mov ecx, 1
mov byte [ebp - 5], cl
cmp byte [ebp - 5], 0
je 0x412e3a
mov dword [ebp - 4], edx
xor esi, esi
mov ecx, eax
cmp esi, dword [ebp - 4]
jge 0x412e29
mov eax, dword [ebp + 0x1c]
mov bl, byte [ecx]
add eax, esi
inc esi
cdq
idiv dword [ebp + 0x10]
xor bl, byte [edi + edx]
mov byte [ecx], bl
inc ecx
cmp esi, dword [ebp - 4]
jl 0x412e12
cmp dword [ebp + 0x20], 0
je 0x412e3a
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
add ecx, dword [ebp - 4]
mov dword [eax], ecx
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x413d28
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 3
push closesocket
mov eax, dword [ebp + 0xc]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test ebx, ebx
je 0x413d86
lea eax, [ebp - 0xc]
push eax
push ebx
call sub.KERNEL32.DLL_GetFileSize
push eax
mov edx, dword [ebp - 0xc]
push edx
push esi
call fcn.00413004
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x413d94
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00413b80
add esp, 8
mov dword [ebp - 4], eax
xor esi, esi
cmp esi, dword [ebp - 4]
jge 0x413deb
lea eax, [esi + 1]
push eax
mov edx, dword [ebp + 0xc]
push edx
push edi
call fcn.00413bd0
add esp, 0xc
mov ebx, eax
push ebx
push edi
call fcn.00413ca8
add esp, 8
test al, al
jne 0x413dde
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryA
push ebx
call fcn.0049b6d4
pop ecx
inc esi
cmp esi, dword [ebp - 4]
jl 0x413db5
push 0
mov eax, dword [ebp + 0xc]
push eax
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x413e04
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00413b80
add esp, 8
mov dword [ebp - 4], eax
xor esi, esi
cmp esi, dword [ebp - 4]
jge 0x413e5b
lea eax, [esi + 1]
push eax
mov edx, dword [ebp + 0xc]
push edx
push edi
call fcn.00413bd0
add esp, 0xc
mov ebx, eax
push ebx
push edi
call fcn.00413ca8
add esp, 8
test al, al
jne 0x413e4e
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryA
push ebx
call fcn.0049b6d4
pop ecx
inc esi
cmp esi, dword [ebp - 4]
jl 0x413e25
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call sub.KERNEL32.DLL_CreateFileA
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x413e88
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x413e90
Capabilities:
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
call sub.KERNEL32.DLL_GetFileAttributesA
mov dword [ebp - 4], eax
push 0x20
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push edi
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
test esi, esi
setne bl
and ebx, 1
test bl, bl
je 0x413f17
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
push eax
push edx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push eax
call fcn.0041303c
add esp, 0x14
lea edx, [ebp - 0xc]
push 0
push edx
mov ecx, dword [ebp - 0x10]
push ecx
push esi
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp + 0x1c]
push edx
mov ecx, dword [ebp + 0x18]
push ecx
push esi
call sub.KERNEL32.DLL_WriteFile
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413f2c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 3
push closesocket
mov eax, dword [ebp + 0xc]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
test esi, esi
setne bl
and ebx, 1
test bl, bl
je 0x413fee
lea eax, [ebp - 8]
push eax
push esi
call sub.KERNEL32.DLL_GetFileSize
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
push ecx
push edi
call fcn.00413004
add esp, 0xc
push eax
mov eax, dword [ebp + 0x10]
pop edx
xchg edx, eax
sub eax, edx
cmp eax, dword [ebp + 0x18]
jl 0x413f93
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x20]
mov dword [edx], eax
mov ecx, dword [ebp + 0x20]
mov eax, dword [ecx]
push eax
call fcn.0049b898
pop ecx
mov edx, dword [ebp + 0x1c]
mov dword [edx], eax
lea ecx, [ebp - 0xc]
push ecx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.0041303c
add esp, 0x14
lea ecx, [ebp - 8]
push 0
push ecx
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 4]
push edx
mov ecx, dword [ebp + 0x20]
mov eax, dword [ecx]
push eax
mov edx, dword [ebp + 0x1c]
mov ecx, dword [edx]
push ecx
push esi
call sub.KERNEL32.DLL_ReadFile
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415670
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
lea ebx, [ebp + 8]
mov eax, 0x4dff70
call fcn.0049c448
mov word [ebp - 0x20], 8
push 8
call fcn.0049b6f8
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4156b4
mov word [ebp - 0x20], 0x20
mov edx, dword [ebp - 4]
push edx
call fcn.00412da8
pop ecx
mov word [ebp - 0x20], 0x14
mov ecx, dword [ebp - 4]
jmp 0x4156b7
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [eax], ecx
push 8
call fcn.0049b6f8
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x4156e5
mov word [ebp - 0x20], 0x38
mov edx, dword [ebp - 8]
push edx
call fcn.004a8fac
pop ecx
mov word [ebp - 0x20], 0x2c
mov ecx, dword [ebp - 8]
jmp 0x4156e8
mov ecx, dword [ebp - 8]
mov eax, dword [ebx]
mov dword [eax + 4], ecx
push 0xc
call fcn.0049b6f8
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x415717
mov word [ebp - 0x20], 0x50
mov edx, dword [ebp - 0xc]
push edx
call fcn.004129a8
pop ecx
mov word [ebp - 0x20], 0x44
mov ecx, dword [ebp - 0xc]
jmp 0x41571a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebx]
mov dword [eax + 8], ecx
mov edx, dword [ebx]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ebx]
mov ecx, dword [ebp + 0x10]
mov dword [edx + 0x10], ecx
mov eax, dword [ebx]
xor edx, edx
mov dword [eax + 0x20], edx
mov ecx, dword [ebx]
xor eax, eax
mov dword [ecx + 0x24], eax
mov edx, dword [ebx]
mov dword [edx + 0x28], 0xffffffff
mov ecx, dword [ebx]
mov dword [ecx + 0x2c], 0xffffffff
mov eax, dword [ebx]
mov dword [eax + 0x30], 0xffffffff
mov edx, dword [ebx]
mov dword [edx + 0x34], 0xffffffff
mov ecx, dword [ebx]
mov dword [ecx + 0x38], 0xffffffff
mov eax, dword [ebx]
mov dword [eax + 0x3c], 0xffffffff
mov edx, dword [ebx]
mov dword [edx + 0x40], 0xffffffff
mov ecx, dword [ebx]
mov dword [ecx + 0x44], 0xffffffff
mov eax, dword [ebx]
mov dword [eax + 0x48], 0xffffffff
mov edx, dword [ebx]
mov dword [edx + 0x4c], 0xffffffff
mov ecx, dword [ebx]
mov dword [ecx + 0x50], 0xffffffff
mov eax, dword [ebx]
mov dword [eax + 0x54], 0xffffffff
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
mov eax, dword [ebx]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416e90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov eax, 0x4e0254
call fcn.0049c448
mov word [ebp - 0x20], 8
push 8
call fcn.0049b6f8
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x416ed0
mov word [ebp - 0x20], 0x20
mov edx, dword [ebp - 4]
push edx
call fcn.00412da8
pop ecx
mov word [ebp - 0x20], 0x14
mov ecx, dword [ebp - 4]
jmp 0x416ed3
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
push 0x18
call fcn.0049b6f8
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x416f02
mov word [ebp - 0x20], 0x38
mov edx, dword [ebp - 8]
push edx
call fcn.00416dac
pop ecx
mov word [ebp - 0x20], 0x2c
mov ecx, dword [ebp - 8]
jmp 0x416f05
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
push 0x18
call fcn.0049b6f8
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x416f35
mov word [ebp - 0x20], 0x50
mov edx, dword [ebp - 0xc]
push edx
call fcn.00416dac
pop ecx
mov word [ebp - 0x20], 0x44
mov ecx, dword [ebp - 0xc]
jmp 0x416f38
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [edx + 0xc], eax
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 0x10], ecx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x30], edx
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x34], eax
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

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

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

Function at 0x428cfc
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.0048c44c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x428d4b
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.0048c67c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42ef08
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 0x42ef0e
ret

Function at 0x4314a0
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 0x4314f1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4314d8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4314c8
jmp 0x4314f1
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 0x4314d9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43a0d8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4ee928
cmp dword [edi], 0
jne 0x43a154
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4ee924]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4e0810
mov ecx, 2
call fcn.0048b3c0
mov edx, 0x43a0b0
lea eax, [esi + 5]
call fcn.0043a0d0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0043a0d0
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 0x43a129
mov dword [0x4ee924], 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 0x43a270
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43a2c0]
test si, 4
je 0x43a284
or bl, 1
test si, 8
je 0x43a28e
or bl, 4
test si, 1
je 0x43a298
or bl, 8
test si, 2
je 0x43a2a2
or bl, 0x10
test si, 0x10
je 0x43a2ac
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x43a2bb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43a2c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43a2fc]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x43a2dd
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x43a2ec
or bl, 4
test esi, 0x20000000
je 0x43a2f7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44084c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44085e
add esp, 0xfffffff0
call fcn.0048bcdc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0047e5a0
mov eax, ebx
call fcn.00440b98
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x4761bc]
call fcn.0048b96c
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x4761bc]
call fcn.0048b96c
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x4761bc]
call fcn.0048b96c
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x4761bc]
call fcn.0048b96c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4761bc]
call fcn.0048b96c
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, 0x43d33c
push eax
push 0
push 0
mov eax, dword [0x4ee600]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42e430]
call fcn.0042f968
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x42e430]
call fcn.0042f968
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x42e430]
call fcn.0042f968
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.00440f78
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x440e94
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x440e94
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x440e94
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44096d
call fcn.0048bd34
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x440c78
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 0x440e23
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x440e04
mov dl, 1
mov eax, dword [0x476670]
call fcn.0048b96c
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.0048c44c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x440df3
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.00459714
test al, al
je 0x440de6
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, 0x440e34
lea eax, [ebp - 0x254]
call fcn.00485808
push eax
push reloc.WS2_32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x440de6
xor eax, eax
push ebp
push 0x440ddf
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 0x440e6c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x440dc8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.0048c67c
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 0x440dc8
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.0048c67c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440de6
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x440ce9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00479ce0
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 0x440e2a
lea eax, [ebp - 0x260]
call fcn.0048c44c
ret

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

Disassembly:
push ecx
mov eax, dword [0x4ee918]
cmp byte [eax + 0x95], 0
jne 0x4416e1
cmp dword [0x4ee934], 0
jne 0x4416a2
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x44162c
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x4ee934], eax
cmp dword [0x4ee930], 0
jne 0x4416bd
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x4ee930], eax
cmp dword [0x4ee938], 0
jne 0x4416e1
push esp
push 0
push 0
push 0x4415d0
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x4ee938], eax
pop edx
ret
Function at 0x4417d8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4417ef
add esp, 0xfffffff0
call fcn.0048bcdc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0047e5a0
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x4761bc]
call fcn.0048b96c
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x4761bc]
call fcn.0048b96c
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 [0x42edc0]
call fcn.0043653c
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x441964
mov eax, dword [0x4ee7a0]
mov eax, dword [eax]
push eax
call sub.USER32.DLL_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0043690c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x443388
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4ee7a0]
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.00488044
test eax, eax
je 0x4418e2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004851a8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0048806c
test eax, eax
je 0x4418f6
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.0048c67c
mov eax, dword [0x4ee7a4]
cmp byte [eax], 0
jne 0x441927
mov eax, ebx
call fcn.00441a50
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 0x441959
call fcn.0048bd34
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x441cc0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4ee918]
cmp dword [eax + 0x24], 0
je 0x441d63
cmp dword [ebx + 0x84], 0
jne 0x441d5d
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x441c50
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x441d5d
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 0x441d26
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x441d5d
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.00477c54
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x441d35
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x442770
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 0x4427a5
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.0048c534
jmp 0x4427af
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.0048c4a0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4436fc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x443734
mov eax, esi
call fcn.00455434
test al, al
je 0x443734
mov eax, dword [ebx + 0x74]
call fcn.00455138
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x443734
push 0
mov eax, dword [ebx + 0x74]
call fcn.00455138
push eax
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
ret

Function at 0x44cd74
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 [0x4ee9b4], 0
sete dl
or al, dl
jne 0x44ceb4
mov eax, dword [0x4ee9b8]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4ee9b4]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x44ce83
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x4ee9b4]
call fcn.00477c54
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x44ce7b
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x44ce7b
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x44ce7b
mov eax, dword [ebp - 0x14]
call fcn.00455138
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x44ce7b
push ebp
call fcn.0044cd30
pop ecx
test al, al
jne 0x44ce7b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x44ce37
mov eax, dword [ebp - 0x14]
call fcn.00453ac4
dec eax
jle 0x44ce7b
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.0048bb78
cmp byte [ebp - 1], 0
je 0x44ce7b
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.USER32.DLL_PtInRect
test eax, eax
je 0x44ce7b
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4ee9b8]
call fcn.0044c57c
inc edi
dec esi
jne 0x44cdca
mov eax, dword [0x4ee9b8]
cmp dword [eax + 8], 0
jle 0x44ce9b
mov eax, dword [0x4ee9b8]
call fcn.0044c60c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x44ceb4
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0044cb98
pop ecx
test al, al
jne 0x44ceb4
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