Function at 0x14000c740
Capabilities:
Compress data via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rax, rdx
mov r14, rcx
xor r13d, r13d
mov qword [rcx], r13
mov qword [rcx + 8], r13
mov qword [rcx + 0x10], r13
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r13
lea rdx, [rbp - 0x11]
mov rcx, rax
call fcn.14000c520
mov rdi, qword [rbp - 0x11]
test al, al
je 0x14000ce11
mov r12, qword [rbp - 9]
mov rsi, r12
sub rsi, rdi
cmp rsi, 0x100
jb 0x14000ce11
cmp byte [rdi], 0x4d
jne 0x14000cc8a
cmp byte ds:[rdi + 1], 0x41
jne 0x14000cc8a
cmp byte [rdi + 2], 0x4d
jne 0x14000cc8a
mov ebx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rbx + rax]
cmp dword [0x14006f974], eax
jle 0x14000c832
lea rcx, [0x14006f974]
call fcn.140049524
cmp dword [0x14006f974], 0xffffffff
nop
jne 0x14000c832
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 [0x14006f960], rax
lea rcx, [0x14006f974]
call fcn.1400494b8
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov eax, dword [rbx + rdx]
cmp dword [0x14006f970], eax
jle 0x14000c88e
lea rcx, [0x14006f970]
call fcn.140049524
cmp dword [0x14006f970], 0xffffffff
jne 0x14000c88e
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 [0x14006f950], rax
lea rcx, [0x14006f970]
call fcn.1400494b8
mov ebx, dword ds:[rdi]
mov esi, dword [rdi + 4]
mov dword [rbp + 0x7f], esi
mov eax, ebx
and eax, 0xffffff
cmp eax, 0x4d414d
je 0x14000c904
test rdi, rdi
je 0x14000c8e6
mov rdx, qword [rbp - 1]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000c8d8
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ca4c
mov rcx, rdi
call fcn.1400493f0
nop
mov rax, r14
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rdi + 8]
cmp rdi, rdx
je 0x14000c922
sub r12, rdx
mov r8, r12
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
add r12, rdi
mov qword [rbp - 9], r12
cmp ebx, 0x10000000
jae 0x14000c8a7
shr ebx, 0x18
and ebx, 0xf
mov dword [rbp - 0x25], ebx
mov dword [rbp + 0x77], r13d
mov dword [rbp - 0x29], r13d
lea r8, [rbp - 0x29]
lea rdx, [rbp + 0x77]
movzx ecx, bx
mov rax, qword [0x14006f960]
call qword [0x140050d48]
test eax, eax
jne 0x14000c8a7
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], r13
mov r15, r13
mov rbx, r13
test esi, esi
je 0x14000c9b9
lfence
mov rcx, rsi
call fcn.140006ec0
mov rsi, rax
mov qword [rbp + 7], rax
mov eax, dword [rbp + 0x7f]
mov r8d, eax
lea r15, [rsi + rax]
mov qword [rbp + 0x17], r15
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0xf], r15
mov rbx, r15
mov r13, r15
mov r12, qword [rbp - 9]
mov rdi, qword [rbp - 0x11]
jmp 0x14000c9bd
mov rsi, qword [rbp + 7]
mov ecx, dword [rbp + 0x77]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x19], rax
test rax, rax
jne 0x14000ca53
test rsi, rsi
je 0x14000ca13
sub rbx, rsi
mov rax, rsi
cmp rbx, 0x1000
jb 0x14000ca07
add rbx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ca07
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rbx
mov rcx, rsi
call fcn.1400493f0
nop
test rdi, rdi
je 0x14000c8e6
mov rdx, qword [rbp - 1]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000c8d8
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000c8d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
sub r12, rdi
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x21]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
mov r9, rdi
mov r8d, dword [rbp + 0x7f]
mov rdx, rsi
movzx ecx, word [rbp - 0x25]
mov rax, qword [0x14006f950]
call qword [0x140050d48]
mov rcx, qword [rbp - 0x19]
test eax, eax
je 0x14000cb16
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
test rsi, rsi
je 0x14000cad6
sub r13, rsi
mov rax, rsi
cmp r13, 0x1000
jb 0x14000caca
add r13, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000cc71
mov rdx, r13
mov rcx, rsi
call fcn.1400493f0
nop
test rdi, rdi
je 0x14000c8e6
mov rdx, qword [rbp - 1]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000c8d8
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000c8d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rax, [rbp + 7]
cmp r14, rax
je 0x14000cc40
sub r15, rsi
mov rcx, qword [r14]
mov rdx, qword [r14 + 0x10]
sub rdx, rcx
cmp r15, rdx
jbe 0x14000cbec
movabs rdi, 0x7fffffffffffffff
cmp r15, rdi
ja 0x14000ce57
mov r8, rdx
shr r8, 1
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14000cb70
lea rdi, [rdx + r8]
cmp rdi, r15
cmovb rdi, r15
test rcx, rcx
je 0x14000cba8
cmp rdx, 0x1000
jb 0x14000cb96
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000cbe5
mov rcx, r8
call fcn.1400493f0
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
lfence
mov rcx, rdi
call fcn.140006ec0
mov rbx, rax
mov qword [r14], rax
mov qword [r14 + 8], rax
lea rcx, [rax + rdi]
mov qword [r14 + 0x10], rcx
mov r8, r15
mov rsi, qword [rbp + 7]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + r15]
mov qword [r14 + 8], rax
mov rdi, qword [rbp - 0x11]
jmp 0x14000cc40
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r12, qword [r14 + 8]
sub r12, rcx
mov rdx, rsi
cmp r15, r12
jbe 0x14000cc30
mov r8, r12
call sub.VCRUNTIME140.dll_memmove
lea rdx, [r12 + rsi]
mov rbx, qword [r14 + 8]
sub r15, r12
lfence
mov r8, r15
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [r15 + rbx]
mov qword [r14 + 8], rax
mov rdi, qword [rbp - 0x11]
mov rsi, qword [rbp + 7]
jmp 0x14000cc40
lea rbx, [r15 + rcx]
mov r8, r15
call sub.VCRUNTIME140.dll_memmove
mov qword [r14 + 8], rbx
test rsi, rsi
je 0x14000cdc9
mov rdx, qword [rbp + 0x17]
sub rdx, rsi
mov rax, rsi
cmp rdx, 0x1000
jb 0x14000cc78
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000cc78
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1400493f0
jmp 0x14000cdc9
cmp byte [rdi + 4], 0x53
jne 0x14000cdc9
cmp byte [rdi + 5], 0x43
jne 0x14000cdc9
cmp byte [rdi + 6], 0x43
jne 0x14000cdc9
cmp byte [rdi + 7], 0x41
jne 0x14000cdc9
lea rax, [rbp - 0x11]
cmp r14, rax
je 0x14000cdc9
mov rcx, qword [r14]
mov rdx, qword [r14 + 0x10]
sub rdx, rcx
cmp rsi, rdx
jbe 0x14000cd7b
movabs rdi, 0x7fffffffffffffff
cmp rsi, rdi
ja 0x14000ce51
mov r8, rdx
shr r8, 1
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14000cd05
lea rdi, [rdx + r8]
cmp rdi, rsi
cmovb rdi, rsi
test rcx, rcx
je 0x14000cd3b
cmp rdx, 0x1000
jb 0x14000cd2b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000cd74
mov rcx, r8
call fcn.1400493f0
mov qword [r14], r13
mov qword [r14 + 8], r13
mov qword [r14 + 0x10], r13
lfence
mov rcx, rdi
call fcn.140006ec0
mov rbx, rax
mov qword [r14], rax
mov qword [r14 + 8], rax
lea rcx, [rax + rdi]
mov qword [r14 + 0x10], rcx
mov r8, rsi
mov rdi, qword [rbp - 0x11]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + rsi]
mov qword [r14 + 8], rax
jmp 0x14000cdc9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r15, qword [r14 + 8]
sub r15, rcx
mov rdx, rdi
cmp rsi, r15
jbe 0x14000cdb9
mov r8, r15
call sub.VCRUNTIME140.dll_memmove
lea rdx, [r15 + rdi]
mov rbx, qword [r14 + 8]
sub rsi, r15
lfence
mov r8, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + rsi]
mov qword [r14 + 8], rax
mov rdi, qword [rbp - 0x11]
jmp 0x14000cdc9
lea rbx, [rsi + rcx]
mov r8, rsi
call sub.VCRUNTIME140.dll_memmove
mov qword [r14 + 8], rbx
test rdi, rdi
je 0x14000c8e6
mov rdx, qword ds:[rbp - 1]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000c8d8
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000c8d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rdi, rdi
je 0x14000c8e6
mov rdx, qword [rbp - 1]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000c8d8
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000c8d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14000b120
nop
call fcn.14000b120
int3