joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41de60
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 0x41deb1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41de98
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41de88
jmp 0x41deb1
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 0x41de99
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422920
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x4229bc
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.004045a8
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.00404474
lea edx, [ebp + 0x30]
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x422948
cmp byte [esp], 0
je 0x42298d
mov eax, edi
call fcn.00404474
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x4229c8
mov eax, edi
call fcn.00404474
push eax
mov eax, edi
call fcn.00404474
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.004028b8
mov edx, ebx
mov eax, edi
call fcn.004045a8
jmp 0x4229c8
mov eax, edi
mov edx, 0x4229d8
call fcn.00403fb0
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x422fa8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040440c
xor eax, eax
push ebp
push 0x42300a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00403fb0
mov eax, ebx
call fcn.0040446c
mov eax, dword [ebx]
call fcn.0040421c
test eax, eax
jle 0x422ff4
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x422fe9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423011
lea eax, [ebp - 4]
call fcn.00403f5c
ret

Function at 0x4232b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x4232f8
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov edi, esi
push edi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x4232ee
cmp word [edi], 0x5a4d
jne 0x4232ee
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x4232ee
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x423304
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42343c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040440c
xor eax, eax
push ebp
push 0x42361a
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
test ebx, ebx
je 0x4235f9
mov eax, ebx
call fcn.004232b0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4235e4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, ebx
mov edi, eax
test edi, edi
je 0x4235e4
mov eax, dword [edi + 0x18]
dec eax
test eax, eax
jl 0x4235e4
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x12c]
mov edx, dword [edi + 0x20]
add edx, ebx
mov ecx, dword [ebp - 0xc]
mov edx, dword [edx + ecx*4]
add edx, ebx
call fcn.00404154
mov eax, dword [ebp - 0x12c]
mov edx, dword [ebp - 4]
call fcn.00404368
jne 0x4235d8
mov eax, dword [edi + 0x24]
add eax, ebx
mov edx, dword [ebp - 0xc]
mov si, word [eax + edx*2]
movzx eax, si
mov edx, dword [edi + 0x1c]
add edx, ebx
mov edi, dword [edx + eax*4]
mov eax, dword [ebp - 8]
cmp edi, dword [eax + 0x50]
jbe 0x4235cb
xor edi, edi
push 0x104
lea eax, [ebp - 0x125]
push eax
push ebx
call sub.kernel32.dll_GetModuleFileNameA_1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x125]
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x4235cb
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4235c2
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4235b9
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.004233e8
add eax, dword [ebp - 0x1c]
mov edi, eax
mov edx, dword [edi + 0x1c]
mov eax, dword [ebp - 8]
call fcn.004233e8
add eax, dword [ebp - 0x1c]
movzx edx, si
mov edi, dword [eax + edx*4]
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_UnmapViewOfFile
push 0x104
lea eax, [ebp - 0x125]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_1
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
mov edx, edi
mov eax, ebx
call fcn.00423338
mov esi, eax
jmp 0x4235e4
inc dword [ebp - 0xc]
dec dword [ebp - 0x20]
jne 0x4234b8
test esi, esi
jne 0x4235f9
mov eax, dword [ebp - 4]
call fcn.0040441c
push eax
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x423621
lea eax, [ebp - 0x12c]
call fcn.00403f5c
lea eax, [ebp - 4]
call fcn.00403f5c
ret
Function at 0x4264dc
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
jne 0x426558
cmp dword [esp + 0x10], 0x1000
jne 0x426558
cmp dword [esp + 4], 0
je 0x426558
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
test eax, eax
je 0x426558
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x426558
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x426558
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x429404
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4294bd
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, 0x4294d4
call fcn.00422fa8
push dword [ebp - 0xc]
push 0x4294e8
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [eax - 4]
mov cl, byte [ebp - 1]
mov eax, 0x4294f4
call fcn.004292c8
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004042dc
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.0040441c
push eax
call fcn.00428fe4
mov esi, eax
test esi, esi
je 0x4294a2
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
test eax, eax
je 0x42949c
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov ecx, dword [eax]
mov dword [edx - 4], ecx
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4294c4
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00403f80
ret

Function at 0x429744
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov edi, eax
xor esi, esi
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4297b5
mov ebx, 0x5f040000
jmp 0x4297a3
cmp dword [esp + 0x10], 0x10000
jne 0x429781
push 0x40
push 0x2000
push edi
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
jmp 0x4297b5
cmp dword [esp + 0xc], 0x10000
jae 0x429795
mov dword [esp + 0xc], 0x10000
jmp 0x42979d
and dword [esp + 0xc], 0xffff0000
mov eax, dword [esp + 0xc]
add ebx, eax
push 0x1c
lea eax, [esp + 4]
push eax
push ebx
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
je 0x429761
push 0x40
push 0x1000
push edi
push esi
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, esi
add esp, 0x1c
pop edi
pop esi
pop ebx
ret

Function at 0x42991c
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
pushfd
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x45e0b0]
cmp eax, 0x1c
jne 0x429997
cmp dword [ebp - 0xc], 0x1000
jne 0x429992
cmp dword [ebp - 0x18], 0
je 0x429992
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x429992
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x429971
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x429997
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x45e080]
cmp eax, 0
je 0x429992
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x45e0c8]
add ebx, dword [ebp - 0x10]
jmp 0x429933
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x42ef0c
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x42f097
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x42f07c
xor eax, eax
push ebp
push 0x42f075
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetTokenInformation
cmp dword [ebp - 8], 0
je 0x42f05e
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push 3
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
je 0x42f058
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x1c]
mov eax, 0x42f0b0
call fcn.00422fa8
mov eax, dword [ebp - 0x1c]
call fcn.0040441c
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x42efd4
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x20]
mov eax, 0x42f0cc
call fcn.00422fa8
mov eax, dword [ebp - 0x20]
call fcn.0040441c
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x42f007
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov esi, dword [ebx]
dec esi
test esi, esi
jl 0x42f044
inc esi
xor ecx, ecx
lea edi, [ecx + ecx*2]
mov eax, dword [ebx + edi*4 + 4]
mov edx, dword [ebx + edi*4 + 8]
cmp edx, dword [ebp - 0xc]
jne 0x42f024
cmp eax, dword [ebp - 0x10]
je 0x42f040
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x14]
jne 0x42f039
cmp eax, dword [ebp - 0x18]
je 0x42f040
or dword [ebx + edi*4 + 0xc], 2
inc ecx
dec esi
jne 0x42f011
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push ebx
call sub.kernel32.dll_LocalFree_2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f07c
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f09e
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00403f80
ret
Function at 0x42f340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42f3d8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, ebx
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.004041cc
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebx]
call fcn.0040421c
mov edx, eax
mov eax, dword [ebx]
mov ecx, 1
call fcn.0040447c
mov eax, dword [ebp - 0x104]
mov edx, 0x42f3ec
call fcn.00404368
je 0x42f3bf
mov eax, ebx
mov edx, 0x42f3ec
call fcn.00404224
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f3df
lea eax, [ebp - 0x104]
call fcn.00403f5c
ret

Function at 0x430120
Capabilities:
Acquire debug privileges

Disassembly:
add esp, 0xffffffe8
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x430170
lea eax, [esp + 0xc]
push eax
push 0x430174
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
add esp, 0x18
ret

Function at 0x435638
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 0x435584
call sub.user32.dll_EnumWindows
ret

Function at 0x435758
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 0x4357d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004351b8
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 0x43577d
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00434db8
cmp dword [ebp - 4], 0
je 0x4357bf
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.0040441c
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 0x4357dc
lea eax, [ebp - 4]
call fcn.00403f5c
ret

Function at 0x438ca8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x438cf8]
test si, 4
je 0x438cbc
or bl, 1
test si, 8
je 0x438cc6
or bl, 4
test si, 1
je 0x438cd0
or bl, 8
test si, 2
je 0x438cda
or bl, 0x10
test si, 0x10
je 0x438ce4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x438cf3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x438cfc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x438d34]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x438d15
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x438d24
or bl, 4
test esi, 0x20000000
je 0x438d2f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x43f3dc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x43f3ee
add esp, 0xfffffff0
call fcn.004033e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004196f8
mov eax, dword [0x45e874]
mov dword [eax + 4], ebx
mov dword [eax], 0x43f780
mov eax, dword [0x45e880]
mov dword [eax + 4], ebx
mov dword [eax], 0x43f78c
mov eax, ebx
call fcn.0043f798
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4119f0]
call fcn.004030a8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4119f0]
call fcn.004030a8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4119f0]
call fcn.004030a8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4119f0]
call fcn.004030a8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4119f0]
call fcn.004030a8
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, 0x43bbb4
push eax
push 0
push 0
mov eax, dword [0x45e9cc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b11c]
call fcn.0041c560
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b11c]
call fcn.0041c560
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b11c]
call fcn.0041c560
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0043fbb8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43fa94
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43fa94
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43fa94
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43f52b
call fcn.0040343c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x43f878
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 0x43fa23
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x43fa04
mov dl, 1
mov eax, dword [0x411e0c]
call fcn.004030a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f5c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43f9f3
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.0045b084
test al, al
je 0x43f9e6
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, 0x43fa34
lea eax, [ebp - 0x254]
call fcn.00408c58
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43f9e6
xor eax, eax
push ebp
push 0x43f9df
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 0x43fa6c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43f9c8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041cc
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 0x43f9c8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004041cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f9e6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x43f8e9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004158e8
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 0x43fa2a
lea eax, [ebp - 0x260]
call fcn.00403f5c
ret

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

Disassembly:
push ecx
mov eax, dword [0x45fda0]
cmp byte [eax + 0xa5], 0
jne 0x4403c9
cmp dword [0x45fdb8], 0
jne 0x44038a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x440314
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45fdb8], eax
cmp dword [0x45fdb4], 0
jne 0x4403a5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45fdb4], eax
cmp dword [0x45fdbc], 0
jne 0x4403c9
push esp
push 0
push 0
push 0x4402b8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45fdbc], eax
pop edx
ret
Function at 0x4404c0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4404d7
add esp, 0xfffffff0
call fcn.004033e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004196f8
mov eax, dword [0x45e9b4]
cmp word [eax + 2], 0
jne 0x4404ff
mov eax, dword [0x45e9b4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00441a14
mov eax, dword [0x45ea64]
cmp word [eax + 2], 0
jne 0x440519
mov eax, dword [0x45ea64]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00441c0c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4119f0]
call fcn.004030a8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4119f0]
call fcn.004030a8
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 [0x41b8cc]
call fcn.00421514
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4406a0
mov eax, dword [0x45e8dc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004218e4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4421ac
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45e8dc]
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.0040c294
test eax, eax
je 0x44060e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408638
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c2bc
test eax, eax
je 0x440622
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.004041cc
mov eax, dword [0x45e7c8]
cmp byte [eax], 0
jne 0x440656
mov eax, ebx
call fcn.004407c8
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.00442388
mov eax, ebx
call fcn.00442d4c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x440696
call fcn.0040343c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret