joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009fa9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10009fb8
pop dword [ebp - 0x18]
mov eax, 0xfa1cde50
add eax, 0x15e3c168
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x5fe48a7b
sub dword [ebp - 0x28], 0x11924530
mov dword [ebp - 0x24], 0x39b1e931
sub dword [ebp - 0x24], 0x77e9cec
mov dword [ebp - 0x20], 0xc33a6886
sub dword [ebp - 0x20], 0x76ee2458
mov dword [ebp - 0x1c], 0xb6ff436f
add dword [ebp - 0x1c], 0x4900bc91
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xb3a1471
add dword [ebp - 0x28], 0x693854e5
mov dword [ebp - 0x24], 0x6f0641d5
add dword [ebp - 0x24], 0xd2661fa0
mov dword [ebp - 0x20], 0x32f842e9
add dword [ebp - 0x20], 0x30772983
mov dword [ebp - 0x1c], 0xdd50f89
add dword [ebp - 0x1c], 0xf22af077
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x26f9c25c
add eax, 0xe9081e28
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x424a5
push 0
call eax
mov ecx, 0xb0ecdfc9
sub ecx, 0xb0ec83df
mov ebx, eax
mov esi, 0x716ecf22
sub esi, 0x616b7722
add esi, dword [ebp - 0x18]
mov edi, 0xc07dfc20
sub edi, 0xcc2cddb4
xor dword [ebp - 8], eax
mov edx, dword [esi]
xor dword [ebp - 0x10], edx
xor edx, edi
xor dword [ebp - 0x10], ebx
mov dword [ebx], edx
sub dword [ebp - 0x14], edx
add ebx, 4
add esi, 0xa9ecf6e0
add esi, 0x56130924
loop 0x1000a0d5
add eax, 0x1627b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x5fabf1cd
sub ecx, 0x4fabf1cd
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x41dbe7
Capabilities:
Parse pe header

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

Function at 0x429b45
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43d740
push 0x43d738
push str.FlsAlloc
push 0x1f
call fcn.004299b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x429b79
push dword [ebp + 8]
mov ecx, esi
call dword [0x439134]
call esi
jmp 0x429b7f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x429bc3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43d750
push 0x43d748
push str.FlsGetValue
push 0x21
call fcn.004299b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x429bfa
push dword [ebp + 8]
mov ecx, esi
call dword [0x439134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x429c02
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43d758
push 0x43d750
push str.FlsSetValue
push 0x22
call fcn.004299b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x429c3c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x439134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x430b89
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x445040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00429230
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00429230
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x430c00
cmp word [ecx], dx
je 0x430c00
mov eax, dword [0x43de24]
push edi
dec eax
push eax
push 0x43dd10
call fcn.00430b28
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x430c73
cmp word [eax], dx
je 0x430c73
mov eax, dword [edi]
test eax, eax
je 0x430c24
cmp word [eax], dx
je 0x430c24
lea eax, [ebp - 0x10]
push eax
call fcn.0043050b
jmp 0x430c2d
lea eax, [ebp - 0x10]
push eax
call fcn.004305a6
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x430c9d
mov eax, dword [0x43dd0c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x43da00
call fcn.00430b28
add esp, 0xc
test al, al
je 0x430c9d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x430c68
cmp word [eax], di
je 0x430c68
lea eax, [ebp - 0x10]
push eax
call fcn.0043050b
pop ecx
jmp 0x430c9f
lea eax, [ebp - 0x10]
push eax
call fcn.004305a6
jmp 0x430c65
mov eax, dword [edi]
test eax, eax
je 0x430c8a
cmp word [eax], dx
je 0x430c8a
lea eax, [ebp - 0x10]
push eax
call fcn.004304c0
pop ecx
jmp 0x430c9d
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x430d68
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004309ad
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x430d68
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x430d68
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x430d68
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x430cf5
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00429d42
test ebx, ebx
je 0x430d63
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00429d42
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x430d68
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x430d68
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00434bc8
add esp, 0x10
xor eax, eax
inc eax
jmp 0x430d6a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d4b0
leave
ret
Function at 0x420bb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x420bbf
pop dword [ebp - 0x1c]
mov eax, 0xdc74ca4a
sub eax, 0xdc32be8b
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3d10e
push 0
mov eax, 0x1b560eb0
sub eax, 0x1b13bc98
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x83129659
add ecx, 0x7cedad81
mov edi, eax
mov edx, 0xd435a27a
add edx, 0x2c0db186
add edx, dword [ebp - 0x1c]
mov esi, 0x648b3a3e
sub esi, 0x6ef28074
mov dword [ebp - 8], 0x83a6d3bc
mov ebx, dword [edx]
sub dword [ebp - 0x18], 0xb9a1ea91
sub ebx, esi
sub dword [ebp - 0x14], 0x3e074fb8
mov dword [edi], ebx
xor dword [ebp - 8], edx
add edi, 0x28c6ac36
add edi, 0xd73953ce
add edx, 0x86b9058e
sub edx, 0x86b9058a
loop 0x420c1e
add eax, 0xbebe5e78
sub eax, 0xbebd5c3d
mov ebx, eax
add eax, 0x61df010f
add eax, 0x9e20fef6
mov ecx, 0xb8db22e2
sub ecx, 0xb89b22e2
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x402648
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov byte [ebp - 5], al
cmp byte [ebp + 0xc], 0
je 0x402665
and eax, 0xff
add dword [0x4a416c], eax
mov byte [0x4a4148], 0
cmp dword [0x4a4160], 0xffffffff
je 0x4026a5
mov edx, dword [0x4ac740]
mov eax, dword [edx]
call fcn.00441fe4
push 0
lea edx, [ebp - 4]
push edx
push 1
lea ecx, [ebp - 5]
push ecx
mov eax, dword [0x4a4160]
push eax
call sub.KERNEL32.DLL_WriteFile
mov edx, dword [0x4a4160]
push edx
call sub.KERNEL32.DLL_FlushFileBuffers
cmp dword [ebp - 4], 0
setne al
and eax, 1
pop ecx
pop ecx
pop ebp
ret

Function at 0x4028cc
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, 0x4a4170
mov al, byte [0x4a4165]
test al, al
je 0x40290a
mov edx, eax
test dl, 1
je 0x4028e4
or dword [ecx], 1
test dl, 2
je 0x4028ec
or dword [ecx], 2
test dl, 4
je 0x4028f4
or dword [ecx], 4
test dl, 8
je 0x4028ff
or dword [ecx], 0x1000000
test dl, 0x20
je 0x40290a
or dword [ecx], 0x20000000
mov al, byte [0x4a4166]
test al, al
je 0x402943
mov edx, eax
test dl, 1
je 0x40291d
or dword [ecx], 0x10
test dl, 2
je 0x402925
or dword [ecx], 0x20
test dl, 4
je 0x40292d
or dword [ecx], 0x40
test dl, 0x10
je 0x402938
or dword [ecx], 0x100
test dl, 0x20
je 0x402943
or dword [ecx], 0x2000000
mov al, byte [0x4a4167]
test al, al
je 0x40298d
mov edx, eax
test dl, 1
je 0x402959
or dword [ecx], 0x200
test dl, 2
je 0x402964
or dword [ecx], 0x1000
test dl, 4
je 0x40296c
or dword [ecx], 8
test dl, 8
je 0x402977
or dword [ecx], 0x400
test dl, 0x10
je 0x402982
or dword [ecx], 0x80
test dl, 0x20
je 0x40298d
or dword [ecx], 0x800
mov al, byte [0x4a4169]
test al, al
je 0x4029cf
mov edx, eax
test dl, 1
je 0x4029a3
or dword [ecx], 0x10000
test dl, 4
je 0x4029ae
or dword [ecx], 0x2000
test dl, 8
je 0x4029b9
or dword [ecx], 0x100000
test dl, 0x10
je 0x4029c4
or dword [ecx], 0x20000
test dl, 0x20
je 0x4029cf
or dword [ecx], 0x40000000
mov al, byte [0x4a416a]
test al, al
je 0x402a1c
mov edx, eax
test dl, 1
je 0x4029e5
or dword [ecx], 0x40000
test dl, 2
je 0x4029f0
or dword [ecx], 0x200000
test dl, 4
je 0x4029fb
or dword [ecx], 0x80000
test dl, 8
je 0x402a06
or dword [ecx], 0x400000
test dl, 0x10
je 0x402a11
or dword [ecx], 0x8000
test dl, 0x20
je 0x402a1c
or dword [ecx], 0x4000
ret

Function at 0x409044
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x409055
mov eax, 1
pop ebp
ret
xor edx, edx
xor ecx, ecx
mov dword [eax + 0x14], edx
xor edx, edx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
mov dword [eax], 0x67452301
xor ecx, ecx
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x60], ecx
xor edx, edx
mov dword [eax + 0x64], edx
xor eax, eax
pop ebp
ret
Function at 0x40b924
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x40b870
call sub.USER32.DLL_EnumWindows
ret

Function at 0x40ba48
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x40bac5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040b494
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
push 0
call sub.KERNEL32.DLL_Sleep
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x40ba6d
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0040b0ec
cmp dword [ebp - 4], 0
je 0x40baaf
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004921d0
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.USER32.DLL_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bacc
lea eax, [ebp - 4]
call fcn.00491d20
ret

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

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

Function at 0x41a234
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.00491d20
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x41a283
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.00491f88
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4201b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x420418
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x42021b
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0041fc80
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.004847e4
cmp al, 1
jne 0x42021b
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0041ff98
test al, al
je 0x4203a7
cmp dword [ebp - 8], 0
jge 0x420239
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0041fc80
mov eax, dword [ebp - 0x210]
call fcn.00491fd8
cmp ebx, eax
jge 0x420283
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0041fc80
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4ac9a4]
and eax, 0xff
bt dword [edx], eax
jae 0x420283
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x420297
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00420194
cmp ebx, dword [ebp - 8]
je 0x420399
lea eax, [ebp - 0x108]
push eax
call sub.USER32.DLL_GetKeyboardState
mov edx, 0x100
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4202c3
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004913d0
and eax, 0x7f
movzx eax, word [eax*2 + 0x4a8080]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.USER32.DLL_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x420386
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004913d0
and eax, 0x7f
movzx eax, word [eax*2 + 0x4a8080]
push eax
push 0x100
mov eax, dword [ebp - 4]
call fcn.0045359c
push eax
call sub.USER32.DLL_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004913d0
and eax, 0x7f
movzx eax, word [eax*2 + 0x4a8080]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0045359c
push eax
call sub.USER32.DLL_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42038d
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4203fa
cmp dword [ebp - 8], 0
jge 0x4203b2
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0041fc80
mov eax, dword [ebp - 0x218]
call fcn.00491fd8
cmp eax, dword [ebp - 8]
jg 0x4203ec
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0041fc80
mov eax, dword [ebp - 0x21c]
call fcn.00491fd8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00420194
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42041f
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00491d44
ret
Function at 0x42d5c0
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 0x42d5c6
ret

Function at 0x42fd40
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 0x42fd91
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42fd78
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42fd68
jmp 0x42fd91
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 0x42fd79
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x439090
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4390e0]
test si, 4
je 0x4390a4
or bl, 1
test si, 8
je 0x4390ae
or bl, 4
test si, 1
je 0x4390b8
or bl, 8
test si, 2
je 0x4390c2
or bl, 0x10
test si, 0x10
je 0x4390cc
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4390db
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4390e4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43911c]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4390fd
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x43910c
or bl, 4
test esi, 0x20000000
je 0x439117
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43fa58
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x43fa6a
add esp, 0xfffffff0
call fcn.00491538
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0047d744
mov eax, dword [0x4ac8e0]
mov dword [eax + 4], ebx
mov dword [eax], 0x43fdfc
mov eax, dword [0x4ac8e4]
mov dword [eax + 4], ebx
mov dword [eax], 0x43fe08
mov eax, ebx
call fcn.0043fe14
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x473218]
call fcn.004911a4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x473218]
call fcn.004911a4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x473218]
call fcn.004911a4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x473218]
call fcn.004911a4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x473218]
call fcn.004911a4
mov dword [ebx + 0x7c], eax
push 0
call sub.USER32.DLL_GetDC
mov esi, eax
push 0x5a
push esi
call sub.GDI32.DLL_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.USER32.DLL_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x43c2dc
push eax
push 0
push 0
mov eax, dword [0x4ac8cc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42c9f4]
call fcn.0042e108
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42c9f4]
call fcn.0042e108
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42c9f4]
call fcn.0042e108
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044027c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x440158
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x440158
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x440158
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43fba7
call fcn.00491590
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x43ff3c
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 0x4400e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4400c8
mov dl, 1
mov eax, dword [0x473804]
call fcn.004911a4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00491d20
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4400b7
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.00458164
test al, al
je 0x4400aa
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, 0x4400f8
lea eax, [ebp - 0x254]
call fcn.004825c4
push eax
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4400aa
xor eax, eax
push ebp
push 0x4400a3
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 0x440130
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x44008c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00491f88
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44008c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00491f88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4400aa
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x43ffad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00477d44
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4400ee
lea eax, [ebp - 0x260]
call fcn.00491d20
ret
Function at 0x440bb4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x440bcb
add esp, 0xfffffff0
call fcn.00491538
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0047d744
mov eax, dword [0x4ac8e8]
cmp word [eax + 2], 0
jne 0x440bf3
mov eax, dword [0x4ac8e8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00442290
mov eax, dword [0x4ac8ec]
cmp word [eax + 2], 0
jne 0x440c0d
mov eax, dword [0x4ac8ec]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00442488
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x473218]
call fcn.004911a4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x473218]
call fcn.004911a4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], SafeArrayCopy
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x42d474]
call fcn.004352bc
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x440d94
mov eax, dword [0x4acb4c]
mov eax, dword [eax]
push eax
call sub.USER32.DLL_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0043568c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4429f8
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4acb4c]
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.00484a9c
test eax, eax
je 0x440d02
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00481f0c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00484ac4
test eax, eax
je 0x440d16
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.USER32.DLL_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.00491f88
mov eax, dword [0x4acb54]
cmp byte [eax], 0
jne 0x440d4a
mov eax, ebx
call fcn.00440ebc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00442bd4
mov eax, ebx
call fcn.00443584
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x440d8a
call fcn.00491590
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret