Function at 0x1337c0eb0720
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x28]
sub rsp, 0x128
mov rax, qword [rdx]
mov ebx, ecx
mov rsi, qword [rdx + 0x58]
xor r8d, r8d
mov qword [rbp + 0x68], rax
mov rcx, qword [rax + 0x20]
call fcn.1337c0ed7b10
mov qword [rsp + 0x40], rax
mov rdi, rax
test rax, rax
je 0x1337c0eb0e2f
mov qword [rsp + 0x150], r12
mov qword [rsp + 0x120], r13
mov qword [rsp + 0x118], r14
mov qword [rsp + 0x110], r15
cmp ebx, 9
jne 0x1337c0eb087c
test qword [0x1337c120a560], 0x8000000
je 0x1337c0eb07a2
mov rcx, qword [0x1337c120a5c8]
mov r12, qword [rcx + 8]
mov r15d, dword [rcx + 0x1c]
jmp 0x1337c0eb07af
lea r12, [0x1337c11e1190]
mov r15d, 4
movzx eax, byte [rsi + 0x57]
movzx edx, r15w
shl dx, 2
mov rcx, rdi
add dx, ax
movzx eax, byte [rsi + 0x56]
add ax, 0xb
add dx, ax
call fcn.1337c0ed7d30
mov r14, rax
test rax, rax
je 0x1337c0eb0e07
mov rbx, qword [rax + 8]
xor r13d, r13d
or byte [rbx], 0x80
lea rdi, [rbx + 6]
mov dword [rbx + 1], r13d
movzx ecx, byte [rsi + 0x57]
mov byte [rbx + 5], cl
mov rcx, rdi
movzx r8d, byte [rsi + 0x57]
mov rdx, qword [rsi + 0x48]
call fcn.1337c1002910
movzx eax, byte [rsi + 0x57]
add rdi, rax
movzx eax, byte [rsi + 0x56]
mov byte [rdi], al
inc rdi
movzx r8d, byte [rsi + 0x56]
mov rcx, rdi
mov rdx, qword [rsi + 0x40]
call fcn.1337c1002910
movzx eax, byte [rsi + 0x56]
lea r9d, [r13 + 2]
lea r8d, [r13 + 1]
mov byte [rbp + 0x58], r13b
lea rdx, [rbp + 0x58]
xor ecx, ecx
add rdi, rax
call qword [0x1337c10078d0]
movzx ecx, byte [rbx]
mov rdx, r12
movzx eax, byte [rbp + 0x58]
and cl, 0x80
and al, 0x7f
mov r8d, r15d
or cl, al
shl r8, 2
mov byte [rbx], cl
lea rcx, [rdi + 4]
mov rbx, qword [rbp + 0x68]
mov eax, dword [rbx + 0x18]
mov dword [rdi], eax
call fcn.1337c1002910
and byte [rsi + 0x5d], 0xfe
jmp 0x1337c0eb0dbe
cmp ebx, 0xa
jne 0x1337c0eb0934
lea r9d, [rbx - 8]
xor ecx, ecx
lea r8d, [rbx - 9]
lea rdx, [rbp + 0x58]
call qword [0x1337c10078d0]
movzx eax, byte [rbp + 0x58]
shr al, 5
add al, 0x29
movzx ecx, al
movzx eax, word [rsi + 0x50]
mov byte [rbp + 0x58], cl
cmp cx, ax
jb 0x1337c0eb08b9
dec al
mov byte [rbp + 0x58], al
movzx ecx, al
cmp cl, 0x15
jb 0x1337c0eb0e07
movzx edx, cl
mov rcx, rdi
call fcn.1337c0ed7d30
mov r14, rax
test rax, rax
je 0x1337c0eb0e07
mov rbx, qword [rax + 8]
mov r9d, 2
movzx r8d, byte [rbp + 0x58]
mov rdx, rbx
sub r8d, 0x10
xor ecx, ecx
call qword [0x1337c10078d0]
movzx edx, byte [rbx]
and dl, 0x3f
or dl, 0x40
mov byte [rbx], dl
movzx ecx, dl
mov rax, qword [rsi + 0x38]
xor cl, byte [rax]
and cl, 4
xor cl, dl
mov byte [rbx], cl
movzx ecx, byte [rbp + 0x58]
mov rdx, qword [r14 + 8]
add rcx, 0xfffffffffffffff0
add rdx, rcx
mov rcx, qword [rsi + 0x40]
call fcn.1337c0eaf770
mov ecx, 0x1d
jmp 0x1337c0eb0db0
cmp ebx, 0xb
jne 0x1337c0eb0e07
mov edx, 0x93
mov rcx, rdi
call fcn.1337c0ed7d30
mov r14, rax
test rax, rax
je 0x1337c0eb0e07
lea r9d, [rbx - 9]
xor ecx, ecx
lea r8d, [rbx + 3]
lea rdx, [rsp + 0x30]
call qword [0x1337c10078d0]
xorps xmm0, xmm0
xorps xmm1, xmm1
xor r15d, r15d
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmmword [rsp + 0x70], xmm1
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmmword [rbp - 0x70], xmm1
mov qword [rsp + 0x58], r15
call fcn.1337c0eacdc0
movzx ebx, byte [rsi + 0x56]
lea rcx, [rsp + 0x74]
mov rdx, qword [rsi + 0x40]
add rax, rax
mov qword [rsp + 0x50], rax
mov r8d, ebx
mov rax, qword [rsi + 8]
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rsp + 0x68], xmm1
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x70], eax
call fcn.1337c1002910
movzx r10d, byte [0x1337c120a644]
mov byte [rbp - 0x78], bl
cmp r10b, 0xc
jb 0x1337c0eb0a35
movsd xmm0, qword [rsp + 0x30]
mov r8b, reloc.SHLWAPI.dll_SHCreateMemStream
mov eax, dword [rsp + 0x38]
movsd qword [rbp - 0x48], xmm0
mov dword [rbp - 0x40], eax
jbe 0x1337c0eb0a4f
lea r9, [rsp + 0x3c]
nop dword [rax]
movzx ecx, r8b
lea r9, [r9 + 1]
mov eax, 0xaaaaaaab
inc r8b
mul ecx
shr edx, 3
lea eax, [rdx + rdx*2]
shl eax, 2
sub ecx, eax
movsxd rax, ecx
lea rcx, [rbp - 0x48]
add rcx, rax
movzx eax, byte [r9 - 1]
xor byte [rcx], al
cmp r8b, r10b
jb 0x1337c0eb0a00
jmp 0x1337c0eb0a4f
xor eax, eax
lea rdx, [rsp + 0x30]
mov r8, r10
mov qword [rbp - 0x48], rax
lea rcx, [rbp - 0x48]
mov dword [rbp - 0x40], eax
call fcn.1337c1002910
lea rcx, [0x1337c120a6a8]
call qword [0x1337c1007400]
lea rcx, [rbp + 0x58]
call qword [0x1337c1007430]
movabs rcx, 0xfe624e212ac18000
lea r13, [0x1337c120a540]
add rcx, qword [rbp + 0x58]
movabs rax, 0x1ca213d840baf7d5
imul rcx
mov r12d, 8
sar rdx, 0x19
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movzx eax, byte [0x1337c120a543]
imul rcx, rdx, 0x7530
cmp rcx, qword [r13 + rax*8 + 0x1a0]
jge 0x1337c0eb0aca
mov rbx, qword [r13 + rax*8 + 0x190]
test rbx, rbx
jne 0x1337c0eb0ba4
jmp 0x1337c0eb0dfa
mov r9d, 2
lea r12, [rcx + 0x7530]
lea rdx, [rbp - 0x18]
xor ecx, ecx
lea r8d, [r9 + 0x1e]
call qword [0x1337c10078d0]
call fcn.1337c0f2b2b0
mov rbx, rax
test rax, rax
je 0x1337c0eb0df2
call fcn.1337c0f2e8c0
lea r9, [rbp - 0x18]
mov dword [rsp + 0x28], 1
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rdx, rax
mov rcx, rbx
call fcn.1337c0f2b4e0
cmp eax, 1
jne 0x1337c0eb0df2
xor r9d, r9d
lea edx, [rax + 8]
lea r8d, [rax + 0xb]
mov rcx, rbx
call fcn.1337c0f2b1c0
cmp eax, 1
jne 0x1337c0eb0df2
xor ecx, ecx
call fcn.1337c0f2b220
mov rax, r15
mov ecx, 8
cmp byte [0x1337c120a543], al
cmove rax, rcx
mov rcx, r15
mov qword [rax + r13 + 0x1a0], r12
mov r12d, 8
cmp byte [0x1337c120a543], cl
cmove rcx, r12
mov rcx, qword [rcx + r13 + 0x190]
call fcn.1337c0f2b220
mov rax, r15
cmp byte [0x1337c120a543], al
cmove rax, r12
mov qword [rax + r13 + 0x190], rbx
cmp byte [0x1337c120a543], r15b
sete byte [0x1337c120a543]
lea rax, [rbp - 0x48]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call fcn.1337c0f2be60
cmp eax, 1
jne 0x1337c0eb0dfa
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], r12d
lea r8, [rbp + 0x58]
xor edx, edx
mov rcx, rbx
call fcn.1337c0f2be90
cmp eax, 1
jne 0x1337c0eb0dfa
lea r9, [rsp + 0x58]
mov dword [rsp + 0x20], 0x34
lea r8, [rbp + 0x58]
mov rcx, rbx
lea rdx, [rsp + 0x58]
call fcn.1337c0f2be90
cmp eax, 1
jne 0x1337c0eb0dfa
lea r8, [rbp + 0x58]
mov rcx, rbx
lea rdx, [rbp - 0x74]
call fcn.1337c0f2bd40
cmp eax, 1
jne 0x1337c0eb0dfa
mov edx, reloc.WS2_32.dll_recv
lea r9, [rbp - 0x74]
mov r8d, edx
mov rcx, rbx
call fcn.1337c0f2b1c0
cmp eax, 1
jne 0x1337c0eb0dfa
lea rcx, [0x1337c120a6a8]
call qword [0x1337c1007410]
movzx eax, byte [rsi + 0x56]
movzx r13d, byte [0x1337c120a644]
movzx ebx, byte [rsi + 0x57]
mov byte [rbp + 0x60], al
mov rax, qword [rsi + 0x40]
mov qword [rbp - 0x50], rax
lea r12d, [r13 + 0x67]
mov rax, qword [rsi + 0x48]
add r12d, ebx
mov qword [rbp - 0x60], rax
mov rax, qword [rsi + 0x38]
mov r15d, dword [rax + 1]
cmp word [r14], r12w
jae 0x1337c0eb0c91
xor r13d, r13d
jmp 0x1337c0eb0da0
mov rdi, qword [r14 + 8]
lea rdx, [rbp + 0x58]
mov r9d, 2
mov qword [rbp - 0x58], rdi
xor ecx, ecx
lea r8d, [r9 - 1]
call qword [0x1337c10078d0]
cmp r15d, 0xcf43336b
mov dword [rdi + 1], r15d
mov eax, 0xc0
mov byte [rdi + 5], bl
mov ecx, 0xf0
cmove ecx, eax
movzx eax, byte [rbp + 0x58]
and al, 0xf
or cl, al
mov byte [rdi], cl
add rdi, 6
test bl, bl
je 0x1337c0eb0cee
mov rdx, qword [rbp - 0x60]
mov r8, rbx
mov rcx, rdi
call fcn.1337c1002910
add rdi, rbx
mov byte [rdi], r13b
inc rdi
test r13b, r13b
je 0x1337c0eb0d0c
mov r8, r13
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1337c1002910
add rdi, r13
movaps xmm0, xmmword [rsp + 0x50]
lea rdx, [0x1337c11e0fb0]
movups xmmword [rdi], xmm0
mov rcx, rdx
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rdi + 0x10], xmm1
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rdi + 0x20], xmm0
movaps xmm1, xmmword [rbp - 0x80]
movups xmmword [rdi + 0x30], xmm1
movaps xmm0, xmmword [rbp - 0x70]
movups xmmword [rdi + 0x40], xmm0
add rdi, 0x50
xor r13d, r13d
mov r10d, r13d
mov eax, r13d
nop dword [rax]
cmp dword [rcx], r15d
je 0x1337c0eb0d62
inc eax
add rcx, 0x58
cmp eax, 4
jb 0x1337c0eb0d50
jmp 0x1337c0eb0d6b
imul r10, rax, 0x58
add r10, rdx
jne 0x1337c0eb0d6d
int 0x2c
mov rax, qword [rbp - 0x58]
lea r9d, [r12 - 0x10]
mov r8, qword [rbp - 0x50]
mov rcx, r10
movzx edx, byte [rbp + 0x60]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.1337c0eb4b70
mov rdi, qword [rsp + 0x40]
test eax, eax
cmovs r12w, r13w
movzx r13d, r12w
movzx eax, r13w
mov dword [r14], eax
test eax, eax
je 0x1337c0eb0e07
mov ecx, 0x1e
mov edx, 1
call fcn.1337c0eaf970
mov rbx, qword [rbp + 0x68]
movzx r8d, word [0x1337c120a63e]
xor edx, edx
movzx eax, word [rsi + 0x1a]
mov rcx, rbx
mov r9d, dword [r14]
div r8d
mov r8, qword [rsp + 0x40]
mov word [rsp + 0x28], dx
mov rdx, qword [rsi + 8]
mov dword [rsp + 0x20], 1
call fcn.1337c0eb1db0
jmp 0x1337c0eb0e0f
mov rcx, rbx
call fcn.1337c0f2b220
lea rcx, [0x1337c120a6a8]
call qword [0x1337c1007410]
mov rcx, rdi
call fcn.1337c0ed7bc0
mov r14, qword [rsp + 0x118]
mov r13, qword [rsp + 0x120]
mov r12, qword [rsp + 0x150]
mov r15, qword [rsp + 0x110]
add rsp, 0x128
pop rdi
pop rsi
pop rbx
pop rbp
ret