joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100007654
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x4f0
mov rax, qword [0x10000c110]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rbx, rcx
lea rcx, [rsp + 0xc2]
xor esi, esi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xc0], si
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x2d2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x2d0], si
call sub.msvcrt.dll_memset
lea rax, [0x10000c794]
mov r11d, 0x67727473
lea r8d, [rsi + 0x6c]
lea rcx, [rsp + 0x34]
xor edx, edx
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0xb0], r11d
mov dword [rsp + 0xa0], r11d
mov dword [rsp + 0x30], esi
call sub.msvcrt.dll_memset
lea r9, [rsp + 0xc0]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 0x104
call fcn.100007828
cmp eax, esi
mov ebx, eax
jl 0x1000077e4
lea r8, [rsp + 0xc0]
lea rdx, [0x1000018a0]
lea rcx, [rsp + 0xb0]
call fcn.100008ebc
cmp eax, esi
mov ebx, eax
jl 0x1000077e4
lea r8d, [rsi + 0x25]
lea rdx, [rsp + 0x2d0]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, 0x80004005
cmp eax, esi
cmove ebx, ecx
cmp ebx, esi
jl 0x1000077e4
lea r8, [rsp + 0x2d0]
lea rdx, [0x1000018b0]
lea rcx, [rsp + 0xa0]
call fcn.100008ebc
cmp eax, esi
mov ebx, eax
jl 0x1000077e4
lea rax, [0x1000018d0]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x70
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xa8]
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x50], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, esi
jne 0x1000077e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, esi
cmovle ebx, eax
lea rcx, [rsp + 0xa0]
call fcn.100008b3c
lea rcx, [rsp + 0xb0]
call fcn.100008b3c
mov eax, ebx
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.100009a00
mov rbx, qword [rsp + 0x508]
add rsp, 0x4f0
pop rsi
ret
Function at 0x100009c68
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100009cb5
cmp rcx, 0xffffffffffffffff
je 0x100009cb5
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100009cad
cmp dword [rcx + 0x3c], edx
jl 0x100009cad
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100009cad
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100009cb5
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400030a0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400030fd
lea rbx, [0x140056190]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400030e4
cmp r10, 2
jb 0x1400030e4
cmp byte [r9], r8b
jne 0x1400030e4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1400030c0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000313f
lea rbx, [0x140056190]
cmp r8b, 0x23
jne 0x140003123
cmp byte [r9], r8b
jne 0x140003123
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140003110
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x140006470
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
lea r11, [0x140056190]
mov rax, qword [rcx + 0xf8]
mov r9, rcx
movsxd r10, edx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, r10b
movzx r8d, bl
shr ebx, 8
xor r8, rax
mov eax, r10d
shr eax, 8
movzx edx, al
mov eax, r10d
xor ebx, dword [r11 + r8*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r10d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [r9]
xor ebx, dword [r11 + rdx*4]
not ebx
cmp dword [rcx + 0x4050], ebx
jne 0x140006506
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.14001ae70
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140006510
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
mov rax, qword [rcx + 0xf8]
lea r9, [0x140056190]
movss xmm2, dword [rcx + 0x110]
movss xmm3, dword [rcx + 0x114]
movsxd rcx, dword [rcx + 0xf0]
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
subss xmm1, xmm3
mov r8d, dword [rax + rcx*4 - 4]
not r8d
movzx ecx, r8b
shr r8d, 8
movss dword [rsp], xmm0
movzx eax, byte [rsp]
xor rcx, rax
movss xmm0, dword [rdx + 8]
movzx eax, byte [rsp + 1]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
movss xmm1, dword [rdx + 0xc]
xor r8d, dword [r9 + rcx*4]
subss xmm1, xmm3
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 2]
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 3]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 4]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 5]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 6]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 7]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 8]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 9]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xa]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xb]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xc]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xd]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xe]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, byte [rsp + 0xf]
movzx edx, r8b
shr r8d, 8
xor rdx, rcx
xor r8d, dword [r9 + rdx*4]
not r8d
mov eax, r8d
add rsp, 0x18
ret
Function at 0x140009d10
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rdi, qword [0x14009c828]
mov r14d, edx
mov r15d, dword [rsp + 0x80]
movaps xmmword [rsp + 0x30], xmm6
mov rbx, qword [rdi + 0x4008]
mov eax, dword [rbx + 0x14]
and eax, 4
or eax, 0x1000103
or r15d, eax
cmp qword [rbx + 0x1a8], 0
jne 0x140009d6d
cmp qword [rdi + 0x4da8], 0
mov eax, 0x250
je 0x140009d72
mov eax, 0x220
movss xmm3, dword [rax + rbx]
xorps xmm5, xmm5
movss xmm4, dword [rax + rbx + 4]
cvttss2si eax, dword [r8]
subss xmm3, dword [rbx + 0x100]
subss xmm4, dword [rbx + 0x104]
movss xmm2, dword [0x14005b974]
movd xmm1, eax
cvttss2si eax, dword [r8 + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
comiss xmm5, xmm1
cvtdq2ps xmm0, xmm0
jb 0x140009dc2
addss xmm1, xmm3
comiss xmm1, xmm2
jae 0x140009dc2
movaps xmm1, xmm2
comiss xmm5, xmm0
jb 0x140009dd3
addss xmm0, xmm4
comiss xmm0, xmm2
jae 0x140009dd3
movaps xmm0, xmm2
or dword [rdi + 0x49b8], 2
xor edx, edx
movss dword [rdi + 0x49d8], xmm1
movss dword [rdi + 0x49dc], xmm0
mov dword [rdi + 0x49c0], 1
mov r9, qword [rbx + 8]
test rcx, rcx
je 0x140009e1c
mov dword [rsp + 0x28], r14d
lea r8, str._s__s__08X
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x60]
call fcn.140002f90
jmp 0x140009e32
lea r8, str._s__08X
mov dword [rsp + 0x20], r14d
lea rcx, [rsp + 0x60]
call fcn.140002f90
mov rcx, qword [rsp + 0x60]
mov r8d, r15d
movss xmm6, dword [rdi + 0x3920]
xor edx, edx
call fcn.14000ccb0
mov rsi, qword [rdi + 0x4008]
movzx ebp, al
movss dword [rdi + 0x3920], xmm6
cmp word [rsi + 0xc2], 1
mov dword [rsi + 0x80], r14d
jne 0x140009e79
movsd xmm0, qword [rsi + 0x20]
movsd qword [rbx + 0x100], xmm0
mov r9d, r14d
lea rdx, [0x140055131]
not r9d
lea r10, [0x140056190]
mov ebx, r9d
mov r8b, 0x23
cmp r8b, 0x23
jne 0x140009ea6
cmp byte [rdx], r8b
jne 0x140009ea6
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x140009e93
not ebx
cmp dword [rdi + 0x4068], ebx
jne 0x140009ed6
xor edx, edx
xor ecx, ecx
call fcn.140006770
cmp dword [rdi + 0x4ae8], r14d
jne 0x140009f23
bt r15d, 0x17
jb 0x140009f23
cmp word [rsi + 0x15c], 0
jne 0x140009ef9
cmp byte [rsi + 0x162], 0
je 0x140009f23
xor edx, edx
mov rcx, rsi
call fcn.14000f040
xor edx, edx
mov rcx, rsi
call fcn.140015630
mov rdx, rsi
mov ecx, ebx
call fcn.140006770
mov eax, dword [rdi + 0x4b0c]
mov dword [rdi + 0x4090], eax
mov rbx, qword [rsp + 0x68]
movzx eax, bpl
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140013670
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400663f8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x14009c828]
mov edi, ecx
cmp byte [rbx + 0x4cf1], 0
jne 0x1400136d1
cmp byte [rbx + 0x4cf2], 0
jne 0x1400136d1
movsx r9d, word [rbx + 0x5e24]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140002e80
test dil, 2
je 0x1400137ff
jmp 0x14001375a
movss xmm1, dword [rbx + 0x39c4]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5e24]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14005b998]
mulss xmm1, dword [0x14005b98c]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xe48]
addss xmm1, dword [rbx + 0xe4c]
mov qword [rbx + 0x49d0], rax
mov dword [rbx + 0x49bc], 1
movss dword [rbx + 0x49c8], xmm0
movss dword [rbx + 0x49cc], xmm1
movss xmm0, dword [rbx + 0x3a20]
mulss xmm0, dword [0x14005b900]
or dword [rbx + 0x49b8], 0x41
movss dword [rbx + 0x4a18], xmm0
call fcn.140002e80
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1400137b0
lea r11, [0x140056190]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x140013793
cmp byte [r8], r9b
jne 0x140013793
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140013780
not ecx
call fcn.14000a240
test rax, rax
je 0x1400137ff
cmp byte [rax + 0xb6], 0
je 0x1400137ff
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, 0x10
inc word [rbx + 0x5e24]
movsx r9d, word [rbx + 0x5e24]
call fcn.140002e80
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000ccb0
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140050810
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140019430
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5f78], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x1400194b3
xor edx, edx
add rcx, 0x5f80
call fcn.14001b330
mov r8, rsi
lea rcx, [rbx + 0x5f80]
mov rdx, rbp
call fcn.140003980
mov eax, dword [rbx + 0x5f80]
xor edx, edx
mov r9, qword [rbx + 0x5f78]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x5f88]
cmove ecx, edx
test rax, rax
movsxd r8, ecx
mov edx, 1
lea rcx, [0x14009c820]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x1400194bf
add rcx, 0x5f80
call fcn.140003980
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140019800
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x14009c828]
cmp byte [rbx + 0x5ed0], 0
jne 0x14001990d
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140019906
lea rdx, [0x140055cd8]
call fcn.140003150
mov rdi, rax
test rax, rax
je 0x140019906
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x1400198fd
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400198fd
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x1400198fd
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x1400198fd
cmp rsi, 0xffffffffffffffff
je 0x1400198fd
mov rcx, rsi
call fcn.140006ce0
mov rbp, rax
test rax, rax
je 0x1400198fd
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rsi
je 0x1400198dd
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rbp
call fcn.140006d90
jmp 0x140019906
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x1400198f3
mov rdx, rsi
mov rcx, rbp
call fcn.140019b70
mov rcx, rbp
call fcn.140006d90
jmp 0x140019906
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov byte [rbx + 0x5ed0], 1
movss xmm0, dword [rbx + 0x5ed4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14001999c
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5ed4], xmm0
jb 0x14001999c
mov rdi, qword [rbx + 0x20]
xor ebp, ebp
test rdi, rdi
je 0x14001998f
mov rax, qword [0x14009c828]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5ed4], ebp
call fcn.140019db0
lea rdx, [0x140055cdc]
mov rcx, rdi
mov rsi, rax
call fcn.140003150
mov rdi, rax
test rax, rax
je 0x140019996
mov r8, qword [rsp + 0x30]
lea edx, [rbp + 1]
mov r9, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140019996
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5ed4], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140019ad0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14009c828]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140019b33
mov qword [rsp], rbx
lea rbx, [0x140056190]
nop dword [rax]
cmp r9b, 0x23
jne 0x140019b13
cmp byte [r8], r9b
jne 0x140019b13
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140019b00
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5ee8]
not eax
mov r8, qword [r10 + 0x5ef0]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x140019b5f
cmp dword [r8 + 8], eax
je 0x140019b66
add r8, 0x48
cmp r8, rcx
jne 0x140019b50
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x14002d440
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x1400663f8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x14009c828]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14002d65e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14002d65e
mov rdx, qword [0x14009c818]
mov ecx, 0x50
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, qword [0x14009c828]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x14002d51a
movsx rdx, word [r8 + 0x6030]
lea rax, [r8 + 0x6034]
mov r9d, dword [r8 + 0x3f60]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x14002d50f
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6030], cx
movsx rax, cx
lea rax, [rax*8 + 0x6034]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x6028]
test rdi, rdi
je 0x14002d537
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x14002d53a
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, str.imgui_impl_win32
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x14002d57d
mov rsi, qword [r8 + 0x90]
jmp 0x14002d580
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14002d5ab
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x14009c828]
mov rcx, qword [rax + 0x4ad0]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14002d61e
inc rbx
cmp rbx, 5
jl 0x14002d600
jmp 0x14002d64a
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x14002d660
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140050810
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x14002d7f0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x14009c828]
mov edx, 0x210
call fcn.14000fd40
cmp byte [rax], 0
je 0x14002d866
xor edx, edx
mov ecx, 0x210
call fcn.140012260
test al, al
je 0x14002d866
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x14002d866
mov rbx, qword [0x14009c828]
cmp byte [rbx + 0x38d9], 0
je 0x14002d852
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x210
call fcn.140002820
mov dword [rbx + 0x370], 0x210
mov dword [rbx + 0x930], 0xa0
mov rcx, qword [0x14009c828]
mov edx, 0x214
call fcn.14000fd40
cmp byte [rax], 0
je 0x14002d8d6
xor edx, edx
mov ecx, 0x214
call fcn.140012260
test al, al
je 0x14002d8d6
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x14002d8d6
mov rbx, qword [0x14009c828]
cmp byte [rbx + 0x38d9], 0
je 0x14002d8c2
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x214
call fcn.140002820
mov dword [rbx + 0x374], 0x214
mov dword [rbx + 0x940], 0xa1
mov rcx, qword [0x14009c828]
mov edx, 0x212
call fcn.14000fd40
cmp byte [rax], 0
je 0x14002d946
xor edx, edx
mov ecx, 0x212
call fcn.140012260
test al, al
je 0x14002d946
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x14002d946
mov rbx, qword [0x14009c828]
cmp byte [rbx + 0x38d9], 0
je 0x14002d932
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x212
call fcn.140002820
mov dword [rbx + 0x25c], 0x212
mov dword [rbx + 0x938], 0x5b
mov rcx, qword [0x14009c828]
mov edx, 0x216
call fcn.14000fd40
cmp byte [rax], 0
je 0x14002d9b6
xor edx, edx
mov ecx, 0x216
call fcn.140012260
test al, al
je 0x14002d9b6
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x14002d9b6
mov rbx, qword [0x14009c828]
cmp byte [rbx + 0x38d9], 0
je 0x14002d9a2
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x216
call fcn.140002820
mov dword [rbx + 0x260], 0x216
mov dword [rbx + 0x948], 0x5c
add rsp, 0x20
pop rbx
ret
Function at 0x140044340
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x28
ret
Function at 0x140049330
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov eax, 0x35
movaps xmmword [rsp + 0x30], xmm7
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm8
mov rbx, rcx
movsd xmm8, qword [0x140053ad8]
cvtsi2sd xmm6, rax
test rax, rax
jns 0x140049369
addsd xmm6, xmm8
movaps xmm0, xmm8
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_log2]
divsd xmm6, xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
movsd xmm6, qword [0x140053ad0]
mov ecx, 1
cvttsd2si eax, xmm0
xorps xmm7, xmm7
cmp eax, ecx
cmovl eax, ecx
test eax, eax
jle 0x1400494a3
mov qword [rsp + 0x60], rbp
movabs rbp, 0x38eb3ffff6d3
mov qword [rsp + 0x68], rsi
movabs rsi, 0xb5026f5aa96619e9
mov qword [rsp + 0x70], rdi
mov edi, eax
mov eax, dword [rbx]
cmp eax, 0x138
jne 0x14004941c
lea r8, [rbx + 0x10]
mov r9d, eax
nop word [rax + rax]
mov edx, dword [r8 - 8]
xor edx, dword [r8]
lea r8, [r8 + 8]
btr edx, 0x1f
xor rdx, qword [r8 - 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rsi
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x1400493e0
jmp 0x14004942b
cmp eax, 0x270
jb 0x14004942b
mov rcx, rbx
call fcn.14004ab20
mov eax, dword [rbx]
xorps xmm1, xmm1
mov rcx, qword [rbx + rax*8 + 8]
inc eax
mov dword [rbx], eax
mov rax, rcx
shr rax, 0x1d
and rax, qword [rbx + 0x1388]
xor rcx, rax
mov rax, rcx
and rax, rbp
shl rax, 0x11
xor rcx, rax
mov rax, rcx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rcx, rax
mov rax, rcx
shr rax, 0x2b
xor rax, rcx
cvtsi2sd xmm1, rax
jns 0x14004947d
addsd xmm1, xmm8
mulsd xmm1, xmm6
mulsd xmm6, xmm8
addsd xmm7, xmm1
sub rdi, 1
jne 0x1400493c5
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
movaps xmm8, xmmword [rsp + 0x20]
divsd xmm7, xmm6
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm0, xmm7
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x50
pop rbx
ret

Function at 0x14004ab20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov r10, rcx
lea r9, [rcx + 0x9c8]
movabs rbx, 0xb5026f5aa96619e9
mov r11d, 0x9c
nop
mov edx, dword [r9]
xor edx, dword [r9 + 8]
lea r9, [r9 + 8]
btr edx, 0x1f
xor rdx, qword [r9 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rbx
xor rcx, qword [r9 + 0x4d8]
xor rcx, rdx
mov qword [r9 - 0x9c8], rcx
sub r11, 1
jne 0x14004ab40
lea r9, [r10 + 0xea8]
mov r11d, 0x9b
nop word [rax + rax]
mov edx, dword [r9]
xor edx, dword [r9 + 8]
lea r9, [r9 + 8]
btr edx, 0x1f
xor rdx, qword [r9 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rbx
xor rcx, qword [r9 - 0xea8]
xor rcx, rdx
mov qword [r9 - 0x9c8], rcx
sub r11, 1
jne 0x14004ab90
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 8]
btr edx, 0x1f
xor rdx, qword [r10 + 0x1380]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rbx
mov rbx, qword [rsp + 8]
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
mov dword [r10], r11d
ret