joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f250
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x50
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x40], r9d
lea rbx, [rcx + 0x30]
mov rcx, rbx
call fcn.1400270e0
lea r8, [rsp + 0x38]
mov rdx, qword [rbx + 0x20]
mov rcx, rbx
call fcn.14001f560
mov rdi, qword [rbx + 0x20]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, 4
lea rdx, [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001f2f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14001f30d
mov r8, qword [rbx + 0x30]
xor edx, edx
mov rcx, qword [rbx + 0x38]
call fcn.14002e670
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, dword [rbx + 0x30]
mov rdx, qword [rbx + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001f322
mov byte [rbx + 0x28], 0
mov eax, dword [rsp + 0x68]
jmp 0x14001f302
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
mov dword [rsp + 0x30], eax
lea rdx, [0x140072ed0]
lea rcx, [rsp + 0x30]
call fcn.14002e9f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
lea rdx, [0x140072ed0]
lea rcx, [rsp + 0x34]
call fcn.14002e9f8
int3

Function at 0x14001f560
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push r14
sub rsp, 0x50
mov r14, rdx
mov rbx, rcx
mov rdx, qword [rcx + 0x38]
mov qword [rsp + 0x38], rdx
movsd xmm0, qword [r8]
movsd qword [rdx], xmm0
mov eax, dword [r8 + 8]
mov dword [rdx + 8], eax
lea rsi, [rcx + 0x28]
mov qword [rsp + 0x40], rsi
cmp byte [rsi], 0
je 0x14001f5a5
mov r8, qword [rcx + 0x30]
jmp 0x14001f5ab
mov r8d, 0xc
mov qword [rsp + 0x88], r8
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001f633
cmp dword [rsp + 0x80], 0
jbe 0x14001f633
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
nop
jmp 0x14001f5f1
mov byte [rsi], 0
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x14001f62a
mov qword [rbx + 0x40], 0
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, qword [rbx + 0x40]
mov qword [rbx + 0x40], 0
test rcx, rcx
je 0x14001f62a
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov dword [rsp + 0x30], eax
lea rdx, [0x140072ed0]
lea rcx, [rsp + 0x30]
call fcn.14002e9f8
int3

Function at 0x1400271f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov rax, r9
mov qword [rsp + 0x20], 0
mov rbx, rdx
lea r9, [rsp + 0x50]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140027238
cmp dword [rsp + 0x50], 0
jbe 0x140027238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140072ed0]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x30]
call fcn.14002e9f8
int3
Function at 0x140029d9c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140029de6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140029de6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140029de6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140029de6
cmp dword [rcx + 0x84], 0xe
jbe 0x140029de6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140029de8
xor al, al
add rsp, 0x28
ret

Function at 0x140044e0c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140044c08

Function at 0x14004873c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140048752
mov al, 1
jmp 0x1400487b2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140048763
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400487b0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14004fdbc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400487b0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400487b0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400487b0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400487b2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14004a0dc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140029b80
sub rsp, rax
mov rax, qword [0x140077098]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140047d70
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14004a12b
mov rax, rbp
jmp 0x14004a233
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x7b540]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140049d18
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x7b540]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004a22f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004a22f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140049d18
test rax, rax
js 0x14004a22f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004a22f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004a221
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004a221
cmp byte [rcx], 0xd
jne 0x14004a207
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004a216
cmp byte [rcx + 1], 0xa
jne 0x14004a216
inc rcx
jmp 0x14004a216
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x77b80]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14004a1e9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004a233
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140028fe0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004f6f8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14004f77f
mov rsi, rbx
cmp word [rax], bp
je 0x14004f73e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14004f728
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004f724
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004b2d0
mov rdi, rax
test rax, rax
je 0x14004f76c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002dfd0
mov rbp, rdi
xor ecx, ecx
call fcn.140047d34
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140052310
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400479d4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400523b1
cmp ebx, dword [rsp + 0x30]
je 0x1400523aa
test esi, esi
je 0x1400523aa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140052385
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140052392
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14005236f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140052396
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400523b3
mov eax, 1
jmp 0x1400523b3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400526c4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14007b540]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14005271b
cmp word [rdx], r13w
jne 0x14005271b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140052720
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140052845
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140052866
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140052759
mov rdx, r9
mov word [rbx], cx
jmp 0x140052780
cmp r9, r8
jae 0x140052790
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14005273a
jmp 0x140052845
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005283a
cmp dword [rsp + 0x80], esi
je 0x14005283a
lea r8, [0x14007b540]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140052812
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400527e2
mov word [rbx], r13w
jmp 0x140052842
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400527ef
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140052842
cmp word [rsp + 0x70], r13w
jne 0x14005281f
cmp rbx, r14
je 0x1400527dc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140049d20
cmp word [rsp + 0x70], r13w
je 0x140052845
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14007b540]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14005283f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140052845
Function at 0x140056c88
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140049d20
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140049d20
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140056dd8
cmp rax, 0xffffffffffffffff
je 0x140056dd8
xor edi, edi
test rbp, rbp
jle 0x140056d83
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400499f4
mov rbx, rax
test rax, rax
jne 0x140056d10
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140056d79
mov edx, 0x8000
mov ecx, r14d
call fcn.140045b90
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400496ec
cmp eax, 0xffffffff
je 0x140056d59
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140056d20
mov edx, r15d
mov ecx, r14d
call fcn.140045b90
jmp 0x140056d79
cmp byte [rsi + 0x38], dil
je 0x140056d70
cmp dword [rsi + 0x34], 5
jne 0x140056d70
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140056d79
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140047d34
jmp 0x140056dec
jns 0x140056dec
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140049d20
cmp rax, 0xffffffffffffffff
jne 0x140056da4
cmp byte [rsi + 0x30], dil
je 0x140056dec
mov edi, dword [rsi + 0x2c]
jmp 0x140056dec
mov ecx, r14d
call fcn.14004fdbc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140056dec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140056dec
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140056de5
mov eax, dword [rsi + 0x2c]
jmp 0x140056dea
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140049d20
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140057690
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400576b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400576b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180003758
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1800e0010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, rdx
mov rbp, rcx
mov rcx, r8
mov rax, 0xfffffffffffff000
and rcx, rax
mov rsi, r8
mov qword [rdx], rcx
mov rdx, r8
sub rdx, rcx
lea r9, [rdi + 0x10]
add rdx, 0x1004
mov r8d, 0x40
and rdx, rax
mov qword [rdi + 8], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1800037e2
mov r9, qword [rdi + 8]
lea rdx, str.__unprotect_memory__p__size_llu______p__size_llu__n
mov r8, qword [rdi]
mov rcx, rbp
mov qword [rsp + 0x28], 5
mov qword [rsp + 0x20], rsi
call fcn.180002db4
xor eax, eax
jmp 0x18000382f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, [rsp + 0x40]
call fcn.180003464
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rdi + 8]
lea rdx, str.Failed_to_unprotect_memory__p__size_llu______p__size_llu__error_lu__s__
mov r8, qword [rdi]
mov rcx, rbp
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], 5
mov qword [rsp + 0x20], rsi
call fcn.180002ddc
mov eax, 9
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.18009b850
mov rbx, qword [rsp + 0x108]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret

Function at 0x18000808c
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x1800080e6
mov r11b, 0x23
lea rdi, [0x1800a5130]
movzx ebx, byte [r10]
dec rdx
inc r10
cmp bl, r11b
jne 0x1800080d0
cmp rdx, 2
jb 0x1800080d0
cmp byte [r10], r11b
jne 0x1800080d0
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rbx
shr r9d, 8
xor r9d, dword [rdi + rcx*4]
test rdx, rdx
jne 0x1800080ae
jmp 0x180008127
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x180008127
mov r11b, 0x23
lea rdi, [0x1800a5130]
cmp dl, r11b
jne 0x18000810b
cmp byte [r10], r11b
jne 0x18000810b
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rdi + rcx*4]
test dl, dl
jne 0x1800080f9
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x18000825c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
test r8, r8
je 0x18000827c
and qword [r8], 0
lea rdx, [0x1800c5928]
call fcn.180008138
mov rbx, rax
test rax, rax
je 0x18000836d
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x180008364
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 0x180008364
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180008364
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 0x180008364
mov rbp, rdi
cmp rdi, 0xffffffffffffffff
je 0x180008364
mov rax, qword [0x1800e3b80]
test rax, rax
je 0x180008301
inc dword [rax + 0xf4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x180008364
mov r9, rbx
mov r8, rbp
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, rbp
je 0x180008351
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1800e3b80]
test rax, rax
je 0x180008346
dec dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x18000836d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x18000835f
mov qword [rsi], rbp
mov rax, rdi
jmp 0x18000836f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18000af68
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1800e0010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [rcx + 0xf8]
mov r8, rdx
mov qword [rsp + 0x20], rdx
mov r9, rcx
movsxd rdx, dword [rcx + 0xf0]
mov r10d, 8
mov ebx, dword [rax + rdx*4 - 4]
lea rdx, [rsp + 0x20]
not ebx
movzx eax, byte [rdx]
inc rdx
movzx ecx, bl
xor rcx, rax
shr ebx, 8
lea rax, [0x1800a5130]
xor ebx, dword [rax + rcx*4]
sub r10, 1
jne 0x18000afa7
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x1210], ebx
jne 0x18000afde
lea edx, [r10 + 0xc]
mov ecx, ebx
call fcn.18001b50c
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18009b850
add rsp, 0x30
pop rbx
ret
Function at 0x18000aff4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1800e0010]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsxd r8, dword [rcx + 0xf0]
mov r11d, 4
mov rax, qword [rcx + 0xf8]
mov r9, rcx
mov dword [rsp + 0x20], edx
mov r10d, r11d
mov ebx, dword [rax + r8*4 - 4]
lea r8, [rsp + 0x20]
not ebx
movzx eax, byte [r8]
inc r8
movzx ecx, bl
xor rcx, rax
shr ebx, 8
lea rax, [0x1800a5130]
xor ebx, dword [rax + rcx*4]
sub r10, 1
jne 0x18000b033
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x1210], ebx
jne 0x18000b06d
movsxd r8, edx
mov ecx, ebx
mov edx, r11d
call fcn.18001b50c
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18009b850
add rsp, 0x30
pop rbx
ret

Function at 0x18000b084
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1800e0010]
xor rax, rsp
mov qword [rsp + 0x10], rax
movss xmm2, dword [rcx + 0x110]
lea r9, [rsp]
movss xmm3, dword [rcx + 0x114]
mov r10d, 0x10
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
mov rax, qword [rcx + 0xf8]
subss xmm1, xmm3
movsxd rcx, dword [rcx + 0xf0]
movss dword [rsp], xmm0
movss xmm0, dword [rdx + 8]
mov r8d, dword [rax + rcx*4 - 4]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
not r8d
movss xmm1, dword [rdx + 0xc]
subss xmm1, xmm3
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
movzx ecx, byte [r9]
lea rax, [0x1800a5130]
movzx edx, r8b
inc r9
xor rdx, rcx
shr r8d, 8
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x18000b101
not r8d
mov eax, r8d
mov rcx, qword [rsp + 0x10]
xor rcx, rsp
call fcn.18009b850
add rsp, 0x28
ret
Function at 0x18001a204
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 + 0x2f40], 0
lea rbx, [rcx + 0x2f48]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x18001a29d
mov r9d, dword [rbx + 4]
test r9d, r9d
jns 0x18001a255
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.18001c434
and dword [rbx], 0
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.180008bf8
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x2f40]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x1800e3b78]
movsxd r8, eax
mov rax, qword [rdi + 0x2f50]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x18001a2a5
mov rcx, rbx
call fcn.180008bf8
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18001a960
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1800e3b80]
mov rbx, rcx
and dword [rax + 0x2ea4], 0
test rcx, rcx
je 0x18001a9c9
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.18001a9d4
lea rdx, [0x1800c592c]
mov rcx, rbx
mov rdi, rax
call fcn.180008138
mov rbx, rax
test rax, rax
je 0x18001a9c9
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180036ad0
Capabilities:
Create thread
Set console window title

Disassembly:
push rbx
sub rsp, 0x30
cmp edx, 1
jne 0x180036b56
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea rcx, str.cs2cheat_debug_console
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 1
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea r8, [0x1800c6340]
mov rcx, rax
lea rdx, str.CONOUT_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
and qword [rsp + 0x28], 0
lea r8, [0x180036728]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180036b7e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180036b7e
test edx, edx
jne 0x180036b7e
test r8, r8
jne 0x180036b7e
call fcn.1800368c0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x1800371cc
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x1800e0010]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
jne 0x1800371fd
lea rcx, str.Tried_getting_virtual_function_from_a_null_class._n
call fcn.180006624
jmp 0x18003721a
mov rax, qword [rcx]
test rax, rax
jne 0x18003720e
lea rcx, str.Tried_getting_virtual_function_from_a_null_vtable._n
jmp 0x1800371f6
mov rdx, qword [rax + 0x480]
test rdx, rdx
jne 0x18003723c
lea rcx, str.Tried_calling_a_null_virtual_function._n
call fcn.180006624
mov rcx, rdi
call fcn.18003f388
test al, al
je 0x18003724c
mov eax, 2
jmp 0x1800372dc
call rdx
test al, al
je 0x180037226
mov eax, 1
jmp 0x1800372dc
mov qword [rsp + 0x20], rbx
test rdi, rdi
jne 0x180037264
lea rcx, str.Tried_getting_virtual_function_from_a_null_class._n
call fcn.180006624
jmp 0x180037281
mov rax, qword [rdi]
test rax, rax
jne 0x180037275
lea rcx, str.Tried_getting_virtual_function_from_a_null_vtable._n
jmp 0x18003725d
mov r8, qword [rax + 0x110]
test r8, r8
jne 0x18003728f
lea rcx, str.Tried_calling_a_null_virtual_function._n
call fcn.180006624
jmp 0x18003729a
lea rdx, [rsp + 0x20]
mov rcx, rdi
call r8
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x1800372da
mov rax, qword [rax + 8]
test rax, rax
je 0x1800372da
cmp byte [rax], bl
je 0x1800372da
movsx ecx, byte [rax]
xor ecx, 0x811c9dc5
imul edx, ecx, 0x1000193
lea rcx, [rax + 1]
call fcn.18003b910
cmp eax, 0x94f0c692
mov ecx, 3
cmove ebx, ecx
mov eax, ebx
jmp 0x1800372dc
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18009b850
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x18003b910
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x28
cmp byte [rcx], 0
je 0x18003b92e
movsx eax, byte [rcx]
xor eax, edx
imul edx, eax, 0x1000193
inc rcx
call fcn.18003b910
mov edx, eax
mov eax, edx
add rsp, 0x28
ret