Function at 0x140004210
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
push rbp
push r14
lea rbp, [rsp - 0x68]
sub rsp, 0x168
xor r14d, r14d
mov r11d, edx
mov r10, rcx
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
nop word [rax + rax]
mov eax, dword [rcx]
add rcx, 4
inc dword [rsp + rax*4 + 0x20]
dec edx
jne 0x140004260
cmp dword [rsp + 0x20], r11d
jne 0x140004296
mov rax, qword [rbp + 0xa8]
mov qword [rax], r14
mov rax, qword [rbp + 0xb0]
mov dword [rax], r14d
xor eax, eax
add rsp, 0x168
pop r14
pop rbp
ret
mov r8, qword [rbp + 0xb0]
mov qword [rsp + 0x158], rsi
mov qword [rsp + 0x140], r13
mov esi, dword [r8]
mov qword [rsp + 0x138], r15
mov ecx, 1
nop dword [rax]
mov eax, ecx
cmp dword [rsp + rax*4 + 0x20], r14d
jne 0x1400042d0
inc ecx
cmp ecx, 0xf
jbe 0x1400042c0
cmp esi, ecx
mov r13d, ecx
mov edx, reloc.WS2_32.dll_ntohs
cmovb esi, ecx
lea rax, [rsp + 0x5c]
cmp dword [rax], r14d
jne 0x1400042ef
sub rax, 4
dec edx
jne 0x1400042e2
cmp esi, edx
mov dword [rbp + 0x88], edx
cmova esi, edx
mov dword [r8], esi
mov r8d, 1
shl r8d, cl
cmp ecx, edx
jae 0x140004322
nop word [rax + rax]
mov eax, ecx
sub r8d, dword [rsp + rax*4 + 0x20]
js 0x140004332
inc ecx
add r8d, r8d
cmp ecx, edx
jb 0x140004310
mov ecx, edx
mov eax, dword [rsp + rcx*4 + 0x20]
sub r8d, eax
mov dword [rsp + 0x14], r8d
jns 0x14000433c
mov eax, 0xfffffffd
jmp 0x140004696
add eax, r8d
dec edx
mov qword [rsp + 0x160], rbx
mov qword [rsp + 0x150], rdi
mov dword [rsp + rcx*4 + 0x20], eax
mov dword [rsp + 0x74], r14d
mov ecx, r14d
mov qword [rsp + 0x148], r12
je 0x140004380
mov rax, r14
nop word [rax + rax]
add ecx, dword [rsp + rax + 0x24]
add rax, 4
dec edx
mov dword [rsp + rax + 0x74], ecx
jne 0x140004370
mov r15, qword [rbp + 0xc8]
mov edx, r14d
nop word [rax + rax]
mov eax, dword [r10]
add r10, 4
test eax, eax
je 0x1400043ab
mov ecx, eax
mov eax, dword [rsp + rax*4 + 0x70]
mov dword [r15 + rax*4], edx
inc eax
mov dword [rsp + rcx*4 + 0x70], eax
inc edx
cmp edx, r11d
jb 0x140004390
movsxd r15, dword [rbp + 0x88]
mov rdx, qword [rbp + 0xc8]
or r12, 0xffffffffffffffff
mov eax, dword [rsp + r15*4 + 0x70]
mov r11d, esi
mov ebx, r14d
neg r11d
mov dword [rsp + 0x70], r14d
mov qword [rsp + 8], rdx
mov dword [rsp + 0x10], eax
mov qword [rbp - 0x50], r14
mov r9, r14
mov r10d, r14d
mov rdi, r12
cmp r13d, r15d
jg 0x14000466a
nop word [rax + rax]
movsxd rax, r13d
lea rax, [rsp + rax*4 + 0x20]
mov qword [rsp + 0x60], rax
mov r8d, dword [rax]
test r8d, r8d
je 0x140004659
nop dword [rax]
dec r8d
lea ecx, [r11 + rsi]
mov dword [rbp + 0x80], r8d
cmp r13d, ecx
jle 0x140004550
mov eax, esi
lea r14d, [r8 + 1]
neg eax
lea r15d, [rax + rax]
nop word [rax + rax]
mov r9d, dword [rbp + 0x88]
inc r12d
inc rdi
sub r9d, ecx
mov r11d, ecx
mov ecx, r13d
cmp r9d, esi
mov edx, 1
cmova r9d, esi
sub ecx, r11d
shl edx, cl
cmp edx, r14d
jbe 0x1400044b7
or eax, 0xffffffff
sub eax, r8d
mov r8, qword [rsp + 0x60]
add edx, eax
cmp ecx, r9d
jae 0x1400044b7
inc ecx
cmp ecx, r9d
jae 0x1400044b7
nop word [rax + rax]
mov eax, dword [r8 + 4]
add r8, 4
add edx, edx
cmp edx, eax
jbe 0x1400044b7
inc ecx
sub edx, eax
cmp ecx, r9d
jb 0x1400044a0
mov r8, qword [rbp + 0xc0]
mov r10d, 1
mov eax, dword [r8]
shl r10d, cl
lea edx, [rax + r10]
cmp edx, 0x5a0
ja 0x1400046b9
mov r9, qword [rbp + 0xb8]
mov dword [r8], edx
lea r9, [r9 + rax*8]
mov qword [rbp + rdi*8 - 0x50], r9
test r12d, r12d
je 0x14000452a
mov rdx, qword [rbp + rdi*8 - 0x58]
mov byte [rsp], cl
mov r8d, ebx
lea ecx, [r15 + r11]
mov rax, r9
mov byte [rsp + 1], sil
sub rax, rdx
add ecx, esi
mov dword [rsp + rdi*4 + 0x70], ebx
shr r8d, cl
sar rax, 3
sub eax, r8d
mov dword [rsp + 4], eax
mov rax, qword [rsp]
mov qword [rdx + r8*8], rax
jmp 0x140004534
mov rax, qword [rbp + 0xa8]
mov qword [rax], r9
mov r8d, dword [rbp + 0x80]
lea ecx, [r11 + rsi]
cmp r13d, ecx
jg 0x140004450
mov rdx, qword [rsp + 8]
xor r14d, r14d
mov rcx, qword [rbp + 0xc8]
movzx eax, r13b
sub al, r11b
mov byte [rsp + 1], al
mov eax, dword [rsp + 0x10]
lea rcx, [rcx + rax*4]
cmp rdx, rcx
jb 0x140004575
mov byte [rsp], 0xc0
jmp 0x1400045c2
mov ecx, dword [rdx]
mov eax, dword [rbp + 0x90]
cmp ecx, eax
jae 0x140004599
mov eax, 0x60
cmp ecx, 0x100
mov dword [rsp + 4], ecx
cmovb eax, r14d
mov byte [rsp], al
jmp 0x1400045b9
sub ecx, eax
mov rax, qword [rbp + 0xa0]
movzx eax, byte [rax + rcx*4]
add al, 0x50
mov byte [rsp], al
mov rax, qword [rbp + 0x98]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 4], eax
add rdx, 4
mov qword [rsp + 8], rdx
mov ecx, r13d
mov r8d, 1
mov edx, ebx
sub ecx, r11d
shl r8d, cl
mov ecx, r11d
shr edx, cl
cmp edx, r10d
jae 0x1400045ed
mov rax, qword [rsp]
mov qword [r9 + rdx*8], rax
add edx, r8d
cmp edx, r10d
jb 0x1400045e1
lea ecx, [r13 - 1]
mov eax, 1
shl eax, cl
test ebx, eax
je 0x140004608
nop dword [rax]
xor ebx, eax
shr eax, 1
test ebx, eax
jne 0x140004600
xor ebx, eax
mov ecx, r11d
mov eax, 1
shl eax, cl
dec eax
and eax, ebx
cmp eax, dword [rsp + rdi*4 + 0x70]
je 0x14000463d
nop
sub r11d, esi
mov eax, 1
dec rdi
mov ecx, r11d
dec r12d
shl eax, cl
dec eax
and eax, ebx
cmp eax, dword [rsp + rdi*4 + 0x70]
jne 0x140004620
mov r8d, dword [rbp + 0x80]
mov rdx, qword [rsp + 8]
test r8d, r8d
jne 0x140004420
mov r15d, dword [rbp + 0x88]
inc r13d
cmp r13d, r15d
jle 0x140004400
mov r8d, dword [rsp + 0x14]
test r8d, r8d
je 0x14000467b
cmp r15d, 1
je 0x14000467b
mov r14d, 0xfffffffb
mov eax, r14d
mov rdi, qword [rsp + 0x150]
mov r12, qword [rsp + 0x148]
mov rbx, qword [rsp + 0x160]
mov rsi, qword [rsp + 0x158]
mov r13, qword [rsp + 0x140]
mov r15, qword [rsp + 0x138]
add rsp, 0x168
pop r14
pop rbp
ret
mov eax, 0xfffffffd
jmp 0x14000467e