Function at 0x140163860
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x218
movaps xmmword [rsp + 0x200], xmm6
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x1f8], rax
test rdx, rdx
je 0x140163b52
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
call fcn.140038580
mov ebp, eax
movaps xmm6, xmmword [0x14026fe30]
movaps xmmword [rsp + 0x1e0], xmm6
movaps xmmword [rsp + 0x1d0], xmm6
test byte [0x1403e4c77], 0x40
je 0x1401638e9
mov eax, 0x40000000
and eax, dword [0x1403e4c70]
je 0x1401638e9
lea rcx, [rsp + 0x1d0]
mov edx, 0x20
call fcn.140018c10
test eax, eax
jne 0x140163914
test ebp, ebp
je 0x140163902
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1e0], xmm0
movaps xmmword [rsp + 0x1d0], xmm0
jmp 0x140163914
lea rcx, [rsp + 0x1d0]
mov edx, 0x20
call fcn.1401abd90
xor eax, eax
nop word cs:[rax + rax]
movzx ecx, byte [rbx + rax]
xor byte [rsp + rax + 0x1d0], cl
inc rax
cmp rax, 0x20
jne 0x140163920
lea rbx, [rsp + 0x98]
mov r8d, 0x138
mov rcx, rbx
mov dl, 0xaa
call fcn.1402055c0
mov ecx, 1
call fcn.1401ab630
test rax, rax
je 0x14016398b
mov r14, rax
mov r13, rax
add r13, 0x128
cmp dword [rax + 0x128], 0xfff
ja 0x140163a4b
cmp qword [r14 + 0x120], 0
jne 0x140163a4b
jmp 0x140163a42
mov ecx, 0x138
call fcn.14016e6b0
test rax, rax
je 0x1401639b5
mov r14, rax
lea r8, [0x140164ec0]
mov ecx, 1
mov rdx, rax
call fcn.1401ab700
test eax, eax
jne 0x1401639b8
mov r14, rbx
mov dword [r14 + 0x12c], 0
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
lea r15, [rsp + 0x60]
mov edx, gethostbyname
mov rcx, r15
call fcn.1401abd90
lea r8, [rsp + 0x30]
mov rcx, r14
mov rdx, r15
xor r9d, r9d
call fcn.1401646d0
test eax, eax
je 0x140163b7e
lea r13, [r14 + 0x128]
mov dword [r14 + 0x128], 0
mov qword [r14 + 0x120], 0
mov dword [r14 + 0x130], ebp
cmp qword [r14 + 0x120], 0
jne 0x140163a4b
cmp dword [r14 + 0x130], ebp
je 0x140163aad
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
lea r15, [rsp + 0x60]
mov edx, gethostbyname
mov rcx, r15
call fcn.1401abd90
mov r8d, gethostbyname
mov rcx, r14
mov rdx, r15
call fcn.1401649a0
test eax, eax
je 0x140163b7e
mov qword [r14 + 0x118], 1
mov dword [r13], 0
mov qword [r14 + 0x120], 0
mov dword [r14 + 0x130], ebp
cmp rsi, 0x10000
mov r15d, 0x10000
cmovb r15, rsi
mov qword [rsp + 0x20], 0x20
lea r9, [rsp + 0x1d0]
mov rcx, r14
mov rdx, rdi
mov r8, r15
call fcn.140164cb0
test eax, eax
je 0x140163b7e
inc dword [r13]
sub rsi, r15
je 0x140163b3b
add rdi, r15
lea r15, [rsp + 0x1d0]
nop dword [rax]
cmp rsi, 0x10000
mov r12d, 0x10000
cmovb r12, rsi
mov qword [rsp + 0x20], 0
mov rcx, r14
mov rdx, rdi
mov r8, r12
mov r9, r15
call fcn.140164cb0
test eax, eax
je 0x140163b7e
add rdi, r12
inc dword [r13]
sub rsi, r12
jne 0x140163b00
cmp r14, rbx
jne 0x140163b52
lea rcx, [rsp + 0x98]
mov edx, 0x120
call fcn.14016e750
mov rcx, qword [rsp + 0x1f8]
xor rcx, rsp
call fcn.140203460
movaps xmm6, xmmword [rsp + 0x200]
add rsp, 0x218
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14021f4a0
int3