Function at 0x18002ceb0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rdi
lea rbp, [rax - 0x5f]
sub rsp, 0xe8
xor edi, edi
mov qword [rax + 0x10], rbx
mov qword [rax - 0x18], rsi
lea rcx, [rbp - 0x59]
mov qword [rax - 0x20], r12
mov rsi, r8
mov qword [rax - 0x28], r13
mov r13d, edx
lea rdx, [0x18003a3e0]
mov qword [rax - 0x38], r15
mov dword [rbp - 0x31], edi
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x49], rdi
mov dword [rbp - 0x41], 7
mov qword [rbp - 0x59], rdi
mov dword [rbp - 0x51], edi
call fcn.18001bf10
mov edx, dword [rbp - 0x51]
and edx, 0x1fffffff
je 0x18002d085
mov rcx, qword [rbp - 0x59]
mov eax, dword [rcx]
cmp eax, 0x4e534942
jne 0x18002cf32
mov r12b, 1
jmp 0x18002cf40
and eax, 0x80808080
cmp eax, 0x80808080
sete r12b
cmp edx, 3
jb 0x18002d08d
mov eax, dword [rbp - 0x41]
cmp eax, 6
jne 0x18002cf6f
mov rax, qword [rbp - 0x29]
test rax, rax
je 0x18002cfc1
sub rax, 4
lea rcx, [rbp - 0x29]
xor edx, edx
mov qword [rbp - 0x29], rax
call fcn.18000af70
jmp 0x18002cfbd
add eax, 0xfffffff9
cmp eax, 1
ja 0x18002cfc1
mov rdx, qword [rbp - 0x29]
test rdx, rdx
je 0x18002cfc1
mov ebx, edi
cmp dword [rbp - 0x31], ebx
jbe 0x18002cfae
nop word [rax + rax]
mov eax, ebx
lea rcx, [rax + rax*4]
lea rcx, [rdx + rcx*8]
xor edx, edx
call fcn.180012b70
inc ebx
cmp ebx, dword [rbp - 0x31]
jae 0x18002cfae
mov rdx, qword [rbp - 0x29]
jmp 0x18002cf90
xor edx, edx
lea rcx, [rbp - 0x29]
call fcn.18000af70
mov qword [rbp - 0x29], rdi
mov rcx, qword [rbp - 0x59]
mov dword [rbp - 0x31], edi
mov eax, dword [rcx]
cmp eax, 0x4e534942
je 0x18002d05b
and eax, 0x80808080
cmp eax, 0x80808080
jne 0x18002d070
mov r10d, dword [rbp - 0x51]
lea r11, [rcx + 4]
and r10d, 0x1fffffff
mov r9d, edi
sub r10d, 4
mov eax, r10d
movzx ecx, r10b
shr eax, 8
movzx ebx, al
imul ebx, ecx
test r10d, r10d
je 0x18002d05b
nop dword [rax]
movzx eax, r9b
movzx ecx, bl
and al, 0x7e
lea r11, [r11 + 1]
movzx r8d, al
imul r8d, ecx
movzx ecx, byte [r11 - 1]
movzx eax, cl
add r8b, r9b
sub al, r8b
add cl, r8b
test r9b, 1
movzx r8d, cl
movzx eax, al
cmove r8d, eax
inc r9d
xor r8b, bl
not r8b
sub r8b, 0x61
mov byte [r11 - 1], r8b
cmp r9d, r10d
jb 0x18002d010
mov r8d, 4
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x49]
call fcn.18001a360
jmp 0x18002d08d
xor r9d, r9d
lea rdx, [rbp - 0x59]
xor r8d, r8d
lea rcx, [rbp - 0x49]
call fcn.18001a660
jmp 0x18002d08d
movzx r12d, byte [reloc.WS2_32.dll_accept]
movabs rcx, 0x5ec10dc9c9620e40
lea r8, [rbp - 0x49]
movabs rax, 0x5ec168a5ae0c6104
lea rdx, [rbp - 0x21]
mov qword [rbp - 0x21], rax
mov rax, qword [rbp - 0x21]
xor rax, rcx
mov ecx, 0x3e9
mov qword [rbp - 0x21], rax
call fcn.18000a270
mov rbx, rax
mov r10, rdi
movabs rax, 0x15a479a8bf0b7c10
movabs r11, 0xf427de46c6d3be37
mov qword [rbp + 0xf], rax
movabs rax, 0x39017b0437545ced
mov qword [rbp + 0x17], rax
nop
mov rax, qword [rbp + r10*8 + 0xf]
mov r9d, r10d
neg r9d
mov r8, r11
and r9d, 0xf
rol r8, 3
not r8
rol r11, 1
mov rdx, r8
mov ecx, r9d
neg ecx
and ecx, 0x3f
shl rdx, cl
mov ecx, r9d
shr r8, cl
or rdx, r8
xor rdx, rax
mov qword [rbp + r10*8 + 0xf], rdx
inc r10
cmp r10, 2
jb 0x18002d0f0
mov r8, rbx
lea rdx, [rbp + 0xf]
mov ecx, 0x3e8
call fcn.18000a200
mov rdx, rsi
mov rcx, rax
mov r15, rax
call fcn.18001c4e0
test rax, rax
jne 0x18002d446
mov ecx, dword [rbp - 0x51]
lea esi, [r13*2]
and ecx, 0x1fffffff
cmp esi, ecx
jbe 0x18002d186
sub esi, ecx
xor edx, edx
mov r8d, esi
lea rcx, [rbp - 0x59]
call fcn.1800107c0
jmp 0x18002d27f
je 0x18002d27f
mov qword [rsp + 0xc8], r14
cmp esi, 0x1fffffff
mov r14d, edi
cmovbe r14d, esi
test r14d, r14d
je 0x18002d1f8
cmp qword [rbp - 0x59], rdi
je 0x18002d201
lea rcx, [rbp - 0x59]
call fcn.18001c570
mov edx, r14d
lea rcx, [rbp - 0x59]
mov ebx, eax
call fcn.18002d6c0
lea rcx, [rbp - 0x59]
call fcn.18001c570
mov r14d, eax
cmp ebx, eax
je 0x18002d24e
mov rbx, qword [rbp - 0x59]
call qword [0x180042070]
lea r9d, [r14 + 8]
mov r8, rbx
mov rcx, rax
mov edx, 8
call qword [0x1800421c8]
mov qword [rbp - 0x59], rax
jmp 0x18002d24e
mov rbx, qword [rbp - 0x59]
test rbx, rbx
jne 0x18002d236
mov edx, r14d
lea rcx, [rbp - 0x59]
call fcn.18002d6c0
lea rcx, [rbp - 0x59]
call fcn.18001c570
lea ebx, [rax + 8]
call qword [0x180042070]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [0x1800421e8]
mov qword [rbp - 0x59], rax
jmp 0x18002d24e
call qword [0x180042070]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [0x180042108]
mov qword [rbp - 0x59], rdi
mov ecx, dword [rbp - 0x51]
mov edx, esi
mov eax, ecx
xor eax, esi
and eax, 0x1fffffff
xor ecx, eax
mov dword [rbp - 0x51], ecx
lea rcx, [rbp - 0x59]
call fcn.18002d6c0
mov rcx, qword [rbp - 0x59]
mov r14, qword [rsp + 0xc8]
test rcx, rcx
je 0x18002d27f
mov byte [rsi + rcx], dil
cmp dword [rbp - 0x51], edi
lea rdx, [rbp - 0x51]
mov rcx, qword [rbp + 0x67]
mov r9b, 1
cmovne rdx, qword [rbp - 0x59]
mov r8d, r13d
call fcn.1800074a0
cmp dword [rbp - 0x51], edi
lea rdx, [rbp - 0x51]
mov r8, qword [rbp + 0x77]
lea rcx, [rbp - 0x19]
cmovne rdx, qword [rbp - 0x59]
call fcn.18000fb60
mov rdx, rax
mov rcx, r15
call fcn.180010660
mov rax, qword [rbp - 9]
test rax, rax
je 0x18002d2de
sub rax, 4
lea rcx, [rbp - 9]
xor edx, edx
mov qword [rbp - 9], rax
call fcn.18000af70
mov qword [rbp - 9], rdi
mov eax, dword [rbp - 0x11]
cmp eax, 6
jne 0x18002d304
mov rax, qword [rbp + 7]
test rax, rax
je 0x18002d349
sub rax, 4
lea rcx, [rbp + 7]
xor edx, edx
mov qword [rbp + 7], rax
call fcn.18000af70
jmp 0x18002d349
add eax, 0xfffffff9
cmp eax, 1
ja 0x18002d349
mov rdx, qword [rbp + 7]
test rdx, rdx
je 0x18002d349
mov ebx, edi
cmp dword [rbp - 1], ebx
jbe 0x18002d33e
nop dword [rax]
mov eax, ebx
lea rcx, [rax + rax*4]
lea rcx, [rdx + rcx*8]
xor edx, edx
call fcn.180012b70
inc ebx
cmp ebx, dword [rbp - 1]
jae 0x18002d33e
mov rdx, qword [rbp + 7]
jmp 0x18002d320
xor edx, edx
lea rcx, [rbp + 7]
call fcn.18000af70
mov rbx, qword [rbp - 0x59]
test rbx, rbx
jne 0x18002d382
xor edx, edx
lea rcx, [rbp - 0x59]
call fcn.18002d6c0
lea rcx, [rbp - 0x59]
call fcn.18001c570
lea ebx, [rax + 8]
call qword [0x180042070]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [0x1800421e8]
jmp 0x18002d396
call qword [0x180042070]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [0x180042108]
mov qword [rbp - 0x59], rdi
mov dword [rbp - 0x51], edi
test r12b, r12b
jne 0x18002d3c1
cmp byte [reloc.WS2_32.dll_accept], dil
jne 0x18002d3c1
xor r9d, r9d
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x49]
lea r8d, [r9 + 1]
call fcn.18000a3c0
jmp 0x18002d3d1
mov r8b, 0x61
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x49]
call fcn.180032050
xor r9d, r9d
mov qword [rsp + 0x30], rdi
cmp byte [0x18003a3e1], dil
lea rcx, [0x18003a3e0]
mov dword [rsp + 0x28], 0x8000080
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
jne 0x18002d40a
call qword [0x180042228]
jmp 0x18002d410
call qword [0x180042230]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18002d446
mov r8d, dword [rbp - 0x51]
lea r9, [rbp + 0x7f]
mov rdx, qword [rbp - 0x59]
and r8d, 0x1fffffff
mov rcx, rax
mov dword [rbp + 0x7f], edi
mov qword [rsp + 0x20], rdi
call qword [0x1800421e0]
mov rcx, rbx
call qword [0x1800421d8]
mov rbx, qword [rbp - 0x59]
mov r15, qword [rsp + 0xc0]
mov r13, qword [rsp + 0xd0]
mov r12, qword [rsp + 0xd8]
mov rsi, qword [rsp + 0xe0]
test rbx, rbx
jne 0x18002d4a3
xor edx, edx
lea rcx, [rbp - 0x59]
call fcn.18002d6c0
lea rcx, [rbp - 0x59]
call fcn.18001c570
lea ebx, [rax + 8]
call qword [0x180042070]
mov r8d, ebx
mov edx, 8
mov rcx, rax
call qword [0x1800421e8]
mov qword [rbp - 0x59], rax
jmp 0x18002d4bb
call qword [0x180042070]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [0x180042108]
mov qword [rbp - 0x59], rdi
mov rax, qword [rbp - 0x39]
mov rbx, qword [rsp + 0x108]
test rax, rax
je 0x18002d4e3
sub rax, 4
lea rcx, [rbp - 0x39]
xor edx, edx
mov qword [rbp - 0x39], rax
call fcn.18000af70
mov qword [rbp - 0x39], rdi
mov eax, dword [rbp - 0x41]
cmp eax, 6
jne 0x18002d513
mov rax, qword [rbp - 0x29]
test rax, rax
je 0x18002d559
sub rax, 4
lea rcx, [rbp - 0x29]
xor edx, edx
mov qword [rbp - 0x29], rax
call fcn.18000af70
xor eax, eax
add rsp, 0xe8
pop rdi
pop rbp
ret
add eax, 0xfffffff9
cmp eax, 1
ja 0x18002d559
mov rdx, qword [rbp - 0x29]
test rdx, rdx
je 0x18002d559
cmp dword [rbp - 0x31], edi
jbe 0x18002d54e
nop dword [rax]
mov eax, edi
lea rcx, [rax + rax*4]
lea rcx, [rdx + rcx*8]
xor edx, edx
call fcn.180012b70
inc edi
cmp edi, dword [rbp - 0x31]
jae 0x18002d54e
mov rdx, qword [rbp - 0x29]
jmp 0x18002d530
xor edx, edx
lea rcx, [rbp - 0x29]
call fcn.18000af70
xor eax, eax
add rsp, 0xe8
pop rdi
pop rbp
ret