Function at 0x14000c6e0
Capabilities:
Compress data via winapi

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc8]
sub rsp, 0x1c8
mov r15, rcx
xor r13d, r13d
mov qword [rcx], r13
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov esi, r13d
mov qword [rsp + 0x50], r13
cmp qword [rdx + 0x18], 0x10
jb 0x14000c72c
mov rdx, qword [rdx]
lea rcx, [rbp - 0x70]
call fcn.14000ff80
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
cmp dword [rbp + rcx - 0x60], 0
je 0x14000c7d1
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x60]
call fcn.14000ff00
lea rcx, [rbp - 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, ds:[rbp + 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x14000ca16
sub rsi, rdi
mov rax, rdi
cmp rsi, 0x1000
jb 0x14000ca0a
add rsi, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ca0a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
and dword [rbp + rcx - 0x58], 0xfffffffe
xor edx, edx
lea r8d, [rdx + 2]
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
lea rdx, [rbp + 0xa0]
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
mov rbx, qword [rax + 8]
add rbx, qword [rax]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
test rbx, rbx
je 0x14000c82a
lfence
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140010c00
mov rsi, qword [rsp + 0x50]
mov r8, rbx
mov rdi, qword [rsp + 0x40]
mov rdx, rdi
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp - 0x60]
call fcn.1400104e0
test rax, rax
jne 0x14000c86a
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x70]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x60]
call fcn.14000ff00
lea rcx, ds:[rbp - 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x60], rbx
mov r14, rbx
sub r14, rdi
cmp r14, 0x100
jb 0x14000c78b
cmp byte [rdi], 0x4d
jne 0x14000ce0a
cmp byte ds:[rdi + 1], 0x41
jne 0x14000ce0a
cmp byte [rdi + 2], 0x4d
jne 0x14000ce0a
mov r14d, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [r14 + rcx]
cmp dword [0x14006e964], eax
jle 0x14000c959
lea rcx, [0x14006e964]
call fcn.140048928
cmp dword [0x14006e964], 0xffffffff
jne 0x14000c959
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlGetCompressionWorkSpaceSize
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006e950], rax
lea rcx, [0x14006e964]
call fcn.1400488c8
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov eax, dword [r14 + rdx]
cmp dword [0x14006e960], eax
jle 0x14000c9b9
lea rcx, [0x14006e960]
call fcn.140048928
cmp dword [0x14006e960], 0xffffffff
jne 0x14000c9b9
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlDecompressBufferEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006e940], rax
lea rcx, [0x14006e960]
call fcn.1400488c8
mov r14d, dword [rdi]
mov r12d, dword [rdi + 4]
mov dword [rbp + 0x120], r12d
mov eax, r14d
and eax, 0xffffff
cmp eax, 0x4d414d
je 0x14000ca2d
test rdi, rdi
je 0x14000ca16
sub rsi, rdi
mov rax, rdi
cmp rsi, 0x1000
jb 0x14000ca0a
add rsi, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000cbaa
mov rdx, rsi
mov rcx, rdi
call fcn.140048710
nop
mov rax, r15
add rsp, 0x1c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, [rdi + 8]
cmp rdi, rdx
je 0x14000ca52
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
add rbx, rdi
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x48], rbx
cmp r14d, 0x10000000
jae 0x14000c9d6
shr r14d, 0x18
and r14d, 0xf
mov dword [rsp + 0x58], r14d
mov dword [rbp + 0x118], r13d
mov dword [rbp + 0x128], r13d
lea r8, [rbp + 0x128]
lea rdx, [rbp + 0x118]
movzx ecx, r14w
mov rax, qword [0x14006e950]
call qword [0x14004fd60]
nop dword [rax]
test eax, eax
jne 0x14000c9d6
mov rax, r12
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r13
mov r12, r13
mov rbx, r13
test rax, rax
je 0x14000cb15
lfence
mov rcx, rax
call fcn.140006ee0
mov r14, rax
mov qword [rsp + 0x68], rax
mov eax, dword [rbp + 0x120]
mov r8d, eax
lea r12, [r14 + rax]
mov qword [rsp + 0x78], r12
xor edx, edx
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x70], r12
mov rbx, r12
mov r13, r12
mov rsi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
mov rdi, qword [rsp + 0x40]
jmp 0x14000cb1a
mov r14, qword [rsp + 0x68]
mov ecx, dword [rbp + 0x118]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
mov qword [rbp - 0x80], rax
test rax, rax
jne 0x14000cbb1
test r14, r14
je 0x14000cb73
sub rbx, r14
mov rax, r14
cmp rbx, 0x1000
jb 0x14000cb67
add rbx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000cb67
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rbx
mov rcx, r14
call fcn.140048710
nop
test rdi, rdi
je 0x14000ca16
sub rsi, rdi
mov rax, rdi
cmp rsi, 0x1000
jb 0x14000ca0a
add rsi, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ca0a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rax, qword [rsp + 0x60]
sub rax, rdi
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x78]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8d, dword [rbp + 0x120]
mov rdx, r14
movzx ecx, word [rsp + 0x58]
mov rax, qword [0x14006e940]
call qword [0x14004fd60]
mov rcx, qword [rbp - 0x80]
test eax, eax
je 0x14000cc7c
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
test r14, r14
je 0x14000cc39
sub r13, r14
mov rax, r14
cmp r13, 0x1000
jb 0x14000cc2d
add r13, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000cdf2
mov rdx, r13
mov rcx, r14
call fcn.140048710
nop
nop dword [rax]
test rdi, rdi
je 0x14000ca16
sub rsi, rdi
mov rax, rdi
cmp rsi, 0x1000
jb 0x14000ca0a
add rsi, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ca0a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rax, [rsp + 0x68]
cmp r15, rax
je 0x14000cdb9
sub r12, r14
mov rcx, qword [r15]
mov rdx, qword [r15 + 0x10]
sub rdx, rcx
cmp r12, rdx
jbe 0x14000cd60
movabs rdi, 0x7fffffffffffffff
cmp r12, rdi
ja 0x14000cfa6
mov r8, rdx
shr r8, 1
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14000ccd9
lea rdi, [rdx + r8]
cmp rdi, r12
cmovb rdi, r12
test rcx, rcx
je 0x14000cd13
nop
cmp rdx, 0x1000
jb 0x14000cd01
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000cd59
mov rcx, r8
call fcn.140048710
xor eax, eax
mov qword [r15], rax
mov qword [r15 + 8], rax
mov qword [r15 + 0x10], rax
lfence
mov rcx, rdi
call fcn.140006ee0
mov rbx, rax
mov qword [r15], rax
mov qword [r15 + 8], rax
lea rcx, [rdi + rax]
mov qword [r15 + 0x10], rcx
mov r8, r12
mov r14, qword [rsp + 0x68]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + r12]
mov qword [r15 + 8], rax
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x40]
jmp 0x14000cdb9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r13, qword [r15 + 8]
sub r13, rcx
mov rdx, r14
cmp r12, r13
jbe 0x14000cda9
mov r8, r13
call sub.VCRUNTIME140.dll_memmove
lea rdx, [r14 + r13]
mov rbx, qword [r15 + 8]
sub r12, r13
lfence
mov r8, r12
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [r12 + rbx]
mov qword [r15 + 8], rax
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x68]
jmp 0x14000cdb9
lea rbx, [r12 + rcx]
mov r8, r12
call sub.VCRUNTIME140.dll_memmove
mov qword [r15 + 8], rbx
nop dword [rax]
test r14, r14
je 0x14000cf63
mov rdx, qword [rsp + 0x78]
sub rdx, r14
mov rax, r14
cmp rdx, 0x1000
jb 0x14000cdf9
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000cdf9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.140048710
jmp 0x14000cf63
cmp byte [rdi + 4], 0x53
jne 0x14000cf63
cmp byte [rdi + 5], 0x43
jne 0x14000cf63
cmp byte [rdi + 6], 0x43
jne 0x14000cf63
cmp byte [rdi + 7], 0x41
jne 0x14000cf63
lea rax, ds:[rsp + 0x40]
cmp r15, rax
je 0x14000cf63
mov rcx, qword [r15]
mov rdx, qword [r15 + 0x10]
sub rdx, rcx
cmp r14, rdx
jbe 0x14000cf0f
movabs rdi, 0x7fffffffffffffff
cmp r14, rdi
ja 0x14000cf9f
mov r8, rdx
shr r8, 1
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14000ce90
lea rdi, [r8 + rdx]
cmp rdi, r14
cmovb rdi, r14
test rcx, rcx
je 0x14000cec6
cmp rdx, 0x1000
jb 0x14000ceb6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000cf08
mov rcx, r8
call fcn.140048710
mov qword [r15], r13
mov qword [r15 + 8], r13
mov qword [r15 + 0x10], r13
lfence
mov rcx, rdi
call fcn.140006ee0
mov rbx, rax
mov qword [r15], rax
mov qword [r15 + 8], rax
lea rcx, [rax + rdi]
mov qword [r15 + 0x10], rcx
mov r8, r14
mov rdi, qword [rsp + 0x40]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + r14]
mov qword [r15 + 8], rax
mov rsi, qword [rsp + 0x50]
jmp 0x14000cf63
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r12, qword [r15 + 8]
sub r12, rcx
mov rdx, rdi
cmp r14, r12
jbe 0x14000cf53
mov r8, r12
call sub.VCRUNTIME140.dll_memmove
lea rdx, [r12 + rdi]
mov rbx, qword [r15 + 8]
sub r14, r12
lfence
mov r8, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + r14]
mov qword [r15 + 8], rax
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x40]
jmp 0x14000cf63
lea rbx, [rcx + r14]
mov r8, r14
call sub.VCRUNTIME140.dll_memmove
mov qword [r15 + 8], rbx
test rdi, rdi
je 0x14000ca16
sub rsi, rdi
mov rax, rdi
cmp rsi, 0x1000
jb 0x14000ca0a
add rsi, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ca0a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
nop
call fcn.14000b200
nop
call fcn.14000b200
int3