joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002130
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x30
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], 0
mov rdi, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x180002166
xor eax, eax
add rsp, 0x30
pop rdi
ret
mov qword [rsp + 0x40], rbx
mov ebx, dword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r9d, r9d
xor r8d, r8d
mov rbx, rax
xor edx, edx
lea rax, [rsp + 0x48]
mov rcx, rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1800021cb
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140466a20
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, [0x140728740]
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140466a50
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140466a70
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, [0x140728780]
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140466aa0
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rbx, rdx
test rcx, rcx
je 0x140466c80
movzx edi, byte [rcx]
test dil, dil
jne 0x140466b40
lea rdx, [rsp + 0x20]
mov rcx, rsi
call sub.msvcrt.dll__stat64
mov edi, eax
cmp edi, 0xffffffff
je 0x140466bc9
mov rax, qword [rsp + 0x20]
movdqu xmm0, xmmword [rsp + 0x40]
mov qword [rbx], rax
mov eax, dword [rsp + 0x28]
movups xmmword [rbx + 0x18], xmm0
mov dword [rbx + 8], eax
movzx eax, word [rsp + 0x2c]
mov word [rbx + 0xc], ax
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x10], eax
mov rax, qword [rsp + 0x38]
mov dword [rbx + 0x14], eax
mov rax, qword [rsp + 0x50]
mov qword [rbx + 0x28], rax
mov eax, edi
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call sub.msvcrt.dll_strlen
cmp eax, 1
jle 0x140466ae1
lea edx, [rax - 2]
cmp edx, 1
jbe 0x140466be8
cmp dil, 0x5c
je 0x140466c00
cmp dil, 0x2f
je 0x140466c00
movsxd rdi, eax
movzx eax, byte [rsi + rdi - 1]
lea r12, [rdi - 1]
cmp al, 0x2f
je 0x140466b82
cmp al, 0x5c
jne 0x140466ae1
mov rcx, rdi
call sub.msvcrt.dll_malloc
mov r8, r12
mov rdx, rsi
mov rbp, rax
mov rcx, rax
call fcn.1404754a8
mov byte [rbp + rdi - 1], 0
lea rdx, [rsp + 0x20]
mov rcx, rbp
call sub.msvcrt.dll__stat64
mov edi, eax
cmp rsi, rbp
je 0x140466af0
mov rcx, rbp
call fcn.140475440
cmp edi, 0xffffffff
jne 0x140466af9
pxor xmm0, xmm0
mov eax, edi
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp byte [rsi + 1], 0x3a
jne 0x140466b56
jmp 0x140466ae1
movzx edx, byte [rsi + 1]
cmp dl, 0x5c
je 0x140466c12
cmp dl, 0x2f
jne 0x140466b6a
movzx ecx, byte [rsi + 2]
lea rdx, [rsi + 2]
cmp cl, 0x5c
je 0x140466c98
test cl, cl
jne 0x140466c39
jmp 0x140466c42
movzx ecx, byte [rdx + 1]
add rdx, 1
test cl, cl
je 0x140466c42
cmp cl, 0x5c
je 0x140466c98
cmp cl, 0x2f
jne 0x140466c28
add rdx, 1
movzx ecx, byte [rdx]
test cl, cl
je 0x140466ae1
cmp cl, 0x5c
jne 0x140466c69
jmp 0x140466c6e
movzx ecx, byte [rdx + 1]
add rdx, 1
test cl, cl
je 0x140466c72
cmp cl, 0x5c
je 0x140466ca0
cmp cl, 0x2f
jne 0x140466c58
add rdx, 1
cmp byte [rdx], 0
jne 0x140466b6a
jmp 0x140466ae1
lea rdx, [rsp + 0x20]
xor ecx, ecx
call sub.msvcrt.dll__stat64
mov edi, eax
jmp 0x140466af0
test cl, cl
je 0x140466c42
jmp 0x140466c3e
test cl, cl
je 0x140466c72
jmp 0x140466c6e
Function at 0x140477b10
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140ae13a0], 1
je 0x140477bb0
lea rdi, [0x140ae13a0]
mov rcx, rdi
call fcn.1404774b0
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140476dc0
mov esi, dword [0x140ae13a0]
test esi, esi
jne 0x140477b88
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140604638], eax
cmp eax, 0xffffffff
je 0x1405f7ce6
mov dword [0x140ae13a0], 1
mov rcx, rbp
call fcn.140477090
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.140477790
cmp esi, 1
je 0x140477b6c
mov ecx, 2
call qword [fcn.140474cd0]
mov r9d, esi
mov r8, rdi
lea rdx, [0x14072912f]
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x140477b6c
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [0x28]
ud2

Function at 0x140477bc0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.1404778a0
mov rbx, rax
test rax, rax
je 0x140477cbc
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.1404773a0
cmp eax, 1
je 0x140477cc8
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1405f7cec
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140604638]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1405f7cec
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.140477700
nop
nop

Function at 0x140477cd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140477b10
mov ecx, dword [0x140604638]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140477cf0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140477bc0
Function at 0x1404784b0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r12, qword [0x14072af60]
mov rax, qword [r12]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x140478610
cmp eax, 1
je 0x140478515
call fcn.1404774b0
lea r13, [rax + 8]
mov rdi, rax
mov rcx, r13
call fcn.140476dc0
mov ebp, dword [rbx]
test ebp, ebp
je 0x140478538
cmp ebp, 1
jne 0x1404785d8
mov rcx, r13
call fcn.140477090
mov rcx, rdi
call fcn.140477790
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [r12]
jne 0x14047865b
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x140477870]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140477b10
mov ecx, dword [0x140604638]
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rbp
test rax, rax
je 0x140478648
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140477b10
mov ecx, dword [0x140604638]
call rbp
test rax, rax
je 0x140478630
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140477b10
mov ecx, dword [0x140604638]
call rbp
test rax, rax
je 0x140478620
mov rdx, qword [rsp + 0x30]
mov rcx, r13
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
call fcn.140477090
mov rcx, rdi
call fcn.140477790
jmp 0x140478515
mov ecx, 2
call qword [fcn.140474cd0]
mov r9d, ebp
mov r8, rbx
lea rdx, [0x14072912f]
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rcx, r13
call fcn.140477090
mov rcx, rdi
call fcn.140477790
jmp 0x140478515
mov eax, 0x16
jmp 0x140478517
call fcn.140477bc0
test rax, rax
jne 0x1404785ae
jmp 0x1405f7d1e
call fcn.140477bc0
test rax, rax
jne 0x14047858b
jmp 0x1405f7d0f
call fcn.140477bc0
test rax, rax
jne 0x140478566
jmp 0x1405f7d05
call fcn.140466a70
nop
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2

Function at 0x1404788e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140477b10
mov ecx, dword [0x140604638]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140478958
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.1404773b0
cmp esi, dword [rbx + 0x48]
jae 0x140478933
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x140478933
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140477400
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140477bc0
mov rbx, rax
jmp 0x14047890d
Function at 0x14047e180
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm0, xmmword [0x140658f80]
movdqu xmm1, xmmword [0x140658f90]
movdqu xmm2, xmmword [0x140658fa0]
movdqu xmm3, xmmword [0x140658fb0]
add rdx, rcx
cmp rcx, rdx
jae 0x14047e1d0
nop dword [rax + rax]
aesenc xmm3, xmmword [rcx]
aesdec xmm2, xmmword [rcx + 0x10]
aesenc xmm1, xmmword [rcx + 0x20]
add rcx, 0x40
aesdec xmm0, xmmword [rcx - 0x10]
cmp rcx, rdx
jb 0x14047e1b0
movdqu xmm4, xmmword [0x140659000]
aesenc xmm3, xmm4
aesdec xmm2, xmm4
aesenc xmm1, xmm4
aesdec xmm0, xmm4
movdqu xmm4, xmmword [0x140659010]
aesenc xmm3, xmm4
aesdec xmm2, xmm4
aesenc xmm1, xmm4
aesdec xmm0, xmm4
movups xmmword [r8], xmm3
movups xmmword [r8 + 0x10], xmm2
movups xmmword [r8 + 0x20], xmm1
movups xmmword [r8 + 0x30], xmm0
ret
Function at 0x14047ef40
Capabilities:
Decrypt data using aes via x86 extensions
Encrypt data using aes via x86 extensions

Disassembly:
push rbx
sub rsp, 0x60
movups xmmword [rsp], xmm6
movups xmmword [rsp + 0x10], xmm7
movups xmmword [rsp + 0x20], xmm8
movups xmmword [rsp + 0x30], xmm9
movups xmmword [rsp + 0x40], xmm10
movups xmmword [rsp + 0x50], xmm11
movdqu xmm5, xmmword [0x140658f90]
movdqu xmm6, xmmword [0x140658fa0]
movdqu xmm7, xmmword [0x140658fb0]
movdqu xmm4, xmmword [0x140658f80]
movdqu xmm3, xmmword [r9]
movdqu xmm2, xmmword [r9 + 0x10]
movdqu xmm1, xmmword [r9 + 0x20]
movdqu xmm0, xmmword [r9 + 0x30]
movdqu xmm11, xmmword [0x140658fc0]
movdqu xmm10, xmmword [0x140658fd0]
movdqu xmm9, xmmword [0x140658fe0]
movdqu xmm8, xmmword [0x140658ff0]
mov rax, rdx
mov r11, rcx
lea rdx, [rcx + 0x1c00]
lea rcx, [rcx + rax - 0x1c00]
mov r10, r11
lea rbx, [rcx + 0x3800]
mov rax, r10
cmp r10, rcx
jae 0x14047f09d
nop dword [rax]
aesdec xmm3, xmm11
aesenc xmm2, xmm10
aesenc xmm7, xmmword [rax]
sub rax, 0xffffffffffffff80
aesdec xmm1, xmm9
aesenc xmm0, xmm8
movups xmmword [rax - 0x80], xmm3
aesdec xmm6, xmmword [rax - 0x70]
aesenc xmm5, xmmword [rax - 0x60]
aesdec xmm4, xmmword [rax - 0x50]
movups xmmword [rax - 0x70], xmm2
prefetcht0 byte [rdx]
movups xmmword [rax - 0x60], xmm1
aesdec xmm3, xmm11
prefetcht0 byte [rdx + 0x40]
aesenc xmm2, xmm10
movups xmmword [rax - 0x50], xmm0
aesdec xmm1, xmm9
sub rdx, 0xffffffffffffff80
aesenc xmm0, xmm8
aesenc xmm7, xmmword [rax - 0x40]
aesdec xmm6, xmmword [rax - 0x30]
aesenc xmm5, xmmword [rax - 0x20]
movups xmmword [rax - 0x40], xmm3
aesdec xmm4, xmmword [rax - 0x10]
movups xmmword [rax - 0x30], xmm2
movups xmmword [rax - 0x20], xmm1
movups xmmword [rax - 0x10], xmm0
cmp rax, rcx
jb 0x14047eff0
mov rax, rcx
sub rax, r10
sub rax, 1
and rax, 0xffffffffffffff80
lea r10, [r10 + rax + 0x80]
add rcx, 0x1c00
cmp rcx, rbx
je 0x14047f0b8
mov rdx, r11
jmp 0x14047efe0
movups xmmword [r9], xmm3
movups xmm8, xmmword [rsp + 0x20]
movups xmm9, xmmword [rsp + 0x30]
movups xmmword [r9 + 0x30], xmm0
movdqu xmm0, xmmword [0x140659000]
movups xmm10, xmmword [rsp + 0x40]
movups xmmword [r9 + 0x10], xmm2
movups xmm11, xmmword [rsp + 0x50]
aesenc xmm7, xmm0
aesdec xmm6, xmm0
aesenc xmm5, xmm0
movups xmmword [r9 + 0x20], xmm1
aesdec xmm4, xmm0
movdqu xmm0, xmmword [0x140659010]
aesenc xmm7, xmm0
aesdec xmm6, xmm0
aesenc xmm5, xmm0
movups xmmword [r8], xmm7
movups xmm7, xmmword [rsp + 0x10]
aesdec xmm4, xmm0
movups xmmword [r8 + 0x10], xmm6
movups xmm6, xmmword [rsp]
movups xmmword [r8 + 0x20], xmm5
movups xmmword [r8 + 0x30], xmm4
add rsp, 0x60
pop rbx
ret
Function at 0x14058d900
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, qword [sym.imp.msvcrt.dll__read]
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, rdi
call fcn.14058d710
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call rbp
movsxd r13, eax
cmp eax, 0xffffffff
je 0x14058d950
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call r12
cmp dword [rax], 4
je 0x14058d923
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x1405a1e40
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r12, qword [0x14072af60]
mov rax, qword [r12]
mov qword [rsp + 0x28], rax
mov rax, qword [rcx + 8]
mov r13, rcx
test rax, rax
je 0x1405a1e90
mov rdx, qword [rsp + 0x28]
sub rdx, qword [r12]
jne 0x1405a1f24
mov rcx, qword [rcx]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp rax
mov rdi, qword [sym.imp.msvcrt.dll__read]
mov ebx, 4
lea rsi, [rsp + 0x24]
mov rbp, qword [sym.imp.msvcrt.dll__errno]
nop dword [rax + rax]
mov ecx, dword [r13 + 0x10]
mov r8d, ebx
mov rdx, rsi
call rdi
test eax, eax
jle 0x1405a1ef0
cdqe
add rsi, rax
sub rbx, rax
jne 0x1405a1eb0
mov eax, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
sub rdx, qword [r12]
jne 0x1405a1f24
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp eax, 0xffffffff
jne 0x1405a1f1b
call rbp
mov r14, rbp
cmp dword [rax], 4
je 0x1405a1eb0
call r14
mov rdx, qword [rsp + 0x28]
sub rdx, qword [r12]
jne 0x1405a1f24
mov ecx, dword [rax]
lea rdx, [0x140724750]
call fcn.1405f76c0
mov r14, qword [sym.imp.msvcrt.dll__errno]
jmp 0x1405a1eff
call fcn.140466a70
nop
nop
nop
nop
nop
nop
nop
mov rax, qword [0x14072ab40]
add rax, 0x10
mov qword [rcx], rax
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov edx, dword [rax - 8]
mov rax, qword [rcx + 8]
test edx, edx
jg 0x1405a1f60
mov dword [rax - 8], 1
ret
lock add dword [rax - 8], 1
ret
Function at 0x140002840
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x140090040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x1400916b0]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140002a5f
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140002a5f
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 [0x1400916b0]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x140002914
movsx rdx, word [r8 + 0x6160]
lea rax, [r8 + 0x6164]
mov r9d, dword [r8 + 0x3fb0]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x140002909
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 + 0x6160], cx
movsx rax, cx
lea rax, [rax*8 + 0x6164]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x6158]
test rdi, rdi
je 0x140002931
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 0x140002934
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x140078238]
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 0x140002977
mov rsi, qword [r8 + 0x90]
jmp 0x14000297a
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 0x1400029a5
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x1400916b0]
mov rcx, qword [rax + 0x4b88]
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 0x140002a1f
inc rbx
cmp rbx, 5
jl 0x140002a01
jmp 0x140002a4b
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 0x140002a61
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140072580
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x140006e00
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 0x140006e5d
lea rbx, [0x1400797a0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140006e44
cmp r10, 2
jb 0x140006e44
cmp byte [r9], r8b
jne 0x140006e44
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 0x140006e20
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140006e9f
lea rbx, [0x1400797a0]
cmp r8b, 0x23
jne 0x140006e83
cmp byte [r9], r8b
jne 0x140006e83
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 0x140006e70
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140007060
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 0x14000707e
mov qword [r8], r14
lea rdx, [0x140079290]
call fcn.140006eb0
mov rbx, rax
test rax, rax
jne 0x1400070a3
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 0x1400071cd
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 0x1400071cd
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400071cd
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 0x1400071cd
cmp rdi, 0xffffffffffffffff
je 0x1400071cd
mov rcx, rdi
call fcn.14000b750
mov rbp, rax
test rax, rax
je 0x1400071cd
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 0x1400071ba
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x1400916b0]
test r8, r8
je 0x1400071af
movsx rdx, word [r8 + 0x6160]
lea rcx, [r8 + 0x6164]
mov r9d, dword [r8 + 0x3fb0]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x1400071a4
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 + 0x6160], cx
movsx rax, cx
lea rcx, [r8 + 0x6164]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x615c]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400071d6
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x1400071c8
mov qword [rsi], rdi
mov rax, rbp
jmp 0x1400071d8
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 0x14000e930
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140090040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1400916b0]
mov ebp, edx
mov r10, rcx
mov r9d, dword [rdi + 0x4a78]
mov rbx, qword [rdi + 0x4068]
bts r9d, 8
mov dword [rdi + 0x4a78], r9d
mov dword [rdi + 0x4ab0], 1
cmp qword [rbx + 0x1c0], 0
jne 0x14000e9a7
cmp qword [rdi + 0x4e78], 0
mov eax, 0x268
je 0x14000e9ac
mov eax, 0x238
movss xmm2, dword [rbx + rax]
lea rcx, [rsp + 0x30]
movss xmm3, dword [rbx + rax + 4]
subss xmm3, dword [rbx + 0x11c]
subss xmm2, dword [rbx + 0x118]
mov rdx, qword [r8]
call fcn.140018620
movsd xmm0, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
or r9d, 2
movsd qword [rdi + 0x4a98], xmm0
xor edx, edx
mov dword [rdi + 0x4a78], r9d
mov dword [rdi + 0x4a80], 1
mov r9, qword [rbx + 8]
test r10, r10
je 0x14000ea1e
mov dword [rsp + 0x28], ebp
lea r8, str._s__s__08X
mov qword [rsp + 0x20], r10
call fcn.140006c60
jmp 0x14000ea2e
lea r8, str._s__08X
mov dword [rsp + 0x20], ebp
call fcn.140006c60
mov rcx, qword [rsp + 0x30]
xor edx, edx
movss xmm6, dword [rdi + 0x3928]
mov r8d, 0x1000107
call fcn.140011b10
mov rsi, qword [rdi + 0x4068]
movzx r14d, al
movss dword [rdi + 0x3928], xmm6
cmp word [rsi + 0xd8], 1
mov dword [rsi + 0x90], ebp
jne 0x14000ea78
movsd xmm0, qword [rsi + 0x28]
movsd qword [rbx + 0x118], xmm0
mov r9d, ebp
lea rdx, [0x140078601]
not r9d
lea r10, [0x1400797a0]
mov ebx, r9d
mov r8b, 0x23
cmp r8b, 0x23
jne 0x14000eaa5
cmp byte [rdx], r8b
jne 0x14000eaa5
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 0x14000ea92
not ebx
cmp dword [rdi + 0x40d4], ebx
jne 0x14000ead5
xor edx, edx
xor ecx, ecx
call fcn.14000b100
cmp dword [rdi + 0x4ba4], ebp
jne 0x14000eb1a
cmp word [rsi + 0x174], 0
jne 0x14000eaf0
cmp byte [rsi + 0x17a], 0
je 0x14000eb1a
xor edx, edx
mov rcx, rsi
call fcn.1400143d0
xor edx, edx
mov rcx, rsi
call fcn.14001b090
mov rdx, rsi
mov ecx, ebx
call fcn.14000b100
mov eax, dword [rdi + 0x4bd8]
mov dword [rdi + 0x4100], eax
movzx eax, r14b
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140072580
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop r14
ret