joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f320
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x41f342
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41f349
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41f338
mov eax, 1
add ebx, ebx
jne 0x41f35b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41f350
jne 0x41f36c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f350
xor ecx, ecx
sub eax, 3
jb 0x41f380
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41f3f2
mov ebp, eax
add ebx, ebx
jne 0x41f38b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41f398
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41f3bc
inc ecx
add ebx, ebx
jne 0x41f3a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41f39d
jne 0x41f3b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41f39d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41f3dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41f3cd
jmp 0x41f33e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41f3dc
add edi, ecx
jmp 0x41f33e
pop esi
mov edi, esi
mov ecx, 0x202
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41f3fa
cmp byte [edi], 6
jne 0x41f3fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41f3ff
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41f477
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ffc4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20000]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41f42c
mov ecx, edi
jns 0x41f45b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x20008]
or eax, eax
je 0x41f471
mov dword [ebx], eax
add ebx, 4
jmp 0x41f449
call dword [esi + 0x20004]
mov ebp, dword [esi + 0x2000c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41f4ab
sub esp, 0xffffff80
jmp 0x40290c

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402f7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x459020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403014
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x402ff4
xor eax, eax
push ebp
push 0x402fed
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 0x403030
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ff4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x459020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x459020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d50
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45b04c], 0
je 0x403db1
cmp word [0x45b220], 0xd7b2
jne 0x403d79
cmp dword [0x45b228], 0
jbe 0x403d79
mov eax, 0x45b21c
call dword [0x45b238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45906c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403dd8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x459030], 0
jne 0x403dcd
push 0
push 0x459064
push 0x45906c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x403f04
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.004026dc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x45b04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403ecc
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4054d0
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_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405700
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x405553
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405700
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x405553
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40571c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4055dc
xor eax, eax
push ebp
push 0x4055d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405318
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_1
test eax, eax
je 0x4055ba
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40573c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4055ba
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4055dc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4056f6
cmp byte [ebp - 0xd], 0
jne 0x405623
cmp byte [ebp - 0x12], 0
je 0x4056f6
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40563c
dec ebx
cmp byte [ebx], 0x2e
je 0x40564b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40563b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4056f6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405688
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4056f6
cmp byte [ebp - 0xd], 0
je 0x4056f6
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4056f6
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
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 0x405dc8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405e2e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004041c0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b40
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405e18
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e35
lea eax, [ebp - 0x10]
call fcn.00403f50
ret

Function at 0x40adfc
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
test eax, eax
jle 0x40ae35
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404040
jmp 0x40ae3e
mov eax, ebx
mov edx, esi
call fcn.00403fa4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ae48
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
test eax, eax
jle 0x40ae69
mov al, byte [esp]
jmp 0x40ae6b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b4f0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b368
mov eax, dword [0x45ad08]
cmp byte [eax], 0
je 0x40b56c
mov eax, dword [0x45a9d4]
call fcn.004029ac
call fcn.00402844
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040863c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b5b4
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x40b5a2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45a94c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45b668]
call fcn.004052dc
push eax
call sub.user32.dll_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA
add esp, 0x444
ret
Function at 0x40be50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bf26
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403fe8
lea eax, [ebp - 8]
call fcn.00404460
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404410
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bf10
mov eax, ebx
call fcn.004026dc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bf09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404410
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bef3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bf38
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bef3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf10
mov eax, dword [ebp - 0x10]
call fcn.004026fc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bf2d
lea eax, [ebp - 8]
call fcn.00403f50
ret

Function at 0x40c418
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c47c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004041c0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00408178
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c483
lea eax, [ebp - 0xc]
call fcn.00403f50
ret

Function at 0x41cad8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041c930
dec esi
jne 0x41cafa
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41dc3c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45b890
cmp dword [edi], 0
jne 0x41dcb8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x45b88c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x459408
mov ecx, 2
call fcn.004028d8
mov edx, 0x41dc14
lea eax, [esi + 5]
call fcn.0041dc34
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041dc34
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 0x41dc8d
mov dword [0x45b88c], 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 0x41eecc
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 0x41eed2
ret

Function at 0x421314
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 0x421365
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42134c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42133c
jmp 0x421365
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 0x42134d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a920
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 0x42a86c
call sub.user32.dll_EnumWindows
ret

Function at 0x42aa40
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 0x42aabd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042a4a0
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
push 0
call sub.KERNEL32.DLL_Sleep_1
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x42aa65
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042a0a0
cmp dword [ebp - 4], 0
je 0x42aaa7
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404410
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 0x42aac4
lea eax, [ebp - 4]
call fcn.00403f50
ret

Function at 0x42df90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x42dfe0]
test si, 4
je 0x42dfa4
or bl, 1
test si, 8
je 0x42dfae
or bl, 4
test si, 1
je 0x42dfb8
or bl, 8
test si, 2
je 0x42dfc2
or bl, 0x10
test si, 0x10
je 0x42dfcc
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42dfdb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x42dfe4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x42e01c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42dffd
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42e00c
or bl, 4
test esi, 0x20000000
je 0x42e017
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4346c4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4346d6
add esp, 0xfffffff0
call fcn.00403418
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cbac
mov eax, dword [0x45a960]
mov dword [eax + 4], ebx
mov dword [eax], 0x434a68
mov eax, dword [0x45a970]
mov dword [eax + 4], ebx
mov dword [eax], 0x434a74
mov eax, ebx
call fcn.00434a80
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x414940]
call fcn.004030dc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x414940]
call fcn.004030dc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x414940]
call fcn.004030dc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x414940]
call fcn.004030dc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x414940]
call fcn.004030dc
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, 0x430e9c
push eax
push 0
push 0
mov eax, dword [0x45aba4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e5d0]
call fcn.0041fa14
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e5d0]
call fcn.0041fa14
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e5d0]
call fcn.0041fa14
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00434f30
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x434dc4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x434dc4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x434dc4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x434813
call fcn.00403470
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x434ba8
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 0x434d53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x434d34
mov dl, 1
mov eax, dword [0x414d5c]
call fcn.004030dc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f50
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x434d23
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.0045001c
test al, al
je 0x434d16
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, 0x434d64
lea eax, [ebp - 0x254]
call fcn.00408c84
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x434d16
xor eax, eax
push ebp
push 0x434d0f
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 0x434d9c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x434cf8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041c0
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 0x434cf8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434d16
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x434c19
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00418894
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 0x434d5a
lea eax, [ebp - 0x260]
call fcn.00403f50
ret

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

Disassembly:
push ecx
mov eax, dword [0x45bb24]
cmp byte [eax + 0xa5], 0
jne 0x435741
cmp dword [0x45bb3c], 0
jne 0x435702
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x43568c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45bb3c], eax
cmp dword [0x45bb38], 0
jne 0x43571d
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x45bb38], eax
cmp dword [0x45bb40], 0
jne 0x435741
push esp
push 0
push 0
push 0x435630
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x45bb40], eax
pop edx
ret
Function at 0x435838
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x43584f
add esp, 0xfffffff0
call fcn.00403418
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cbac
mov eax, dword [0x45ab84]
cmp word [eax + 2], 0
jne 0x435877
mov eax, dword [0x45ab84]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00436da4
mov eax, dword [0x45ac9c]
cmp word [eax + 2], 0
jne 0x435891
mov eax, dword [0x45ac9c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00436f9c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x414940]
call fcn.004030dc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x414940]
call fcn.004030dc
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], 0xff000018
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 [0x41ed80]
call fcn.004249c8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x435a18
mov eax, dword [0x45aa18]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424d98
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x43753c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45aa18]
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.0040c3b0
test eax, eax
je 0x435986
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408678
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c3d8
test eax, eax
je 0x43599a
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, pe_nt_image_headers32
call fcn.004041c0
mov eax, dword [0x45a7f0]
cmp byte [eax], 0
jne 0x4359ce
mov eax, ebx
call fcn.00435b40
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.00437718
mov eax, ebx
call fcn.004380dc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x435a0e
call fcn.00403470
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret