Function at 0x140317030
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, Ordinal_41
call fcn.1403983a0
sub rsp, rax
mov rbp, qword [rsp + 0x88]
mov r10, r9
mov r15, qword [rsp + 0x80]
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov ebx, dword [rbp]
test ebx, ebx
jns 0x140317081
mov dword [rbp], 0xffffffff
add rsp, 0x28
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp dword [rsp + 0x90], 0
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x20], r13
je 0x1403171b0
test ebx, ebx
je 0x1403170c6
nop dword [rax]
test rdi, rdi
je 0x1403170c6
movzx eax, byte [r14]
dec rdi
mov ecx, ebx
inc r14
xor byte [rcx + r15], al
movzx eax, byte [rcx + r15]
mov byte [rsi], al
inc rsi
inc ebx
and ebx, 0xf
jne 0x1403170a0
mov r9, qword [rsp + 0x98]
cmp rdi, 0x10
jb 0x140317174
mov r12, rsi
mov r13, rdi
shr r13, 4
mov rbp, r14
imul rax, r13, 0xfffffffffffffff0
sub r12, r15
sub rbp, r15
add rdi, rax
mov rax, r13
shl rax, 4
add rsi, rax
mov qword [rsp + 0x68], rsi
add r14, rax
mov rsi, qword [rsp + 0x78]
nop dword [rax]
mov r8, rsi
mov rdx, r15
mov rcx, r15
call r9
cmp ebx, 0x10
jae 0x14031714a
mov edx, reloc.WS2_32.dll_ntohs
mov ecx, ebx
sub edx, ebx
add rcx, r15
shr edx, 3
inc edx
mov rax, qword [rcx + rbp]
xor qword [rcx], rax
mov rax, qword [rcx]
mov qword [r12 + rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x140317132
mov r9, qword [rsp + 0x98]
add r12, 0x10
add rbp, 0x10
xor ebx, ebx
sub r13, 1
jne 0x140317110
mov rsi, qword [rsp + 0x68]
mov r10, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
test rdi, rdi
je 0x1403172bd
mov r8, r10
mov rdx, r15
mov rcx, r15
call r9
nop dword [rax]
mov ecx, ebx
inc ebx
movzx eax, byte [rcx + r14]
xor byte [r15 + rcx], al
movzx eax, byte [r15 + rcx]
mov byte [rsi + rcx], al
sub rdi, 1
jne 0x140317190
jmp 0x1403172bd
test ebx, ebx
je 0x1403171dc
test rdi, rdi
je 0x1403171dc
movzx edx, byte [r14]
dec rdi
mov ecx, ebx
inc r14
movzx eax, dl
xor al, byte [rcx + r15]
mov byte [rsi], al
inc rsi
inc ebx
mov byte [rcx + r15], dl
and ebx, 0xf
jne 0x1403171b4
mov r13, qword [rsp + 0x98]
cmp rdi, 0x10
jb 0x140317286
mov rbp, rdi
mov r12, rsi
shr rbp, 4
sub r12, r15
imul rax, rbp, 0xfffffffffffffff0
add rdi, rax
mov qword [rsp + 0x70], rdi
mov rdi, qword [rsp + 0x78]
nop dword [rax]
mov r8, rdi
mov rdx, r15
mov rcx, r15
call r13
cmp ebx, 0x10
jae 0x140317260
mov r9d, reloc.WS2_32.dll_ntohs
mov r8d, ebx
sub r9d, ebx
mov r10, r14
shr r9d, 3
add r8, r15
sub r10, rsi
inc r9d
nop dword [rax]
lea rcx, [r12 + r8]
mov rdx, qword [rcx + r10]
lea r8, [r8 + 8]
mov rax, rdx
xor rax, qword [r8 - 8]
mov qword [rcx], rax
mov qword [r8 - 8], rdx
sub r9, 1
jne 0x140317240
add rsi, 0x10
add r12, 0x10
add r14, 0x10
xor ebx, ebx
sub rbp, 1
jne 0x140317210
mov rdi, qword [rsp + 0x70]
mov r10, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
test rdi, rdi
je 0x1403172bd
mov r8, r10
mov rdx, r15
mov rcx, r15
call r13
nop word [rax + rax]
mov ecx, ebx
inc ebx
movzx edx, byte [rcx + r14]
movzx eax, dl
xor al, byte [rcx + r15]
mov byte [rsi + rcx], al
mov byte [rcx + r15], dl
sub rdi, 1
jne 0x1403172a0
mov dword [rbp], ebx
mov r12, qword [rsp + 0x60]
mov r13, qword [rsp + 0x20]
add rsp, 0x28
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret