Function at 0x1800ba600
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x630
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x180272190]
xor rax, rsp
mov qword [rsp + 0x620], rax
mov r15, r9
mov esi, r8d
mov r14, rdx
mov edx, dword [rcx + 8]
test edx, edx
je 0x1800bae3b
sub edx, 2
je 0x1800baad9
cmp edx, 1
je 0x1800ba6e1
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str.C:_tempWKEncryption.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
lea r9d, [rbx + 2]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8d, [rbx + 0x34]
lea rdx, str.VerifySign:_Failed_to_verify_message._Invalid_method
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8d, [rbx + 2]
lea rdx, [0x1801cca18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rbx + 2]
jmp 0x1800baefb
lea rdx, [rcx + 0x98]
lea rcx, [rsp + 0x5b0]
call fcn.1800b6380
nop
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.1800ba410
nop
lea rdx, [rsp + 0x5b0]
lea rcx, [rsp + 0x78]
call fcn.1800f0c90
lea r12, vtable.CryptoPP::ByteQueue.0
mov qword [rsp + 0x560], r12
lea r13, vtable.CryptoPP::ByteQueue.1.0
mov qword [rsp + 0x568], r13
xor ebx, ebx
mov qword [rsp + 0x598], rbx
mov qword [rsp + 0x5a0], rbx
mov byte [rsp + 0x578], 1
mov qword [rsp + 0x580], 0x100
lea ecx, [rbx + 0x30]
call fcn.180152604
mov rdi, rax
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x580]
mov qword [rax + 0x10], rcx
test rcx, rcx
jne 0x1800ba781
mov eax, ebx
jmp 0x1800ba786
call fcn.180102150
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x28], rbx
mov qword [rdi + 0x20], rbx
mov qword [rdi], rbx
mov qword [rsp + 0x590], rdi
mov qword [rsp + 0x588], rdi
lea rdx, [rsp + 0x560]
lea rcx, [rsp + 0x78]
mov rax, qword [rsp + 0x78]
call qword [rax + Ordinal_26]
mov edx, 1
lea rcx, [rsp + 0xf8]
call fcn.1800ba410
lea rax, [0x1801df8b0]
mov qword [rsp + 0xe0], rax
lea rax, [0x1801df870]
mov qword [rsp + 0xe8], rax
lea rax, [0x1801df850]
mov qword [rsp + 0xf0], rax
lea rdx, [rsp + 0x560]
lea rcx, [rsp + 0x100]
mov rax, qword [rsp + 0x100]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rsp + 0xe0]
mov rax, qword [rsp + 0xe0]
call qword [rax + 0x48]
mov rdi, rax
mov qword [rsp + 0x40], rax
mov r9d, dword [rsp + 0x690]
mov r8, r15
mov rdx, rax
lea rcx, [rsp + 0xe0]
mov rax, qword [rsp + 0xe0]
call qword [rax + 0x50]
mov rax, qword [rdi]
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call qword [rax + Ordinal_26]
mov rdx, rdi
lea rcx, [rsp + 0xe0]
mov rax, qword [rsp + 0xe0]
call qword [rax + 0x60]
movzx esi, al
mov r8, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [r8]
nop
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str.C:_tempWKEncryption.log
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
mov rcx, rdi
test sil, sil
je 0x1800ba9da
mov r8d, reloc.WS2_32.dll_recv
lea rdx, str.Message_verified
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
mov r8d, 2
lea rdx, [0x1801cca18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x150]
mov rdi, rdx
xor eax, eax
mov rcx, qword [rsp + 0x148]
rep stosq qword [rdi], rax
mov rcx, rdx
call fcn.18015d8ec
mov rdx, qword [rsp + 0x128]
mov rdi, rdx
xor eax, eax
mov rcx, qword [rsp + 0x120]
rep stosq qword [rdi], rax
mov rcx, rdx
call fcn.18015d8ec
nop
mov qword [rsp + 0x560], r12
mov qword [rsp + 0x568], r13
lea rcx, [rsp + 0x560]
call fcn.1800d5210
nop
mov rdx, qword [rsp + 0xc8]
mov rdi, rdx
xor eax, eax
mov rcx, qword [rsp + 0xc0]
rep stosq qword [rdi], rax
mov rcx, rdx
call fcn.18015d8ec
mov r8, qword [rsp + 0xa0]
mov rdi, r8
xor eax, eax
mov rcx, qword [rsp + 0x98]
rep stosq qword [rdi], rax
mov rcx, r8
call fcn.18015d8ec
nop
mov rcx, qword [rsp + 0x5c8]
test rcx, rcx
je 0x1800ba9d3
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
xor eax, eax
jmp 0x1800baefb
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Verification_failed
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
mov r8d, 2
lea rdx, [0x1801cca18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x150]
mov rdi, rdx
xor eax, eax
mov rcx, qword [rsp + 0x148]
rep stosq qword [rdi], rax
mov rcx, rdx
call fcn.18015d8ec
mov rdx, qword [rsp + 0x128]
mov rdi, rdx
xor eax, eax
mov rcx, qword [rsp + 0x120]
rep stosq qword [rdi], rax
mov rcx, rdx
call fcn.18015d8ec
nop
mov qword [rsp + 0x560], r12
mov qword [rsp + 0x568], r13
lea rcx, [rsp + 0x560]
call fcn.1800d5210
nop
mov rdx, qword [rsp + 0xc8]
mov rdi, rdx
xor eax, eax
mov rcx, qword [rsp + 0xc0]
rep stosq qword [rdi], rax
mov rcx, rdx
call fcn.18015d8ec
mov rdx, qword [rsp + 0xa0]
mov rdi, rdx
xor eax, eax
mov rcx, qword [rsp + 0x98]
rep stosq qword [rdi], rax
mov rcx, rdx
call fcn.18015d8ec
nop
mov rcx, qword [rsp + 0x5c8]
test rcx, rcx
je 0x1800baacf
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
mov eax, 2
jmp 0x1800baefb
lea rdx, [rcx + 0x98]
lea rcx, [rsp + 0x5b0]
call fcn.1800b6380
nop
lea rcx, [rsp + 0xe0]
call fcn.1800b8f10
nop
lea rdx, [rsp + 0x5b0]
lea rcx, [rsp + 0xe8]
call fcn.1800f0c90
lea r12, vtable.CryptoPP::ByteQueue.0
mov qword [rsp + 0x560], r12
lea r13, vtable.CryptoPP::ByteQueue.1.0
mov qword [rsp + 0x568], r13
xor ebx, ebx
mov qword [rsp + 0x598], rbx
mov qword [rsp + 0x5a0], rbx
mov byte [rsp + 0x578], 1
mov qword [rsp + 0x580], 0x100
lea ecx, [rbx + 0x30]
call fcn.180152604
mov rdi, rax
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x580]
mov qword [rax + 0x10], rcx
test rcx, rcx
jne 0x1800bab7a
mov eax, ebx
jmp 0x1800bab7f
call fcn.180102150
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x28], rbx
mov qword [rdi + 0x20], rbx
mov qword [rdi], rbx
mov qword [rsp + 0x590], rdi
mov qword [rsp + 0x588], rdi
lea rdx, [rsp + 0x560]
lea rcx, [rsp + 0xe8]
mov rax, qword [rsp + 0xe8]
call qword [rax + Ordinal_26]
lea rcx, [rsp + 0x318]
call fcn.1800b8f10
lea rax, [0x1801dfa90]
mov qword [rsp + 0x300], rax
lea rax, [0x1801df810]
mov qword [rsp + 0x308], rax
lea rax, method.CryptoPP::HMAC_class_CryptoPP::SHA1_.1.virtual_104
mov qword [rsp + 0x310], rax
lea rdx, [rsp + 0x560]
lea rcx, [rsp + 0x320]
mov rax, qword [rsp + 0x320]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rsp + 0x300]
mov rax, qword [rsp + 0x300]
call qword [rax + 0x48]
mov rdi, rax
mov qword [rsp + 0x40], rax
mov r9d, dword [rsp + 0x690]
mov r8, r15
mov rdx, rax
lea rcx, [rsp + 0x300]
mov rax, qword [rsp + 0x300]
call qword [rax + 0x50]
mov rax, qword [rdi]
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call qword [rax + Ordinal_26]
mov rdx, rdi
lea rcx, [rsp + 0x300]
mov rax, qword [rsp + 0x300]
call qword [rax + 0x60]
movzx esi, al
mov r8, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [r8]
nop
mov qword [rsp + 0x30], rbx
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str.C:_tempWKEncryption.log
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
cmp esi, dword [rsp + 0x690]
jne 0x1800baf1e
mov edx, ebx
nop dword [rax]
cmp edx, esi
jae 0x1800bae69
mov ecx, edx
movzx eax, byte [rcx + r9]
cmp byte [rcx + r14], al
jne 0x1800bafd5
inc edx
jmp 0x1800bae50
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str.C:_tempWKEncryption.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, str.Message_verified
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
mov r8d, 2
lea rdx, [0x1801cca18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1800baefb
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str.C:_tempWKEncryption.log
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
lea r9d, [rbx + 2]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
lea r8d, [rbx + 0x12]
lea rdx, str.Msgs_size_mismatch
mov rcx, rdi