joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001ab80
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x18001abb5
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.180006910
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x18001ad04
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax + rax]
mov r10d, dword [rax + 0x10]
mov rcx, qword [rcx]
mov edx, r10d
shr edx, 8
movzx r11d, dl
movzx edx, r10b
xor rdx, rbp
imul rdx, rdi
xor r11, rdx
mov edx, r10d
imul r11, rdi
shr edx, 0x10
movzx r8d, dl
mov edx, r10d
xor r11, r8
shr rdx, 0x18
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r8, qword [r11]
cmp r8, rbx
jne 0x18001ac7f
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x18001acf3
mov rdx, qword [r11 + 8]
cmp r10d, dword [rdx + 0x10]
jne 0x18001acb8
mov r10, qword [rdx]
cmp r10, rax
je 0x18001acb2
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x18001acf3
cmp r8, rdx
je 0x18001accf
nop dword [rax]
mov rdx, qword [rdx + 8]
cmp r10d, dword [rdx + 0x10]
je 0x18001ad15
cmp r8, rdx
jne 0x18001acc0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x18001ac20
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x18001acf3
Function at 0x18001e5b0
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 0x18001e60d
lea rbx, [0x18012ea00]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x18001e5f4
cmp r10, 2
jb 0x18001e5f4
cmp byte [r9], r8b
jne 0x18001e5f4
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 0x18001e5d0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18001e64f
lea rbx, [0x18012ea00]
cmp r8b, 0x23
jne 0x18001e633
cmp byte [r9], r8b
jne 0x18001e633
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 0x18001e620
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x18001e810
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rsi, r8
test r8, r8
je 0x18001e82e
mov qword [r8], r14
lea rdx, [0x1801bcd20]
call fcn.18001e660
mov rbx, rax
test rax, rax
jne 0x18001e853
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x18001e97d
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18001e97d
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x18001e97d
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x18001e97d
cmp rdi, 0xffffffffffffffff
je 0x18001e97d
mov rcx, rdi
call fcn.180023190
mov rbp, rax
test rax, rax
je 0x18001e97d
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x18001e96a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x1801e13c0]
test r8, r8
je 0x18001e95f
movsx rdx, word [r8 + 0x6130]
lea rcx, [r8 + 0x6134]
mov r9d, dword [r8 + 0x3f88]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x18001e954
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 + 0x6130], cx
movsx rax, cx
lea rcx, [r8 + 0x6134]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x612c]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18001e986
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x18001e978
mov qword [rsi], rdi
mov rax, rbp
jmp 0x18001e988
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180026960
Capabilities:
Hash data with crc32

Disassembly:
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x1800269b0
lea r11, [0x18012ea00]
nop dword [rax]
cmp r9b, 0x23
jne 0x180026993
cmp byte [r8], r9b
jne 0x180026993
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180026980
mov rcx, qword [0x1801e13c0]
not eax
movsxd rdx, dword [rcx + 0x4020]
mov r9, qword [rcx + 0x4028]
mov r10, rdx
shl r10, 4
add r10, r9
test rdx, rdx
je 0x180026a11
nop word [rax + rax]
mov r8, rdx
shr r8, 1
mov rcx, r8
add rcx, rcx
cmp dword [r9 + rcx*8], eax
jae 0x180026a09
lea r9, [r9 + rcx*8]
mov rcx, 0xffffffffffffffff
sub rcx, r8
add r9, 0x10
add rdx, rcx
jmp 0x180026a0c
mov rdx, r8
test rdx, rdx
jne 0x1800269e0
cmp r9, r10
je 0x180026a20
cmp dword [r9], eax
jne 0x180026a20
mov rax, qword [r9 + 8]
ret
xor eax, eax
ret
Function at 0x18002cd10
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x108]
lea r11, [0x18012ea00]
mov rax, qword [rcx + 0x110]
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 + 0x4094], ebx
jne 0x18002cda6
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.180037640
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x18002cdb0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
mov rax, qword [rcx + 0x110]
lea r9, [0x18012ea00]
movss xmm2, dword [rcx + 0x128]
movss xmm3, dword [rcx + 0x12c]
movsxd rcx, dword [rcx + 0x108]
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 0x180035ff0
Capabilities:
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
cmp qword [rcx + 0x6050], 0
lea rbx, [rcx + 0x6058]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x180036097
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18003604a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.1800386f0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.18001eec0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x6050]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x6060]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1801e13b8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18003609f
mov rcx, rbx
call fcn.18001eec0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1800363d0
Capabilities:
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 [0x1801e13c0]
xor ebp, ebp
cmp byte [rbx + 0x5fa8], bpl
jne 0x1800364af
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1800364a8
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.18001e810
mov rsi, rax
test rax, rax
je 0x1800364a8
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x180036434
mov rcx, rax
call fcn.180036600
mov r8, qword [0x1801e13c0]
test r8, r8
je 0x18003649f
movsx rdx, word [r8 + 0x6130]
lea rcx, [r8 + 0x6134]
mov r9d, dword [r8 + 0x3f88]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x180036494
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 + 0x6130], cx
movsx rax, cx
lea rcx, [r8 + 0x6134]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x612c]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5fa8], 1
movss xmm0, dword [rbx + 0x5fac]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x18003653e
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5fac], xmm0
jb 0x18003653e
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x180036531
mov rax, qword [0x1801e13c0]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5fac], ebp
call fcn.180036860
lea rdx, [0x1801bcd24]
mov rcx, rdi
mov rsi, rax
call fcn.18001e660
mov rdi, rax
test rax, rax
je 0x180036538
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
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 0x180036538
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5fac], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180036560
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1801e13c0]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x1800365c3
mov qword [rsp], rbx
lea rbx, [0x18012ea00]
nop dword [rax]
cmp r9b, 0x23
jne 0x1800365a3
cmp byte [r8], r9b
jne 0x1800365a3
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 0x180036590
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5fc0]
not eax
mov r8, qword [r10 + 0x5fc8]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x1800365ef
cmp dword [r8 + 8], eax
je 0x1800365f6
add r8, 0x48
cmp r8, rcx
jne 0x1800365e0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x1800454a0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x1801dd028]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x1801e13c0]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1800456bf
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1800456bf
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x1801e13c0]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x180045574
movsx rdx, word [r8 + 0x6130]
lea rax, [r8 + 0x6134]
mov r9d, dword [r8 + 0x3f88]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x180045569
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 + 0x6130], cx
movsx rax, cx
lea rax, [rax*8 + 0x6134]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x6128]
test rdi, rdi
je 0x180045591
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 0x180045594
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x1801bd4b8]
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 0x1800455d7
mov rsi, qword [r8 + 0x90]
jmp 0x1800455da
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 0x180045605
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x1801e13c0]
mov rcx, qword [rax + 0x4b60]
mov rax, qword [rdi]
mov rdx, qword [rcx]
mov qword [rdx + 0x30], rax
mov qword [rdx + 0x28], rax
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 0x18004567f
inc rbx
cmp rbx, 5
jl 0x180045661
jmp 0x1800456ab
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 0x1800456c1
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180083800
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x18005a3c0
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x530
mov rax, qword [0x1801dd028]
xor rax, rsp
mov qword [rsp + 0x520], rax
mov r14, rdx
mov r15, rcx
mov bpl, 1
xor r12d, r12d
nop word [rax + rax]
mov esi, r12d
mov rbx, r12
nop word [rax + rax]
mov qword [rsp + 0x30], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r9d, r9d
mov r8d, 0x81a
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ntdll.dll_NtGetNextThread]
mov edi, eax
test rbx, rbx
je 0x18005a44f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x18005a513
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov edi, eax
test eax, eax
je 0x18005a410
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x18005a410
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x18005a410
test eax, eax
je 0x18005a49a
test bpl, bpl
jne 0x18005a49a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x18005a410
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x4d0
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x80], 0x10000b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x18005a410
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x18005a4fe
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x38]
mov dword [rsp + 0x48], edi
lea r8, [rsp + 0x40]
mov rax, qword [rcx]
lea rdx, [rsp + 0x48]
call qword [rax + 0x10]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
inc esi
jmp 0x18005a410
xor bpl, bpl
test esi, esi
jne 0x18005a400
mov rcx, qword [r15 + 0x38]
test rcx, rcx
je 0x18005a52d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rbx, r12
mov qword [rsp + 0x30], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r9d, r9d
mov r8d, 0x81a
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ntdll.dll_NtGetNextThread]
mov edi, eax
test rbx, rbx
je 0x18005a56f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x18005a59c
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov edi, eax
test eax, eax
je 0x18005a530
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x18005a530
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x18005a530
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.180083800
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x18005a5d0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1801dd028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor ebp, ebp
mov dword [rsp + 0x40], ebp
lea r9, [rsp + 0x40]
lea r8d, [rbp + 0x40]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18005a61e
mov byte [rbx + 0x18], bpl
jmp 0x18005a670
mov r8d, dword [rsp + 0x40]
mov qword [rbx], rbp
mov qword [rbx + 8], rbp
mov dword [rbx + 0x10], ebp
mov rax, rdi
lea rcx, [rsp + 0x28]
cmp rbx, rcx
je 0x18005a651
mov qword [rbx], rdi
mov qword [rbx + 8], rsi
mov dword [rbx + 0x10], r8d
mov rdi, rbp
mov rsi, rbp
mov r8d, ebp
mov rax, rbp
mov byte [rbx + 0x18], 1
test rax, rax
je 0x18005a670
mov dword [rsp + 0x40], ebp
lea r9, [rsp + 0x40]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180083800
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x180065560
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
cmp byte [rcx], 0
mov r9, rcx
movabs r8, 0xcbf29ce484222325
mov rdx, rcx
je 0x18006557d
inc rdx
cmp byte [rdx], 0
jne 0x180065575
mov ecx, 0
sub rdx, r9
je 0x1800655a5
movabs r10, 0x100000001b3
movsx rax, byte [rcx + r9]
inc rcx
xor r8, rax
imul r8, r10
cmp rcx, rdx
jb 0x180065591
mov rax, r8
ret

Function at 0x180065640
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movzx eax, word [rcx + 0x50]
mov r13, rdx
mov rsi, rcx
cmp eax, 0xffff
je 0x18006576a
mov r8, qword [rcx + 0x40]
lea rdi, [rcx + 0x5a]
movabs rcx, 0xcbf29ce484222325
movabs r9, 0x100000001b3
nop dword [rax]
movzx r11d, ax
cmp r11d, dword [rsi + 0x48]
jge 0x1800656bb
cmp r11w, word [rdi]
ja 0x1800656bf
mov eax, r11d
mov r14d, r11d
add rax, rax
cmp word [r8 + rax*8 + 8], r11w
jne 0x1800656c3
cmp word [r8 + rax*8 + 0xa], r11w
jne 0x1800656bf
jmp 0x1800656c3
lea rdi, [rsi + 0x5a]
int3
mov r15, qword [rsi + 0x40]
add r14, r14
mov rbp, qword [r15 + r14*8]
test rbp, rbp
je 0x180065735
mov r8, qword [rbp]
mov rbx, rcx
mov rax, r8
cmp byte [r8], 0
je 0x1800656eb
inc rax
cmp byte [rax], 0
jne 0x1800656e3
mov edx, 0
sub rax, r8
je 0x180065714
nop word [rax + rax]
movsx rcx, byte [r8 + rdx]
inc rdx
xor rbx, rcx
imul rbx, r9
cmp rdx, rax
jb 0x180065700
mov rcx, r13
call fcn.180065560
cmp rbx, rax
je 0x18006578a
movabs rcx, 0xcbf29ce484222325
movabs r9, 0x100000001b3
cmp r11d, dword [rsi + 0x48]
jge 0x180065751
cmp r11w, word [rdi]
ja 0x180065751
cmp word [r15 + r14*8 + 8], r11w
jne 0x180065756
cmp word [r15 + r14*8 + 0xa], r11w
je 0x180065756
int3
movzx eax, word [r15 + r14*8 + 0xa]
mov r8, r15
cmp eax, 0xffff
jne 0x180065690
int3
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, rbp
jmp 0x18006576d

Function at 0x1800658f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1801dd028]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
call qword [rax + 0x130]
mov r9, qword [rsp + 0x20]
test r9, r9
jne 0x18006592f
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180083800
add rsp, 0x38
ret
mov r9, qword [r9 + 8]
movabs rdx, 0xcbf29ce484222325
mov rax, r9
cmp byte [r9], 0
je 0x18006594e
inc rax
cmp byte [rax], 0
jne 0x180065946
mov r8d, 0
sub rax, r9
je 0x180065984
movabs r10, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movsx rcx, byte [r8 + r9]
inc r8
xor rdx, rcx
imul rdx, r10
cmp r8, rax
jb 0x180065970
movabs rax, 0xc106a596b87eca81
cmp rdx, rax
sete al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180083800
add rsp, 0x38
ret