Function at 0x140001500
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r14, qword [rsp + 0xd0]
mov rbx, rcx
movsxd r13, r8d
mov rbp, r9
mov rsi, rdx
mov qword [rsp + 0x30], r13
lea rcx, [r13 + 1]
call fcn.14003f754
lea r8, [r13 + 1]
mov qword [rsp + 0x60], rax
xor edx, edx
mov rcx, rax
mov r12, rax
call fcn.14004ca60
mov r8, r13
mov rdx, rsi
mov rcx, r12
call fcn.14004c3b0
lea rcx, [r13 + 1]
call fcn.14003f754
lea r8, [r13 + 1]
mov qword [rsp + 0x58], rax
xor edx, edx
mov rcx, rax
mov r15, rax
call fcn.14004ca60
mov r8, r13
mov rdx, rsi
mov rcx, r15
call fcn.14004c3b0
lea rdi, [rbx + 0x3d0]
mov qword [rsp + 0x28], rdi
test rbp, rbp
je 0x1400019f7
mov dword [rbx + 0x3cc], 0x20
mov dword [rdi], reloc.WS2_32.dll_recv
movups xmm0, xmmword [r14]
movups xmmword [rbx + 0x3d8], xmm0
movups xmm0, xmmword [r14]
movups xmmword [rbx + 0x3f8], xmm0
mov eax, dword [rbx + 0x3cc]
cmp eax, 0x10
je 0x1400015f0
cmp eax, 0x18
lea r15, [rbx + 0x3d4]
mov eax, reloc.WS2_32.dll_ntohl
jne 0x140001613
cmp dword [rdi], 0x20
mov ecx, reloc.WS2_32.dll_inet_ntoa
cmovne eax, ecx
jmp 0x140001613
mov edx, dword [rdi]
cmp edx, 0x10
jne 0x1400015fc
lea eax, [rdx - 6]
jmp 0x14000160c
cmp edx, 0x18
mov eax, reloc.WS2_32.dll_ntohl
mov ecx, reloc.WS2_32.dll_inet_ntoa
cmove eax, ecx
lea r15, [rbx + 0x3d4]
mov dword [r15], eax
lea rsi, [rbx + 0xc]
mov eax, dword [rdi]
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd r14, eax
xor edi, edi
mov r12, r14
mov qword [rsp + 0xc8], r14
test r12, r12
jle 0x14000164b
mov r8, r12
xor edx, edx
shl r8, 2
mov rcx, rsi
call fcn.14004ca60
mov r13d, dword [r15]
inc edi
add rsi, 0x20
cmp edi, r13d
jle 0x140001635
xor esi, esi
test r13d, r13d
js 0x14000168d
lea rdi, [rbx + 0x1ec]
test r12, r12
jle 0x14000167d
mov r8, r12
xor edx, edx
shl r8, 2
mov rcx, rdi
call fcn.14004ca60
mov r13d, dword [r15]
inc esi
add rdi, 0x20
cmp esi, r13d
jle 0x140001667
jmp 0x140001695
mov qword [rsp + 0xc8], r12
mov eax, dword [rbx + 0x3cc]
lea r10, [rbx + 0x418]
cdq
inc r13d
and edx, 3
imul r13d, r14d
add eax, edx
mov rdx, r10
sar eax, 2
movsxd rsi, eax
test eax, eax
jle 0x1400016f9
mov r8d, esi
nop
movzx ecx, byte [rbp]
lea rdx, [rdx + 4]
shl ecx, 0x18
lea rbp, [rbp + 4]
mov dword [rdx - 4], ecx
movzx eax, byte [rbp - 3]
shl eax, 0x10
or eax, ecx
mov dword [rdx - 4], eax
movzx ecx, byte [rbp - 2]
shl ecx, 8
or ecx, eax
mov dword [rdx - 4], ecx
movzx eax, byte [rbp - 1]
or eax, ecx
mov dword [rdx - 4], eax
sub r8, 1
jne 0x1400016c0
xor r11d, r11d
mov rbp, rsi
test esi, esi
jle 0x140001752
xor edi, edi
cmp r11d, r13d
jge 0x140001895
mov ecx, dword [r10]
mov eax, r11d
cdq
inc rdi
idiv r14d
movsxd r9, eax
mov eax, r11d
cdq
inc r11d
idiv r14d
movsxd r8, edx
lea rdx, [r8 + r9*8]
mov dword [rbx + rdx*4 + 0xc], ecx
mov eax, dword [r15]
sub eax, r9d
cdqe
lea rcx, [r8 + rax*8]
mov eax, dword [r10]
add r10, 4
mov dword [rbx + rcx*4 + 0x1ec], eax
cmp rdi, rbp
jl 0x140001705
cmp r11d, r13d
jge 0x140001895
lea rdi, [0x140086bf0]
lea r10, [rbx + 0x41c]
nop dword [rax]
mov r8d, dword [rbx + rbp*4 + 0x414]
movsxd rdx, r8d
mov rax, rdx
sar rax, 0x10
movzx ecx, al
lea rax, [0x140000000]
movsx r9d, byte [rcx + rax + 0x839f0]
movsx eax, byte [rdi]
inc rdi
xor r9d, eax
mov qword [rsp + 0x40], rdi
shl r9d, 8
mov rax, rdx
sar rax, 8
movzx ecx, al
lea rax, [0x140000000]
movzx eax, byte [rcx + rax + 0x839f0]
lea rcx, [0x140000000]
xor r9d, eax
movzx eax, dl
shl r9d, 8
movzx eax, byte [rax + rcx + 0x839f0]
xor r9d, eax
mov eax, r8d
shr rax, 0x18
shl r9d, 8
movzx eax, byte [rax + rcx + 0x839f0]
xor r9d, eax
xor dword [rbx + 0x418], r9d
cmp esi, 8
je 0x14000193c
cmp rbp, 1
jle 0x140001821
lea rcx, [rbp - 1]
nop dword [rax]
mov eax, dword [r10 - 4]
xor dword [r10], eax
lea r10, [r10 + 4]
sub rcx, 1
jne 0x140001810
lea r10, [rbx + 0x41c]
xor esi, esi
test rbp, rbp
jle 0x140001882
lea rdi, [rbx + 0x418]
cmp r11d, r13d
jge 0x14000188d
mov ecx, dword [rdi]
mov eax, r11d
cdq
inc rsi
idiv r14d
movsxd r9, eax
mov eax, r11d
cdq
inc r11d
idiv r14d
movsxd r8, edx
lea rdx, [r8 + r9*8]
mov dword [rbx + rdx*4 + 0xc], ecx
mov eax, dword [r15]
sub eax, r9d
cdqe
lea rcx, [r8 + rax*8]
mov eax, dword [rdi]
add rdi, 4
mov dword [rbx + rcx*4 + 0x1ec], eax
cmp rsi, rbp
jl 0x140001836
mov rdi, qword [rsp + 0x40]
mov esi, ebp
cmp r11d, r13d
jl 0x140001770
mov r12, qword [rsp + 0xc8]
mov esi, 1
cmp dword [r15], esi
jle 0x14000191d
lea rdi, [rbx + 0x20c]
test r12, r12
jle 0x140001912
mov r10, rdi
lea r14, [0x140000000]
mov r11, r12
nop dword [rax + rax]
mov eax, dword [r10]
lea r10, [r10 + 4]
mov edx, eax
movsxd r9, eax
shr rdx, 0x18
mov rax, r9
sar rax, 0x10
movzx ecx, al
mov rax, r9
sar rax, 8
mov r8d, dword [r14 + rdx*4 + 0x85bf0]
xor r8d, dword [r14 + rcx*4 + 0x85ff0]
movzx ecx, al
movzx eax, r9b
xor r8d, dword [r14 + rcx*4 + 0x863f0]
xor r8d, dword [r14 + rax*4 + 0x867f0]
mov dword [r10 - 4], r8d
sub r11, 1
jne 0x1400018c0
inc esi
add rdi, 0x20
cmp esi, dword [r15]
jl 0x1400018a6
mov r15, qword [rsp + 0x58]
lea rdi, [rbx + 0x3d0]
mov r13, qword [rsp + 0x30]
mov r12, qword [rsp + 0x60]
mov byte [rbx + 8], 1
jmp 0x1400019fc
mov rcx, r10
mov edx, 3
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rcx - 4]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x140001950
mov eax, dword [rbx + 0x424]
lea r9, [0x140000000]
mov ecx, eax
movsxd rdx, eax
shr rcx, 0x18
mov rax, rdx
sar rax, 0x10
movsx r8d, byte [rcx + r9 + 0x839f0]
movzx ecx, al
shl r8d, 8
movzx eax, byte [rcx + r9 + 0x839f0]
xor r8d, eax
mov rax, rdx
sar rax, 8
shl r8d, 8
movzx ecx, al
movzx eax, byte [rcx + r9 + 0x839f0]
xor r8d, eax
movzx eax, dl
shl r8d, 8
movzx eax, byte [rax + r9 + 0x839f0]
xor r8d, eax
xor dword [rbx + 0x428], r8d
cmp rbp, 5
jle 0x140001828
lea rcx, [rbx + 0x42c]
lea rdx, [rbp - 5]
mov eax, dword [rcx - 4]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x1400019e1
xor esi, esi
jmp 0x14000182f
mov qword [rsp + 0x28], rdi
cmp byte [rbx + 8], 0
je 0x140002166
test r13, r13
je 0x140002166
movsxd r9, dword [rdi]
xor edx, edx
mov rax, r13
div r9
test rdx, rdx
jne 0x140002166
xor esi, esi
mov qword [rsp + 0x38], r12
mov dword [rsp + 0xb0], esi
mov r14, r12
mov qword [rsp + 0x20], r15
mov r12, r15
test rax, rax
je 0x140002166
lea r10, [rbx + 0x3f8]
nop dword [rax]
cmp byte [rbx + 8], 0
mov r8, r14
je 0x1400020f1
cmp r9d, 0x10
jne 0x140001e10
movzx esi, byte [r14]
lea rdx, [r14 + 1]
movzx eax, byte [rdx]
movzx ebp, byte [rdx + 3]
movzx r14d, byte [rdx + 7]
movzx ecx, byte [rdx + 0xb]
movzx r15d, byte [rdx + 0xe]
mov r13d, dword [rbx + 0x3d4]
shl eax, 0x10
shl esi, 0x18
or esi, eax
shl ebp, 0x18
movzx eax, byte [rdx + 1]
shl eax, 8
or esi, eax
shl r14d, 0x18
movzx eax, byte [rdx + 2]
or esi, eax
shl ecx, 0x18
movzx eax, byte [rdx + 4]
xor esi, dword [rbx + 0x1ec]
shl eax, 0x10
or ebp, eax
movzx eax, byte [rdx + 5]
shl eax, 8
or ebp, eax
movzx eax, byte [rdx + 6]
or ebp, eax
movzx eax, byte [rdx + 8]
xor ebp, dword [rbx + 0x1f0]
shl eax, 0x10
or r14d, eax
movzx eax, byte [rdx + 9]
shl eax, 8
or r14d, eax
movzx eax, byte [rdx + 0xa]
or r14d, eax
movzx eax, byte [rdx + 0xc]
xor r14d, dword [rbx + 0x1f4]
shl eax, 0x10
or ecx, eax
movzx eax, byte [rdx + 0xd]
shl eax, 8
or r15d, eax
or r15d, ecx
xor r15d, dword [rbx + 0x1f8]
cmp r13d, 1
jle 0x140001c5a
lea r12d, [r13 - 1]
lea r13, [0x140000000]
lea rdi, [rbx + 0x214]
nop dword [rax + rax]
movsxd r8, r15d
lea rdi, [rdi + 0x20]
movsxd r9, r14d
mov rax, r8
sar rax, 0x10
movzx ecx, al
mov rax, r9
sar rax, 8
movsxd r11, esi
movsxd r10, ebp
mov edx, esi
shr rdx, 0x18
mov esi, dword [r13 + rdx*4 + 0x84bf0]
xor esi, dword [r13 + rcx*4 + 0x84ff0]
movzx ecx, al
mov edx, ebp
shr rdx, 0x18
movzx eax, r10b
xor esi, dword [r13 + rcx*4 + 0x853f0]
mov ebp, dword [r13 + rdx*4 + 0x84bf0]
xor esi, dword [r13 + rax*4 + 0x857f0]
mov rax, r8
xor esi, dword [rdi - 0x28]
sar rax, 8
movzx ecx, al
mov rax, r11
sar rax, 0x10
mov edx, r14d
shr rdx, 0x18
xor ebp, dword [r13 + rcx*4 + 0x853f0]
movzx ecx, al
movzx eax, r9b
mov r14d, dword [r13 + rdx*4 + 0x84bf0]
sar r9, 0x10
xor ebp, dword [r13 + rcx*4 + 0x84ff0]
xor ebp, dword [r13 + rax*4 + 0x857f0]
mov rax, r11
xor ebp, dword [rdi - 0x24]
sar rax, 8
movzx ecx, al
mov rax, r10
sar rax, 0x10
sar r10, 8
xor r14d, dword [r13 + rcx*4 + 0x853f0]
movzx ecx, al
movzx eax, r8b
xor r14d, dword [r13 + rcx*4 + 0x84ff0]
xor r14d, dword [r13 + rax*4 + 0x857f0]
xor r14d, dword [rdi - 0x20]
mov ecx, r15d
shr rcx, 0x18
movzx eax, r9b
mov r15d, dword [r13 + rcx*4 + 0x84bf0]
xor r15d, dword [r13 + rax*4 + 0x84ff0]
movzx eax, r10b
xor r15d, dword [r13 + rax*4 + 0x853f0]
movzx eax, r11b
xor r15d, dword [r13 + rax*4 + 0x857f0]
xor r15d, dword [rdi - 0x1c]
sub r12, 1
jne 0x140001b30
mov r13d, dword [rbx + 0x3d4]
mov r12, qword [rsp + 0x20]
lea r8, [0x140000000]
movsxd r9, r15d
movsxd r10, ebp
movsxd r11, r14d
movsxd rdi, r13d
shl rdi, 5
add rdi, rbx
mov ecx, esi
shr rcx, 0x18
mov edx, dword [rdi + 0x1ec]
mov eax, edx
sar eax, 0x18
xor al, byte [rcx + r8 + 0x83af0]
mov byte [r12], al
mov rax, r9
sar rax, 0x10
movzx ecx, al
mov eax, edx
sar eax, 0x10
xor al, byte [rcx + r8 + 0x83af0]
mov byte [r12 + 1], al
mov rax, r11
sar rax, 8
movzx ecx, al
mov eax, edx
sar eax, 8
xor al, byte [rcx + r8 + 0x83af0]
mov byte [r12 + 2], al
movzx eax, r10b
mov ecx, ebp
lea rbp, [0x140000000]
shr rcx, 0x18
xor dl, byte [rax + r8 + 0x83af0]
mov byte [r12 + 3], dl
mov edx, dword [rdi + 0x1f0]
mov eax, edx
sar eax, 0x18
xor al, byte [rcx + rbp + 0x83af0]
mov byte [r12 + 4], al
movsxd r8, esi
mov rax, r8
sar rax, 0x10
movzx ecx, al
mov eax, edx
sar eax, 0x10
xor al, byte [rcx + rbp + 0x83af0]
mov byte [r12 + 5], al
mov rax, r9
sar rax, 8
movzx ecx, al
mov eax, edx
sar eax, 8
xor al, byte [rcx + rbp + 0x83af0]
mov byte [r12 + 6], al
movzx eax, r11b
mov ecx, r14d
shr rcx, 0x18
xor dl, byte [rax + rbp + 0x83af0]
mov byte [r12 + 7], dl
mov edx, dword [rdi + 0x1f4]
mov eax, edx
sar eax, 0x18
xor al, byte [rcx + rbp + 0x83af0]
mov byte [r12 + 8], al
mov rax, r10
sar rax, 0x10
movzx ecx, al
mov eax, edx
sar eax, 0x10
xor al, byte [rcx + rbp + 0x83af0]
mov byte [r12 + 9], al
mov rax, r8
sar rax, 8
movzx ecx, al
mov eax, edx
sar eax, 8
xor al, byte [rcx + rbp + 0x83af0]
mov byte [r12 + 0xa], al
movzx eax, r9b
xor dl, byte [rax + rbp + 0x83af0]
mov byte [r12 + 0xb], dl
mov edx, dword [rdi + 0x1f8]
mov eax, edx
sar eax, 0x18
sar r11, 0x10
sar r10, 8
mov ecx, r15d
shr rcx, 0x18
xor al, byte [rcx + rbp + 0x83af0]
mov byte [r12 + 0xc], al
mov eax, edx
sar eax, 0x10
movzx ecx, r11b
xor al, byte [rcx + rbp + 0x83af0]
mov byte [r12 + 0xd], al
mov eax, edx
sar eax, 8
movzx ecx, r10b
xor al, byte [rcx + rbp + 0x83af0]
mov byte [r12 + 0xe], al
movzx eax, r8b
xor dl, byte [rax + rbp + 0x83af0]
mov byte [r12 + 0xf], dl
jmp 0x1400020d4
mov eax, r9d
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd rdi, eax
xor eax, eax
cmp edi, 4
je 0x140001e2f
cmp edi, 6
setne al
inc rax
shl rax, 5
lea rbp, [0x140000000]
lea r13, [rbx + 0x458]
mov r14, rdi
mov r9, r13
mov esi, dword [rax + rbp + 0x86c1c]
mov r12d, dword [rax + rbp + 0x86c24]
mov r15d, dword [rax + rbp + 0x86c2c]
mov dword [rsp + 0x4c], esi
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x50], r15d
test edi, edi
jle 0x140001ec9
lea r10, [rbx + 0x1ec]
mov r11, rdi
nop word [rax + rax]
movzx eax, byte [r8]
lea r8, [r8 + 4]
shl eax, 0x18
lea r10, [r10 + 4]
mov dword [r9], eax
movzx edx, byte [r8 - 3]
shl edx, 0x10
or edx, eax
mov dword [r9], edx
movzx ecx, byte [r8 - 2]
shl ecx, 8
or ecx, edx
mov rdx, r9
mov dword [r9], ecx
movzx eax, byte [r8 - 1]
or eax, ecx
mov dword [r9], eax
add r9, 4
xor eax, dword [r10 - 4]
mov dword [rdx], eax
sub r11, 1
jne 0x140001e80
cmp dword [rbx + 0x3d4], 1
mov dword [rsp + 0xc8], 1
jle 0x140001ffd
lea eax, [rdi*4]
mov rbp, 0xfffffffffffffdb4
cdqe
lea rcx, [rbx + 0x438]
mov qword [rsp + 0x40], rax
nop dword [rax]
test r14, r14
jle 0x140001fbc
mov r14d, r12d
mov r10d, esi
sub r14d, esi
lea r12, [0x140000000]
sub r15d, esi
mov r11, r13
mov rsi, rdi
lea eax, [r14 + r10]
cdq
lea r11, [r11 + 4]
idiv edi
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
lea eax, [r15 + r10]
cdq
sar rcx, 8
idiv edi
movzx r8d, cl
movsxd rax, edx
mov r9d, dword [r12 + r8*4 + 0x853f0]
movzx ecx, byte [rbx + rax*4 + 0x458]
mov eax, r10d
cdq
inc r10d
idiv edi
xor r9d, dword [r12 + rcx*4 + 0x857f0]
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
sar rcx, 0x10
movzx eax, cl
xor r9d, dword [r12 + rax*4 + 0x84ff0]
movzx eax, byte [r11 - 1]
xor r9d, dword [r12 + rax*4 + 0x84bf0]
xor r9d, dword [r11 + rbp - 4]
mov dword [r11 - 0x24], r9d
sub rsi, 1
jne 0x140001f22
mov r12d, dword [rsp + 0x48]
lea rcx, [rbx + 0x438]
mov esi, dword [rsp + 0x4c]
mov r14, rdi
mov r15d, dword [rsp + 0x50]
mov rax, qword [rsp + 0x40]
mov rdx, rcx
mov r8, rax
mov rcx, r13
call fcn.14004c3b0
mov ecx, dword [rsp + 0xc8]
add rbp, 0x20
mov rax, qword [rsp + 0x40]
inc ecx
cmp ecx, dword [rbx + 0x3d4]
mov dword [rsp + 0xc8], ecx
lea rcx, [rbx + 0x438]
jl 0x140001f00
lea rbp, [0x140000000]
xor r10d, r10d
test r14, r14
jle 0x1400020cf
mov r9, qword [rsp + 0x20]
sub esi, r12d
sub r15d, r12d
nop dword [rax]
nop dword [rax + rax]
movsxd rax, dword [rbx + 0x3d4]
lea r9, [r9 + 4]
lea r13, [r13 + 4]
lea rcx, [r10 + rax*8]
inc r10
mov r8d, dword [rbx + rcx*4 + 0x1ec]
mov eax, r8d
movzx ecx, byte [r13 - 1]
sar eax, 0x18
xor al, byte [rcx + rbp + 0x83af0]
mov byte [r9 - 4], al
lea eax, [rsi + r12]
cdq
idiv edi
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
mov eax, r8d
sar eax, 0x10
sar rcx, 0x10
movzx edx, cl
xor al, byte [rdx + rbp + 0x83af0]
mov byte [r9 - 3], al
mov eax, r12d
cdq
idiv edi
movsxd rax, edx
mov ecx, dword [rbx + rax*4 + 0x458]
mov eax, r8d
sar eax, 8
sar rcx, 8
movzx edx, cl
xor al, byte [rdx + rbp + 0x83af0]
mov byte [r9 - 2], al
lea eax, [r15 + r12]
cdq
inc r12d
idiv edi
movsxd rax, edx
movzx ecx, byte [rbx + rax*4 + 0x458]
xor r8b, byte [rcx + rbp + 0x83af0]
mov byte [r9 - 1], r8b
cmp r10, r14
jl 0x140002020
mov r12, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
lea r10, [rbx + 0x3f8]
mov r14, qword [rsp + 0x38]
mov esi, dword [rsp + 0xb0]
mov r13, qword [rsp + 0x30]
cmp byte [rbx + 8], 0
mov rcx, r12
je 0x140002121
xor edx, edx
cmp dword [rdi], edx
jle 0x140002121
mov r8, r10
sub r8, r12
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
inc edx
xor byte [rcx], al
lea rcx, [rcx + 1]
cmp edx, dword [rdi]
jl 0x140002110
movsxd r8, dword [rdi]
mov rdx, r14
mov rcx, r10
call fcn.14004c3b0
movsxd r9, dword [rdi]
lea r10, [rbx + 0x3f8]
xor edx, edx
mov rax, r13
div r9
inc esi
add r14, r9
add r12, r9
movsxd rcx, esi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x20], r12
mov dword [rsp + 0xb0], esi
cmp rcx, rax
jb 0x140001a50
movsxd r8, dword [rsp + 0xc0]
mov rbx, qword [rsp + 0x58]
lea rax, [r8 - 1]
movsx edx, byte [rax + rbx]
lea rcx, [rax + rbx]
sub r8d, edx
movsxd r8, r8d
cmp rax, r8
jl 0x1400021b7
nop word [rax + rax]
movsx eax, byte [rcx]
cmp eax, edx
jne 0x1400021aa
mov byte [rcx], 0
dec rcx
mov rax, rcx
sub rax, rbx
cmp rax, r8
jge 0x140002190
jmp 0x1400021b7
mov r8, r13
xor edx, edx
mov rcx, rbx
call fcn.14004ca60
mov rcx, qword [rsp + 0x60]
call fcn.14003f74c
mov rax, rbx
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret