Function at 0x14000cbe0
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.14000c9c0
mov rdi, qword [rbp - 0x11]
test al, al
je 0x14000d2b1
mov r12, qword [rbp - 9]
mov rsi, r12
sub rsi, rdi
cmp rsi, 0x100
jb 0x14000d2b1
cmp byte [rdi], 0x4d
jne 0x14000d12a
cmp byte ds:[rdi + 1], 0x41
jne 0x14000d12a
cmp byte [rdi + 2], 0x4d
jne 0x14000d12a
mov ebx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rbx + rax]
cmp dword [0x14006f97c], eax
jle 0x14000ccd2
lea rcx, [0x14006f97c]
call fcn.140049b04
cmp dword [0x14006f97c], 0xffffffff
nop
jne 0x14000ccd2
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 [0x14006f968], rax
lea rcx, [0x14006f97c]
call fcn.140049a98
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov eax, dword [rbx + rdx]
cmp dword [0x14006f978], eax
jle 0x14000cd2e
lea rcx, [0x14006f978]
call fcn.140049b04
cmp dword [0x14006f978], 0xffffffff
jne 0x14000cd2e
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 [0x14006f958], rax
lea rcx, [0x14006f978]
call fcn.140049a98
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 0x14000cda4
test rdi, rdi
je 0x14000cd86
mov rdx, qword [rbp - 1]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000cd78
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ceec
mov rcx, rdi
call fcn.1400499d0
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 0x14000cdc2
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 0x14000cd47
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 [0x14006f968]
call qword [0x140050d48]
test eax, eax
jne 0x14000cd47
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], r13
mov r15, r13
mov rbx, r13
test esi, esi
je 0x14000ce59
lfence
mov rcx, rsi
call fcn.140006f80
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 0x14000ce5d
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 0x14000cef3
test rsi, rsi
je 0x14000ceb3
sub rbx, rsi
mov rax, rsi
cmp rbx, 0x1000
jb 0x14000cea7
add rbx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000cea7
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.1400499d0
nop
test rdi, rdi
je 0x14000cd86
mov rdx, qword [rbp - 1]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000cd78
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000cd78
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 [0x14006f958]
call qword [0x140050d48]
mov rcx, qword [rbp - 0x19]
test eax, eax
je 0x14000cfb6
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
test rsi, rsi
je 0x14000cf76
sub r13, rsi
mov rax, rsi
cmp r13, 0x1000
jb 0x14000cf6a
add r13, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d111
mov rdx, r13
mov rcx, rsi
call fcn.1400499d0
nop
test rdi, rdi
je 0x14000cd86
mov rdx, qword [rbp - 1]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000cd78
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000cd78
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 0x14000d0e0
sub r15, rsi
mov rcx, qword [r14]
mov rdx, qword [r14 + 0x10]
sub rdx, rcx
cmp r15, rdx
jbe 0x14000d08c
movabs rdi, 0x7fffffffffffffff
cmp r15, rdi
ja 0x14000d2f7
mov r8, rdx
shr r8, 1
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14000d010
lea rdi, [rdx + r8]
cmp rdi, r15
cmovb rdi, r15
test rcx, rcx
je 0x14000d048
cmp rdx, 0x1000
jb 0x14000d036
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000d085
mov rcx, r8
call fcn.1400499d0
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
lfence
mov rcx, rdi
call fcn.140006f80
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 0x14000d0e0
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 0x14000d0d0
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 0x14000d0e0
lea rbx, [r15 + rcx]
mov r8, r15
call sub.VCRUNTIME140.dll_memmove
mov qword [r14 + 8], rbx
test rsi, rsi
je 0x14000d269
mov rdx, qword [rbp + 0x17]
sub rdx, rsi
mov rax, rsi
cmp rdx, 0x1000
jb 0x14000d118
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d118
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1400499d0
jmp 0x14000d269
cmp byte [rdi + 4], 0x53
jne 0x14000d269
cmp byte [rdi + 5], 0x43
jne 0x14000d269
cmp byte [rdi + 6], 0x43
jne 0x14000d269
cmp byte [rdi + 7], 0x41
jne 0x14000d269
lea rax, [rbp - 0x11]
cmp r14, rax
je 0x14000d269
mov rcx, qword [r14]
mov rdx, qword [r14 + 0x10]
sub rdx, rcx
cmp rsi, rdx
jbe 0x14000d21b
movabs rdi, 0x7fffffffffffffff
cmp rsi, rdi
ja 0x14000d2f1
mov r8, rdx
shr r8, 1
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14000d1a5
lea rdi, [rdx + r8]
cmp rdi, rsi
cmovb rdi, rsi
test rcx, rcx
je 0x14000d1db
cmp rdx, 0x1000
jb 0x14000d1cb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000d214
mov rcx, r8
call fcn.1400499d0
mov qword [r14], r13
mov qword [r14 + 8], r13
mov qword [r14 + 0x10], r13
lfence
mov rcx, rdi
call fcn.140006f80
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 0x14000d269
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 0x14000d259
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 0x14000d269
lea rbx, [rsi + rcx]
mov r8, rsi
call sub.VCRUNTIME140.dll_memmove
mov qword [r14 + 8], rbx
test rdi, rdi
je 0x14000cd86
mov rdx, qword ds:[rbp - 1]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000cd78
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000cd78
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rdi, rdi
je 0x14000cd86
mov rdx, qword [rbp - 1]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000cd78
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000cd78
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14000b5c0
nop
call fcn.14000b5c0
int3