Function at 0x18007b200
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
mov eax, 0x100
call fcn.1801c83e0
sub rsp, rax
mov rax, qword [0x1802d1460]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbx, qword [rsp + 0x150]
mov rdi, rcx
lea rcx, [rsp + 0x58]
mov rsi, r9
mov rbp, r8
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], rdx
xor r14d, r14d
call fcn.1800343c0
test rsi, rsi
mov rcx, rbp
cmove rsi, rbp
mov qword [rsp + 0x50], rsi
call fcn.18001d1d0
mov ebp, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x18007b5a1
mov esi, dword [rsp + 0x158]
cmp esi, 0xffffffff
jne 0x18007b2e1
mov esi, eax
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0xf0], r13
mov qword [rsp + 0xe8], r15
call fcn.18000c9d0
mov rcx, rdi
lea r13d, [rax - 1]
and r13d, 7
call fcn.1800022f0
mov r15d, 0xff
mov edx, r15d
mov ecx, r13d
mov edi, eax
shl edx, cl
test byte [rbx], dl
je 0x18007b311
lea r9, [0x1802c1978]
lea edx, [r15 - 0x6a]
lea r8d, [r15 - 0x7a]
mov ecx, 4
mov dword [rsp + 0x20], 0x76
call fcn.180004810
jmp 0x18007b591
cmp esi, 0xfffffffe
jne 0x18007b2e8
jmp 0x18007b27e
jge 0x18007b27e
mov edx, __WSAFDIsSet
lea r9, [0x1802c1960]
mov ecx, 4
lea r8d, [rdx - 0xd]
mov dword [rsp + 0x20], reloc.WS2_32.dll_WSAGetLastError
call fcn.180004810
jmp 0x18007b5a1
test r13d, r13d
jne 0x18007b31b
inc rbx
dec edi
lea eax, [rbp + rsi + 2]
cmp edi, eax
jge 0x18007b34a
mov edx, __WSAFDIsSet
lea r9, [0x1802c1990]
mov ecx, 4
lea r8d, [rdx - 0x28]
mov dword [rsp + 0x20], 0x7e
call fcn.180004810
jmp 0x18007b591
movsxd rax, edi
cmp byte [rax + rbx - 1], 0xbc
je 0x18007b37b
mov edx, __WSAFDIsSet
lea r9, [0x1802c19a8]
mov ecx, 4
lea r8d, [rdx - 0xf]
mov dword [rsp + 0x20], 0x82
call fcn.180004810
jmp 0x18007b591
sub edi, ebp
lea rdx, [0x1802c19c0]
mov r8d, 0x87
dec edi
mov qword [rsp + 0xf8], r12
movsxd rbp, edi
mov ecx, edi
lea rax, [rbx + rbp]
mov qword [rsp + 0x38], rax
call fcn.18000bcf0
mov r12, rax
test rax, rax
jne 0x18007b3d4
lea r9, [0x1802c19d8]
lea ecx, [rax + 4]
lea r8d, [rax + 0x41]
mov edx, __WSAFDIsSet
mov dword [rsp + 0x20], Ordinal_143
call fcn.180004810
jmp 0x18007b589
mov rax, qword [rsp + 0x50]
mov r9d, dword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov edx, edi
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.180031360
test eax, eax
js 0x18007b581
test edi, edi
jle 0x18007b41f
mov rcx, r12
sub rbx, r12
nop word [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
xor byte [rcx - 1], al
dec rbp
jne 0x18007b410
test r13d, r13d
je 0x18007b433
mov ecx, 8
sub ecx, r13d
sar r15d, cl
and byte [r12], r15b
mov ebx, r14d
cmp byte [r12], bl
jne 0x18007b450
lea ecx, [rdi - 1]
mov rax, r12
cmp ebx, ecx
jge 0x18007b450
inc rax
inc ebx
cmp byte [rax], r14b
je 0x18007b442
movsxd rax, ebx
inc ebx
cmp byte [rax + r12], 1
je 0x18007b483
mov edx, __WSAFDIsSet
lea r9, [0x1802c19f0]
mov ecx, 4
lea r8d, [rdx - 0xe]
mov dword [rsp + 0x20], __WSAFDIsSet
call fcn.180004810
jmp 0x18007b581
test esi, esi
js 0x18007b4b6
mov eax, edi
sub eax, ebx
cmp eax, esi
je 0x18007b4b6
mov edx, __WSAFDIsSet
lea r9, [0x1802c1a08]
mov ecx, 4
lea r8d, [rdx - 0xd]
mov dword [rsp + 0x20], 0x98
call fcn.180004810
jmp 0x18007b581
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
xor r8d, r8d
call fcn.180034430
test eax, eax
je 0x18007b581
lea rdx, [0x180221fb0]
lea rcx, [rsp + 0x58]
mov r8d, 8
call fcn.180034690
test eax, eax
je 0x18007b581
movsxd rsi, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x58]
mov r8, rsi
call fcn.180034690
test eax, eax
je 0x18007b581
sub edi, ebx
je 0x18007b525
movsxd rdx, ebx
lea rcx, [rsp + 0x58]
movsxd r8, edi
add rdx, r12
call fcn.180034690
test eax, eax
je 0x18007b581
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x58]
xor r8d, r8d
call fcn.1800346b0
test eax, eax
je 0x18007b581
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x90]
mov r8, rsi
call fcn.1801ca0b0
test eax, eax
je 0x18007b57b
mov edx, __WSAFDIsSet
lea r9, [0x1802c1a20]
mov ecx, 4
lea r8d, [rdx - 0x2d]
mov dword [rsp + 0x20], 0xa6
call fcn.180004810
jmp 0x18007b581
mov r14d, 1
mov rcx, r12
call fcn.18000bff0
mov r12, qword [rsp + 0xf8]
mov r13, qword [rsp + 0xf0]
mov r15, qword [rsp + 0xe8]
lea rcx, [rsp + 0x58]
call fcn.180034750
mov eax, r14d
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1801c74b0
add rsp, 0x100
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret