Function at 0x180183b00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x1e0], rbx
mov rax, qword [0x1803bc678]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r14, rdx
mov rsi, rcx
mov qword [rbp - 0x10], rcx
mov qword [rbp - 8], rdx
cmp qword [rcx + 0x18], 8
jb 0x180183b54
mov rcx, qword [rcx]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
lea edx, [rdi + 4]
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x180183bbc
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x180183b91
mov rdx, qword [rsi]
xor r9d, r9d
lea r8, str._UNICODE__INVALID_HANDLE_VALUE
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rcx, rsi
call fcn.18000aef0
nop
mov rcx, r14
call fcn.18000eea0
xor al, al
jmp 0x180184164
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r12d, eax
mov dword [rsp + 0x20], edi
mov r9d, dword [r14 + 0x10]
xor r8d, r8d
mov edx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LockFile]
mov dword [rbp - 0x18], edi
mov rbx, qword [r14 + 0x10]
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x180183bfd
mov rdx, qword [r14]
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x18]
mov r8d, ebx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r13d, eax
cmp dword [rbp - 0x18], ebx
je 0x18018412a
lea r9, [rbp + 0x4a]
sub r9, 2
mov eax, 0xcccccccd
mul ebx
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub bx, cx
add bx, 0x30
mov word [r9], bx
mov ebx, edx
test edx, edx
jne 0x180183c22
movdqa xmm0, xmmword [0x180342910]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], di
lea rax, [rbp + 0x4a]
cmp r9, rax
je 0x180183ca2
lea rdx, [rbp + 0x4a]
sub rdx, r9
sar rdx, 1
lea rcx, [rbp - 0x80]
cmp rdx, 7
ja 0x180183c96
mov qword [rbp - 0x70], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rbp + rbx - 0x80], di
jmp 0x180183ca2
xor eax, eax
movzx r8d, al
call fcn.180182fd0
nop
lea r9, [rbp + 0x7a]
mov r8d, dword [rbp - 0x18]
nop word [rax + rax]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x180183cb0
movdqa xmm0, xmmword [0x180342910]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], di
lea rax, [rbp + 0x7a]
cmp r9, rax
je 0x180183d34
lea rdx, [rbp + 0x7a]
sub rdx, r9
sar rdx, 1
lea rcx, [rbp - 0x40]
cmp rdx, 7
ja 0x180183d28
mov qword [rbp - 0x30], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rbp + rbx - 0x40], di
jmp 0x180183d34
xor eax, eax
movzx r8d, al
call fcn.180182fd0
nop
mov r9d, Ordinal_30
lea r8, str._UNICODE__Bytes_written__
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.180110de0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rax, rdx
sub rax, rcx
cmp rax, 0x10
jb 0x180183dc8
lea rdi, [rcx + 0x10]
mov qword [rsp + 0x70], rdi
lea rbx, [rsp + 0x60]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x60]
lea rcx, [rbx + rcx*2]
mov r8d, reloc.WLDAP32.dll_Ordinal_32
lea rdx, str.____data_size__
call sub.VCRUNTIME140.dll_memmove
xor eax, eax
mov word [rbx + rdi*2], ax
lea rax, [rsp + 0x60]
xor edi, edi
jmp 0x180183deb
xor eax, eax
mov qword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r9, str.____data_size__
movzx r8d, al
lea edx, [rax + 0x10]
lea rcx, [rsp + 0x60]
call fcn.1801832a0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov rdx, qword [rbp - 0x48]
mov rax, rdx
mov r9, qword [rbp - 0x50]
sub rax, r9
mov rcx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x70]
cmp r8, rax
jbe 0x180183e51
mov rax, rcx
sub rax, r8
cmp rax, r9
jb 0x180183e51
lea r8, [rbp - 0x60]
cmp rdx, 8
cmovae r8, qword [rbp - 0x60]
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.180110de0
jmp 0x180183e67
lea rdx, [rbp - 0x80]
cmp rcx, 8
cmovae rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.1800e7ff0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x180183ee3
lea rdi, [rcx + 1]
mov qword [rsp + 0x50], rdi
lea rbx, [rsp + 0x40]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x40]
lea rcx, [rbx + rcx*2]
mov r8d, 2
lea rdx, [0x18022a6e4]
call sub.VCRUNTIME140.dll_memmove
xor eax, eax
mov word [rbx + rdi*2], ax
lea rax, [rsp + 0x40]
xor edi, edi
jmp 0x180183f06
xor eax, eax
mov qword [rsp + 0x20], 1
lea r9, [0x18022a6e4]
movzx r8d, al
lea edx, [rax + 1]
lea rcx, [rsp + 0x40]
call fcn.1801832a0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x180183f71
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180183f6c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180183f6c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1801e5cd0
movdqa xmm0, xmmword [0x180342910]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x180183fc7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180183fc2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180183fc2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1801e5cd0
movdqa xmm0, xmmword [0x180342910]
movdqu xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], di
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x18018401d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180184018
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180184018
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1801e5cd0
movdqa xmm0, xmmword [0x180342910]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], di
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x180184073
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18018406e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18018406e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1801e5cd0
movdqa xmm0, xmmword [0x180342910]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], di
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1801840c7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801840c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801840c2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1801e5cd0
lea rdx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rdx, qword [rbp]
xor r9d, r9d
lea r8, str.WARNING
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x18018412a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180184125
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180184125
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1801e5cd0
mov dword [rsp + 0x20], edi
mov r9d, dword [r14 + 0x10]
xor r8d, r8d
mov edx, r12d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_UnlockFile]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13d, r13d
setne bl
mov rcx, rsi
call fcn.18000aef0
nop
mov rcx, r14
call fcn.18000eea0
movzx eax, bl
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1801e5c70
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret