Function at 0x140107ba0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x14015d040]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, rdx
xor r12d, r12d
mov rsi, qword [0x140167a98]
cmp dword [rdx + 0x40], r12d
jne 0x140107be6
mov dword [rdx + 0x40], 5
mov dword [rdx + 0x50], r12d
mov eax, dword [rdx + 0x50]
mov dword [rsi + 0x130], eax
cmp dword [rdx + 0x80], r12d
jne 0x140107c09
mov dword [rdx + 0x80], 5
mov dword [rdx + 0x90], r12d
mov eax, dword [rdx + 0x90]
mov dword [rsi + 0xcc], eax
cmp dword [rdx + 0xc0], r12d
jne 0x140107c2f
mov dword [rdx + 0xc0], 5
mov dword [rdx + 0xd0], r12d
mov eax, dword [rdx + 0xd0]
mov dword [rsi + 0xc8], eax
add rdx, 0x120
lea rcx, [rbp - 1]
call fcn.14002a640
nop
mov word [rbp - 0x39], 0x7c
mov byte [rbp - 0x37], 0
lea rcx, [rbp - 0x39]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140107c61
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova rcx, qword [rbp - 1]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x39]
xor r8d, r8d
mov rbx, qword [rbp + 0xf]
mov rdx, rbx
call fcn.14002c540
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f], xmm0
mov qword [rbp + 0x2f], r12
mov qword [rbp + 0x37], r12
cmp rbx, rax
jb 0x140107eee
sub rbx, rax
mov r8, 0xffffffffffffffff
cmp rbx, r8
cmovb r8, rbx
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova rdx, qword [rbp - 1]
add rdx, rax
lea rcx, [rbp + 0x1f]
call fcn.14002c630
nop
mov word [rbp - 0x39], 0x7c
mov byte [rbp - 0x37], 0
lea rcx, [rbp - 0x39]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140107cf0
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova rcx, qword [rbp - 1]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x39]
xor r8d, r8d
mov rdx, qword [rbp + 0xf]
call fcn.14002c540
mov rcx, rax
cmp qword [rbp + 0xf], rax
jb 0x140107ef4
mov qword [rbp + 0xf], rax
lea rax, [rbp - 1]
cmp qword [rbp + 0x17], 0xf
cmova rax, qword [rbp - 1]
mov byte [rax + rcx], 0
lea rcx, [rsi + 0xd0]
lea rdx, [rbp - 1]
call fcn.14002a4b0
mov eax, dword [rsi + 0x138]
mov dword [rdi + 0x40], 9
mov dword [rdi + 0x50], eax
mov dword [rbp - 0x31], 0xf6e0e4e4
mov dword [rbp - 0x2d], 0xf2ebf4e9
mov word [rbp - 0x29], 0xec
mov byte [rbp - 0x27], 1
mov rcx, r12
nop word [rax + rax]
lea eax, [rcx - 0x2b]
xor byte [rbp + rcx - 0x31], al
inc rcx
cmp rcx, 9
jb 0x140107d80
mov byte [rbp - 0x27], 0
lea rax, [rbp - 0x31]
mov rcx, 0xffffffffffffffff
nop
inc rcx
cmp byte [rax + rcx], 0
jne 0x140107da0
movabs rax, 0x7fffffffffffffff
mov rdx, qword [rbp + 0x2f]
sub rax, rdx
cmp rax, rcx
jb 0x140107ee8
lea rax, [rbp + 0x1f]
cmp qword [rbp + 0x37], 0xf
cmova rax, qword [rbp + 0x1f]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x31]
lea rcx, [rbp - 0x21]
call fcn.14002d380
nop
mov dword [rdi + 0x100], 2
lea rcx, [rdi + 0x120]
lea rdx, [rbp - 0x21]
call fcn.14002a4b0
nop
lea rcx, [rbp - 0x21]
call fcn.14002b140
mov byte [0x1401669e0], 1
mov dword [rsp + 0x20], r12d
mov r9d, 0xffffffff
mov r8, rdi
mov rcx, rsi
call fcn.140108950
mov rdi, qword [rsi + 8]
test rdi, rdi
je 0x140107eb1
mov rcx, qword [rdi]
cmp rcx, 0xffffffffffffffff
je 0x140107e47
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rdi + 0x28]
imul rax, qword [rdi + 0x30], 0x1d8
add rax, rbx
cmp rbx, rax
jae 0x140107e80
nop dword [rax + rax]
mov rcx, rbx
call fcn.1400622a0
add rbx, 0x1d8
imul rax, qword [rdi + 0x30], 0x1d8
add rax, qword [rdi + 0x28]
cmp rbx, rax
jb 0x140107e60
mov rcx, qword [rdi + 0xa98]
test rcx, rcx
je 0x140107e9a
mov rax, qword [rdi + 0xab0]
test rax, rax
je 0x140107e9a
call rax
mov rcx, qword [rdi + 0x28]
call qword [0x14015d1e0]
mov rcx, rdi
call qword [0x14015d1e0]
mov qword [rsi + 8], r12
lea rcx, [rbp + 0x1f]
call fcn.14002b140
nop
lea rcx, [rbp - 1]
call fcn.14002b140
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14010ee40
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
call fcn.140004f60
nop
call fcn.14002b560
nop
call fcn.14002b560
int3