Function at 0x180005180
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0xcd0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x60], 0
cmp qword [rsp + 0xcf0], 0
je 0x1800051c0
cmp dword [section..bss], 0
jne 0x1800051c5
jmp 0x1800056e6
lea rax, [rsp + 0xcf8]
mov qword [rsp + 0x80], rax
lea rax, [0x180011220]
mov ecx, 1
lock xadd dword [rax], ecx
inc ecx
mov eax, ecx
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0xce0]
and eax, 0x20
test eax, eax
jne 0x180005496
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0xce0]
and eax, 4
test eax, eax
je 0x18000527a
lea rcx, [0x180011228]
call fcn.180004d90
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
mov r9b, 1
lea r8, [rsp + 0xd0]
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [0x180011228]
call fcn.180001b70
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x50]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov byte [rsp + rax + 0xd0], 0x20
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0xce0]
and eax, 0x10
test eax, eax
je 0x1800052d8
mov eax, dword [rsp + 0x50]
lea rax, [rsp + rax + 0xd0]
lea rcx, [rsp + 0x54]
mov qword [rsp + 0x20], rcx
mov r9b, 1
mov r8, rax
mov edx, 8
mov ecx, dword [rsp + 0x70]
call fcn.180001930
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x50]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov byte [rsp + rax + 0xd0], 0x20
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0xce0]
and eax, 8
test eax, eax
je 0x18000534e
mov rax, qword gs:[0x30]
mov qword [rsp + 0x88], rax
mov eax, dword [rsp + 0x50]
lea rax, [rsp + rax + 0xd0]
lea rcx, [rsp + 0x54]
mov qword [rsp + 0x20], rcx
mov r9b, 1
mov r8, rax
mov edx, 6
mov rax, qword [rsp + 0x88]
mov ecx, dword [rax + 0x48]
call fcn.180001930
mov eax, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x50]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov byte [rsp + rax + 0xd0], 0x20
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
cmp qword [rsp + 0xce8], 0
je 0x1800053c3
mov eax, dword [rsp + 0xce0]
and eax, 2
test eax, eax
je 0x1800053c3
jmp 0x180005386
mov rax, qword [rsp + 0xce8]
inc rax
mov qword [rsp + 0xce8], rax
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0xce8]
movsx eax, byte [rax]
test eax, eax
je 0x1800053ad
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xce8]
movzx ecx, byte [rcx]
mov byte [rsp + rax + 0xd0], cl
jmp 0x180005369
mov eax, dword [rsp + 0x50]
mov byte [rsp + rax + 0xd0], 0x20
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x18000540c
mov eax, dword [rsp + 0x50]
mov byte [rsp + rax + 0xd0], gethostbyaddr
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov byte [rsp + rax + 0xd0], 0x3e
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov byte [rsp + rax + 0xd0], 0x20
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov ecx, 0xbfd
sub rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x50]
lea rcx, [rsp + rcx + 0xd0]
mov r9, qword [rsp + 0x80]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0xcf0]
call fcn.180002d40
mov ecx, dword [rsp + 0x50]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0xce0]
and eax, 1
test eax, eax
je 0x180005488
mov eax, dword [rsp + 0x50]
mov byte [rsp + rax + reloc.WS2_32.dll_listen0], 0xd
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov byte [rsp + rax + 0xd0], 0xa
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov byte [rsp + rax + 0xd0], 0
jmp 0x180005502
cmp qword [rsp + 0xce8], 0
je 0x1800054af
mov eax, dword [rsp + 0xce8]
mov qword [rsp + 0x78], rax
jmp 0x1800054ed
mov qword [rsp + 0x68], 0
jmp 0x1800054c7
mov rax, qword [rsp + 0x68]
inc rax
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xcf0]
add rcx, rax
mov rax, rcx
movsx eax, byte [rax]
test eax, eax
je 0x1800054e3
jmp 0x1800054ba
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0xcf0]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x80], 0
mov eax, dword [section..bss]
and eax, 4
test eax, eax
je 0x18000553a
mov rax, qword [0x180014098]
mov qword [rsp + 0x90], rax
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x90]
mov eax, dword [section..bss]
and eax, 1
test eax, eax
je 0x180005638
cmp qword [0x180011008], 0
jne 0x1800055b3
mov eax, dword [section..bss]
and eax, 8
test eax, eax
je 0x18000556c
mov dword [rsp + 0x5c], 3
jmp 0x180005574
mov dword [rsp + 0x5c], 5
lea rax, [0x180011008]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x40
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x20], eax
mov r9d, 3
mov r8d, pe_nt_image_headers64
mov edx, 4
lea rcx, [0x180011010]
call fcn.1800029d0
mov dword [rsp + 0x58], eax
jmp 0x1800055bb
mov dword [rsp + 0x58], 0
cmp dword [rsp + 0x58], 0
jne 0x180005638
lea rax, [rsp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rax, [rsp + 0xa8]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x180011008]
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov dword [rsp + 0x58], eax
mov eax, dword [section..bss]
and eax, 2
test eax, eax
je 0x1800056e6
lea rax, [rsp + 0xb8]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
cmp qword [0x180011218], 0
jne 0x180005693
mov rax, qword gs:[0x30]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x28]
mov qword [0x180011218], rax
cmp dword [0x180011218], 7
je 0x1800056e6
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x180011218]
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov dword [rsp + 0x58], eax
add rsp, 0xcd0
pop rdi
ret