joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4074ea
Capabilities:
Read file via mapping

Disassembly:
push 0x10
push 0x42d8c0
call fcn.0040bc10
mov esi, ecx
mov dword [ebp - 0x20], esi
lea eax, [esi + 0x28]
xor ebx, ebx
cmp dword [eax + 0x18], ebx
je 0x40750c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], ebx
cmp dword [esi + 4], ebx
jne 0x407571
mov edi, ebx
cmp dword [esi], edi
je 0x407531
push dword [ebp + 8]
push ebx
push ebx
push 6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [esi + 4], edi
test edi, edi
je 0x407571
mov edx, dword [ebp + 8]
mov ecx, edx
shr ecx, 1
mov al, byte [ecx + edi]
mov byte [ecx + edi], al
mov al, byte [edi + edx - 1]
mov byte [edi + edx - 1], al
mov dword [esi + 0xc], edx
mov byte [ebp - 0x19], 1
jmp 0x407571
mov dword [ebp - 4], 0xfffffffe
add esi, 0x28
cmp dword [esi + 0x18], ebx
je 0x407587
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x407e6f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x407e7d
mov ecx, dword [ecx]
push ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop ebp
ret 0x14

Function at 0x4081f1
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x408301
xor eax, eax
cmp ax, word [edi]
je 0x408301
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x40821c
call fcn.0040812c
push ebx
push 0x80
push 3
push ebx
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x408301
test eax, eax
je 0x408301
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x40
jb 0x408301
push ebx
push edi
push ebx
push 2
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x408301
test eax, eax
je 0x408301
push edi
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x408301
lea edx, [ecx + edi]
mov dword [esi + 8], edx
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 4], edx
cmp eax, 0x40
jb 0x408301
lea edi, [eax + ecx]
lea eax, [edi + 0xf8]
mov dword [esi + 0x10], edi
cmp edx, eax
jb 0x408301
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x408301
cmp dword [edi], 0x4550
jne 0x408301
movzx eax, word [edi + 4]
mov ecx, 0x14c
cmp ax, cx
je 0x4082e1
mov ecx, 0x8664
cmp ax, cx
jne 0x408301
mov bl, 1
mov eax, 0x108
jmp 0x4082e6
mov eax, 0xf8
lea edx, [edi + eax]
mov byte [esi + 0x18], bl
mov dword [esi + 0x14], edx
movzx ecx, word [edi + 6]
imul ecx, ecx, 0x28
add ecx, edx
cmp dword [ebp - 4], ecx
jb 0x408301
mov al, 1
jmp 0x40830a
mov ecx, esi
call fcn.0040812c
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40aa80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x430090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0xc], 0
je 0x40ab8a
cmp byte [edi + 0x60], 0
push esi
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x20], esi
je 0x40ab67
mov edx, dword [edi + 0x68]
mov ecx, dword [edi + 0x58]
lea eax, [edx + esi]
cmp eax, ecx
jle 0x40ab67
mov esi, dword [edi + 0x5c]
cmp esi, 1
jne 0x40ab0b
sub ecx, edx
push ecx
mov dword [ebp - 0x24], ecx
call fcn.0040b40d
push dword [ebp - 0x24]
mov esi, eax
push 0x20
push esi
call fcn.0040d070
push dword [edi + 0xc]
push dword [ebp - 0x24]
push 1
push esi
call fcn.00413d3e
push esi
call fcn.0040b179
xor esi, esi
push esi
push esi
push dword [edi + 0xc]
call fcn.0041496c
add esp, 0x30
mov dword [edi + 0x68], esi
jmp 0x40ab64
jle 0x40ab64
mov ecx, edi
call fcn.0040a4f8
mov ecx, edi
call fcn.0040a6f0
test al, al
je 0x40ab64
cmp dword [edi + 0x6c], esi
jle 0x40ab64
mov eax, dword [edi + 0x70]
mov esi, dword [eax]
cmp esi, eax
je 0x40ab64
and dword [ebp - 0xc], 0
lea eax, [esi + 0x14]
and dword [ebp - 8], 0
lea ecx, [ebp - 0x1c]
push eax
call fcn.00404c7a
push esi
lea ecx, [edi + 0x70]
call fcn.0040a176
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x40ab64
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x1c]
call fcn.00401c47
pop ecx
pop ecx
mov esi, dword [ebp - 0x20]
cmp dword [ebx + 0x14], 0x10
jb 0x40ab6f
mov ebx, dword [ebx]
push dword [edi + 0xc]
push esi
push 1
push ebx
call fcn.00413d3e
push dword [edi + 0xc]
call fcn.0041465b
add esp, 0x14
add dword [edi + 0x68], esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040b168
leave
ret 8

Function at 0x40adbe
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x430090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
mov esi, ecx
movlpd qword [ebp - 0x10], xmm0
call fcn.0040ada1
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x40ae33
cmp dword [edi + 4], 0
je 0x40ae33
push 0x1d4c0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40ae1c
mov eax, dword [edi + 8]
xor esi, esi
inc esi
mov dword [0x431630], eax
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x40ae36
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.0040ae52
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, dword [ebp - 8]
jmp 0x40ae36
xor esi, esi
inc esi
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x40ae42
call fcn.0040a0d1
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0040b168
leave
ret
Function at 0x40aef4
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 8]
push eax
push 4
push edx
push 0x40af60
push 0
push 0
call fcn.0041514c
mov ecx, eax
add esp, 0x18
test ecx, ecx
jne 0x40af1e
xor al, al
jmp 0x40af4f
mov eax, dword [esi]
push dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [esi]
add ecx, 0xc
call fcn.00403b06
mov eax, dword [esi]
mov ecx, 0x431520
push dword [eax + 8]
push dword [ebp + 8]
call fcn.0040ad67
mov eax, dword [esi]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x1003c33a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1003c349
pop dword [ebp - 0x2c]
mov eax, 0x42b990e2
sub eax, 0x32b5cd99
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x5ae42b91
add dword [ebp - 0x3c], 0xf36e19ba
mov dword [ebp - 0x38], 0x1fab3308
sub dword [ebp - 0x38], 0xed77e6c3
mov dword [ebp - 0x34], 0x3186367b
sub dword [ebp - 0x34], 0xe539f24d
mov dword [ebp - 0x30], 0x988eec17
sub dword [ebp - 0x30], 0x988eec17
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xd8cfd221
add dword [ebp - 0x3c], 0x9ba29735
mov dword [ebp - 0x38], 0xb0b09e05
add dword [ebp - 0x38], 0x90bbc370
mov dword [ebp - 0x34], 0x17e17300
sub dword [ebp - 0x34], 0xb4720694
mov dword [ebp - 0x30], 0x736ff5af
sub dword [ebp - 0x30], 0x736ff5af
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x9fabea01
sub eax, 0x8fa8097d
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3e1a6
push 0
call eax
mov ecx, 0xac174efa
sub ecx, 0xac170502
mov ebx, eax
mov edx, 0x9166e610
add edx, 0x7ea02bf0
add edx, dword [ebp - 0x2c]
mov edi, 0xe4f9a8dc
sub edi, 0x558424b3
add dword [ebp - 0x24], edx
mov esi, dword [edx]
xor esi, edi
sub dword [ebp - 0x10], 0xe600b979
mov dword [ebx], esi
sub dword [ebp - 0x18], esi
add ebx, 0x3a5d020d
add ebx, 0xc5a2fdf7
add edx, 0xb7870a5a
add edx, 0x4878f5aa
loop 0x1003c466
add eax, 0x6d50c604
sub eax, 0x6d4fab51
mov ebx, eax
add eax, 5
mov ecx, 0xa4fbb02e
sub ecx, 0x94fbb02e
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x402a08
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 0x402aa0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402a80
xor eax, eax
push ebp
push 0x402a79
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 0x402abc
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 0x402a80
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 0x40433c
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 0x4044d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4043ec
xor eax, eax
push ebp
push 0x4043e5
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 0x4043ce
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4044f8
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 0x4043ec
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 0x4044cd
cmp byte [ebp - 0xd], 0
jne 0x40442e
cmp byte [ebp - 0x12], 0
je 0x4044cd
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404447
dec ebx
cmp byte [ebx], 0x2e
je 0x404456
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404446
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4044cd
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404483
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 0x4044cd
cmp byte [ebp - 0xd], 0
je 0x4044cd
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 0x4044cd
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 0x4070b4
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 0x4070ed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403740
jmp 0x4070f6
mov eax, ebx
mov edx, esi
call fcn.004036f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x407100
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 0x407121
mov al, byte [esp]
jmp 0x407123
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x411010
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 0x411016
ret

Function at 0x413634
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 0x413685
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41366c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41365c
jmp 0x413685
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 0x41366d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d674
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 0x41d690
cmp dword [esi + 4], 0
je 0x41d6b7
mov eax, ebx
call fcn.0041c8a8
test eax, eax
jne 0x41d6a9
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x41d7c7
mov edx, esi
mov eax, ebx
call fcn.0041d318
jmp 0x41d7c7
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 0x41d7c0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0041ec74
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.0041b7b0
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0041d674
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.0041ec74
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d7c7
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 0x421b20
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.0040365c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x421b81
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x421b81
cmp byte [ebp - 0x102], 0
je 0x421b81
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403888
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422f10
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 0x422f91
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x422f42
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x422f54
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x422f60
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.00422d9c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x422f85
push ebp
mov eax, dword [ebp - 4]
call fcn.00422e80
pop ecx
mov ebx, eax
cmp bl, 2
je 0x422f60
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x424d68
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x434714
cmp dword [edi], 0
jne 0x424de4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x434710]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x433704
mov ecx, 2
call fcn.00402730
mov edx, 0x424d40
lea eax, [esi + 5]
call fcn.00424d60
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00424d60
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 0x424db9
mov dword [0x434710], 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 0x424f08
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x424f58]
test si, 4
je 0x424f1c
or bl, 1
test si, 8
je 0x424f26
or bl, 4
test si, 1
je 0x424f30
or bl, 8
test si, 2
je 0x424f3a
or bl, 0x10
test si, 0x10
je 0x424f44
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x424f53
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x424f5c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x424f94]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x424f75
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x424f84
or bl, 4
test esi, 0x20000000
je 0x424f8f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x429060
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 0x429205
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40a274]
call fcn.00402b60
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.0040365c
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 0x4291db
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.004212c0
test al, al
je 0x4291ce
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, 0x429214
lea eax, [ebp - 0x254]
call fcn.00406f24
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4291ce
xor eax, eax
push ebp
push 0x4291c7
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 0x42924c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4291b0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403888
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 0x4291b0
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403888
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4291ce
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4290d1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040ccf4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42920c
lea eax, [ebp - 0x260]
call fcn.0040365c
ret

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

Disassembly:
push ecx
mov eax, dword [0x4346e8]
cmp byte [eax + 0x85], 0
jne 0x429461
cmp dword [0x434720], 0
jne 0x429422
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x4293ac
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x434720], eax
cmp dword [0x43471c], 0
jne 0x42943d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x43471c], eax
cmp dword [0x434724], 0
jne 0x429461
push esp
push 0
push 0
push 0x429350
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x434724], eax
pop edx
ret