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

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
mov al, byte [edi]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
and eax, 0xff
mov ecx, eax
shr eax, 4
and ecx, 0xf
mov bl, byte [eax*4 + 0x4a66d8]
mov al, byte [edi + 1]
mov dl, byte [ecx*4 + 0x4a66d8]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
and eax, 0xff
shl dl, 4
mov ecx, eax
or dl, bl
shr eax, 4
mov byte [edi], dl
and ecx, 0xf
mov bl, byte [eax*4 + 0x4a66d8]
mov al, byte [edi + 2]
mov dl, byte [ecx*4 + 0x4a66d8]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
and eax, 0xff
shl dl, 4
mov ecx, eax
or dl, bl
and ecx, 0xf
mov byte [edi + 1], dl
shr eax, 4
mov dl, byte [ecx*4 + 0x4a66d8]
mov cl, byte [eax*4 + 0x4a66d8]
mov al, byte [edi + 3]
shl dl, 4
mov byte [esp + 0x14], al
or dl, cl
mov ecx, dword [esp + 0x14]
mov byte [edi + 2], dl
and ecx, 0xff
mov edx, ecx
shr ecx, 4
and edx, 0xf
mov bl, byte [ecx*4 + 0x4a66d8]
xor ecx, ecx
mov cl, byte [edi]
mov al, byte [edx*4 + 0x4a66d8]
mov edx, ecx
and ecx, 3
and edx, 0xfffffffc
shl edx, 3
shl al, 4
or edx, ecx
mov ecx, 4
or al, bl
or edx, ecx
xor ebx, ebx
mov byte [edi + 3], al
mov bl, byte [edi + 2]
and eax, 0xff
shl edx, 8
or edx, ebx
xor ebx, ebx
mov bl, byte [edi + 1]
mov dword [esp + 0x14], ecx
shl eax, 9
or eax, ebx
or ah, 1
shl eax, 0xf
mov esi, eax
mov eax, dword [esp + 0x18]
shl edx, 0xf
cmp eax, ecx
jbe 0x4914ba
mov ecx, edx
mov eax, edx
and ecx, 0x3fc0000
mov ebx, esi
shr eax, 6
xor ecx, eax
mov eax, edx
shr ecx, 3
and eax, 0x7f8000
and ebx, 0xf00000
xor ecx, eax
shr ecx, 0xf
mov eax, ecx
xor ecx, 0xff
shl eax, 0x18
shr edx, 8
or edx, eax
mov eax, esi
shr eax, 4
and eax, 0xff0000
add ecx, ebp
xor eax, ebx
mov ebx, esi
shr eax, 1
and ebx, 0x7f8000
xor eax, ebx
mov ebx, esi
shr eax, 4
and ebx, 0x78000
xor eax, ebx
mov ebx, esi
shr ebx, 0x1c
shr eax, 0xb
xor eax, dword [ebx*4 + 0x4a6718]
shr esi, 8
mov ebx, eax
xor eax, 0xff
shl ebx, 0x18
lea ebp, [ecx + eax]
mov ecx, dword [esp + 0x14]
or esi, ebx
xor ebx, ebx
mov bl, byte [ecx + edi]
mov eax, ebp
and eax, 0xff
mov bl, byte [ebx + 0x4a65d8]
xor bl, al
mov eax, dword [esp + 0x18]
sar ebp, 8
mov byte [ecx + edi], bl
inc ecx
cmp ecx, eax
mov dword [esp + 0x14], ecx
jb 0x49140d
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4032ac
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404b08
test esi, esi
jne 0x4032e2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404bf8
jmp 0x403300
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403150
mov edi, eax
test esi, esi
je 0x403300
cmp dword [ebx], 0
je 0x403300
dec esi
jmp 0x4032e9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403a04
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x465020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403a9c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403a7c
xor eax, eax
push ebp
push 0x403a75
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 0x403ab8
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 0x403a7c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x465020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x465020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4048d4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x468048], 0
je 0x404935
cmp word [0x46821c], 0xd7b2
jne 0x4048fd
cmp dword [0x468224], 0
jbe 0x4048fd
mov eax, 0x468218
call dword [0x468234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40495c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46502c], 0
jne 0x404951
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404a8c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x465030], 0
je 0x404ab2
mov edx, esi
mov eax, ebx
call dword [0x465030]
jmp 0x404ac1
mov eax, 8
call fcn.00402e60
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x468049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404a54
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4086f4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408746
test eax, edx
je 0x408749
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408709
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40872f
add ecx, 4
js 0x40871f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40872c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408755
test edx, edx
jne 0x4086fc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40bb9c
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 0x40bbd5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404bf8
jmp 0x40bbde
mov eax, ebx
mov edx, esi
call fcn.00404b5c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bbe8
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 0x40bc0a
movzx eax, byte [esp]
jmp 0x40bc0c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c29c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c114
mov eax, dword [0x466fa0]
cmp byte [eax], 0
je 0x40c318
mov eax, dword [0x466d80]
call fcn.004033b8
call fcn.00402fbc
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.004092f0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40c360
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c34e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x466d28]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46a7f4]
call fcn.00405cb8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40cbd8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ccae
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404ba0
lea eax, [ebp - 4]
call fcn.00404ff0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404f98
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cc98
mov eax, ebx
call fcn.00402e60
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cc91
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 - 4]
call fcn.00404f98
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cc7b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ccc0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cc7b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc98
mov eax, dword [ebp - 0x10]
call fcn.00402e7c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ccb5
lea eax, [ebp - 4]
call fcn.00404b08
ret

Function at 0x41bc4c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x41bc9a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0041b988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41bcb3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41bcbc
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.0041b988
dec esi
jne 0x41bcde
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41d470
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46c9ec
cmp dword [edi], 0
jne 0x41d4ec
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x46c9e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x465adc
mov ecx, 2
call fcn.00403050
mov edx, 0x41d448
lea eax, [esi + 5]
call fcn.0041d468
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041d468
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 0x41d4c1
mov dword [0x46c9e8], 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 0x41e4d4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.0041df24
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404f98
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x41e533
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x466eac]
mov dl, 1
mov eax, dword [0x41ddb0]
call fcn.0040c45c
call fcn.00404478
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41e53c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404f98
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41e594
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4670dc]
mov dl, 1
mov eax, dword [0x41ddb0]
call fcn.0040c45c
call fcn.00404478
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041df54
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41f92c
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 0x41f932
ret
Function at 0x42e6a8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
test bl, bl
je 0x42e6c9
test edi, 0x40000
je 0x42e6e3
test bl, bl
jne 0x42e764
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x42e764
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x42e716
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x42e72b
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x42e73a
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x42e74b
cmp byte [esp + 2], 0
je 0x42e764
cmp byte [esp + 2], 0
je 0x42e75c
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x42e764
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42ea08
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x42ea2e
mov eax, esp
push eax
push 0x42e9d0
call sub.user32.dll_EnumWindows
jmp 0x42ea41
mov eax, esp
push eax
push 0x42e9b0
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x42eacc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x42eb20]
test si, 4
je 0x42eae1
or bl, 1
test si, 8
je 0x42eaeb
or bl, 4
test si, 1
je 0x42eaf5
or bl, 8
test si, 2
je 0x42eaff
or bl, 0x10
test si, 0x10
je 0x42eb09
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42eb18
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x42eb24
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x42eb60]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42eb3e
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42eb4d
or bl, 4
test esi, 0x20000000
je 0x42eb58
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x436bcc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x436bde
add esp, 0xfffffff0
call fcn.00403f28
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bd90
mov eax, dword [0x466d30]
mov dword [eax + 4], ebx
mov dword [eax], 0x436f70
mov eax, dword [0x466d3c]
mov dword [eax + 4], ebx
mov dword [eax], 0x436f7c
mov eax, ebx
call fcn.00436f88
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4129cc]
call fcn.00403bd4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4129cc]
call fcn.00403bd4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4129cc]
call fcn.00403bd4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4129cc]
call fcn.00403bd4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4129cc]
call fcn.00403bd4
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, 0x432430
push eax
push 0
push 0
mov eax, dword [0x466ea0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ec58]
call fcn.004204ac
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ec58]
call fcn.004204ac
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ec58]
call fcn.004204ac
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00437400
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4372d0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4372d0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4372d0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x436d1b
call fcn.00403f80
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4370b4
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 0x43725f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x437240
mov dl, 1
mov eax, dword [0x412f7c]
call fcn.00403bd4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404b08
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43722f
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.00456604
test al, al
je 0x437222
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, 0x437270
lea eax, [ebp - 0x254]
call fcn.004099b8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x437222
xor eax, eax
push ebp
push 0x43721b
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 0x4372a8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x437204
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404d78
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 0x437204
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404d78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437222
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x437125
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041759c
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 0x437266
lea eax, [ebp - 0x260]
call fcn.00404b08
ret

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

Disassembly:
push ecx
mov eax, dword [0x46cbe8]
cmp byte [eax + 0xad], 0
jne 0x437c49
cmp dword [0x46cc04], 0
jne 0x437c0a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x437b94
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46cc04], eax
cmp dword [0x46cc00], 0
jne 0x437c25
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46cc00], eax
cmp dword [0x46cc08], 0
jne 0x437c49
push esp
push 0
push 0
push 0x437b38
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x46cc08], eax
pop edx
ret
Function at 0x437e4c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x437e63
add esp, 0xfffffff0
call fcn.00403f28
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bd90
mov eax, dword [0x466e88]
cmp word [eax + 2], 0
jne 0x437e8b
mov eax, dword [0x466e88]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00439a34
mov eax, dword [0x466f58]
cmp word [eax + 2], 0
jne 0x437ea5
mov eax, dword [0x466f58]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00439c40
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4129cc]
call fcn.00403bd4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4129cc]
call fcn.00403bd4
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x4129cc]
call fcn.00403bd4
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41f768]
call fcn.00426e10
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x43805c
mov eax, dword [0x466d98]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004271e4
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x43a304
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x466d98]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
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.0040d1ec
test eax, eax
je 0x437fac
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409344
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d220
test eax, eax
je 0x437fc0
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404d78
mov byte [ebx + 0xd4], 0
push ebx
push 0x4395c8
call fcn.0041d52c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x466c74]
cmp byte [eax], 0
jne 0x438011
mov eax, ebx
call fcn.004381a0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0043a518
mov eax, ebx
call fcn.0043b07c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x438051
call fcn.00403f80
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret