joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010370
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rdi, qword [0x140064ae8]
mov ebp, edx
movaps xmmword [rsp + 0x30], xmm6
mov r9, rcx
mov rbx, qword [rdi + 0x4008]
cmp qword [rbx + 0x1a8], 0
jne 0x1400103b3
cmp qword [rdi + 0x4da8], 0
mov eax, 0x250
je 0x1400103b8
mov eax, 0x220
movss xmm3, dword [rax + rbx]
xorps xmm5, xmm5
movss xmm4, dword [rax + rbx + 4]
cvttss2si eax, dword [r8]
subss xmm3, dword [rbx + 0x100]
subss xmm4, dword [rbx + 0x104]
movss xmm2, dword [0x14005a788]
movd xmm1, eax
cvttss2si eax, dword [r8 + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
comiss xmm5, xmm1
cvtdq2ps xmm0, xmm0
jb 0x140010408
addss xmm1, xmm3
comiss xmm1, xmm2
jae 0x140010408
movaps xmm1, xmm2
comiss xmm5, xmm0
jb 0x140010419
addss xmm0, xmm4
comiss xmm0, xmm2
jae 0x140010419
movaps xmm0, xmm2
or dword [rdi + 0x49b8], 2
movss dword [rdi + 0x49d8], xmm1
movss dword [rdi + 0x49dc], xmm0
mov dword [rdi + 0x49c0], 1
test r9, r9
je 0x140010468
movsxd rdx, dword [rbx + 0xf0]
mov rcx, qword [rbx + 0xf8]
mov eax, dword [rbx + 0x10]
cmp dword [rcx + rdx*4 - 4], eax
jne 0x140010468
mov qword [rsp + 0x20], r9
lea r8, str._s__s
mov r9, qword [rbx + 8]
jmp 0x1400104a0
mov rax, qword [rbx + 8]
test r9, r9
je 0x140010492
mov dword [rsp + 0x28], ebp
lea r8, str._s__s__08X
mov qword [rsp + 0x20], r9
lea rcx, [rsp + 0x60]
mov r9, rax
xor edx, edx
call fcn.140008400
jmp 0x1400104ac
mov dword [rsp + 0x20], ebp
lea r8, str._s__08X
mov r9, rax
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.140008400
mov rcx, qword [rsp + 0x60]
xor edx, edx
movss xmm6, dword [rdi + 0x3920]
mov r8d, 0x1000107
call fcn.140013270
mov rsi, qword [rdi + 0x4008]
movzx r14d, al
movss dword [rdi + 0x3920], xmm6
cmp word [rsi + 0xc2], 1
mov dword [rsi + 0x80], ebp
jne 0x1400104f6
movsd xmm0, qword [rsi + 0x20]
movsd qword [rbx + 0x100], xmm0
mov r9d, ebp
lea rdx, [0x140054509]
not r9d
lea r10, [0x140055550]
mov ebx, r9d
mov r8b, 0x23
cmp r8b, 0x23
jne 0x140010523
cmp byte [rdx], r8b
jne 0x140010523
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x140010510
not ebx
cmp dword [rdi + 0x4068], ebx
jne 0x140010553
xor edx, edx
xor ecx, ecx
call fcn.14000ccc0
cmp dword [rdi + 0x4ae8], ebp
jne 0x140010598
cmp word [rsi + 0x15c], 0
jne 0x14001056e
cmp byte [rsi + 0x162], 0
je 0x140010598
xor edx, edx
mov rcx, rsi
call fcn.1400157a0
xor edx, edx
mov rcx, rsi
call fcn.14001bd20
mov rdx, rsi
mov ecx, ebx
call fcn.14000ccc0
mov eax, dword [rdi + 0x4b0c]
mov dword [rdi + 0x4090], eax
mov rbx, qword [rsp + 0x68]
movzx eax, r14b
mov rbp, qword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140019c00
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140064008]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140064ae8]
mov edi, ecx
cmp byte [rbx + 0x4cf1], 0
jne 0x140019c61
cmp byte [rbx + 0x4cf2], 0
jne 0x140019c61
movsx r9d, word [rbx + 0x5e24]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140008380
test dil, 2
je 0x140019d8f
jmp 0x140019cea
movss xmm1, dword [rbx + 0x39c4]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5e24]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14005a7b8]
mulss xmm1, dword [0x14005a7ac]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xe48]
addss xmm1, dword [rbx + 0xe4c]
mov qword [rbx + 0x49d0], rax
mov dword [rbx + 0x49bc], 1
movss dword [rbx + 0x49c8], xmm0
movss dword [rbx + 0x49cc], xmm1
movss xmm0, dword [rbx + 0x3a20]
mulss xmm0, dword [0x14005a720]
or dword [rbx + 0x49b8], 0x41
movss dword [rbx + 0x4a18], xmm0
call fcn.140008380
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140019d40
lea r11, [0x140055550]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x140019d23
cmp byte [r8], r9b
jne 0x140019d23
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 0x140019d10
not ecx
call fcn.1400108b0
test rax, rax
je 0x140019d8f
cmp byte [rax + 0xb6], 0
je 0x140019d8f
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, 0x10
inc word [rbx + 0x5e24]
movsx r9d, word [rbx + 0x5e24]
call fcn.140008380
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140013270
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140050630
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001fc90
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 + 0x5f78], 0
lea rbx, [rcx + 0x5f80]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001fd37
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001fcea
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.1400224b0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140008fd0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5f78]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5f88]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140064ae0]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001fd3f
mov rcx, rbx
call fcn.140008fd0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140020060
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
mov rbx, qword [0x140064ae8]
xor ebp, ebp
cmp byte [rbx + 0x5ed0], bpl
jne 0x14002013f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140020138
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140008710
mov rsi, rax
test rax, rax
je 0x140020138
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x1400200c4
mov rcx, rax
call fcn.140020290
mov r8, qword [0x140064ae8]
test r8, r8
je 0x14002012f
movsx rdx, word [r8 + 0x6030]
lea rcx, [r8 + 0x6034]
mov r9d, dword [r8 + 0x3f60]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140020124
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 + 0x6030], cx
movsx rax, cx
lea rcx, [r8 + 0x6034]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x602c]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5ed0], 1
movss xmm0, dword [rbx + 0x5ed4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1400201ce
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5ed4], xmm0
jb 0x1400201ce
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x1400201c1
mov rax, qword [0x140064ae8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5ed4], ebp
call fcn.1400204f0
lea rdx, [0x14005509c]
mov rcx, rdi
mov rsi, rax
call fcn.140008620
mov rdi, rax
test rax, rax
je 0x1400201c8
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1400201c8
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5ed4], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400201f0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140064ae8]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140020253
mov qword [rsp], rbx
lea rbx, [0x140055550]
nop dword [rax]
cmp r9b, 0x23
jne 0x140020233
cmp byte [r8], r9b
jne 0x140020233
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 0x140020220
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5ee8]
not eax
mov r8, qword [r10 + 0x5ef0]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14002027f
cmp dword [r8 + 8], eax
je 0x140020286
add r8, 0x48
cmp r8, rcx
jne 0x140020270
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x1400487a0
Capabilities:
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x20
test dword [rcx + 0x10], 0x100000
mov rdi, rdx
je 0x14004882c
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x140048800
lea r11, [0x140055550]
nop
cmp r9b, 0x23
jne 0x1400487e3
cmp byte [r8], r9b
jne 0x1400487e3
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400487d0
mov rcx, qword [0x140064ae8]
not eax
cmp dword [rcx + 0x4068], eax
jne 0x140048817
mov dword [rcx + 0x406c], eax
cmp dword [rcx + 0x4098], eax
jne 0x140048889
mov byte [rcx + 0x409c], 1
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x140064ae8]
xor edx, edx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
mov rbx, qword [rax + 0x4008]
movsxd rcx, dword [rbx + 0xf0]
mov rax, qword [rbx + 0xf8]
mov r8d, dword [rax + rcx*4 - 4]
mov rcx, rdi
call fcn.140008570
mov rcx, qword [rbx]
mov esi, eax
mov rbx, qword [rsp + 0x30]
cmp dword [rcx + 0x4050], eax
jne 0x140048882
mov r8, rdi
mov edx, 0xb
mov ecx, eax
call fcn.1400212d0
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14004d9a0
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 0x14004d9c8
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 0x14004d9ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14004d9f0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14004da49
test ecx, ecx
jle 0x14004da29
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 0x14004da49
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14004da49
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 0x14004da70
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 0x14004da92
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x14004daa8
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 0x14004dac4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14004dac6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14004db02
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 0x14004db9e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14004db3d
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 0x14004db7e
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 0x14004db9e
cmp rbx, rax
ja 0x14004db50
test rbx, rbx
je 0x14004db9e
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 0x14004dfb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140064008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14004dfdd
xor eax, eax
jmp 0x14004e13a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x14004e008
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x14004e008
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x14004e13a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14004e12d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14004e04b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x14004e076
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 0x14004e132
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 0x14004e0e5
sub eax, 1
je 0x14004e0e5
cmp eax, 2
jne 0x14004e12d
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 0x14004e132
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14004e113
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 0x14004e12d
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14004e132
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140050630
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14004e5d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140064008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14004e6a3
cmp byte [rcx + 0x71], 0
je 0x14004e6a3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14004e69f
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 0x14004e664
sub eax, 1
je 0x14004e668
cmp eax, 2
jne 0x14004e69f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140050630
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14004e696
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 0x14004e69f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14004e64c
xor al, al
jmp 0x14004e64c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140050630
add rsp, 0x60
pop rbx
ret
Function at 0x18000dc88
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.180007e70
sub rsp, rax
mov rax, qword [0x18003f020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18001a29c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18000dcd7
mov rax, rbp
jmp 0x18000dddf
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xa35a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18001a534
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xa35a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18000dddb
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 0x18000dddb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18001a534
test rax, rax
js 0x18000dddb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18000dddb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18000ddcd
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18000ddcd
cmp byte [rcx], 0xd
jne 0x18000ddb3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18000ddc2
cmp byte [rcx + 1], 0xa
jne 0x18000ddc2
inc rcx
jmp 0x18000ddc2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3f3c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18000dd95
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18000dddf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180007520
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 0x18001c58c
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1800a35a0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x18001c5ea
cmp word [rdx], r12w
jne 0x18001c5ea
or byte [rax + r8*8 + 0x38], cl
jmp 0x18001c5f0
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x18001c74b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x18001c726
lea r9, [rcx + 2]
cmp ax, r13w
je 0x18001c629
mov rcx, r9
jmp 0x18001c64c
cmp r9, rdx
jae 0x18001c663
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x18001c60d
jmp 0x18001c74b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001c720
cmp dword [rsp + 0x80], edi
je 0x18001c720
mov rdx, r14
lea r11, [0x1800a35a0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x18001c6f9
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x18001c6cc
mov word [rbx], r12w
jmp 0x18001c747
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x18001c6d5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x18001c747
cmp word [rsp + 0x70], r12w
jne 0x18001c706
cmp rbx, rsi
je 0x18001c6c6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.18001a53c
cmp word [rsp + 0x70], r12w
je 0x18001c74b
mov word [rbx], r13w
jmp 0x18001c747
lea r11, [0x1800a35a0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18001c743
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18001c74b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18001f7f0
Capabilities:
Read file on windows

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 r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x18001f512
call fcn.180015e9c
mov dword [rax], 0x16
call fcn.180012d98
jmp 0x18001f662
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18001f662
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x18001f662
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x18001f541
lock or dword [rcx + 0x14], 0x10
jmp 0x18001f662
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x18001f555
call fcn.18001fd64
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x18001f565
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x18001f568
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.18001a29c
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.18001ca38
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x18001f650
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x18001f5fb
mov rcx, rbx
call fcn.18001a29c
cmp eax, 0xffffffff
je 0x18001f5e6
mov rcx, rbx
call fcn.18001a29c
cmp eax, 0xfffffffe
je 0x18001f5e6
mov rcx, rbx
call fcn.18001a29c
movsxd rdi, eax
lea rsi, [0x1800a35a0]
mov rcx, rbx
sar rdi, 6
call fcn.18001a29c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x18001f5ed
lea rdx, [0x18003f4c0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18001f5fb
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x18001f61f
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x18001f61f
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x18001f61f
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x18001f63d
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x18001f648
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x18001f667
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x18001f4dc