Function at 0x18004c6d0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r13
push r14
mov eax, 0x120
call fcn.18017e6d0
sub rsp, rax
mov rax, qword [0x1802658e0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rsi, qword [rcx + 0x70]
mov r14, r9
mov r13, r8
mov rbx, qword [rsi + 0xc8]
mov rdi, rdx
mov qword [rsp + 0x38], rcx
lea rax, [rbx + 0x10]
cmp r9, rax
je 0x18004c721
or eax, 0xffffffff
jmp 0x18004c9fe
mov qword [rsp + 0x118], rbp
mov qword [rsp + 0x110], r12
lea rax, [rsp + 0x50]
neg rax
xor ebp, ebp
mov qword [rsp + 0x108], r15
and eax, 0xf
mov r9, rsi
lea rcx, [rsp + rax + 0x50]
mov qword [rsp + 0x30], rcx
lea r12, [rcx + 0x40]
lea r15, [rcx + 0x30]
cmp rbx, 0x40
ja 0x18004c882
mov edx, 0x80
lea rax, [rsi + 0x20]
mov qword [rsp + 0x40], rdx
mov r8d, edx
lea rdx, [0x1801ad5a0]
mov dword [rax], ebp
mov qword [rsp + 0x20], rax
call fcn.180095ca0
mov rdx, qword [rsp + 0x30]
lea rcx, [rsi + 0xd0]
call fcn.180096570
mov rax, qword [rsi + 0x94]
mov dword [rsi + 0x70], ebp
mov qword [r15], rax
mov rax, qword [rsi + 0x9c]
mov qword [r15 + 8], rax
mov rax, qword [rsp + 0x38]
mov qword [rsi + 0xa8], reloc.WS2_32.dll_listen
mov qword [rsi + 0xb0], rbx
cmp dword [rax + 0x10], ebp
je 0x18004c80c
test rbx, rbx
je 0x18004c84e
mov r8, r13
mov r9, rdi
mov rdx, r12
sub r8, r12
sub r9, r12
mov rbp, rbx
nop word [rax + rax]
movzx ecx, byte [r8 + rdx]
movzx eax, byte [rdx]
inc rdx
xor ecx, eax
dec rbx
mov byte [rdx - 1], cl
mov byte [r9 + rdx - 1], cl
jne 0x18004c7f0
jmp 0x18004c84e
test rbx, rbx
je 0x18004c84e
mov r9, r13
mov r10, rdi
mov r8, r12
sub r9, rdi
sub r10, r12
mov rbp, rbx
nop word [rax + rax]
lea rcx, [r8 + r10]
inc r8
movzx edx, byte [rcx + r9]
movzx eax, dl
xor al, byte [r8 - 1]
dec rbx
mov byte [r8 - 1], dl
mov byte [rcx], al
jne 0x18004c830
mov rbx, rbp
lea rcx, [r12 + rbp]
xor edx, edx
neg rbx
add r13, rbp
add rdi, rbp
and ebx, 0xf
mov r8d, ebx
call fcn.18017e8a0
lea r11, [rbx + rbp]
lea rbx, [rsi + 0xd0]
lea rbp, [r11 + 0x10]
add r12, r11
jmp 0x18004c96b
mov eax, 0x40
lea r15, [rsi + 0x20]
lea rdx, [0x1801ad5a0]
mov r8d, eax
mov dword [r15], ebp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], r15
call fcn.180095ca0
mov rdx, qword [rsp + 0x30]
lea rcx, [rsi + 0xd0]
call fcn.180096570
lea rdx, [rsi + 0x94]
lea rcx, [rsi + 0xd0]
mov r8d, reloc.WS2_32.dll_recv
mov dword [r15], 1
mov dword [rsi + 0x70], ebp
call fcn.1800966d0
mov rax, qword [rsp + 0x38]
mov qword [rsi + 0xa8], reloc.WS2_32.dll_listen
mov qword [rsi + 0xb0], rbx
mov r8, rbx
mov rdx, r13
cmp dword [rax + 0x10], ebp
je 0x18004c921
mov r9, rsi
mov rcx, rdi
mov qword [rsp + 0x20], r15
call fcn.180095ca0
lea rcx, [rsi + 0xd0]
mov r8, rbx
mov rdx, rdi
call fcn.1800966d0
jmp 0x18004c943
lea rcx, [rsi + 0xd0]
call fcn.1800966d0
mov r9, rsi
mov r8, rbx
mov rdx, r13
mov rcx, rdi
mov qword [rsp + 0x20], r15
call fcn.180095ca0
add r13, rbx
add rdi, rbx
neg rbx
and ebx, 0xf
lea rdx, [0x1801ad5a0]
mov r8d, ebx
lea rbx, [rsi + 0xd0]
mov rcx, rbx
call fcn.1800966d0
mov r15, r12
mov rax, qword [rsi + 0xa8]
lea r8, [rbp + 0x10]
mov rdx, r15
mov qword [r12], rax
mov rax, qword [rsi + 0xb0]
mov rcx, rbx
mov qword [r12 + 8], rax
call fcn.1800966d0
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call fcn.18006b6b0
mov rbp, qword [rsp + 0x38]
mov r12, qword [rsp + 0x110]
cmp dword [rbp + 0x10], 0
lea rdx, [rsi + 0x84]
jne 0x18004c9bd
mov rdx, r15
mov rcx, rbx
call fcn.1800967c0
mov qword [rsi + 0xc8], 0xffffffffffffffff
cmp dword [rbp + 0x10], 0
mov rbp, qword [rsp + 0x118]
je 0x18004ca1d
mov rax, qword [rsi + 0x84]
mov qword [rdi], rax
mov rax, qword [rsi + 0x8c]
mov qword [rdi + 8], rax
mov eax, r14d
mov r15, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.180179370
add rsp, 0x120
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret
mov r8d, reloc.WS2_32.dll_recv
mov rdx, r13
mov rcx, r15
call fcn.18006e260
test eax, eax
je 0x18004c9f3
sub rdi, r14
lea r8, [r14 - 0x10]
xor edx, edx
lea rcx, [rdi + 0x10]
call fcn.18017e8a0
or eax, 0xffffffff
jmp 0x18004c9f6