Function at 0x14007ea90
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x4d0], rbx
mov rax, qword [0x1402ee010]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x60], rcx
xor r15d, r15d
mov dword [rsp + 0x34], r15d
mov qword [rcx], r15
mov qword [rcx + 8], r15
call fcn.140082b20
mov qword [r14], rax
mov dword [rsp + 0x34], 1
mov rcx, rbx
call fcn.14007e790
mov r12, rax
test rax, rax
je 0x14007f130
mov qword [rbp + 0x28c], r15
mov dword [rbp + 0x294], r15d
mov dword [rbp + 0x270], 0x64
mov ecx, dword [0x140675f6c]
mov dword [rbp + 0x274], ecx
mov qword [rbp + 0x278], rax
lea rax, [rbp + 0x2f0]
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], r15
lea r9, [rbp + 0x330]
lea r8d, [r15 + 0x29]
lea rdx, [rbp + 0x270]
mov rcx, qword [0x140675f78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rbp + 0x28c], r15
mov dword [rbp + 0x294], r15d
mov dword [rbp + 0x270], 0x64
mov eax, dword [0x140675f6c]
mov dword [rbp + 0x274], eax
movsxd rax, dword [rbp + 0x32c]
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], r15
lea r9, [rbp + 0x330]
lea r8d, [r15 + 0x29]
lea rdx, [rbp + 0x270]
mov rcx, qword [0x140675f78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rbp - 4], r15d
je 0x14007f130
mov ecx, dword [rbp - 8]
add rcx, r12
mov qword [rbp + 0x28c], r15
mov dword [rbp + 0x294], r15d
mov dword [rbp + 0x270], 0x64
mov eax, dword [0x140675f6c]
mov dword [rbp + 0x274], eax
mov qword [rbp + 0x278], rcx
lea rax, [rbp + 0x338]
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], r15
lea r9, [rbp + 0x330]
lea r8d, [r15 + 0x29]
lea rdx, [rbp + 0x270]
mov rcx, qword [0x140675f78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, r15d
mov dword [rbp + 0x330], r15d
movups xmm0, xmmword [rbp + 0x338]
movups xmmword [rsp + 0x40], xmm0
psrldq xmm0, 8
movq rax, xmm0
shr rax, 0x20
mov edi, dword [rbp + 0x348]
test eax, eax
mov dword [rsp + 0x30], edi
je 0x14007f130
mov r13d, dword [rsp + 0x40]
lea rcx, [r12 + r13]
call fcn.140082d10
mov rbx, rax
test rax, rax
je 0x14007f08e
xor esi, esi
nop
mov qword [rbp + 0x348], rsi
mov qword [rbp + 0x350], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x338], 0
mov rax, qword [0x140675f90]
test rax, rax
cmove rax, rbx
mov qword [0x140675f90], rax
add rax, 0x10000
cmp rbx, rax
ja 0x14007efaf
mov qword [rbp + 0x2bc], rsi
mov dword [rbp + 0x2c4], esi
mov dword [rbp + 0x2a0], 0x64
mov eax, dword [0x140675f6c]
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 + 0x358]
mov r8d, reloc.WLDAP32.dll_Ordinal_41
lea rdx, [rbp + 0x2a0]
mov rcx, qword [0x140675f78]
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 0x14007ee60
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x270]
call fcn.14007b650
mov rdx, qword [rbp + 0x350]
cmp rdx, 0x10
jb 0x14007eebb
inc rdx
mov rcx, qword [rbp + 0x338]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007eeb6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007f122
call fcn.14008412c
movups xmm0, xmmword [rbp + 0x270]
movups xmmword [rbp + 0x338], xmm0
movups xmm1, xmmword [rbp + 0x280]
movups xmmword [rbp + 0x348], xmm1
mov qword [rbp + 0x298], rsi
lea r8, [rbp + 0x338]
lea rdx, [rbp + 0x298]
mov rcx, r14
call fcn.140083340
mov rbx, qword [rbp + 0x298]
cmp rbx, qword [r14]
je 0x14007ef62
lea rdx, [rbx + 0x20]
mov rdi, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x14007ef12
mov rdx, qword [rdx]
lea rcx, [rbp + 0x338]
cmp qword [rbp + 0x350], 0x10
cmovae rcx, qword [rbp + 0x338]
mov rsi, qword [rbp + 0x348]
mov r8, rsi
cmp rdi, rsi
cmovb r8, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14007ef57
cmp rsi, rdi
jae 0x14007ef4f
mov eax, 0xffffffff
jmp 0x14007ef57
xor eax, eax
cmp rsi, rdi
seta al
shr eax, 0x1f
mov edi, dword [rsp + 0x30]
test al, al
je 0x14007ef9d
lea rax, [rbp + 0x338]
mov qword [rbp + 0x298], rax
lea r8, [rbp + 0x298]
mov rcx, r14
call fcn.1400838b0
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.140083450
mov rbx, qword [rsp + 0x38]
movsxd rdx, r15d
mov ecx, edi
add rcx, r12
lea rax, [rcx + rdx*8]
mov qword [rbx + 0x40], rax
xor esi, esi
inc r15d
mov qword [rbp + 0x2e4], rsi
mov dword [rbp + 0x2ec], esi
mov dword [rbp + 0x2c8], 0x64
mov eax, dword [0x140675f6c]
mov dword [rbp + 0x2cc], eax
movsxd rax, r15d
lea rcx, [rax*8]
add rcx, r13
add rcx, r12
mov qword [rbp + 0x2d0], rcx
lea rax, [rbp + 0x368]
mov qword [rbp + 0x2d8], rax
mov dword [rbp + 0x2e0], 8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x2e4], eax
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x35c]
mov r8d, reloc.WLDAP32.dll_Ordinal_41
lea rdx, [rbp + 0x2c8]
mov rcx, qword [0x140675f78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rbp + 0x368]
mov rdx, qword [rbp + 0x350]
cmp rdx, 0x10
jb 0x14007f07f
inc rdx
mov rcx, qword [rbp + 0x338]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007f07a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007f129
call fcn.14008412c
test rbx, rbx
jne 0x14007ecd0
mov esi, dword [rbp + 0x330]
inc esi
mov dword [rbp + 0x330], esi
xor r15d, r15d
mov qword [rbp + 0x30c], r15
mov dword [rbp + 0x314], r15d
mov dword [rbp + 0x2f0], 0x64
mov eax, dword [0x140675f6c]
mov dword [rbp + 0x2f4], 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 + 0x2f8], rax
lea rax, [rbp + 0x338]
mov qword [rbp + 0x300], rax
mov dword [rbp + 0x308], reloc.WS2_32.dll_sendto
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp + 0x30c], eax
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x360]
lea r8d, [r15 + 0x29]
lea rdx, [rbp + 0x2f0]
mov rcx, qword [0x140675f78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14007ec86
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_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, r14
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140084100
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x480
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret