Function at 0x180184ca0
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 0x180184cf4
mov rcx, qword [rcx]
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r13 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x180184d5f
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x180184d34
mov rdx, qword [rsi]
xor r9d, r9d
lea r8, [0x18022a688]
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 0x180185313
mov dword [rbp - 0x18], r13d
mov rbx, qword [r14 + 0x10]
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x180184d74
mov rdx, qword [r14]
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x18]
mov r8d, ebx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r12d, eax
cmp dword [rbp - 0x18], ebx
je 0x1801852ae
lea r9, [rbp + 0x4a]
nop dword [rax]
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 0x180184da0
movdqa xmm0, xmmword [0x180342910]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r13w
lea rax, [rbp + 0x4a]
cmp r9, rax
je 0x180184e22
lea rdx, [rbp + 0x4a]
sub rdx, r9
sar rdx, 1
lea rcx, [rbp - 0x80]
cmp rdx, 7
ja 0x180184e16
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], r13w
jmp 0x180184e22
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 0x180184e30
movdqa xmm0, xmmword [0x180342910]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], r13w
lea rax, [rbp + 0x7a]
cmp r9, rax
je 0x180184eb6
lea rdx, [rbp + 0x7a]
sub rdx, r9
sar rdx, 1
lea rcx, [rbp - 0x40]
cmp rdx, 7
ja 0x180184eaa
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], r13w
jmp 0x180184eb6
xor eax, eax
movzx r8d, al
call fcn.180182fd0
nop
mov r9d, reloc.WLDAP32.dll_Ordinal_22
lea r8, [0x18022a6e8]
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], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
mov rax, rdx
sub rax, rcx
cmp rax, 0x10
jb 0x180184f48
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, [0x18022a6c0]
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r13w
lea rax, [rsp + 0x60]
jmp 0x180184f6b
xor eax, eax
mov qword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r9, [0x18022a6c0]
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], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
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 0x180184fd2
mov rax, rcx
sub rax, r8
cmp rax, r9
jb 0x180184fd2
lea r8, [rbp - 0x60]
cmp rdx, 8
cmovae r8, qword [rbp - 0x60]
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.180110de0
jmp 0x180184fe8
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], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x180185062
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, [0x18022a684]
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r13w
lea rax, [rsp + 0x40]
jmp 0x180185085
xor eax, eax
mov qword [rsp + 0x20], 1
lea r9, [0x18022a684]
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], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1801850f1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801850ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801850ec
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], r13w
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x180185148
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180185143
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180185143
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], r13w
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x18018519f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18018519a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18018519a
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], r13w
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x1801851f6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801851f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801851f1
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], r13w
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x18018524b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180185246
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180185246
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, [0x18022a718]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x1801852ae
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1801852a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801852a9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1801e5cd0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12d, r12d
setne bl
mov rdx, qword [rsi + 0x18]
cmp rdx, 8
jb 0x1801852f8
mov rcx, qword [rsi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1801852f3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18018533d
mov rcx, r8
call fcn.1801e5cd0
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], 7
mov word [rsi], r13w
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
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
jmp qword [sym.imp.PSAPI.DLL_GetModuleInformation]