joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403960
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov dword [ebp - 0x10], esp
push str.VirtualFree
push str.kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
nop
nop
nop
nop
nop
push str.VirtualProtect
push str.kernel32.dll
call esi
push eax
call edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [eax]
mov cx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x18], edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x14]
push 0x404728
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x40
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [edi]
cmp word [ecx + 6], bx
jbe 0x401923
mov edx, dword [ebp - 0x18]
lea esi, [edx + 0x24]
mov eax, dword [esi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
and ecx, 1
and edx, 1
shr eax, 0x1f
nop
nop
nop
nop
test byte [esi + 3], 2
je 0x4018a5
mov eax, dword [esi - 0x14]
mov ecx, dword [esi - 0x1c]
push 0x4000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40190f
nop
nop
nop
nop
nop
lea edx, [edx + ecx*2]
lea eax, [eax + edx*2]
mov edx, dword [eax*4 + 0x44fd7c]
mov eax, dword [esi]
test eax, 0x4000000
je 0x4018c3
or dh, 2
nop
nop
nop
nop
nop
nop
mov eax, dword [esi - 0x14]
test eax, eax
jne 0x4018e8
mov ecx, dword [esi]
test cl, 0x40
je 0x4018de
mov ecx, dword [edi]
mov eax, dword [ecx + 0x20]
jmp 0x4018e8
test cl, 0x80
je 0x4018e8
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
nop
nop
nop
nop
nop
nop
test eax, eax
jbe 0x40190f
mov eax, dword [esi - 0x1c]
lea ecx, [ebp + 8]
push ecx
push edx
mov edx, dword [esi - 0x14]
push edx
push eax
call dword [ebp - 0x1c]
test eax, eax
jne 0x40190f
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [edi]
xor edx, edx
inc ebx
add esi, 0x28
mov dx, word [ecx + 6]
cmp ebx, edx
jl 0x401871
mov eax, 0x401929
ret
Function at 0x401e00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4039a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov dword [ebp - 0x10], esp
push str.HeapFree
push str.kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [ebp - 0x20], eax
nop
nop
nop
inc eax
dec ebx
dec eax
inc ebx
mov al, 0x45
mov cl, 0x72
mov byte [ebp - 0x3b], al
mov byte [ebp - 0x38], al
mov al, 0x6c
mov byte [ebp - 0x2a], cl
mov byte [ebp - 0x32], al
mov byte [ebp - 0x31], al
mov byte [ebp - 0x26], al
mov al, 0x65
mov byte [ebp - 0x23], al
mov byte [ebp - 0x22], al
mov byte [ebp - 0x24], cl
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
xor ebx, ebx
push eax
push ecx
mov byte [ebp - 0x3c], 0x4b
mov byte [ebp - 0x3a], 0x52
mov byte [ebp - 0x39], 0x4e
mov byte [ebp - 0x37], 0x4c
mov byte [ebp - 0x36], 0x33
mov byte [ebp - 0x35], 0x32
mov byte [ebp - 0x34], 0x2e
mov byte [ebp - 0x33], 0x64
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2c], 0x56
mov byte [ebp - 0x2b], 0x69
mov byte [ebp - 0x29], 0x74
mov byte [ebp - 0x28], 0x75
mov byte [ebp - 0x27], 0x61
mov byte [ebp - 0x25], 0x46
mov byte [ebp - 0x21], bl
call esi
push eax
call edi
push str.GetProcessHeap
push str.KERNEL32.dll
mov dword [ebp - 0x18], eax
call esi
push eax
call edi
mov dword [ebp - 0x1c], eax
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [ebp - 0x14]
push 0x404728
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 0x44
call sub.MSVCRT.dll__CxxThrowException
mov esi, dword [ebp + 8]
test esi, esi
je 0x401f81
mov eax, dword [esi + 0x10]
test eax, eax
je 0x401f1c
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov ecx, dword [eax + 0x28]
add ecx, ebx
inc eax
dec ebx
dec eax
inc ebx
mov edx, dword [esi + 4]
push 0
push 0
push edx
call ecx
mov dword [esi + 0x10], 0
nop
nop
nop
mov eax, dword [esi + 8]
test eax, eax
je 0x401f5b
mov eax, dword [esi + 0xc]
xor edi, edi
test eax, eax
jle 0x401f4b
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 8]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x401f43
push eax
call ebx
mov eax, dword [esi + 0xc]
inc edi
cmp edi, eax
jl 0x401f35
inc eax
dec ebx
dec eax
inc ebx
mov ecx, dword [esi + 8]
push ecx
call fcn.004011b0
add esp, 4
inc eax
dec ebx
dec eax
inc ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x401f71
push 0x8000
push 0
push eax
call dword [ebp - 0x18]
nop
nop
nop
nop
nop
nop
push esi
push 0
call dword [ebp - 0x1c]
push eax
call dword [ebp - 0x20]
mov eax, 0x401f87
ret
Function at 0x402f7c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x45f008], 0x8088405
inc edx
mov dword [ebx + 0x45f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4036bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45f024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403754
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403734
xor eax, eax
push ebp
push 0x40372d
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 0x403770
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 0x403734
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x45f024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45f024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404548
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x504048], 0
je 0x4045a9
cmp word [0x50421c], 0xd7b2
jne 0x404571
cmp dword [0x504224], 0
jbe 0x404571
mov eax, 0x504218
call dword [0x504234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4045d0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45f030], 0
jne 0x4045c5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405ae0
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 0xf0019
push 0
push 0x405d10
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b63
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d10
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b63
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d2c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405bec
xor eax, eax
push ebp
push 0x405be5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040591c
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 0x405bca
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405d4c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405bca
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405bec
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
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 0x405d06
cmp byte [ebp - 0xd], 0
jne 0x405c33
cmp byte [ebp - 0x12], 0
je 0x405d06
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405c4c
dec ebx
cmp byte [ebx], 0x2e
je 0x405c5b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405c4b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405d06
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405c98
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405d06
cmp byte [ebp - 0xd], 0
je 0x405d06
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405d06
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
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 0x4080d4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408164
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408164
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408117
test edx, 3
jne 0x408106
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408111
jmp 0x408117
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408117
cmp dword [ecx - 8], 1
je 0x408121
mov edx, ebx
or edx, 3
call fcn.00404e14
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408133
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046c8

Function at 0x408170
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408200
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408200
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4081b3
test edx, 3
jne 0x4081a2
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4081ad
jmp 0x4081b3
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4081b3
cmp dword [ecx - 8], 1
je 0x4081bd
mov edx, ebx
or edx, 3
call fcn.00404e14
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4081cf
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046c8

Function at 0x40b420
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 0x40b459
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047b8
jmp 0x40b462
mov eax, ebx
mov edx, esi
call fcn.0040471c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b46c
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 0x40b48e
movzx eax, byte [esp]
jmp 0x40b490
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40bb20
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b998
mov eax, dword [0x503c8c]
cmp byte [eax], 0
je 0x40bb9c
mov eax, dword [0x503a9c]
call fcn.00403084
call fcn.00402de8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408b7c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bbe4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bbd2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x503a44]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5067f4]
call fcn.004058c4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c430
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c506
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404760
lea eax, [ebp - 4]
call fcn.00404bdc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b8c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c4f0
mov eax, ebx
call fcn.00402c8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c4e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b8c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c4d3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c518
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c4d3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4f0
mov eax, dword [ebp - 0x10]
call fcn.00402ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c50d
lea eax, [ebp - 4]
call fcn.004046c8
ret
Function at 0x41b288
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x507300
cmp dword [edi], 0
jne 0x41b304
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5072fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45fad8
mov ecx, 2
call fcn.00402e7c
mov edx, 0x41b260
lea eax, [esi + 5]
call fcn.0041b280
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b280
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 0x41b2d9
mov dword [0x5072fc], 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 0x41d864
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404b8c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41d8bc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x503db0]
mov dl, 1
mov eax, dword [0x41d388]
call fcn.0040bce0
call fcn.00404110
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d490
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41e718
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 0x41e71e
ret
Function at 0x42daf4
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.004046c8
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42db42
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404938
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x431bc4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x431cf7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x41d3e8]
call fcn.0041d4b8
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x431ccd
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041d558
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404938
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x431d0c
call fcn.004049d8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041d5bc
lea ecx, [ebp - 4]
mov edx, 0x431d48
mov eax, dword [ebp - 0xc]
call fcn.0041d7ec
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040d6e8
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x431cb0
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x431d54
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x46049c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431cb7
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x431da4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x431deb
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431dce
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431ddf
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x431deb
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x436c24
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x507534], 0
je 0x436d6d
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x503c2c]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x436d6d
mov eax, dword [0x507538]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x507534]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x436d3c
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x507534]
call fcn.00414238
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x436d34
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x436d34
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x436d34
mov eax, dword [ebp - 0x14]
call fcn.00440f70
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x436d34
push ebp
call fcn.00436be0
pop ecx
test al, al
jne 0x436d34
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403ab0
test al, al
je 0x436d34
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00403ab0
cmp byte [ebp - 1], 0
je 0x436d34
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x436d34
mov edx, dword [ebp - 0x14]
mov eax, dword [0x507538]
call fcn.00436350
inc edi
dec ebx
jne 0x436c89
mov eax, dword [0x507538]
cmp dword [eax + 8], 0
jle 0x436d54
mov eax, dword [0x507538]
call fcn.00436408
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x436d6d
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00436a44
pop ecx
test al, al
jne 0x436d6d
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43e16c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.0040658c
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00438fac
test ebx, ebx
jne 0x43e1bf
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0043e0a8
mov ebx, eax
test ebx, ebx
je 0x43e2aa
cmp esi, ebx
je 0x43e1e8
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x43e1fd
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x43e235
add eax, 0xffffff5f
sub eax, 2
jb 0x43e24d
dec eax
sub eax, 2
jb 0x43e261
dec eax
sub eax, 2
jb 0x43e257
jmp 0x43e26b
add eax, 0xfffffdff
sub eax, 2
jb 0x43e24d
dec eax
sub eax, 2
jb 0x43e261
dec eax
sub eax, 2
jb 0x43e257
jmp 0x43e26b
mov byte [esp + 0x120], 0
jmp 0x43e273
mov byte [esp + 0x120], 2
jmp 0x43e273
mov byte [esp + 0x120], 1
jmp 0x43e273
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0044bb68
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0043a728
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x43e2ac
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret