joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1022fdb0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10253dd8]
mov ecx, eax
add ecx, 0x41f
mov dword [0x10253dd8], ecx
mov dword [ebp - 4], 0
add eax, 0xfffffbb5
mov dword [0x10253ddc], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1022fe37
mov dword [0x10253dd8], 0xf53
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x1022fe8b
jmp 0x1022fed4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
je 0x1022fee3
jmp 0x1022fed4
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
je 0x1022fe64
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], eax
jl 0x1022fe37
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
jne 0x1022fed4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x1022fdf9
jmp 0x1022fed4
mov dword [0x10253ddc], 0xffffe954
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1022fed4
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff7
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x64
jne 0x1022fed4
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1022fe17
xor eax, eax
mov dword [0x10253ddc], 0x17a0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
add esp, 0x24
pop ebp
ret
Function at 0x4015f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov edx, eax
push edi
push esi
push ebx
neg edx
sub esp, 8
and edx, 3
je 0x401742
xor byte [eax], 0x5a
cmp edx, 1
je 0x401765
xor byte [eax + 1], 0x5a
cmp edx, 3
jne 0x401780
xor byte [eax + 2], 0x5a
mov ebx, 0x125
mov dword [esp], 3
mov ecx, 0x128
mov esi, 0x124
mov edi, 0x49
sub ecx, edx
mov dword [esp + 4], ecx
lea ebp, [edi - 1]
add edx, eax
mov ecx, 1
xor dword [edx], 0x5a5a5a5a
and ebp, 7
cmp ecx, edi
jae 0x401711
test ebp, ebp
je 0x4016cb
cmp ebp, 1
je 0x4016bd
cmp ebp, 2
je 0x4016b3
cmp ebp, 3
je 0x4016a9
cmp ebp, 4
je 0x40169f
cmp ebp, 5
je 0x401695
cmp ebp, 6
je 0x40168b
xor dword [edx + 4], 0x5a5a5a5a
mov ecx, 2
xor dword [edx + ecx*4], 0x5a5a5a5a
add ecx, 1
xor dword [edx + ecx*4], 0x5a5a5a5a
add ecx, 1
xor dword [edx + ecx*4], 0x5a5a5a5a
add ecx, 1
xor dword [edx + ecx*4], 0x5a5a5a5a
add ecx, 1
xor dword [edx + ecx*4], 0x5a5a5a5a
add ecx, 1
xor dword [edx + ecx*4], 0x5a5a5a5a
add ecx, 1
cmp ecx, edi
jae 0x401711
xor dword [edx + ecx*4], 0x5a5a5a5a
xor dword [edx + ecx*4 + 4], 0x5a5a5a5a
xor dword [edx + ecx*4 + 8], 0x5a5a5a5a
xor dword [edx + ecx*4 + 0xc], 0x5a5a5a5a
xor dword [edx + ecx*4 + 0x10], 0x5a5a5a5a
xor dword [edx + ecx*4 + 0x14], 0x5a5a5a5a
xor dword [edx + ecx*4 + 0x18], 0x5a5a5a5a
xor dword [edx + ecx*4 + 0x1c], 0x5a5a5a5a
add ecx, 8
cmp ecx, edi
jb 0x4016cb
mov edx, dword [esp]
sub ebx, esi
add edx, esi
cmp dword [esp + 4], esi
je 0x40173a
xor byte [eax + edx], 0x5a
cmp ebx, 1
lea edi, [edx + 1]
je 0x40173a
xor byte [eax + edi], 0x5a
add edx, 2
cmp ebx, 2
je 0x40173a
xor byte [eax + edx], 0x5a
add esp, 8
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 0x128
mov edi, 0x4a
mov dword [esp + 4], 0x128
mov ebx, 0x128
mov dword [esp], 0
jmp 0x401642
mov ebx, 0x127
mov dword [esp], 1
jmp 0x40162d
mov ebx, 0x126
mov dword [esp], 2
jmp 0x40162d
Function at 0x401a40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
sub esp, 0xb8
lea eax, [esp + 0x28]
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SYSTEMCurrentControlSetServicesDiskEnum
mov dword [esp], 0x80000002
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], pe_nt_image_headers32
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x401aa0
lea eax, [esp + 0x30]
call fcn.00401460
call sub.KERNEL32.dll_IsDebuggerPresent
test eax, eax
setne al
add esp, 0xb8
pop ebx
ret
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x2c]
lea ebx, [esp + 0x30]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 4], 0x406090
mov dword [esp], ecx
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x401b40
mov dword [esp + 4], str.VBOX
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
test eax, eax
je 0x401b12
mov edx, dword [esp + 0x28]
mov dword [esp], edx
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, ebx
sub esp, 4
call fcn.00401460
add esp, 0xb8
mov eax, 1
pop ebx
ret
mov dword [esp + 4], str.VMware
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401aef
mov dword [esp + 4], str.QEMU
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401aef
lea esi, [esi]
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, ebx
sub esp, 4
call fcn.00401460
jmp 0x401a8b
Function at 0x402780
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x4027cb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x4027c4
test esi, esi
je 0x4027c4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4027a0
mov dword [esp], 0x408044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4029b0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402a00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402ad8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x402a3e
cmp eax, 4
jne 0x402a60
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x402a4e
cmp edx, 4
je 0x402a4e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004029b0
Function at 0x4011c6
Capabilities:
Access peb ldr_data
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
call fcn.0040114f
call section..text
movzx eax, al
cmp eax, 1
jne 0x4011e9
push 5
pop eax
jmp 0x4013b8
and dword [ebp - 0x40], 0
and dword [ebp - 0xc], 0
and dword [ebp - 0x30], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x24], 0
and dword [ebp - 0x44], 0
and dword [ebp - 8], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x1c], 0
and dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0x330
pushal
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, eax
add ebx, 0xc
mov eax, dword [eax + 0xc]
mov edi, dword [eax + 0x30]
mov ecx, 0x18
xor esi, esi
xor ebx, ebx
add bl, byte [edi + ecx - 1]
add esi, ebx
loop 0x401234
cmp esi, dword [ebp - 0x2c]
je 0x401249
mov eax, dword [eax]
cmp eax, ebx
jne 0x40122a
mov eax, dword [eax + 0x18]
mov dword [ebp - 8], eax
nop
popal
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push 0x43a718
push dword [0x43a700]
push 0x43a704
push dword [0x43a718]
push 0x43a71c
call fcn.0040102b
add esp, 0x14
push 0x43a71c
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
push 0x43a738
push dword [0x43a700]
push 0x43a704
push dword [0x43a738]
push 0x43a73c
call fcn.0040102b
add esp, 0x14
push 0x43a73c
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push 0x43a758
push dword [0x43a700]
push 0x43a704
push dword [0x43a758]
push 0x43a75c
call fcn.0040102b
add esp, 0x14
push 0x43a75c
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [0x40402c]
mov dword [ebp - 0x10], eax
push 4
push 0x1000
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0
call dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0x404030
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10]
push eax
push dword [section..data]
push 0x404004
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0040102b
add esp, 0x14
mov dword [ebp - 4], eax
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
push 0x20
push dword [0x40402c]
push dword [ebp - 4]
call dword [ebp - 0x24]
push 0x4046fc
push dword [0x4046d0]
push 0x4046d4
push dword [0x4046fc]
push 0x404700
call fcn.0040102b
add esp, 0x14
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
mov dword [0x43a7ac], eax
and dword [ebp - 0x28], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 1
push dword [ebp - 0x28]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call dword [0x43a7ac]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40100a
Capabilities:
Terminate process

Disassembly:
jmp 0x40ef10
push 0x14
push 0x416748
call fcn.004010be
push 1
call fcn.00401311
pop ecx
test al, al
je 0x40ee31
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00401357
mov byte [ebp - 0x24], al
mov eax, dword [0x486e60]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x40ee31
test eax, eax
jne 0x40ed55
mov dword [0x486e60], ecx
push 0x41371c
push 0x413410
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x40ed38
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x40ee21
push 0x41330c
push section..rdata
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x486e60], 2
jmp 0x40ed5a
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004011b3
pop ecx
call fcn.00401041
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x40ed8b
push esi
call fcn.00401140
pop ecx
test al, al
je 0x40ed8b
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [section..00cfg]
call esi
call fcn.00401028
mov esi, eax
cmp dword [esi], edi
je 0x40eda9
push esi
call fcn.00401140
pop ecx
test al, al
je 0x40eda9
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.004010af
movzx esi, ax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push esi
push eax
push edi
push 0x400000
call fcn.004013ca
mov esi, eax
call fcn.0040136b
test al, al
je 0x40ee38
test bl, bl
jne 0x40edd7
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.004011b8
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x40ee21
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.00401203
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push dword [ebp - 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
int3
call fcn.0040141a
jmp 0x40eccb

Function at 0x40136b
Capabilities:
Parse pe header

Disassembly:
jmp 0x40fb38
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40fb78
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40fb78
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40fb78
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40fb78
cmp dword [ecx + 0x74], 0xe
jbe 0x40fb78
cmp dword [ecx + 0xe8], 0
je 0x40fb78
mov al, 1
ret
xor al, al
ret
Function at 0x403400
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x208
call fcn.004010fa
mov edi, eax
add esp, 4
mov dword [ebp - 0xc], edi
test edi, edi
je 0x4034fd
push 0x208
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, 0x417060
mov dword [ebp - 8], 0xc
lea esi, [edi + 0x104]
mov dword [ebp - 4], eax
nop dword [eax]
xor ebx, ebx
mov ecx, dword [eax]
mov edx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x403466
mov eax, dword [ebx + 0x417090]
mov edx, eax
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403480
sub eax, edx
lea edi, [esi - 1]
nop dword [eax]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403490
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0xc]
push 0
lea esi, [edi + 0x104]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4034cb
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 4]
add ebx, 4
cmp ebx, 0x70
jb 0x403462
add eax, 4
sub dword [ebp - 8], 1
mov dword [ebp - 4], eax
jne 0x403460
push 0x208
push edi
call fcn.00401064
add esp, 8
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x5e7a0c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x5e7a2d
test edi, 0x40000
je 0x5e7a47
test bl, bl
jne 0x5e7ac8
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x5e7ac8
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x5e7a7a
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x5e7a8f
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x5e7a9e
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x5e7aaf
cmp byte [esp + 2], 0
je 0x5e7ac8
cmp byte [esp + 2], 0
je 0x5e7ac0
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x5e7ac8
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x5e7d6c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x5e7d92
mov eax, esp
push eax
push 0x5e7d34
call sub.user32.dll_EnumWindows
jmp 0x5e7da5
mov eax, esp
push eax
push 0x5e7d14
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x5e7ebc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x5e7ef8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5e7ed7
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5e7ee7
or bx, 4
test esi, 0x20000000
je 0x5e7ef3
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x5f13c0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x5f13d2
add esp, 0xfffffff0
call fcn.00408f24
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0047cf0c
mov eax, dword [0x610c18]
mov dword [eax + 4], ebx
mov dword [eax], 0x5f188c
mov eax, dword [0x610c28]
mov dword [eax + 4], ebx
mov dword [eax], 0x5f1898
mov eax, ebx
call fcn.005f18a4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x43f748]
call fcn.00408838
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x43f748]
call fcn.00408838
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x43f748]
call fcn.00408838
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x43f748]
call fcn.00408838
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x43f748]
call fcn.00408838
mov dword [ebx + 0x84], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x50], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x68]
push eax
mov eax, 0x5ebddc
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x519340]
call fcn.0051f868
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x519340]
call fcn.0051f868
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x519340]
call fcn.0051f868
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x519340]
call fcn.0051f868
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x519340]
call fcn.0051f868
mov dword [ebx + 0x98], eax
mov eax, ebx
call fcn.005f1e80
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5f1cb0
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5f1cb0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5f1cb0
mov eax, dword [ebx + 0x94]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5f1cb0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5f1cb0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5f1552
call fcn.00408f7c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5f1a50
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5f1bfb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5f1bdc
mov dl, 1
mov eax, dword [0x443104]
call fcn.0046ccd4
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.0040a6d0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5f1bcb
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.005532d0
test al, al
je 0x5f1bbe
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x5f1c0c
lea eax, [ebp - 0x394]
call fcn.00425e8c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x5f1bbe
xor eax, eax
push ebp
push 0x5f1bb7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x5f1c7c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x5f1ba0
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040b264
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x5f1ba0
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040b264
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f1bbe
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5f1ac1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.0046cbfc
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f1c02
lea eax, [ebp - 0x3a0]
call fcn.0040a6d0
ret

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

Disassembly:
push ecx
mov eax, dword [0x6187a8]
cmp byte [eax + 0xc5], 0
jne 0x5f287a
cmp dword [0x6187cc], 0
jne 0x5f283a
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x610a64]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x6187cc], eax
cmp dword [0x6187c8], 0
jne 0x5f2855
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventW
mov dword [0x6187c8], eax
cmp dword [0x6187d0], 0
jne 0x5f287a
push esp
push 0
push 0
mov eax, dword [0x610a60]
push eax
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x6187d0], eax
pop edx
ret