joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d610
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r14, r9
mov r15, r8
mov rbx, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call sub.kernel32.dll_GetSystemInfo
mov ecx, dword [rsp + 0x34]
test rcx, rcx
je 0x14000d91b
mov rax, rbx
shr rax, 0x20
je 0x14000d668
mov rax, rbx
xor edx, edx
div rcx
jmp 0x14000d66e
mov eax, ebx
xor edx, edx
div ecx
lea rdi, [rcx + rbx]
sub rdi, rdx
test rdx, rdx
cmove rdi, rbx
test rdi, rdi
cmove rdi, rcx
test r14, r14
je 0x14000d803
shl r14, 4
add r14, r15
xor ecx, ecx
lea r9, [0x14003344c]
lea r10, [0x140033430]
xor r8d, r8d
xor edx, edx
xor r12d, r12d
xor r11d, r11d
xor ebx, ebx
jmp 0x14000d6c9
add r15, 0x10
mov r12b, 1
mov r8b, 1
nop dword [rax]
cmp r15, r14
je 0x14000d837
mov r13, r15
lea r15, [r13 + 0x10]
mov ebp, dword [r13]
cmp ebp, 2
jne 0x14000d71e
nop dword [rax]
cmp r15, r14
je 0x14000d780
mov ebp, dword [r15]
cmp ebp, 2
jne 0x14000d700
add r15, 0x10
cmp r15, r14
jne 0x14000d6e9
jmp 0x14000d780
mov r12d, ebp
movsxd r12, dword [r9 + r12*4]
add r12, r9
jmp r12
mov ebp, ebp
movsxd rbp, dword [r10 + rbp*4]
add rbp, r10
jmp rbp
mov r8b, 1
jmp 0x14000d6c0
add r15, 0x10
mov r12b, 1
mov dl, 1
jmp 0x14000d6c0
cmp r11, 1
sete r10b
test r8b, 1
je 0x14000d81d
movzx r9d, dl
and r9d, 1
shl r9d, 5
add r9d, 0x20
test r10b, r10b
je 0x14000d879
not dl
movzx ecx, dl
and ecx, 1
lea ebp, [rcx*2 + 0x22]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, r9d
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingW
mov r14, rax
call fcn.1400186c0
test r14, r14
je 0x14000d8b1
cmp eax, 0xb7
jne 0x14000d8ba
mov dword [rsi + 8], 9
jmp 0x14000d900
xor ebx, ebx
xor r10d, r10d
xor edx, edx
xor ecx, ecx
or r10b, dl
mov r9d, 1
test r10b, 1
jne 0x14000d82b
jmp 0x14000d879
or dl, r10b
mov r9d, 0x10
test dl, 1
je 0x14000d879
mov dword [rsi + 8], 7
jmp 0x14000d900
cmp r11, 1
sete r10b
test r12b, 1
jne 0x14000d788
test r8b, 1
je 0x14000d80c
movzx r8d, dl
and r8d, 1
lea r9d, [r8*2 + 2]
cmp r11, 1
jne 0x14000d879
not dl
movzx ecx, dl
and ecx, 1
lea ebp, [rcx*2 + 2]
jmp 0x14000d7ba
test rbx, rbx
je 0x14000d887
mov dword [rsi + 8], 8
jmp 0x14000d900
mov rdx, rdi
mov r8d, 0x3000
call sub.kernel32.dll_VirtualAlloc
test rax, rax
je 0x14000d8a3
mov qword [rsi], 1
jmp 0x14000d8e7
call fcn.1400186c0
mov dword [rsi + 8], 0xa
jmp 0x14000d8fd
mov dword [rsi + 8], 0xb
jmp 0x14000d8fd
mov r8, rdi
shr r8, 0x20
mov qword [rsp + 0x20], 0
mov rcx, r14
mov edx, ebp
mov r9d, ebx
call sub.kernel32.dll_MapViewOfFile
test rax, rax
je 0x14000d8f1
mov qword [rsi], 0
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rdi
jmp 0x14000d907
call fcn.1400186c0
mov dword [rsi + 8], 0xc
mov dword [rsi + 0xc], eax
mov qword [rsi], 2
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fmmap_fixed_fixed_0.1.3_srclib.rs
call fcn.14002b3f0
ud2
Function at 0x140010ed0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140010f70
jmp 0x140010f5f
jae 0x14001103e
cmp r8, 0x201
jae 0x140010f70
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140010fd6
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x140010fae
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14002a150
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x140010fff
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400110aa
mov r8d, r13d
cmp r12, r8
jne 0x140010f50
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400110de
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140010f5f
jmp 0x140010f70
cmp r14, r8
jb 0x1400110f8
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140013c80
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x140011093
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140005aa0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14001107e
jmp 0x140011093
lea rcx, str.internal_error:_entered_unreachable_code_rustc_4392847410ddd67f6734dd9845f9742ff9e85c83library_alloc_src_vecmod.rs
lea r8, str.std_src_syspalwindowsmod.rszY
mov edx, 0x28
call fcn.14002aeb0
jmp 0x14001110d
lea rax, str.std_src_syspalwindowsmod.rszY
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14002b200
ud2
Function at 0x1400185a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x1400354f0]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140018636
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x140018663
test eax, eax
js 0x140018642
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x140018659
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.140013980
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.14000f450
mov ecx, 7
int 0x29
ud2

Function at 0x140018d40
Capabilities:
Set environment variable

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, r9
mov rdi, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x30]
call fcn.1400195f0
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov rax, rcx
neg rax
jno 0x140018d84
mov rsi, rdx
jmp 0x140018e06
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x30]
mov rdx, rdi
mov r8, rsi
call fcn.1400195f0
mov rbx, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x28]
mov rax, rbx
neg rax
jno 0x140018dbd
mov rsi, rdi
mov rdx, qword [rbp - 0x10]
test rdx, rdx
mov r14, qword [rbp - 0x18]
jne 0x140018df5
jmp 0x140018e06
mov r14, qword [rbp - 0x18]
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
invalid
test eax, eax
je 0x140018e14
xor esi, esi
test rbx, rbx
je 0x140018dec
call qword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
Function at 0x1400295ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x140029636
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140029636
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140029636
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140029636
cmp dword [rcx + 0x84], 0xe
jbe 0x140029636
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140029638
xor al, al
add rsp, 0x28
ret
Function at 0x14000a880
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1401fdbc0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1401fe4f8]
mov edi, edx
mov esi, ecx
cmp byte [rbx + 0x424d], 0
jne 0x14000a8e8
cmp byte [rbx + 0x424e], 0
jne 0x14000a8e8
movsx r9d, word [rbx + 0x532e]
lea r8, str.Tooltip__02d
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.14000f960
test sil, 1
je 0x14000aa19
jmp 0x14000a981
movss xmm1, dword [rbx + 0x38b0]
lea r8, str.Tooltip__02d
movaps xmm0, xmm1
lea rcx, [rsp + 0x20]
mulss xmm0, dword [0x14014a3c8]
xor eax, eax
mov edx, reloc.WS2_32.dll_recv
mulss xmm1, dword [0x14014a3b8]
addss xmm0, dword [rbx + 0xd94]
addss xmm1, dword [rbx + 0xd98]
or dword [rbx + 0x3fb0], 1
mov qword [rbx + 0x3fc8], rax
movss dword [rbx + 0x3fc0], xmm0
mov dword [rbx + 0x3fb4], 1
movss dword [rbx + 0x3fc4], xmm1
movss xmm0, dword [rbx + 0x390c]
mov rax, qword [0x1401fe4f8]
mulss xmm0, dword [0x14014a368]
or dword [rax + 0x3fb0], 0x40
movss dword [rax + 0x4010], xmm0
movsx r9d, word [rbx + 0x532e]
call fcn.14000f960
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14000a9d1
lea r11, [0x140149040]
cmp r9b, 0x23
jne 0x14000a9b4
cmp byte [r8], r9b
jne 0x14000a9b4
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14000a9a1
not ecx
call fcn.14000e290
test rax, rax
je 0x14000aa19
cmp byte [rax + 0x96], 0
je 0x14000aa19
mov byte [rax + 0x9d], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb8], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x532e]
mov edx, reloc.WS2_32.dll_recv
movsx r9d, word [rbx + 0x532e]
call fcn.14000f960
or edi, 0x20c0347
lea rcx, [rsp + 0x20]
mov r8d, edi
xor edx, edx
call fcn.1400077a0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140142c40
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14000e1e0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x1401fe4f8]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14000e243
mov qword [rsp], rbx
lea rbx, [0x140149040]
nop dword [rax]
cmp r9b, 0x23
jne 0x14000e223
cmp byte [r8], r9b
jne 0x14000e223
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 0x14000e210
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5390]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x14000e277
mov r10, qword [r10 + 0x5398]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14000e27e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x14000e264
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x14000e310
Capabilities:
Hash data with crc32

Disassembly:
mov rax, rcx
mov r10d, 0xffffffff
mov ecx, r10d
movzx r9d, byte [rax]
lea r8, [rax + 1]
test r9b, r9b
je 0x14000e360
lea r11, [0x140149040]
cmp r9b, 0x23
jne 0x14000e343
cmp byte [r8], r9b
jne 0x14000e343
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14000e330
not ecx
jmp fcn.14000e290

Function at 0x14000ea60
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0xd8]
lea r8, [0x140149040]
movsxd rcx, dword [rcx + 0xd0]
mov r11d, edx
shr r11d, 0x18
mov r9d, edx
shr r9d, 8
mov r10d, edx
shr r10d, 0x10
mov ebx, dword [rax + rcx*4 - 4]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r9b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, r10b
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, r11
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
mov rcx, qword [0x1401fe4f8]
not ebx
cmp dword [rcx + 0x3edc], ebx
jne 0x14000eaf8
movsxd r8, edx
xor r9d, r9d
mov edx, 4
mov ecx, ebx
call fcn.14000c810
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14000eb80
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
movss xmm0, dword [rcx + 0xf0]
lea r10, [0x140149040]
mov rax, qword [rcx + 0xd8]
movss xmm1, dword [rcx + 0xf4]
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 + 0xd0]
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
Function at 0x14000f6b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x14000f6cb
mov qword [r8], 0
call fcn.14000f810
mov rbx, rax
test rax, rax
jne 0x14000f6e1
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14000f7eb
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 0x14000f7eb
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000f7eb
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000f7eb
cmp rdi, 0xffffffffffffffff
je 0x14000f7eb
mov rax, qword [0x1401fe4f8]
test rax, rax
je 0x14000f764
inc dword [rax + 0xec]
mov rdx, qword [0x1401fe500]
lea rcx, [rdi + rbp]
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14000f7eb
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]
cmp rax, rdi
je 0x14000f7c3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1401fe4f8]
test rax, rax
je 0x14000f7b1
dec dword [rax + 0xec]
mov rdx, qword [0x1401fe500]
mov rcx, rsi
call qword [0x140184008]
jmp 0x14000f7f4
test ebp, ebp
jle 0x14000f7d5
lea rcx, [rdi + rsi]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000f7e6
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000f7f6
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret

Function at 0x14000fab0
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 0x14000fb0d
lea rbx, [0x140149040]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14000faf4
cmp r10, 2
jb 0x14000faf4
cmp byte [r9], r8b
jne 0x14000faf4
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 0x14000fad0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000fb4f
lea rbx, [0x140149040]
cmp r8b, 0x23
jne 0x14000fb33
cmp byte [r9], r8b
jne 0x14000fb33
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 0x14000fb20
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x1400113b0
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 + 0x53e0], 0
lea rbx, [rcx + 0x53e8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140011457
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001140a
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.14001efa0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14001eab0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x53e0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x53f0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1401fe4f0]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001145f
mov rcx, rbx
call fcn.14001eab0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140019fa0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1401fe4f8]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x537c], ecx
test rbx, rbx
je 0x14001a00f
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.14001a020
lea rdx, [0x14014a218]
mov rcx, rbx
mov rdi, rax
call fcn.14000f810
mov rbx, rax
test rax, rax
je 0x14001a00a
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 rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x14001d400
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
mov rbx, qword [0x1401fe4f8]
cmp byte [rbx + 0x5379], 0
jne 0x14001d55c
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001d555
lea rdx, [0x14014a214]
mov qword [rsp + 0x40], rdi
call fcn.14000f810
mov rdi, rax
test rax, rax
je 0x14001d550
mov qword [rsp + 0x30], rbp
mov rcx, rax
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14001d53d
xor edx, edx
mov r8d, 2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001d53d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x14001d53d
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001d53d
cmp rsi, 0xffffffffffffffff
je 0x14001d53d
mov rax, qword [0x1401fe4f8]
test rax, rax
je 0x14001d4c7
inc dword [rax + 0xec]
mov rdx, qword [0x1401fe500]
mov rcx, rsi
call qword [section..data]
mov rbp, rax
test rax, rax
je 0x14001d53d
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rsi
je 0x14001d503
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14001d519
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14001d519
mov rdx, rsi
mov rcx, rbp
call fcn.140010f00
mov rax, qword [0x1401fe4f8]
test rax, rax
je 0x14001d52b
dec dword [rax + 0xec]
mov rdx, qword [0x1401fe500]
mov rcx, rbp
call qword [0x140184008]
jmp 0x14001d546
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov byte [rbx + 0x5379], 1
movss xmm0, dword [rbx + 0x537c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14001d59f
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x537c], xmm0
jb 0x14001d59f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001d58e
call fcn.140019fa0
jmp 0x14001d595
mov byte [rbx + 0xd4], 1
mov dword [rbx + 0x537c], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret