joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402964
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 0x402993
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403be0
jmp 0x4029b1
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004028f8
mov edi, eax
test ebx, ebx
je 0x4029b1
cmp dword [esi], 0
je 0x4029b1
dec ebx
jmp 0x40299a
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c34
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x402de4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x484000]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402e7c
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402e5c
xor eax, eax
push ebp
push 0x402e55
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 0x402e98
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e5c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x484000]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x484000], ax
mov esp, ebp
pop ebp
ret

Function at 0x403ab0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402744
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x487045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403a78
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x404b4c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404ce8
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x404bfc
xor eax, eax
push ebp
push 0x404bf5
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]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x404bde
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404d08
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404bfc
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpy
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404cdd
cmp byte [ebp - 0xd], 0
jne 0x404c3e
cmp byte [ebp - 0x12], 0
je 0x404cdd
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlen
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404c57
dec ebx
cmp byte [ebx], 0x2e
je 0x404c66
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404c56
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404cdd
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404c93
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpy
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404cdd
cmp byte [ebp - 0xd], 0
je 0x404cdd
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpy
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404cdd
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpy
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 0x405234
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x405290
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.KERNEL32.DLL_ReadFile
dec eax
pop eax
pop ecx
jne 0x405282
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x405277
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x405272
mov eax, 0x64
jmp 0x405287
call sub.KERNEL32.DLL_GetLastError
call fcn.00402828
xor eax, eax
jmp 0x405272
mov eax, 0x67
jmp 0x405287
Function at 0x4052d4
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x405317
push 0
push dword [ebx]
call sub.KERNEL32.DLL_GetFileSize
cmp eax, 0xffffffff
je 0x40530e
push eax
push 1
push 0
push 0
push dword [ebx]
call sub.KERNEL32.DLL_SetFilePointer
cmp eax, 0xffffffff
je 0x40530e
pop edx
cmp eax, edx
setae al
pop ebx
ret
call fcn.00402838
mov al, 1
jmp 0x40530c
mov eax, 0x67
call fcn.00402828
mov al, 0xff
jmp 0x40530c
Function at 0x407b94
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x407dd8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00403b94
cmp dword [0x4840c0], 1
je 0x407c15
mov dword [ebp - 0x14], 0x400
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
mov eax, dword [ebp - 4]
call fcn.00403f3c
push eax
call sub.MPR.DLL_WNetGetUniversalNameA
test eax, eax
jne 0x407dba
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x420]
mov edx, dword [edx]
call fcn.00403cb0
jmp 0x407dba
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.00402a38
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0x41
jb 0x407dba
cmp byte [ebp - 0x15], 0x5a
ja 0x407dba
mov eax, dword [ebp - 4]
call fcn.00403d78
cmp eax, 3
jl 0x407dba
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x3a
jne 0x407dba
mov eax, dword [ebp - 4]
cmp byte [eax + 2], 0x5c
jne 0x407dba
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 1
push 1
call sub.MPR.DLL_WNetOpenEnumA
test eax, eax
jne 0x407dba
xor edx, edx
push ebp
push 0x407db3
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x10], 0x640
mov eax, dword [ebp - 0x10]
call fcn.00402744
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x407d95
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.MPR.DLL_WNetEnumResourceA
cmp eax, 0xea
jne 0x407ce4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x10]
call fcn.00402774
jmp 0x407ca8
test eax, eax
je 0x407cf7
call fcn.004035f4
call fcn.004035f4
jmp 0x407dba
mov esi, dword [ebp - 0xc]
dec esi
test esi, esi
jl 0x407ca8
inc esi
xor edi, edi
mov eax, edi
shl eax, 2
mov edx, dword [ebp - 0x20]
lea ebx, [edx + eax*8]
cmp dword [ebx + 0x10], 0
je 0x407d73
mov eax, dword [ebx + 0x10]
mov al, byte [eax]
call fcn.00402a38
cmp al, byte [ebp - 0x15]
jne 0x407d73
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp - 4]
call fcn.00403d78
mov ecx, eax
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.00403f7c
mov eax, dword [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
mov edx, dword [ebx + 0x14]
call fcn.00403cb0
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 8]
pop ecx
call fcn.00403dc4
call fcn.004035f4
call fcn.004035f4
jmp 0x407dba
inc edi
dec esi
jne 0x407d02
jmp 0x407ca8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407ddf
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.00403b20
ret
Function at 0x409cf8
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
test eax, eax
jle 0x409d31
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403be0
jmp 0x409d3a
mov eax, ebx
mov edx, esi
call fcn.00403b94
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409d44
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA_1
test eax, eax
jle 0x409d65
mov al, byte [esp]
jmp 0x409d67
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x414dcc
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
dec eax
jne 0x414ddf
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x416948
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 0x41694e
ret

Function at 0x418e3c
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 0x418e8d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x418e74
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x418e64
jmp 0x418e8d
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 0x418e75
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423dc8
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 + 0x114], 0
je 0x423de4
cmp dword [esi + 4], 0
je 0x423e0b
mov eax, ebx
call fcn.00422ffc
test eax, eax
jne 0x423dfd
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x423f1b
mov edx, esi
mov eax, ebx
call fcn.00423a6c
jmp 0x423f1b
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
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 0x423f14
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00425400
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.00421f04
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00423dc8
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 + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
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.00425400
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423f1b
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 0x42817c
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.00403afc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4281dd
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x4281dd
cmp byte [ebp - 0x102], 0
je 0x4281dd
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.00403d28
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42956c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x28], 0
je 0x4295ed
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x42959e
add word [ebp - 6], 0x2000
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4295b0
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x4295bc
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.004293f8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4295e1
push ebp
mov eax, dword [ebp - 4]
call fcn.004294dc
pop ecx
mov ebx, eax
cmp bl, 2
je 0x4295bc
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42b530
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x487728
cmp dword [edi], 0
jne 0x42b5ac
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x487724]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x484784
mov ecx, 2
call fcn.004028b8
mov edx, 0x42b508
lea eax, [esi + 5]
call fcn.0042b528
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042b528
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 0x42b581
mov dword [0x487724], 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 0x42b6d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x42b720]
test si, 4
je 0x42b6e4
or bl, 1
test si, 8
je 0x42b6ee
or bl, 4
test si, 1
je 0x42b6f8
or bl, 8
test si, 2
je 0x42b702
or bl, 0x10
test si, 0x10
je 0x42b70c
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x42b71b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x42b724
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x42b75c]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x42b73d
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x42b74c
or bl, 4
test esi, 0x20000000
je 0x42b757
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x42fb6c
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 0x42fd11
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40d8ec]
call fcn.00402f3c
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403afc
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x42fce7
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.004278e4
test al, al
je 0x42fcda
lea eax, [ebp - 0xc]
push eax
push 0xf003f
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, 0x42fd20
lea eax, [ebp - 0x254]
call fcn.004084f8
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA_1
test eax, eax
jne 0x42fcda
xor eax, eax
push ebp
push 0x42fcd3
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 0x42fd58
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA_1
test eax, eax
jne 0x42fcbc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00403d28
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 0x42fcbc
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00403d28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42fcda
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x42fbdd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00410d9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42fd18
lea eax, [ebp - 0x260]
call fcn.00403afc
ret

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

Disassembly:
push ecx
mov eax, dword [0x4876fc]
cmp byte [eax + 0x85], 0
jne 0x42fffd
cmp dword [0x487734], 0
jne 0x42ffbe
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x42ff48
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x487734], eax
cmp dword [0x487730], 0
jne 0x42ffd9
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x487730], eax
cmp dword [0x487738], 0
jne 0x42fffd
push esp
push 0
push 0
push 0x42feec
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread_1
mov dword [0x487738], eax
pop edx
ret
Function at 0x4300ec
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x430103
add esp, 0xfffffff0
call fcn.004031e0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00414e48
mov dl, 1
mov eax, dword [0x40d4d4]
call fcn.00402f3c
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, dword [0x40d4d4]
call fcn.00402f3c
mov dword [ebx + 0x88], eax
xor eax, eax
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x40], 0x80000018
mov dword [ebx + 0x58], 0x1f4
mov dword [ebx + 0x5c], 0x32
mov dword [ebx + 0x60], 0x9c4
mov byte [ebx + 0x68], 0
mov byte [ebx + 0x7d], 1
mov dl, 1
mov eax, dword [0x416818]
call fcn.0041df44
mov esi, eax
mov dword [ebx + 0x78], esi
push 0x43025c
mov eax, dword [0x486488]
mov eax, dword [eax]
push eax
call sub.USER32.DLL_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041e2dc
mov eax, dword [ebx + 0x78]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x4318d0
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x486488]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA_2
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.0040b414
test eax, eax
je 0x4301e4
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00407ed8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040b43c
test eax, eax
je 0x4301f8
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.USER32.DLL_CharLowerA
lea eax, [ebx + 0x6c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.00403d28
mov eax, dword [0x486364]
cmp byte [eax], 0
jne 0x430229
mov eax, ebx
call fcn.00430340
mov byte [ebx + 0x3d], 1
mov byte [ebx + 0x3e], 1
mov byte [ebx + 0x3f], 1
mov byte [ebx + 0x7e], 1
xor eax, eax
mov dword [ebx + 0x80], eax
cmp byte [ebp - 1], 0
je 0x430251
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430594
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4876fc]
cmp dword [eax + 0x24], 0
je 0x430624
cmp dword [ebx + 0x74], 0
jne 0x430621
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x430528
call sub.USER32.DLL_EnumWindows
mov eax, dword [ebx + 0x70]
cmp dword [eax + 8], 0
je 0x430621
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 0x4305f0
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x70]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x430621
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x70]
call fcn.0040ea0c
push eax
call sub.USER32.DLL_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4305fc
inc dword [ebx + 0x74]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x430f0c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x84], 0
je 0x430f41
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.00403be0
jmp 0x430f4b
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.00403b94
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x431b54
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x64]
test esi, esi
je 0x431b8c
mov eax, esi
call fcn.00425598
test al, al
je 0x431b8c
mov eax, dword [ebx + 0x64]
call fcn.00425400
push eax
call sub.USER32.DLL_IsWindowVisible
test eax, eax
je 0x431b8c
push 0
mov eax, dword [ebx + 0x64]
call fcn.00425400
push eax
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
ret

Function at 0x446f14
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
cmp dword [0x487770], 0
jne 0x446fad
lea eax, [ebp - 4]
push eax
push 0x446fb8
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x446fad
mov eax, ebx
call fcn.00402744
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x446fa6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0x446fb8
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x446f90
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x446fc8
mov eax, dword [ebp - 8]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x446f90
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [0x487770], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446fad
mov eax, dword [ebp - 8]
call fcn.0040275c
ret
mov eax, dword [0x487770]
pop ebx
mov esp, ebp
pop ebp
ret