Function at 0x140022820
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
mov byte [rsp + 0x20], r9b
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rdi, rdx
mov r14, rcx
xor r15d, r15d
mov dword [rbp + 0xd8], r15d
lea rax, [0x1401e7860]
lea rdx, [0x1401e77d0]
cmp qword [rcx], r15
cmova rdx, rax
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140022873
mov rcx, qword [rdi]
call fcn.140144eb4
mov rbx, rax
test rax, rax
jne 0x140022b5a
lea rcx, [0x140000000]
lea rax, [rcx + 0x1e6bd0]
mov qword [rsp + 0x60], rax
lea rax, [rcx + 0x1e6aa8]
mov qword [rsp + 0x70], rax
mov qword [rbp], r15
mov qword [rbp + 0x28], r15
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x30], xmm0
mov esi, 1
mov dword [rbp + 0xd8], esi
lea r12, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp - 8], r12
mov dword [rbp - 0xc], 0x80
mov qword [rsp + 0x68], r15
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 8]
call fcn.140009c10
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], r14
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x6c], edx
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rsi
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x5c], edx
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x60], rbx
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x78]
call fcn.140009780
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x20], r15
mov dword [rbp - 0x18], r15d
lea rdx, str.write
lea rcx, [rsp + 0x70]
call fcn.140003440
mov rcx, rax
lea rdx, [0x1401e68f8]
call fcn.140003440
mov edx, 0x16
mov rcx, rax
call fcn.140006c40
mov rcx, rax
lea rdx, [0x14017bbd0]
call fcn.140003440
mov rcx, rax
lea rdx, str.Failed_to_open_file_for_writing:
call fcn.140003440
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x1400229d0
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rax
call fcn.140003b70
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x1401fb460]
movdqu xmmword [rsp + 0x50], xmm1
mov byte [rsp + 0x40], 0
mov dword [rbp + 0xd8], 0x21
movups xmmword [rbp + 0x60], xmm0
mov ecx, dword [rbp - 0x18]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140022a31
mov rax, qword [rbp - 0x48]
mov r8, qword [rax]
test r8, r8
je 0x140022a31
mov rax, qword [rbp - 0x68]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x20]
cmovb r8, qword [rbp - 0x20]
sub r8, rdx
jmp 0x140022a60
test cl, 4
jne 0x140022a58
mov rax, qword [rbp - 0x50]
mov rcx, qword [rax]
test rcx, rcx
je 0x140022a58
mov rax, qword [rbp - 0x70]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x38]
movsxd r8, dword [rax]
add r8, rcx
sub r8, rdx
jmp 0x140022a60
mov r8, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x140022a70
lea rcx, [rsp + 0x40]
call fcn.140009a50
nop
lea rcx, [rsp + 0x40]
call fcn.14003a9c0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140022ab9
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022ab3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022cba
call fcn.140138d84
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x60], rbx
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x78]
call fcn.1400067c0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x60], rsi
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x20]
mov dword [rsp + rcx + 0x5c], edx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], r14
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x6c], edx
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x60], r12
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x5c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1401379a8
nop
xor al, al
jmp 0x140022c9f
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rbx
call fcn.140145384
mov rcx, rbx
call fcn.140144c80
test eax, eax
setg r12b
mov esi, 1
mov r15, qword [rbp + 0xf8]
mov rdi, qword [rbp + 0xf0]
test eax, eax
jle 0x140022bb2
mov r9, rbx
mov r8, r15
mov edx, esi
mov rcx, rdi
call fcn.140145fc4
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.140145384
mov rcx, rbx
call fcn.140144c80
add qword [r14], r15
mov rax, qword [r14]
mov dword [rsp + 0x20], 0x46464952
mov dword [rsp + 0x28], 0x45564157
add eax, 0x24
mov dword [rsp + 0x24], eax
mov r9, rbx
mov r8d, 0xc
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140145fc4
mov rcx, rbx
call fcn.140144c80
mov dword [rbp + 0xc0], 0x20746d66
mov dword [rbp + 0xc4], 0x10
mov r9, rbx
mov r8d, 8
mov rdx, rsi
lea rcx, [rbp + 0xc0]
call fcn.140145fc4
mov dword [rsp + 0x3c], 0x180006
mov ecx, dword [rbp + 0xe8]
lea eax, [rcx + rcx*2]
add eax, eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], 0x20001
mov dword [rsp + 0x34], ecx
mov r9, rbx
mov r8d, 0x10
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140145fc4
mov dword [rbp + 0xc0], 0x61746164
mov eax, dword [r14]
mov dword [rbp + 0xc4], eax
mov r9, rbx
mov r8d, 8
mov rdx, rsi
lea rcx, [rbp + 0xc0]
call fcn.140145fc4
test r12b, r12b
jne 0x140022c93
mov r9, rbx
mov r8, qword [r14]
mov rdx, rsi
mov rcx, rdi
call fcn.140145fc4
mov rcx, rbx
call fcn.140144fe4
movzx eax, sil
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14013fad4
nop