joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a75e0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x4a7661
lea ebx, [esi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x4a769c
cmp dword [esp + 4], 0
je 0x4a7683
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4a76bf
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x506a30]
nop word cs:[eax + eax]
nop
mov dword [esi + 8], eax
lock cmpxchg dword [0x506a30], esi
jne 0x4a7640
mov byte [0x506a2c], 1
push 0
push 0
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
jmp 0x4a7693
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x4a7702
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x4a7687
mov edi, dword [esp]
jmp 0x4a7693
mov edi, dword [esi]
jmp 0x4a7692
mov edi, eax
push dword [esp]
call dword [sym.imp.kernel32.dll_TlsFree]
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov dword [esp + 8], 0
lea eax, [esp + 8]
mov ecx, esp
mov edx, 0x4d2b30
push 0x4d2b90
push eax
call fcn.004a7740
add esp, 8
ud2
push 0
push 4
push ebx
call dword [sym.imp.kernel32.dll_InitOnceComplete]
lea ecx, [esp + 8]
mov edx, 0x4d2b80
mov dword [esp + 8], 0x4d2b48
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0x4fa19c
mov dword [esp + 0x14], 0
call fcn.004a51c0
ud2
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0x4d2b48
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0x4fa19c
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.004a7780
ud2

Function at 0x4a7c00
Capabilities:
Resolve dns

Disassembly:
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea ecx, [esp + 4]
push dword [esp + 0x44]
call fcn.00410410
add esp, 4
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x4a7c40
mov eax, dword [0x4d1da0]
mov edx, dword [0x4d1da4]
cmp dword [esp + 8], 0
mov dword [esi + 8], edx
mov dword [esi + 4], eax
mov dword [esi], 1
jne 0x4a7caf
jmp 0x4a7cb9
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
xorps xmm0, xmm0
mov eax, esp
mov dword [esp], 0
lea ecx, [esp + 0x14]
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x1c], 1
push eax
push ecx
push 0
push edi
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x4a7c90
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
jmp 0x4a7ca4
mov ecx, dword [esp]
movzx eax, word [esp + 0x48]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x4a7cb9
mov ecx, edi
mov edx, 1
call fcn.0040edd0
add esp, 0x34
pop esi
pop edi
pop ebx
ret
Function at 0x4135a0
Capabilities:
Encode data using xor

Disassembly:
pop es
mov al, byte [0xb60b8bc2]
test al, 0xd6
insb byte es:[edi], dx
inc ebp
pop edx
ret 0x41ea
push ebx
push ecx
or al, 0x5c
test eax, 0x2f2a9066
pop edx
or byte [esi - 0x77], 0xbd
and byte [ebx - 0x58], 0xd4
mov ebp, 0xd4a86380
xor dword [edx], edx
xor byte [eax], dl
push es
or ch, byte [ebx]
push es
add dword [ecx + eax], eax
xor byte [edi], 0xc
add al, byte [ebx]
xor dword [edx], eax
add byte [eax], 0x30
sub al, byte [esp + edx]
add eax, 0x393ef375
mov ch, 0
xchg ecx, eax
loope 0x4134da
mov esp, 0x45cc829d
dec edi
jns 0x4134fa
cmp dword [esi + 0x31], eax
adc dh, byte [eax]
adc byte [esi], al
or ch, byte [ebx]
push es
add dword [ecx + eax], eax
xor byte [edi], 0xc
add al, byte [ebx]
xor dword [edx], eax
add byte [eax], 0x30
sub al, byte [esp + edx]
add eax, 0xb1161481
scasd eax, dword es:[edi]
inc ebx
or dword [edx], 0x45892681
stc
sub ecx, ebx
mov bl, 0x3e
jp 0x413507
xor dword [edx], edx
xor byte [eax], dl
push es
or ch, byte [ebx]
push es
add dword [ecx + eax], eax
xor byte [edi], 0xc
add al, byte [ebx]
xor dword [edx], eax
add byte [eax], 0x30
sub al, byte [esp + edx]
add eax, 0xb4946884
cmp byte [edi + 0x688bbb75], dl
sbb byte [ecx + 0x1b9e4207], dl
mov byte [0x1231f062], al
xchg edi, eax
jne 0x413540
mov ebp, dword [eax + 0x18]
xchg ecx, eax
pop es
inc edx
sahf
sbb esp, dword [edx + 0x1231f062]
xor byte [eax], dl
push es
or ch, byte [ebx]
push es
add dword [ecx + eax], eax
xor byte [edi], 0xc
add al, byte [ebx]
xor dword [edx], eax
add byte [eax], 0x30
adc dword [ebp - 0x24fadffc], 0xab0aacc
fcmovne st(0), st(4)
stosb byte es:[edi], al
mov al, 0xa
aad 0x67
jl 0x413582
sub bh, byte ds:[ecx - 0x4a088066]
retf 0xdcc9
Function at 0x402768
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 0x402797
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.004037a0
jmp 0x4027b5
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004026fc
mov edi, eax
test ebx, ebx
je 0x4027b5
cmp dword [esi], 0
je 0x4027b5
dec ebx
jmp 0x40279e
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402988
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x45103c], 0x8088405
inc edx
mov dword [0x45103c], edx
mul edx
mov eax, edx
ret

Function at 0x402abc
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 0x402b54
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402b34
xor eax, eax
push ebp
push 0x402b2d
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 0x402b70
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 0x402b34
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 0x40439c
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 0x404538
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40444c
xor eax, eax
push ebp
push 0x404445
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 0x40442e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404558
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 0x40444c
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 0x40452d
cmp byte [ebp - 0xd], 0
jne 0x40448e
cmp byte [ebp - 0x12], 0
je 0x40452d
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4044a7
dec ebx
cmp byte [ebx], 0x2e
je 0x4044b6
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4044a6
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40452d
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4044e3
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 0x40452d
cmp byte [ebp - 0xd], 0
je 0x40452d
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 0x40452d
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 0x404a0c
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x404a68
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x404a5a
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x404a4f
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x404a4a
mov eax, 0x64
jmp 0x404a5f
call sub.kernel32.dll_GetLastError
call fcn.004026a0
xor eax, eax
jmp 0x404a4a
mov eax, 0x67
jmp 0x404a5f
Function at 0x404a70
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x404acb
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_WriteFile
dec eax
pop eax
pop ecx
jne 0x404abd
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x404ab2
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x404aad
mov eax, 0x65
jmp 0x404ac2
call sub.kernel32.dll_GetLastError
call fcn.004026a0
xor eax, eax
jmp 0x404aad
mov eax, 0x67
jmp 0x404ac2

Function at 0x404b10
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x404b40
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x404b36
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.004026b0
or eax, 0xffffffff
jmp 0x404b34
mov eax, 0x67
call fcn.004026a0
or eax, 0xffffffff
jmp 0x404b34

Function at 0x404b50
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
mov ecx, dword [ebx + 4]
sub ecx, 0xd7b1
je 0x404b63
sub ecx, 2
jne 0x404b8c
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x404b80
cmp edx, dword [ebx + 8]
jne 0x404b93
pop ebx
ret
call sub.kernel32.dll_GetLastError
call fcn.004026a0
jmp 0x404b7e
mov eax, 0x67
jmp 0x404b85
mov eax, 0x64
jmp 0x404b85

Function at 0x404d58
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x404d93
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x404d87
cmp edx, dword [ebx + 8]
jne 0x404d9a
mov eax, ebx
pop ebx
ret
call sub.kernel32.dll_GetLastError
call fcn.004026a0
jmp 0x404d83
mov eax, 5
jmp 0x404d8c
mov eax, 0x65
jmp 0x404d8c

Function at 0x4076a4
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4076dd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004037a0
jmp 0x4076e6
mov eax, ebx
mov edx, esi
call fcn.00403754
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4076f0
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 0x407711
mov al, byte [esp]
jmp 0x407713
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x411934
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 0x41193a
ret
Function at 0x413d78
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 0x413dc9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x413db0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x413da0
jmp 0x413dc9
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 0x413db1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d6fc
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 0x41d718
cmp dword [esi + 4], 0
je 0x41d73f
mov eax, ebx
call fcn.0041c9a0
test eax, eax
jne 0x41d731
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x41d84f
mov edx, esi
mov eax, ebx
call fcn.0041d3a0
jmp 0x41d84f
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 0x41d848
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0041ecfc
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.0041b8a8
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0041d6fc
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.0041ecfc
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d84f
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 0x420694
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.004036bc
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4206f5
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x4206f5
cmp byte [ebp - 0x102], 0
je 0x4206f5
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.004038e8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421a84
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 0x421b05
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x421ab6
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x421ac8
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x421ad4
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.00421910
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x421af9
push ebp
mov eax, dword [ebp - 4]
call fcn.004219f4
pop ecx
mov ebx, eax
cmp bl, 2
je 0x421ad4
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4238c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x451714
cmp dword [edi], 0
jne 0x42393c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x451710]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x44f73c
mov ecx, 2
call fcn.004026bc
mov edx, 0x423898
lea eax, [esi + 5]
call fcn.004238b8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004238b8
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 0x423911
mov dword [0x451710], 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 0x423a60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x423ab0]
test si, 4
je 0x423a74
or bl, 1
test si, 8
je 0x423a7e
or bl, 4
test si, 1
je 0x423a88
or bl, 8
test si, 2
je 0x423a92
or bl, 0x10
test si, 0x10
je 0x423a9c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x423aab
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x427b18
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 0x427cbd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40a97c]
call fcn.00402c1c
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004036bc
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 0x427c93
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.0041fe34
test al, al
je 0x427c86
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, 0x427ccc
lea eax, [ebp - 0x254]
call fcn.0040732c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x427c86
xor eax, eax
push ebp
push 0x427c7f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x427d04
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x427c68
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004038e8
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 0x427c68
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.004038e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427c86
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x427b89
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040d9a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427cc4
lea eax, [ebp - 0x260]
call fcn.004036bc
ret

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

Disassembly:
push ecx
mov eax, dword [0x4516e8]
cmp byte [eax + 0x85], 0
jne 0x427f19
cmp dword [0x451720], 0
jne 0x427eda
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x427e64
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x451720], eax
cmp dword [0x45171c], 0
jne 0x427ef5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45171c], eax
cmp dword [0x451724], 0
jne 0x427f19
push esp
push 0
push 0
push 0x427e08
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x451724], eax
pop edx
ret
Function at 0x428008
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x42801f
add esp, 0xfffffff0
call fcn.00402e24
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00410308
mov dl, 1
mov eax, dword [0x40a564]
call fcn.00402c1c
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, dword [0x40a564]
call fcn.00402c1c
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 [0x411804]
call fcn.004184dc
mov esi, eax
mov dword [ebx + 0x78], esi
push 0x428178
mov eax, dword [0x44fe4c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00418874
mov eax, dword [ebx + 0x78]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x4297dc
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x44fe4c]
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.00408b58
test eax, eax
je 0x428100
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00406d80
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00408b80
test eax, eax
je 0x428114
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, 0x100
call fcn.004038e8
mov eax, dword [0x44fda4]
cmp byte [eax], 0
jne 0x428145
mov eax, ebx
call fcn.0042825c
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 0x42816d
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4284b0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4516e8]
cmp dword [eax + 0x24], 0
je 0x428540
cmp dword [ebx + 0x74], 0
jne 0x42853d
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x428444
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x70]
cmp dword [eax + 8], 0
je 0x42853d
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 0x42850c
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x70]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x42853d
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.0040b738
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x428518
inc dword [ebx + 0x74]
pop ecx
pop edx
pop esi
pop ebx
ret