joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40688e
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x40689c
call 0x85667ec
mov al, byte [0x8b640041]
cmp eax, 0x30
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x44ee30], eax
sub eax, eax
je 0x4068c1
jmp 0xa8cf50f2
call 0x401154
call 0x406651
pop edi
xor eax, eax
pop esi
ret

Function at 0x407515
Capabilities:
Parse pe header

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

Function at 0x40d5eb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2c8
push 0x41c2c0
push str.FlsAlloc
push 0x1e
call fcn.0040d4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d61f
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
jmp 0x40d625
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d669
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2d8
push 0x41c2d0
push str.FlsGetValue
push 0x20
call fcn.0040d4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d6a0
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x463671
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x20030
call fcn.00431940
push ebx
push esi
lea eax, [esp + 0x10038]
mov esi, edx
push eax
mov edx, 0x7fff
call fcn.0046466e
lea eax, [esp + 0x3c]
mov edx, 0x7fff
push eax
mov ecx, esi
call fcn.0046466e
pop ecx
pop ecx
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1003c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x4636ff
cmp byte [ebp + 8], al
je 0x4636f8
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1003c]
push eax
call fcn.0042354c
pop ecx
pop ecx
test eax, eax
je 0x4636f1
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1003c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
mov al, 1
jmp 0x4637ab
xor al, al
jmp 0x4637ab
lea ecx, [esp + 0x10038]
call fcn.00464a31
test al, al
je 0x4636f8
lea ecx, [esp + 0x38]
call fcn.00464a31
test al, al
je 0x4637b1
cmp byte [ebp + 8], 0
je 0x4636f8
lea eax, [esp + 0x10038]
push 0x4b86b8
push eax
call fcn.00422d8d
lea eax, [esp + 0x10040]
push eax
call fcn.00422bfc
xor ecx, ecx
mov word [esp + eax*2 + 0x10046], cx
lea eax, [esp + 0x44]
push eax
call fcn.00422bfc
xor ecx, ecx
mov dword [esp + 0x1c], 2
add esp, 0x10
mov word [esp + eax*2 + 0x3a], cx
lea eax, [esp + 0x10038]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 8], eax
mov eax, 0x614
mov word [esp + 0x18], ax
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
call fcn.00407de1
lea ecx, [esp + 0x28]
call fcn.00463a2a
mov bl, al
lea ecx, [esp + 0x28]
neg bl
sbb bl, bl
call fcn.00405904
inc bl
jne 0x4636f8
lea ecx, [esp + 0x38]
call fcn.00464a31
test al, al
jmp 0x463724
Function at 0x4637ef
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 1], bl
mov edi, edx
call fcn.00407667
lea ecx, [ebp - 0x44]
call fcn.00407667
lea ecx, [ebp - 0x24]
call fcn.00407667
lea ecx, [ebp - 0x14]
call fcn.00407667
lea edx, [ebp - 0x34]
mov ecx, esi
call fcn.00404750
lea edx, [ebp - 0x44]
mov ecx, edi
call fcn.00404750
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x34]
call fcn.004649c7
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 3], al
call fcn.00464a31
mov esi, 0x4b86b8
test al, al
je 0x463860
push esi
lea ecx, [ebp - 0x34]
call fcn.00407cab
mov ecx, dword [ebp - 0x44]
call fcn.00464a31
test al, al
je 0x463875
push esi
lea ecx, [ebp - 0x44]
call fcn.00407cab
lea ecx, [ebp - 0x54]
call fcn.00407667
lea ecx, [ebp - 0x64]
call fcn.00407667
push ebx
lea eax, [ebp - 0x64]
push ebx
push eax
lea edx, [ebp - 0x54]
lea ecx, [ebp - 0x34]
call fcn.0040459b
add esp, 0xc
lea eax, [ebp - 0x2c8]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [ebp - 2], al
cmp esi, 0xffffffff
je 0x4639c1
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp al, 1
jne 0x4639c1
test byte [ebp - 0x2c8], 0x10
jne 0x463995
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x74]
call fcn.00407de1
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x74]
call fcn.00464071
pop ecx
lea ecx, [ebp - 0x74]
call fcn.00405904
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x14]
call fcn.00408047
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407b2e
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407cab
lea ecx, [ebp - 0x24]
call fcn.00463c37
test al, al
je 0x46394d
cmp byte [ebp + 8], bl
je 0x4639b8
push ebx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407908
push dword [ebp - 0x24]
test eax, eax
je 0x46395b
call edi
cmp byte [ebp + 0xc], 1
jne 0x46397f
cmp byte [ebp - 3], bl
jne 0x463966
push dword [ebp - 0x24]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
jmp 0x46398d
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.00463a04
movzx eax, al
test eax, eax
je 0x4639b8
push dword [ebp - 0x14]
call edi
jmp 0x46398d
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x14]
call fcn.00463a04
movzx eax, al
test eax, eax
je 0x4639b8
mov byte [ebp - 1], 1
lea eax, [ebp - 0x2c8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
mov al, byte [ebp - 2]
jne 0x4638bf
mov al, bl
mov byte [ebp - 2], al
jmp 0x4638bf
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
jmp 0x4639cb
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov bl, byte [ebp - 1]
lea ecx, [ebp - 0x64]
call fcn.00405904
lea ecx, [ebp - 0x54]
call fcn.00405904
lea ecx, [ebp - 0x14]
call fcn.00405904
lea ecx, [ebp - 0x24]
call fcn.00405904
lea ecx, [ebp - 0x44]
call fcn.00405904
lea ecx, [ebp - 0x34]
call fcn.00405904
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463b12
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x288
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0xf], bl
call fcn.00407667
lea ecx, [esp + 0x20]
call fcn.00407667
lea ecx, [esp + 0x30]
call fcn.00407667
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.00404750
mov ecx, dword [esp + 0x10]
call fcn.00464a31
test al, al
je 0x463b69
push 0x4b86b8
lea ecx, [esp + 0x14]
call fcn.00407cab
push ebx
lea eax, [esp + 0x34]
push ebx
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x1c]
call fcn.0040459b
add esp, 0xc
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [esp + 0xe], al
cmp esi, 0xffffffff
je 0x463c09
cmp al, 1
jne 0x463c09
test byte [esp + 0x40], 0x10
jne 0x463be4
mov byte [esp + 0xf], al
lea ecx, [esp + 0x10]
lea eax, [esp + 0x20]
push eax
call fcn.00408047
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00407b2e
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x14]
call fcn.00407cab
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
jne 0x463c00
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
mov al, byte [esp + 0xe]
jne 0x463b9c
mov al, bl
mov byte [esp + 0xe], al
jmp 0x463b9c
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
jmp 0x463c14
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov bl, byte [esp + 0xf]
lea ecx, [esp + 0x30]
call fcn.00405904
lea ecx, [esp + 0x20]
call fcn.00405904
lea ecx, [esp + 0x10]
call fcn.00405904
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4028f8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402927
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403aec
jmp 0x402945
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402820
mov edi, eax
test ebx, ebx
je 0x402945
cmp dword [esi], 0
je 0x402945
dec ebx
jmp 0x40292e
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c0c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402ca4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402c84
xor eax, eax
push ebp
push 0x402c7d
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 0x402cc0
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 0x402c84
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x4055c4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405780
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405625
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x40579c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405697
xor eax, eax
push ebp
push 0x405690
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.0040541c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405679
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4057bc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405697
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405778
cmp byte [ebp - 0xd], 0
jne 0x4056d9
cmp byte [ebp - 0x12], 0
je 0x405778
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4056f2
dec ebx
cmp byte [ebx], 0x2e
je 0x405701
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4056f1
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405778
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40572e
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405778
cmp byte [ebp - 0xd], 0
je 0x405778
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405778
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a1d0
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 0x40a209
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403aec
jmp 0x40a212
mov eax, ebx
mov edx, esi
call fcn.00403a58
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a21c
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 0x40a23d
mov al, byte [esp]
jmp 0x40a23f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x417150
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 0x417156
ret

Function at 0x4194b4
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 0x419505
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4194ec
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4194dc
jmp 0x419505
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 0x4194ed
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x473770
cmp dword [edi], 0
jne 0x421318
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47376c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45b6c0
mov ecx, 2
call fcn.004027e0
mov edx, 0x421274
lea eax, [esi + 5]
call fcn.00421294
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421294
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 0x4212ed
mov dword [0x47376c], 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 0x421434
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x421484]
test si, 4
je 0x421448
or bl, 1
test si, 8
je 0x421452
or bl, 4
test si, 1
je 0x42145c
or bl, 8
test si, 2
je 0x421466
or bl, 0x10
test si, 0x10
je 0x421470
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42147f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x421488
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4214c0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4214a1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4214b0
or bl, 4
test esi, 0x20000000
je 0x4214bb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x427668
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x42767a
add esp, 0xfffffff0
call fcn.0040307c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00414c78
mov eax, ebx
call fcn.004279b4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40ea5c]
call fcn.00402d64
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40ea5c]
call fcn.00402d64
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x40ea5c]
call fcn.00402d64
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x40ea5c]
call fcn.00402d64
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40ea5c]
call fcn.00402d64
mov dword [ebx + 0x70], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x427638
push eax
push 0
push 0
mov eax, dword [0x471f14]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4168d4]
call fcn.00417bb0
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x4168d4]
call fcn.00417bb0
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x4168d4]
call fcn.00417bb0
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.00427d94
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x427cb0
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x427cb0
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x427cb0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x427789
call fcn.004030d4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x427a94
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 0x427c3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x427c20
mov dl, 1
mov eax, dword [0x40ed5c]
call fcn.00402d64
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403a04
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x427c0f
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.00440d04
test al, al
je 0x427c02
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, 0x427c50
lea eax, [ebp - 0x254]
call fcn.00408fbc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x427c02
xor eax, eax
push ebp
push 0x427bfb
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 0x427c88
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x427be4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403c34
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x427be4
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403c34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427c02
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x427b05
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00411c9c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427c46
lea eax, [ebp - 0x260]
call fcn.00403a04
ret

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

Disassembly:
push ecx
mov eax, dword [0x473760]
cmp byte [eax + 0x95], 0
jne 0x4284fd
cmp dword [0x47377c], 0
jne 0x4284be
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x428448
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47377c], eax
cmp dword [0x473778], 0
jne 0x4284d9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x473778], eax
cmp dword [0x473780], 0
jne 0x4284fd
push esp
push 0
push 0
push 0x4283ec
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x473780], eax
pop edx
ret
Function at 0x4285f4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x42860b
add esp, 0xfffffff0
call fcn.0040307c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00414c78
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40ea5c]
call fcn.00402d64
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40ea5c]
call fcn.00402d64
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x417008]
call fcn.0041c9f4
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x428780
mov eax, dword [0x471e2c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041cdc4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x429fb4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x471e2c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
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.0040b5a0
test eax, eax
je 0x4286fe
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408970
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040b5c8
test eax, eax
je 0x428712
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403c34
mov eax, dword [0x471d28]
cmp byte [eax], 0
jne 0x428743
mov eax, ebx
call fcn.0042886c
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x428775
call fcn.004030d4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x428adc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x473760]
cmp dword [eax + 0x24], 0
je 0x428b7f
cmp dword [ebx + 0x84], 0
jne 0x428b79
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x428a6c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x428b79
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x428b42
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x428b79
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.00410120
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x428b51
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret