Function at 0x180023390
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp - 0x61], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rbp - 0x19], 7
xor r12d, r12d
mov qword [rbp - 0x21], r12
mov word [rbp - 0x31], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x31]
call fcn.1800049e0
lea rdx, [rbp - 0x31]
mov rcx, rdi
call fcn.180023930
lea r8, [rdi + 0xa0]
movabs rax, 0x1111111111111111
mov qword [r8], rax
mov qword [r8 + 8], rax
mov qword [r8 + 0x10], rax
mov qword [r8 + 0x18], rax
lea r9, [rdi + 0xc0]
xor eax, eax
mov qword [r9], rax
mov byte [r9 + 8], al
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x27], rax
mov byte [rbp + 0x2f], al
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x20], rax
lea edx, [r12 + 0x20]
mov rcx, qword [rdi + 0x70]
call qword [rdi + 0x28]
mov ebx, eax
test eax, eax
jne 0x18002363e
mov qword [rbp - 0x19], send
mov qword [rbp - 0x21], r12
mov byte [rbp - 0x31], r12b
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x1f]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x31]
call fcn.180004b90
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 9]
call fcn.180028d80
nop
mov rdx, rax
mov rcx, rsi
call fcn.180004950
nop
cmp qword [rbp + 0xf], 8
jb 0x1800234aa
mov rcx, qword [rbp - 9]
call fcn.18007a7a4
mov qword [rbp - 0x41], 7
mov qword [rbp - 0x49], r12
mov word [rbp - 0x59], r12w
lea rcx, [rbp - 0x59]
call fcn.1800279e0
mov qword [rbp + 0xf], 7
mov qword [rbp + 7], r12
mov word [rbp - 9], r12w
mov r8d, reloc.WS2_32.dll_recv
lea rdx, str.UniqueKeyTmp.txt
lea rcx, [rbp - 9]
call fcn.180004cc0
nop
lea r8, [rbp - 9]
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x31]
call fcn.180027780
mov rdi, rax
lea rax, [rbp - 0x59]
cmp rax, rdi
je 0x18002356b
cmp qword [rbp - 0x41], 8
jb 0x180023519
mov rcx, qword [rbp - 0x59]
call fcn.18007a7a4
mov qword [rbp - 0x41], 7
mov qword [rbp - 0x49], r12
mov word [rbp - 0x59], r12w
cmp qword [rdi + 0x18], 8
jae 0x180023549
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rbp - 0x59]
call fcn.18007abc0
jmp 0x180023553
mov rax, qword [rdi]
mov qword [rbp - 0x59], rax
mov qword [rdi], r12
mov rax, qword [rdi + 0x10]
mov qword [rbp - 0x49], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp - 0x41], rax
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
cmp qword [rbp - 0x19], 8
jb 0x18002357b
mov rcx, qword [rbp - 0x31]
call fcn.18007a7a4
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], r12
mov word [rbp - 0x31], r12w
cmp qword [rbp + 0xf], 8
jb 0x18002359c
mov rcx, qword [rbp - 9]
call fcn.18007a7a4
lea rcx, [rbp - 0x59]
cmp qword [rbp - 0x41], 8
cmovae rcx, qword [rbp - 0x59]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
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], r12
lea r9, [rbp - 0x69]
mov r8d, 2
lea rdx, [0x1800a996c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x69]
mov r8d, send
lea rdx, [rbp + 0x1f]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp - 0x41], 8
jb 0x18002363c
mov rcx, qword [rbp - 0x59]
call fcn.18007a7a4
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.18007a7c0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret