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

Disassembly:
call 0x3a6cc51f
inc eax
inc eax
cmp al, 0x3a
dec edx
sbb byte [edx + 0x30abd8e2], dh
salc
xor ebp, dword [ecx - 0x20513fb4]
mov al, byte gs:[0xe2a3f488]
push edx
sbb ecx, dword [ebx + 0x5b8b9cc6]
nop
push ss
sar dword [edx + 7], cl
sub esp, dword [eax]
and esp, esp
ret 0x2b9
invalid
test eax, 0x431399b5
outsb dx, byte [esi]
test al, 0xe8
call 0xd046c951
mov dh, 0x5d
mov edi, 0xc79bc334
call 0xd046c951
mov dh, 0x5d
mov edi, 0xc79bc334
in al, dx
jbe 0x5e01e2
pop esi
loope 0x5e0203
mov al, 8
pop ds
dec edi
sub edi, dword [eax - 0xdb68222]
mov ah, 0x69
cld
xchg ecx, eax
sbb ch, byte [ecx + 0x2b974121]
sbb dword [edx + 0x7f3338d7], 0x8881ae75
pop edx
fdivr qword [edi - 0x31f21106]
in al, 0x91
ja 0x5e02d8
std
xor dword [edx + 0x23483ab9], edx
cmp byte [edx + 0x63], 0xad
lodsd eax, dword [esi]
loope 0x5e023d
xor dl, bl
ret 0xc8a0
push eax
enter 0xffffffffffffdcfa, 0xfffffffffffffff2
dec edx
jecxz 0x5e030d
retf
inc edx
retf
das
push 0x3e
push edx
xlatb
fild qword [eax]
push es
push ebp
nop
imul edx, ebx, 0x7d793106
rol dword [esi], cl
xor dword [ecx + 0x7d], edi
jbe 0x5e0391
lahf
or al, 0x8b
mov cl, 0xb8
xchg ecx, eax
mov byte [ebp - 0xa], 0xca
aad 0x16
loope 0x5e0309
enter 0x860, 0xfffffffffffffff3
mov esi, 0x40b0eccc
mov al, byte [0xca2d3427]
js 0x5e032d
dec eax
pushal
sbb byte [ecx - 0x48], bl
and dword [ebx - 0x669cd45e], edi
xor al, 0xb
adc eax, edi
in eax, 0xe0
jg 0x5e0342
cmc
sbb al, 0x3f
xchg esp, eax
hlt
jle 0x5e0318
cmp eax, 0xc3202da0
wait
xchg al, dh
mov cl, 0xf3
sub byte [esi + 0x48395056], cl
mov byte [edi + 0x4d192448], al
mov edx, 0x8b81bacc
mov byte [ecx - 2], bh
sub byte [esi], dh
mov eax, 0x19c0b2c1
mov al, byte [0x77d621a8]
xor edx, ecx
mov esi, 0xc0b88460
cmp eax, 0x4b46f283
or al, 0x21
add esi, dword [ecx - 0x1a]
mov ebp, dword [edx + edx*8]
sub edx, dword [eax + ebp*2 - 0x3f36a758]
test dword [ebx + edx*8], edi
inc ebp
xchg dword [ebp + 0x92f8d66], edi
aaa
dec eax
or eax, 0x354a2182
jne 0x5e0467
popfd
xor ebp, eax
sbb ah, byte [ecx - 0x14]
xchg ebx, eax
push esp
imul esi, dword [edx + 0x5a], 0xa
invalid
adc dword [ebp - 0x38], 0x9efda7eb
into
aad 0x59
sti
xchg byte [eax], ch
scasb al, byte es:[edi]
iretd
Function at 0x60a9f4
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x86da0147
mov ch, 0x3a
scasd eax, dword es:[edi]
mov ecx, 0xb902b4e5
sal word [eax], 0x70
xchg ebp, eax
cmp bl, byte [ecx]
xor byte [eax], bl
sahf
scasb al, byte es:[edi]
jmp 0x60aa33
in eax, 0xb6
invalid
xor esp, esi
leave
sub bl, byte [ebp - 0x30]
mov ecx, 0x43958121
inc ebx
sub dword [edi + edi - 0x53], edx
mov ebp, 0x8ab8d288
cmpsd dword [esi], dword es:[edi]
and byte [edx - 0x11], dh
mov eax, 0x883fac87
out 0x8e, eax
mov bh, ah
mov cs, word [ecx + 0x78]
aad 0xd4
jo 0x60aa4c
dec ecx
js 0x60a9e1
aam 0x70
cmp eax, 0x8d7595e4
in al, 0x95
jne 0x60a9a0
rcl dword [edi - 0x4dd6c6cc]
xor byte [eax - 0x53], ch
jo 0x60aa8a
xor byte [edi + 0x6d], ah
movsd dword es:[edi], dword [esi]
cmp ah, dl
enter 0xffffffffffff801f, 0xffffffffffffffd4
xchg ebx, ecx
push es
test byte [ebp - 0x57], 0xa2
adc edx, dword [esi]
add al, 0x6e
das
or byte [esi], cl
lds esi, [ebp + 0x7c]
fdivr st(4), st(0)
jbe 0x60aa06
scasb al, byte es:[edi]
push ss
sbb eax, 0x979e6fd5
mov dl, 0x51
xor al, 0xc9
neg dword [esp + ebp*8 + 0x783653c8]
pushfd
in al, dx
enter 0x3653, 0x78
cmp al, byte [0x7f702a38]
jecxz 0x60aab0
cwde
jne 0x60aa13
jne 0x60aab7
ja 0x60aa09
mov ah, 0x69
pop ss
jmp 0x7c6ae3ee
dec eax
jp 0x60aabc
cld
das
cwde
inc ecx
pop es
jae 0x60aace
pop ds
cmp dword [edx + ecx*2], ebx
arpl word [eax + 0x68], dx
movsb byte es:[edi], byte [esi]
or al, byte [edi + 0x7736a59e]
movsb byte es:[edi], byte [esi]
sahf
lodsb al, byte [esi]
sar byte [ecx - 0x5e], 1
mov eax, 0x74477934
in al, 0x55
mov ah, 0xc9
leave
xor al, 0x6b
inc ecx
aaa
inc ebp
enter 0xffffffffffff9b2d, 0xffffffffffffffb4
pop edx
inc eax
sub eax, 0x405ab49b
dec ebp
aad 0x70
and dh, bh
xchg edx, eax
sti
out dx, al
out 0xaa, eax
stc
ljmp 0xc72d
invalid
Function at 0x64dd7d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x658358
cmp edx, dword [eax]
je 0x64dd9f
add eax, 8
inc ecx
cmp eax, 0x6583e8
jl 0x64dd90
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x658358]
jne 0x64decd
mov eax, dword [0xa5bcc0]
cmp eax, 1
je 0x64dea7
test eax, eax
jne 0x64ddd0
cmp dword [0x658284], 1
je 0x64dea7
cmp edx, 0xfc
je 0x64decd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x64de07
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0064e760
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0064ebf0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x64de4a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0064ebf0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x653cf4
push edi
call fcn.00650ac0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0064e760
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0064e770
lea eax, [ebp - 0xa0]
push 0x653cd4
push eax
call fcn.0064e770
push dword [esi + 0x65835c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0064e770
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00650a34
add esp, 0x2c
pop edi
jmp 0x64decd
lea eax, [ebp + 8]
lea esi, [esi + 0x65835c]
push 0
push eax
push dword [esi]
call fcn.0064ebf0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x424f40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x424f4f
pop dword [ebp - 0x50]
mov eax, 0xa0121c7d
sub eax, 0x9fcfcd2e
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xa8e89f40
sub dword [ebp - 0x60], 0x5a9659f5
mov dword [ebp - 0x5c], 0x42e2d005
sub dword [ebp - 0x5c], 0x10af83c0
mov dword [ebp - 0x58], 0x32f4ceb4
sub dword [ebp - 0x58], 0xe6a88a86
mov dword [ebp - 0x54], 0x3d8b2f7
sub dword [ebp - 0x54], 0x3d8b2f7
lea eax, [ebp - 0x60]
push eax
mov eax, 0xfdc1e5c2
add eax, 0x281baee
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x403ed535
sub dword [ebp - 0x60], 0xcbcc6bdf
mov dword [ebp - 0x5c], 0x74960311
add dword [ebp - 0x5c], 0xccd65e64
mov dword [ebp - 0x58], 0x916044ef
sub dword [ebp - 0x58], 0x2df0d883
mov dword [ebp - 0x54], 0x20db8a17
add dword [ebp - 0x54], 0xdf2475e9
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3fa8c
push 0
call eax
mov ecx, 0x16b2584a
add ecx, 0xe94df57d
xor edx, edx
add edx, eax
mov edi, 0x457a00
add edi, dword [ebp - 0x50]
mov esi, 0x39b09e0f
mov ebx, dword [edi]
xor dword [ebp - 0x48], 0x3faa2bb5
xor ebx, esi
add dword [ebp - 0x48], esi
mov dword [edx], ebx
sub dword [ebp - 0x28], edx
add edx, 4
add edi, 0x6fb0c3f1
add edi, 0x904f3c13
loop 0x425062
add eax, 0x129ef
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x404228
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 0x4043c4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4042d8
xor eax, eax
push ebp
push 0x4042d1
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]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4042ba
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4043e4
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 0x4042d8
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 0x4043b9
cmp byte [ebp - 0xd], 0
jne 0x40431a
cmp byte [ebp - 0x12], 0
je 0x4043b9
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404333
dec ebx
cmp byte [ebx], 0x2e
je 0x404342
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404332
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4043b9
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40436f
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
jmp loc.00461520
test esi, esi
jne 0x4043b9
cmp byte [ebp - 0xd], 0
je 0x4043b9
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 0x4043b9
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 0x406e9c
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 0x406ed5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403650
jmp 0x406ede
mov eax, ebx
mov edx, esi
call fcn.00403604
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406ee8
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 0x406f09
mov al, byte [esp]
jmp 0x406f0b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4102ec
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 0x4102f2
ret

Function at 0x418318
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x114], 0
je 0x418334
cmp dword [esi + 4], 0
je 0x41835b
mov eax, ebx
call fcn.0041754c
test eax, eax
jne 0x41834d
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x41846b
mov edx, esi
mov eax, ebx
call fcn.00417fbc
jmp 0x41846b
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x418464
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00419918
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00416454
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00418318
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00419918
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41846b
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b2d4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0040356c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x41b335
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x41b335
cmp byte [ebp - 0x102], 0
je 0x41b335
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403798
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41c6c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x28], 0
je 0x41c745
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41c6f6
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41c708
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x41c714
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.0041c550
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41c739
push ebp
mov eax, dword [ebp - 4]
call fcn.0041c634
pop ecx
mov ebx, eax
cmp bl, 2
je 0x41c714
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41e520
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4516dc
cmp dword [edi], 0
jne 0x41e59c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4516d8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4506f4
mov ecx, 2
call fcn.004026a4
mov edx, 0x41e4f8
lea eax, [esi + 5]
call fcn.0041e518
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e518
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 0x41e571
mov dword [0x4516d8], 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 0x41e6c0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41e710]
test si, 4
je 0x41e6d4
or bl, 1
test si, 8
je 0x41e6de
or bl, 4
test si, 1
je 0x41e6e8
or bl, 8
jmp 0x461778

Function at 0x41e714
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41e74c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41e72d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41e73c
or bl, 4
test esi, 0x20000000
je 0x41e747
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x422764
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 0x422909
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x409de4]
call fcn.00402ab8
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.0040356c
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4228df
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.0041aa74
test al, al
je 0x4228d2
lea eax, [ebp - 0xc]
push eax
push 0xf003f
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, 0x422918
lea eax, [ebp - 0x254]
call fcn.00406d2c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4228d2
xor eax, eax
push ebp
push 0x4228cb
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 0x422950
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4228b4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403798
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 0x4228b4
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403798
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4228d2
jmp loc.00461070
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4227d5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040c710
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422910
lea eax, [ebp - 0x260]
call fcn.0040356c
ret

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

Disassembly:
push ecx
mov eax, dword [0x4516b0]
cmp byte [eax + 0x85], 0
jne 0x422b65
cmp dword [0x4516e8], 0
jne 0x422b26
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x422ab0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4516e8], eax
cmp dword [0x4516e4], 0
jne 0x422b41
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4516e4], eax
cmp dword [0x4516ec], 0
jne 0x422b65
push esp
push 0
push 0
push 0x422a54
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4516ec], eax
pop edx
ret
Function at 0x422c54
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x422c6b
add esp, 0xfffffff0
call fcn.00402cd4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0040efc0
mov dl, 1
mov eax, dword [0x409b28]
call fcn.00402ab8
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, dword [0x409b28]
call fcn.00402ab8
mov dword [ebx + 0x88], eax
xor eax, eax
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x40], 0x80000018
mov dword [ebx + 0x58], 0x1f4
mov dword [ebx + 0x5c], 0x32
mov dword [ebx + 0x60], 0x9c4
mov byte [ebx + 0x68], 0
mov byte [ebx + 0x7d], 1
mov dl, 1
mov eax, dword [0x4101d0]
call fcn.00413028
mov esi, eax
mov dword [ebx + 0x78], esi
push 0x422dc4
mov eax, dword [0x450940]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004133c0
mov eax, dword [ebx + 0x78]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x4243e8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x450940]
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.00408190
test eax, eax
je 0x422d4c
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00406780
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.004081b8
test eax, eax
je 0x422d60
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x6c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403798
mov eax, dword [0x4508cc]
cmp byte [eax], 0
jne 0x422d91
mov eax, ebx
call fcn.00422ea8
mov byte [ebx + 0x3d], 1
mov byte [ebx + 0x3e], 1
mov byte [ebx + 0x3f], 1
mov byte [ebx + 0x7e], 1
xor eax, eax
mov dword [ebx + 0x80], eax
cmp byte [ebp - 1], 0
je 0x422db9
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4230fc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4516b0]
cmp dword [eax + 0x24], 0
je 0x42318c
cmp dword [ebx + 0x74], 0
jne 0x423189
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x423090
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x70]
cmp dword [eax + 8], 0
je 0x423189
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 0x423158
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x70]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x423189
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x70]
call fcn.0040ab98
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x423164
inc dword [ebx + 0x74]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x423a74
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x84], 0
je 0x423aa9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403650
jmp 0x423ab3
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.00403604
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x424658
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x64]
test esi, esi
je 0x424690
mov eax, esi
call fcn.00419ab0
test al, al
je 0x424690
mov eax, dword [ebx + 0x64]
call fcn.00419918
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x424690
push 0
mov eax, dword [ebx + 0x64]
call fcn.00419918
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret