joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004844
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov byte [rsp + 0x20], 0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jle 0x14000498a
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
cmp eax, 0xff
je 0x140004887
jmp 0x14000496e
mov eax, 1
imul rax, rax, 0
lea rcx, [0x14000a87c]
mov byte [rcx + rax], 0xff
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x24]
dec eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
cmp eax, 0xfb
je 0x1400048d0
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
cmp eax, 0xfc
jne 0x1400048d5
mov byte [rsp + 0x20], 0xfe
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
cmp eax, 0xfd
je 0x1400048f3
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
cmp eax, 0xfe
jne 0x1400048f8
mov byte [rsp + 0x20], 0xfc
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14000496e
mov eax, 1
imul rax, rax, 1
lea rcx, [0x14000a87c]
mov dl, byte [rsp + 0x20]
mov byte [rcx + rax], dl
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x24]
dec eax
mov dword [rsp + 0x24], eax
mov eax, 1
imul rax, rax, 2
lea rcx, [0x14000a87c]
mov rdx, qword [rsp + 0x28]
mov dl, byte [rdx]
mov byte [rcx + rax], dl
movsxd rax, dword [0x14000a080]
xor r9d, r9d
mov r8d, 3
lea rdx, [0x14000a87c]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_send]
mov byte [rsp + 0x20], 0
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x24]
dec eax
mov dword [rsp + 0x24], eax
jmp 0x140004868
add rsp, 0x38
ret
Function at 0x1400068b0
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001511a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015111
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015111
mov rax, qword [rbp - 8]
jmp 0x14001512f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400150e4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140520b0e
Capabilities:
Encode data using xor

Disassembly:
push qword [rsp + 0x60]
popfq
lea rsp, [rsp + 0x70]
call fcn.1408f7b05
loope 0x140520b4b
adc spl, byte [rdi - 0x5ad9d241]
test dword [rbp + 0x77], edi
push rdx
movsb byte [rdi], byte [rsi]
out dx, al
invalid
xor ebx, dword [rsi + 0x50d915d4]
jne 0x140520b4b
in al, dx
insd dword [rdi], dx
mov dl, 0x70
retf
Function at 0x14000ae30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x10]
mov rbx, rcx
mov r11d, edx
and r11d, 7
je 0x14000aebf
cmp edx, r11d
jge 0x14000aeae
mov r8d, dword [rcx + 0x18]
mov eax, 1
mov ecx, edx
mov r9d, edx
shl eax, cl
cmp r8d, eax
jae 0x14000aea4
mov r10, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r10
jb 0x14000ae6f
xor cl, cl
jmp 0x14000ae78
movzx ecx, byte [rax]
inc rax
mov qword [rbx], rax
movzx eax, cl
lea edx, [r9 + 8]
mov ecx, r9d
mov dword [rbx + 0x10], edx
shl eax, cl
or r8d, eax
mov dword [rbx + 0x18], r8d
cmp edx, 0x18
jg 0x14000aeae
mov ecx, edx
mov eax, 1
shl eax, cl
mov r9d, edx
cmp r8d, eax
jb 0x14000ae63
mov rax, qword [rbx + 8]
mov edx, r9d
mov qword [rbx], rax
mov eax, dword [rbx + 0x18]
mov ecx, r11d
shr eax, cl
sub edx, r11d
mov dword [rbx + 0x18], eax
mov dword [rbx + 0x10], edx
xor r8d, r8d
mov r9d, edx
test edx, edx
jle 0x14000af02
mov eax, dword [rbx + 0x18]
lea rcx, [rsp + 0x30]
movzx r10d, al
nop word [rax + rax]
shr eax, 8
lea edx, [r9 - 8]
mov byte [rcx], r10b
lea rcx, [rcx + 1]
inc r8d
mov dword [rbx + 0x18], eax
mov r9d, edx
movzx r10d, al
test edx, edx
jg 0x14000aee0
mov dword [rbx + 0x10], edx
jns 0x14000af28
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.zlib_corrupt
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x14000af57
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x14000af41
xor dl, dl
jmp 0x14000af4a
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x14000af38
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x14000af04
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x14000afc1
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rcx, qword [rax]
lea rax, str.read_past_buffer
mov qword [rdx + rcx], rax
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x20]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x30]
jbe 0x14000afdb
mov rcx, rbx
call fcn.14000a240
test eax, eax
je 0x14000afb4
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x20]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x20], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x14001e860
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
movzx eax, byte [rdx + 1]
mov r10, rdx
movzx r8d, byte [rdx]
mov r9, rcx
movabs rbx, 0x100000001b3
movabs r11, 0xcbf29ce484222325
xor r8, r11
movzx ecx, byte [r10 + 8]
xor rcx, r11
imul rcx, rbx
imul r8, rbx
xor r8, rax
movzx eax, byte [rdx + 2]
imul r8, rbx
xor r8, rax
movzx eax, byte [rdx + 3]
movzx edx, byte [rdx + 4]
xor rdx, r11
imul rdx, rbx
imul r8, rbx
xor r8, rax
movzx eax, byte [r10 + 5]
xor rdx, rax
movzx eax, byte [r10 + 6]
imul rdx, rbx
imul r8, rbx
xor rdx, rax
movzx eax, byte [r10 + 7]
imul rdx, rbx
xor rdx, rax
movzx eax, byte [r10 + 9]
xor rcx, rax
movzx eax, byte [r10 + 0xa]
imul rcx, rbx
imul rdx, rbx
xor rcx, rax
movzx eax, byte [r10 + 0xb]
imul rcx, rbx
xor rcx, rax
imul rcx, rbx
add rcx, rcx
xor rcx, rdx
lea rdx, [rcx + rcx]
xor rdx, r8
and rdx, qword [r9 + 0x30]
shl rdx, 4
add rdx, qword [r9 + 0x18]
mov rax, qword [rdx + 8]
cmp rax, qword [r9 + 8]
je 0x14001e966
mov rdx, qword [rdx]
mov r8d, dword [r10]
cmp dword [rax + 0x10], r8d
jne 0x14001e94c
mov ecx, dword [r10 + 4]
cmp dword [rax + 0x14], ecx
jne 0x14001e94c
mov ecx, dword [r10 + 8]
cmp dword [rax + 0x18], ecx
je 0x14001e957
cmp rax, rdx
je 0x14001e966
mov rax, qword [rax + 8]
jmp 0x14001e934
test rax, rax
je 0x14001e966
add rax, 0x20
add rsp, 0x20
pop rbx
ret
lea rcx, str.invalid_unordered_map_K__T__key
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3

Function at 0x14001ec50
Capabilities:
Hash data using fnv

Disassembly:
movzx eax, byte [rdx + 1]
mov r8, rdx
movzx r9d, byte [rdx]
movabs r11, 0x100000001b3
movabs r10, 0xcbf29ce484222325
xor r9, r10
movzx ecx, byte [r8 + 8]
imul r9, r11
xor rcx, r10
xor r9, rax
movzx eax, byte [rdx + 2]
imul rcx, r11
imul r9, r11
xor r9, rax
movzx eax, byte [rdx + 3]
movzx edx, byte [rdx + 4]
xor rdx, r10
imul rdx, r11
imul r9, r11
xor r9, rax
movzx eax, byte [r8 + 5]
xor rdx, rax
movzx eax, byte [r8 + 6]
imul rdx, r11
imul r9, r11
xor rdx, rax
movzx eax, byte [r8 + 7]
imul rdx, r11
xor rdx, rax
movzx eax, byte [r8 + 9]
xor rcx, rax
movzx eax, byte [r8 + 0xa]
imul rcx, r11
imul rdx, r11
xor rcx, rax
movzx eax, byte [r8 + 0xb]
imul rcx, r11
xor rcx, rax
imul rcx, r11
lea rax, [rcx + rcx]
xor rax, rdx
add rax, rax
xor rax, r9
ret
Function at 0x14001ed00
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movzx eax, byte [r8 + 1]
mov r11, rdx
movzx r9d, byte [r8]
mov r10, rcx
movzx edx, byte [r8 + 4]
movabs rdi, 0x100000001b3
movzx ecx, byte [r8 + 8]
movabs rbx, 0xcbf29ce484222325
xor rdx, rbx
xor rcx, rbx
imul rdx, rdi
imul rcx, rdi
xor r9, rbx
imul r9, rdi
xor r9, rax
movzx eax, byte [r8 + 2]
imul r9, rdi
xor r9, rax
movzx eax, byte [r8 + 3]
imul r9, rdi
xor r9, rax
movzx eax, byte [r8 + 5]
xor rdx, rax
movzx eax, byte [r8 + 6]
imul rdx, rdi
imul r9, rdi
xor rdx, rax
movzx eax, byte [r8 + 7]
imul rdx, rdi
xor rdx, rax
movzx eax, byte [r8 + 9]
xor rcx, rax
movzx eax, byte [r8 + 0xa]
imul rcx, rdi
imul rdx, rdi
xor rcx, rax
movzx eax, byte [r8 + 0xb]
imul rcx, rdi
xor rcx, rax
imul rcx, rdi
add rcx, rcx
xor rcx, rdx
lea rdx, [rcx + rcx]
xor rdx, r9
and rdx, qword [r10 + 0x30]
shl rdx, 4
add rdx, qword [r10 + 0x18]
mov r10, qword [r10 + 8]
mov rax, qword [rdx + 8]
cmp rax, r10
je 0x14001ee03
mov rdx, qword [rdx]
mov r9d, dword [r8]
nop
cmp dword [rax + 0x10], r9d
jne 0x14001edf8
mov ecx, dword [r8 + 4]
cmp dword [rax + 0x14], ecx
jne 0x14001edf8
mov ecx, dword [r8 + 8]
cmp dword [rax + 0x18], ecx
je 0x14001ee05
cmp rax, rdx
je 0x14001ee03
mov rax, qword [rax + 8]
jmp 0x14001ede0
xor eax, eax
mov rbx, qword [rsp + 8]
test rax, rax
mov rdi, qword [rsp + 0x10]
cmove rax, r10
mov qword [r11], rax
mov rax, r11
ret
Function at 0x14001ee20
Capabilities:
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
movzx eax, byte [rdx + 1]
mov r9, rdx
movzx r8d, byte [rdx]
mov rbx, rcx
movabs r11, 0x100000001b3
movabs r10, 0xcbf29ce484222325
xor r8, r10
movzx ecx, byte [r9 + 8]
xor rcx, r10
imul rcx, r11
imul r8, r11
xor r8, rax
movzx eax, byte [rdx + 2]
imul r8, r11
xor r8, rax
movzx eax, byte [rdx + 3]
movzx edx, byte [rdx + 4]
xor rdx, r10
imul rdx, r11
imul r8, r11
xor r8, rax
movzx eax, byte [r9 + 5]
xor rdx, rax
movzx eax, byte [r9 + 6]
imul rdx, r11
imul r8, r11
xor rdx, rax
movzx eax, byte [r9 + 7]
imul rdx, r11
xor rdx, rax
movzx eax, byte [r9 + 9]
xor rcx, rax
movzx eax, byte [r9 + 0xa]
imul rcx, r11
imul rdx, r11
xor rcx, rax
movzx eax, byte [r9 + 0xb]
imul rcx, r11
xor rcx, rax
imul rcx, r11
mov r11, qword [rbx + 8]
add rcx, rcx
xor rcx, rdx
lea rdx, [rcx + rcx]
xor rdx, r8
and rdx, qword [rbx + 0x30]
shl rdx, 4
add rdx, qword [rbx + 0x18]
mov rcx, qword [rdx + 8]
cmp rcx, r11
je 0x14001ef1a
mov r8, qword [rdx]
mov r10d, dword [r9]
cmp dword [rcx + 0x10], r10d
jne 0x14001ef0f
mov eax, dword [r9 + 4]
cmp dword [rcx + 0x14], eax
jne 0x14001ef0f
mov eax, dword [r9 + 8]
cmp dword [rcx + 0x18], eax
je 0x14001ef1c
cmp rcx, r8
je 0x14001ef1a
mov rcx, qword [rcx + 8]
jmp 0x14001eef7
xor ecx, ecx
test rcx, rcx
je 0x14001ef78
mov rax, qword [rdx]
cmp qword [rdx + 8], rcx
jne 0x14001ef42
cmp rax, rcx
jne 0x14001ef38
mov qword [rdx], r11
mov qword [rdx + 8], r11
jmp 0x14001ef4d
mov r11, qword [rcx + 8]
mov qword [rdx + 8], r11
jmp 0x14001ef4d
cmp rax, rcx
jne 0x14001ef4d
mov rax, qword [rcx]
mov qword [rdx], rax
mov rdx, qword [rcx]
dec qword [rbx + 0x10]
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
mov edx, 0x28
call fcn.1400819bc
mov eax, 1
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14001f6a0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
movzx eax, byte [rdx + 1]
mov r8, rdx
movzx r9d, byte [rdx]
movabs rbx, 0x100000001b3
mov r10, rcx
movabs r11, 0xcbf29ce484222325
xor r9, r11
movzx ecx, byte [r8 + 8]
imul r9, rbx
xor rcx, r11
xor r9, rax
movzx eax, byte [rdx + 2]
imul rcx, rbx
imul r9, rbx
xor r9, rax
movzx eax, byte [rdx + 3]
movzx edx, byte [rdx + 4]
xor rdx, r11
imul rdx, rbx
imul r9, rbx
xor r9, rax
movzx eax, byte [r8 + 5]
xor rdx, rax
movzx eax, byte [r8 + 6]
imul rdx, rbx
imul r9, rbx
xor rdx, rax
movzx eax, byte [r8 + 7]
imul rdx, rbx
xor rdx, rax
movzx eax, byte [r8 + 9]
xor rcx, rax
movzx eax, byte [r8 + 0xa]
imul rcx, rbx
imul rdx, rbx
xor rcx, rax
movzx eax, byte [r8 + 0xb]
imul rcx, rbx
xor rcx, rax
imul rcx, rbx
mov rbx, qword [rsp + 8]
lea rax, [rcx + rcx]
xor rax, rdx
add rax, rax
xor rax, r9
and rax, qword [r10 + 0x30]
ret

Function at 0x140020c70
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140020c98
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140020cbe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140020cc0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140020d19
test ecx, ecx
jle 0x140020cf9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140020d19
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140020d19
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x140020d40
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140020d62
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140020d78
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140020d94
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140020d96
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140020dd2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140020e6e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140020e0d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140020e4e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140020e6e
cmp rbx, rax
ja 0x140020e20
test rbx, rbx
je 0x140020e6e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1400212d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400c8280]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400212fd
xor eax, eax
jmp 0x140021469
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140021337
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140021337
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140021469
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14002145c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14002137a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400213a5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140021461
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140021414
sub eax, 1
je 0x140021414
cmp eax, 2
jne 0x14002145c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140021461
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140021442
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14002145c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140021461
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140081650
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140021960
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400c8280]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140021a33
cmp byte [rcx + 0x71], 0
je 0x140021a33
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140021a2f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400219f4
sub eax, 1
je 0x1400219f8
cmp eax, 2
jne 0x140021a2f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140081650
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140021a26
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140021a2f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400219dc
xor al, al
jmp 0x1400219dc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140081650
add rsp, 0x60
pop rbx
ret

Function at 0x140029580
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 0x1400295dd
lea rbx, [0x14008a1b0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400295c4
cmp r10, 2
jb 0x1400295c4
cmp byte [r9], r8b
jne 0x1400295c4
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 0x1400295a0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14002961f
lea rbx, [0x14008a1b0]
cmp r8b, 0x23
jne 0x140029603
cmp byte [r9], r8b
jne 0x140029603
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 0x1400295f0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x1400297d0
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 0x1400297ee
mov qword [r8], r14
lea rdx, [0x140088d3c]
call fcn.140029630
mov rbx, rax
test rax, rax
jne 0x140029813
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 0x14002993f
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 0x14002993f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14002993f
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 0x14002993f
cmp rdi, 0xffffffffffffffff
je 0x14002993f
mov rcx, rdi
call fcn.14002dd60
mov rbp, rax
test rax, rax
je 0x14002993f
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 0x14002992c
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r8, qword [0x1400cc390]
test r8, r8
je 0x140029921
movsx rdx, word [r8 + 0x6258]
lea rcx, [r8 + 0x625c]
mov r9d, dword [r8 + 0x3fe8]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140029916
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 + 0x6258], cx
movsx rax, cx
lea rcx, [r8 + 0x625c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], r14d
inc word [rcx + 6]
inc dword [r8 + 0x6254]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140029948
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14002993a
mov qword [rsi], rdi
mov rax, rbp
jmp 0x14002994a
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