Function at 0x1801decf0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x560
mov qword [rsp + 0xe8], 0xfffffffffffffffe
mov rax, qword [0x1803fc9f0]
xor rax, rsp
mov qword [rsp + 0x550], rax
mov r12, r9
mov qword [rsp + 0x98], r9
mov r15d, r8d
mov dword [rsp + 0x74], r8d
mov r14d, edx
mov rbx, rcx
xor r13d, r13d
mov dword [rsp + 0x70], r13d
cmp dword [rcx + 0x3b8], r13d
je 0x1801dede2
lea rdi, [rcx + 0x230]
mov qword [rsp + 0xf8], rdi
mov byte [rsp + 0xf0], r13b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [rdi + 0x58]
cmp dword [rdi + 0x58], 1
jne 0x1801ded8c
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rsp + 0xf0], 1
cmp qword [rbx + 0x118], 0
je 0x1801dede9
test r14d, r14d
jne 0x1801dede9
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [rdi + 0x58], 0xffffffff
jne 0x1801dedd0
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rsp + 0xf0], 0
xor eax, eax
jmp 0x1801df3eb
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [rdi + 0x58], 0xffffffff
jne 0x1801dee03
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rsp + 0xf0], 0
inc dword [rbx + 0x228]
mov eax, dword [rbx + 0x228]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r14d
mov rax, qword [rbx + 0x118]
mov qword [rsp + 0x20], rax
lea r9, [0x18005fd90]
lea r8, [0x18005fdb0]
mov edx, 4
mov rcx, rbx
call fcn.1801e19a0
cmp dword [rbx + 0x228], 3
jbe 0x1801dee66
xor eax, eax
jmp 0x1801df3eb
mov r15d, r13d
mov dword [rsp + 0x78], r13d
mov r14d, 1
mov dword [rsp + 0x80], r14d
mov eax, r13d
mov dword [rsp + 0x6c], eax
mov esi, r13d
mov dword [rsp + 0x68], r13d
nop dword [rax + rax]
cmp r15d, r14d
jae 0x1801df285
inc eax
mov dword [rsp + 0x6c], eax
mov ecx, reloc.WSOCK32.dll_recv
call fcn.1802b8484
mov rdi, rax
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov dword [rdi], r15d
mov dword [rdi + 4], r14d
mov dword [rdi + 8], r13d
mov dword [rsp + 0xa8], gethostbyaddr
mov dword [rsp + 0xac], 0xed0cdab
mov eax, dword [rbx + 0x38c]
mov dword [rsp + 0xb0], eax
mov eax, dword [rbx + 0x388]
mov dword [rsp + 0xb4], eax
inc eax
mov dword [rbx + 0x388], eax
mov dword [rsp + 0xb8], 0x20
mov ecx, 0x29
call fcn.1802b8484
mov qword [rsp + 0x90], rax
xor ecx, ecx
mov qword [rax + 0x18], rcx
mov qword [rax + 0x20], rcx
mov byte [rax + 0x28], cl
movups xmm0, xmmword [rsp + 0xa8]
movups xmmword [rax], xmm0
movsd xmm1, qword [rsp + 0xb8]
movsd qword [rax + 0x10], xmm1
movups xmm0, xmmword [rdi]
movups xmmword [rax + 0x14], xmm0
mov edx, r13d
mov dword [rsp + 0x7c], r13d
mov dword [rsp + 0x60], 0xffffffff
mov dword [rsp + 0x64], 0xffffffff
mov edi, 1
mov dword [rsp + 0x84], edi
xor eax, eax
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], rax
mov dword [rsp + 0xf4], 0x1b58
mov ecx, dword [rsp + 0xf0]
nop word [rax + rax]
test edi, edi
je 0x1801df22a
mov eax, ecx
inc ecx
mov dword [rsp + 0xf0], ecx
cmp eax, 3
jae 0x1801df22a
xor edx, edx
mov r8d, 0x240
lea rcx, [rsp + 0x100]
call fcn.1802c7550
lea rcx, [rbx + 0x2b0]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0x240
lea rax, [rsp + 0x100]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9d, 0x29
mov r8, qword [rsp + 0x90]
mov rdx, qword [rbx + 0x320]
call fcn.1802aff40
mov edx, eax
mov dword [rsp + 0x88], eax
mov qword [rsp + 0xc0], r13
test eax, eax
je 0x1801df1fe
cmp eax, 0xffff
je 0x1801df1fe
cmp dword [rsp + 0x64], 0
jne 0x1801df1fe
cmp dword [rsp + 0x60], 0
jne 0x1801df1fe
lea rax, [rsp + 0x118]
mov qword [rsp + 0xc0], rax
mov r12d, dword [rsp + 0x100]
mov dword [rsp + 0x7c], r12d
test r15d, r15d
jne 0x1801df0ff
mov r14d, dword [rsp + 0x11c]
mov dword [rsp + 0x80], r14d
lea eax, [r14 - 2]
cmp eax, 0xfffc
ja 0x1801df0ff
lea rdi, [rbx + 0x230]
mov qword [rsp + 0xd0], rdi
mov byte [rsp + 0xc8], r15b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
or edx, 0xffffffff
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [rsp + 0xc8], 1
lea ecx, [r14 + 1]
call fcn.1802b8484
mov rcx, qword [rbx + 0x118]
mov qword [rbx + 0x118], rax
test rcx, rcx
je 0x1801df0ee
lea edx, [r15 + 1]
call fcn.1802b8d50
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rsp + 0xc8], 0
mov edi, dword [rsp + 0x120]
lea eax, [rdi + r15]
cmp eax, r14d
ja 0x1801df1ce
xor edx, edx
mov r8d, 0x201
lea rcx, [rsp + 0x340]
call fcn.1802c7550
mov r12d, edi
mov r8d, edi
lea rdx, [rsp + 0x124]
lea rcx, [rsp + 0x340]
call fcn.1802c7100
test edi, edi
je 0x1801df1ce
lea rsi, [rbx + 0x230]
mov qword [rsp + 0xe0], rsi
mov byte [rsp + 0xd8], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
or edx, 0xffffffff
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [rsp + 0xd8], 1
mov rcx, qword [rbx + 0x118]
mov edi, r15d
add rcx, rdi
mov r8d, r12d
lea rdx, [rsp + 0x340]
call fcn.1802c7100
mov rcx, qword [rbx + 0x118]
lea rax, [rdi + r12]
mov byte [rax + rcx], 0
mov r15d, dword [rsp + 0x118]
mov dword [rsp + 0x78], r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rsp + 0xd8], 0
mov esi, dword [rsp + 0x68]
inc esi
mov dword [rsp + 0x68], esi
mov dword [rbx + 0x3d8], r13d
mov edi, r13d
mov dword [rsp + 0x84], r13d
mov ecx, dword [rsp + 0xf0]
mov edx, dword [rsp + 0x88]
mov r12, qword [rsp + 0x98]
jmp 0x1801df218
inc dword [rbx + 0x3d8]
mov ecx, 5
mov dword [rsp + 0xf0], ecx
mov r15d, r14d
mov dword [rsp + 0x78], r14d
test r12, r12
je 0x1801df225
mov eax, dword [rsp + 0x60]
mov dword [r12], eax
jmp 0x1801def90
mov dword [rsp + 0x50], r14d
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x40], ecx
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
lea r9, [0x18005fd90]
lea r8, [0x18005fdd0]
mov edx, 4
mov rcx, rbx
call fcn.1801e19a0
mov rcx, qword [rsp + 0x90]
call fcn.1802b8d50
mov eax, dword [rsp + 0x6c]
jmp 0x1801dee90
mov dword [rsp + 0x8c], r13d
test esi, esi
je 0x1801df3a1
cmp dword [rbx + 0x3d8], 0
jne 0x1801df3a1
lea rdi, [rbx + 0x230]
mov qword [rsp + 0xa0], rdi
mov byte [rsp + 0x98], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [rdi + 0x58]
cmp dword [rdi + 0x58], 1
jne 0x1801df2df
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rcx, [rdi + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rsp + 0x98], 1
cmp qword [rbx + 0x118], 0
je 0x1801df38c
mov dword [rsp + 0x70], 1
cmp dword [rsp + 0x74], 0
je 0x1801df38c
lea rcx, [rbx + 0x120]
cmp byte [rcx], 0
je 0x1801df38c
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1801df38c
mov dword [rsp + 0x74], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x74]
mov r8d, r14d
mov rdx, qword [rbx + 0x118]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13d, 1
mov dword [rsp + 0x8c], r13d
lea rcx, [rsp + 0x98]
call fcn.180118800
mov esi, dword [rsp + 0x68]
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x48], r13d
mov edi, dword [rsp + 0x70]
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], r14d
mov rax, qword [rbx + 0x118]
mov qword [rsp + 0x20], rax
lea r9, [0x18005fd90]
lea r8, [0x18005fe28]
mov edx, 4
mov rcx, rbx
call fcn.1801e19a0
nop
jmp 0x1801df3e9
mov eax, edi
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.1802b85a0
add rsp, 0x560
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret