Function at 0x1400817c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x340]
sub rsp, 0x440
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x490], rbx
mov rax, qword [0x1402f7010]
xor rax, rsp
mov qword [rbp + 0x338], rax
mov rbx, rdx
mov r15, rcx
mov qword [rsp + 0x60], rcx
xor r14d, r14d
mov dword [rsp + 0x34], r14d
mov qword [rcx], r14
mov qword [rcx + 8], r14
call fcn.140087c10
mov qword [r15], rax
mov dword [rsp + 0x34], 1
mov rcx, rbx
call fcn.1400814c0
mov r12, rax
test rax, rax
je 0x140081db1
mov qword [rbp + 0x28c], r14
mov dword [rbp + 0x294], r14d
mov dword [rbp + 0x270], 0x64
mov ecx, dword [0x14068d204]
mov dword [rbp + 0x274], ecx
mov qword [rbp + 0x278], rax
lea rax, [rbp + 0x2c8]
mov qword [rbp + 0x280], rax
mov dword [rbp + 0x288], 0x40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x28c], eax
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x308]
lea r8d, [r14 + 0x29]
lea rdx, [rbp + 0x270]
mov rcx, qword [0x14068d210]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rbp + 0x28c], r14
mov dword [rbp + 0x294], r14d
mov dword [rbp + 0x270], 0x64
mov eax, dword [0x14068d204]
mov dword [rbp + 0x274], eax
movsxd rax, dword [rbp + 0x304]
add rax, r12
mov qword [rbp + 0x278], rax
lea rax, [rsp + 0x68]
mov qword [rbp + 0x280], rax
mov dword [rbp + 0x288], 0x108
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x28c], eax
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x308]
lea r8d, [r14 + 0x29]
lea rdx, [rbp + 0x270]
mov rcx, qword [0x14068d210]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rbp - 4], r14d
je 0x140081db1
mov ecx, dword [rbp - 8]
add rcx, r12
mov qword [rbp + 0x28c], r14
mov dword [rbp + 0x294], r14d
mov dword [rbp + 0x270], 0x64
mov eax, dword [0x14068d204]
mov dword [rbp + 0x274], eax
mov qword [rbp + 0x278], rcx
lea rax, [rbp + 0x310]
mov qword [rbp + 0x280], rax
mov dword [rbp + 0x288], reloc.WS2_32.dll_sendto
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x28c], eax
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x308]
lea r8d, [r14 + 0x29]
lea rdx, [rbp + 0x270]
mov rcx, qword [0x14068d210]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, r14d
mov dword [rbp + 0x308], r14d
movups xmm0, xmmword [rbp + 0x310]
movups xmmword [rsp + 0x40], xmm0
psrldq xmm0, 8
movq rax, xmm0
shr rax, 0x20
mov edi, dword [rbp + 0x320]
test eax, eax
mov dword [rsp + 0x30], edi
je 0x140081db1
mov r13d, dword [rsp + 0x40]
lea rcx, [r12 + r13]
call fcn.140087fc0
mov rbx, rax
test rax, rax
je 0x140081d16
xor esi, esi
nop
mov qword [rbp + 0x320], rsi
mov qword [rbp + 0x328], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x310], 0
mov rax, qword [0x14068d230]
test rax, rax
cmove rax, rbx
mov qword [0x14068d230], rax
add rax, 0x10000
cmp rbx, rax
ja 0x140081caa
mov qword [rbp + 0x2bc], rsi
mov dword [rbp + 0x2c4], esi
mov dword [rbp + 0x2a0], 0x64
mov eax, dword [0x14068d204]
mov dword [rbp + 0x2a4], eax
lea rax, [r12 + 2]
add rax, rbx
mov qword [rbp + 0x2a8], rax
lea rax, [rbp + 0x170]
mov qword [rbp + 0x2b0], rax
mov dword [rbp + 0x2b8], 0xff
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x2bc], eax
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x330]
mov r8d, reloc.WLDAP32.dll_Ordinal_41
lea rdx, [rbp + 0x2a0]
mov rcx, qword [0x14068d210]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x170]
movups xmm0, xmmword [rcx]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rdx + 0x60], xmm0
lea rdx, [rdx + 0x80]
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rdx - 0x10], xmm1
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rcx]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rdx + 0x60], xmm0
mov rax, qword [rcx + 0x70]
mov qword [rdx + 0x70], rax
mov eax, dword [rcx + 0x78]
mov dword [rdx + 0x78], eax
movzx eax, word [rcx + 0x7c]
mov word [rdx + 0x7c], ax
movzx eax, byte [rcx + 0x7e]
mov byte [rdx + 0x7e], al
mov qword [rbp + 0x280], rsi
mov qword [rbp + 0x288], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x270], 0
lea rax, [rbp + 0x70]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140081b90
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x270]
call fcn.14007c4c0
lea rcx, [rbp + 0x310]
call fcn.14007b530
movups xmm0, xmmword [rbp + 0x270]
movups xmmword [rbp + 0x310], xmm0
movups xmm1, xmmword [rbp + 0x280]
movups xmmword [rbp + 0x320], xmm1
mov qword [rbp + 0x298], rsi
lea r8, [rbp + 0x310]
lea rdx, [rbp + 0x298]
mov rcx, r15
call fcn.140088ec0
mov rbx, qword [rbp + 0x298]
cmp rbx, qword [r15]
je 0x140081c5d
lea rdx, [rbx + 0x20]
mov rdi, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140081c0d
mov rdx, qword [rdx]
lea rcx, [rbp + 0x310]
cmp qword [rbp + 0x328], 0x10
cmovae rcx, qword [rbp + 0x310]
mov rsi, qword [rbp + 0x320]
mov r8, rsi
cmp rdi, rsi
cmovb r8, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140081c52
cmp rsi, rdi
jae 0x140081c4a
mov eax, 0xffffffff
jmp 0x140081c52
xor eax, eax
cmp rsi, rdi
seta al
shr eax, 0x1f
mov edi, dword [rsp + 0x30]
test al, al
je 0x140081c98
lea rax, [rbp + 0x310]
mov qword [rbp + 0x298], rax
lea r8, [rbp + 0x298]
mov rcx, r15
call fcn.1400895c0
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rsp + 0x38]
mov rcx, r15
call fcn.140089160
mov rbx, qword [rsp + 0x38]
movsxd rdx, r14d
mov ecx, edi
add rcx, r12
lea rax, [rcx + rdx*8]
mov qword [rbx + 0x40], rax
xor esi, esi
inc r14d
movsxd rax, r14d
lea rcx, [rax*8]
add rcx, r13
add rcx, r12
call fcn.140087fc0
mov rbx, rax
mov rdx, qword [rbp + 0x328]
cmp rdx, 0x10
jb 0x140081d07
inc rdx
mov rcx, qword [rbp + 0x310]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140081d02
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140081daa
call fcn.140089e7c
test rbx, rbx
jne 0x140081a00
mov esi, dword [rbp + 0x308]
inc esi
mov dword [rbp + 0x308], esi
xor r14d, r14d
mov qword [rbp + 0x2e4], r14
mov dword [rbp + 0x2ec], r14d
mov dword [rbp + 0x2c8], 0x64
mov eax, dword [0x14068d204]
mov dword [rbp + 0x2cc], eax
movsxd rax, esi
lea rcx, [rax + rax*4]
mov eax, dword [rbp - 8]
lea rax, [rax + rcx*4]
add rax, r12
mov qword [rbp + 0x2d0], rax
lea rax, [rbp + 0x310]
mov qword [rbp + 0x2d8], rax
mov dword [rbp + 0x2e0], reloc.WS2_32.dll_sendto
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x2e4], eax
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x334]
lea r8d, [r14 + 0x29]
lea rdx, [rbp + 0x2c8]
mov rcx, qword [0x14068d210]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400819b6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, r15
mov rcx, qword [rbp + 0x338]
xor rcx, rsp
call fcn.140089e50
mov rbx, qword [rsp + 0x490]
add rsp, 0x440
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret