Function at 0x14000ab40
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.14000a920
mov rdi, qword [rbp - 0x11]
test al, al
je 0x14000b211
mov r12, qword [rbp - 9]
mov rsi, r12
sub rsi, rdi
cmp rsi, 0x100
jb 0x14000b211
cmp byte [rdi], 0x4d
jne 0x14000b08a
cmp byte ds:[rdi + 1], 0x41
jne 0x14000b08a
cmp byte [rdi + 2], 0x4d
jne 0x14000b08a
mov ebx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
mov eax, dword [rbx + rax]
cmp dword [0x140056a6c], eax
jle 0x14000ac32
lea rcx, [0x140056a6c]
call fcn.140038ec0
cmp dword [0x140056a6c], 0xffffffff
nop
jne 0x14000ac32
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 [0x140056a58], rax
lea rcx, [0x140056a6c]
call fcn.140038e54
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov eax, dword [rbx + rdx]
cmp dword [0x140056a68], eax
jle 0x14000ac8e
lea rcx, [0x140056a68]
call fcn.140038ec0
cmp dword [0x140056a68], 0xffffffff
jne 0x14000ac8e
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 [0x140056a48], rax
lea rcx, [0x140056a68]
call fcn.140038e54
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 0x14000ad04
test rdi, rdi
je 0x14000ace6
mov rdx, qword [rbp - 1]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000acd8
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ae4c
mov rcx, rdi
call fcn.140038e10
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 0x14000ad22
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 0x14000aca7
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 [0x140056a58]
call qword [0x14003ebc0]
test eax, eax
jne 0x14000aca7
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], r13
mov r15, r13
mov rbx, r13
test esi, esi
je 0x14000adb9
lfence
mov rcx, rsi
call fcn.140003b00
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 0x14000adbd
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 0x14000ae53
test rsi, rsi
je 0x14000ae13
sub rbx, rsi
mov rax, rsi
cmp rbx, 0x1000
jb 0x14000ae07
add rbx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ae07
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.140038e10
nop
test rdi, rdi
je 0x14000ace6
mov rdx, qword [rbp - 1]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000acd8
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000acd8
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 [0x140056a48]
call qword [0x14003ebc0]
mov rcx, qword [rbp - 0x19]
test eax, eax
je 0x14000af16
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
test rsi, rsi
je 0x14000aed6
sub r13, rsi
mov rax, rsi
cmp r13, 0x1000
jb 0x14000aeca
add r13, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b071
mov rdx, r13
mov rcx, rsi
call fcn.140038e10
nop
test rdi, rdi
je 0x14000ace6
mov rdx, qword [rbp - 1]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000acd8
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000acd8
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 0x14000b040
sub r15, rsi
mov rcx, qword [r14]
mov rdx, qword [r14 + 0x10]
sub rdx, rcx
cmp r15, rdx
jbe 0x14000afec
movabs rdi, 0x7fffffffffffffff
cmp r15, rdi
ja 0x14000b257
mov r8, rdx
shr r8, 1
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14000af70
lea rdi, [rdx + r8]
cmp rdi, r15
cmovb rdi, r15
test rcx, rcx
je 0x14000afa8
cmp rdx, 0x1000
jb 0x14000af96
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000afe5
mov rcx, r8
call fcn.140038e10
xor eax, eax
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
lfence
mov rcx, rdi
call fcn.140003b00
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 0x14000b040
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 0x14000b030
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 0x14000b040
lea rbx, [r15 + rcx]
mov r8, r15
call sub.VCRUNTIME140.dll_memmove
mov qword [r14 + 8], rbx
test rsi, rsi
je 0x14000b1c9
mov rdx, qword [rbp + 0x17]
sub rdx, rsi
mov rax, rsi
cmp rdx, 0x1000
jb 0x14000b078
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b078
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140038e10
jmp 0x14000b1c9
cmp byte [rdi + 4], 0x53
jne 0x14000b1c9
cmp byte [rdi + 5], 0x43
jne 0x14000b1c9
cmp byte [rdi + 6], 0x43
jne 0x14000b1c9
cmp byte [rdi + 7], 0x41
jne 0x14000b1c9
lea rax, [rbp - 0x11]
cmp r14, rax
je 0x14000b1c9
mov rcx, qword [r14]
mov rdx, qword [r14 + 0x10]
sub rdx, rcx
cmp rsi, rdx
jbe 0x14000b17b
movabs rdi, 0x7fffffffffffffff
cmp rsi, rdi
ja 0x14000b251
mov r8, rdx
shr r8, 1
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14000b105
lea rdi, [rdx + r8]
cmp rdi, rsi
cmovb rdi, rsi
test rcx, rcx
je 0x14000b13b
cmp rdx, 0x1000
jb 0x14000b12b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000b174
mov rcx, r8
call fcn.140038e10
mov qword [r14], r13
mov qword [r14 + 8], r13
mov qword [r14 + 0x10], r13
lfence
mov rcx, rdi
call fcn.140003b00
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 0x14000b1c9
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 0x14000b1b9
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 0x14000b1c9
lea rbx, [rsi + rcx]
mov r8, rsi
call sub.VCRUNTIME140.dll_memmove
mov qword [r14 + 8], rbx
test rdi, rdi
je 0x14000ace6
mov rdx, qword ds:[rbp - 1]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000acd8
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000acd8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rdi, rdi
je 0x14000ace6
mov rdx, qword [rbp - 1]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000acd8
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000acd8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140009640
nop
call fcn.140009640
int3