joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dc80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call edi
mov ebp, eax
mov dword [esp + 0x10], 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
sub eax, ebp
cmp eax, 0x3e8
jae 0x40dcd5
lea ebx, [ebx]
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommMask]
test byte [esp + 0x10], 1
jne 0x40dcd5
push 5
call ebx
call edi
sub eax, ebp
cmp eax, 0x3e8
jb 0x40dcb0
mov edx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
call fcn.0040e1e0
test eax, eax
je 0x40dcfc
cmp byte [esp + 0x20], 0
je 0x40dcf2
push 5
call ebx
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0xc

Function at 0x40e1e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x14]
push ebx
push ebp
push edi
lea edi, [esi + 0x2c]
push edi
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi + 0xc]
push ecx
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40e24d
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x3e5
jne 0x40e277
mov edx, dword [esi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 1
lea ecx, [esp + 0x24]
push ecx
push edi
push edx
call ebx
test eax, eax
jne 0x40e24d
call ebp
mov ecx, dword [esi + 0xc]
cmp eax, 0x3e4
jne 0x40e25b
push 1
lea eax, [esp + 0x24]
push eax
push edi
push ecx
call ebx
test eax, eax
je 0x40e232
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4
call ebp
cmp eax, 5
je 0x40e26c
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4
Function at 0x40e2a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
mov edx, dword [esi + 0xc]
push ebx
push ebp
push edi
mov ebx, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
xor ebp, ebp
push edx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_ClearCommError]
cmp ebx, ebp
jne 0x40e2d7
mov eax, dword [esi + 0x10]
mov ebx, dword [esp + 0x18]
cmp eax, ebx
jae 0x40e2d7
mov ebx, eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0xc]
lea edi, [esi + 0x18]
push edi
lea eax, [esp + 0x10]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0xc], ebp
jne 0x40e380
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x3e5
jne 0x40e365
mov ecx, dword [esi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 1
lea eax, [esp + 0x10]
push eax
push edi
push ecx
call ebx
test eax, eax
jne 0x40e380
call ebp
cmp eax, 0x3e4
mov eax, dword [esi + 0xc]
jne 0x40e349
push 1
lea edx, [esp + 0x10]
push edx
push edi
push eax
call ebx
test eax, eax
je 0x40e321
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
add esp, 0x14
ret 4
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
call ebp
cmp eax, 5
je 0x40e35a
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
add esp, 0x14
ret 4

Function at 0x40fc4b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x40fc93
call fcn.00419999
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40fc93
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x40fcd6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x40fcbf
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40fcbf
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40fcd3
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x411342
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x411366
cmp dword [edi + 0x54], 0
jne 0x411366
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00419999
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00411303
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x418440
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x418487
call fcn.00419999
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x418487
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4184a3
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00417fb8
mov esi, eax
test edi, edi
je 0x4184a1
test ebx, ebx
je 0x4184a1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x418c39
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x44093e
call fcn.0042dffa
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x418c5e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x418ca4
lea ecx, [ebp - 0x10]
call fcn.00402360
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e53a
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402340
mov eax, esi
call fcn.0042e0d2
ret 8

Function at 0x42c68f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x454714]
jne 0x42c699
repz ret
jmp fcn.00432350
Function at 0x439d60
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00431cb2
and dword [ebp - 4], 0
cmp dword [0x458790], 0
mov ebx, eax
jne 0x439e11
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x439ec2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x439ec2
push eax
call fcn.00431c40
mov dword [esp], 0x4478c8
push edi
mov dword [0x458790], eax
call esi
push eax
call fcn.00431c40
mov dword [esp], 0x4478b4
push edi
mov dword [0x458794], eax
call esi
push eax
call fcn.00431c40
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x458798], eax
call esi
push eax
call fcn.00431c40
pop ecx
mov dword [0x4587a0], eax
test eax, eax
je 0x439e11
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00431c40
pop ecx
mov dword [0x45879c], eax
mov eax, dword [0x45879c]
cmp eax, ebx
je 0x439e69
cmp dword [0x4587a0], ebx
je 0x439e69
push eax
call fcn.00431cbb
push dword [0x4587a0]
mov esi, eax
call fcn.00431cbb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x439e69
test edi, edi
je 0x439e69
call esi
test eax, eax
je 0x439e60
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x439e60
test byte [ebp - 0xc], 1
jne 0x439e69
or dword [ebp + 0x10], 0x200000
jmp 0x439ea2
mov eax, dword [0x458794]
cmp eax, ebx
je 0x439ea2
push eax
call fcn.00431cbb
pop ecx
test eax, eax
je 0x439ea2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x439ea2
mov eax, dword [0x458798]
cmp eax, ebx
je 0x439ea2
push eax
call fcn.00431cbb
pop ecx
test eax, eax
je 0x439ea2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x458790]
call fcn.00431cbb
pop ecx
test eax, eax
je 0x439ec2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x439ec4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4028e8
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 0x402917
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.00403b00
jmp 0x402935
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402810
mov edi, eax
test ebx, ebx
je 0x402935
cmp dword [esi], 0
je 0x402935
dec ebx
jmp 0x40291e
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c08
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402ca0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402c80
xor eax, eax
push ebp
push 0x402c79
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 0x402cbc
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 0x402c80
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x404f90
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 0x40514c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404ff1
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405168
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405063
xor eax, eax
push ebp
push 0x40505c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404de8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405045
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405188
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 0x405063
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_lstrcpyA
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 0x405144
cmp byte [ebp - 0xd], 0
jne 0x4050a5
cmp byte [ebp - 0x12], 0
je 0x405144
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4050be
dec ebx
cmp byte [ebx], 0x2e
je 0x4050cd
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4050bd
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405144
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4050fa
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405144
cmp byte [ebp - 0xd], 0
je 0x405144
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405144
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x408758
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x408791
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403b00
jmp 0x40879a
mov eax, ebx
mov edx, esi
call fcn.00403a6c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4087a4
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 0x4087c5
mov al, byte [esp]
jmp 0x4087c7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x413b78
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 0x413b7e
ret

Function at 0x415ee8
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 0x415f39
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x415f20
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x415f10
jmp 0x415f39
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 0x415f21
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41fb84
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x456750
cmp dword [edi], 0
jne 0x41fc00
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45674c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4545f4
mov ecx, 2
call fcn.004027d0
mov edx, 0x41fb5c
lea eax, [esi + 5]
call fcn.0041fb7c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041fb7c
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 0x41fbd5
mov dword [0x45674c], 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 0x41fd1c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41fd6c]
test si, 4
je 0x41fd30
or bl, 1
test si, 8
je 0x41fd3a
or bl, 4
test si, 1
je 0x41fd44
or bl, 8
test si, 2
je 0x41fd4e
or bl, 0x10
test si, 0x10
je 0x41fd58
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41fd67
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x41fd70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41fda8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41fd89
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41fd98
or bl, 4
test esi, 0x20000000
je 0x41fda3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x425f50
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x425f62
add esp, 0xfffffff0
call fcn.00403090
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00411c50
mov eax, ebx
call fcn.0042629c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40bd60]
call fcn.00402d60
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40bd60]
call fcn.00402d60
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x40bd60]
call fcn.00402d60
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x40bd60]
call fcn.00402d60
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40bd60]
call fcn.00402d60
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, 0x425f20
push eax
push 0
push 0
mov eax, dword [0x455484]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x413118]
call fcn.004145d8
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x413118]
call fcn.004145d8
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x413118]
call fcn.004145d8
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.0042667c
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x426598
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x426598
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x426598
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x426071
call fcn.004030e8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x42637c
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 0x426527
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x426508
mov dl, 1
mov eax, dword [0x40c060]
call fcn.00402d60
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403a18
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4264f7
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.0043f5ec
test al, al
je 0x4264ea
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, 0x426538
lea eax, [ebp - 0x254]
call fcn.004085c8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4264ea
xor eax, eax
push ebp
push 0x4264e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x426570
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4264cc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403c48
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 0x4264cc
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403c48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4264ea
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4263ed
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040ece4
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 0x42652e
lea eax, [ebp - 0x260]
call fcn.00403a18
ret

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

Disassembly:
push ecx
mov eax, dword [0x456740]
cmp byte [eax + 0x95], 0
jne 0x426de5
cmp dword [0x45675c], 0
jne 0x426da6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x426d30
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45675c], eax
cmp dword [0x456758], 0
jne 0x426dc1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x456758], eax
cmp dword [0x456760], 0
jne 0x426de5
push esp
push 0
push 0
push 0x426cd4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x456760], eax
pop edx
ret