Function at 0x1800fe390
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
mov rbp, rsp
mov eax, gethostbyname
call fcn.1801c83e0
sub rsp, rax
cmp dword [rbp + 0x58], 0
mov r11d, r8d
mov rsi, rdx
mov r12, rcx
je 0x1800fe647
mov rbx, qword [rbp + 0x50]
lea edi, [r11 - 8]
movzx eax, byte [rbx + 1]
movzx r10d, byte [rbx]
movzx r8d, byte [rbx + 4]
shl eax, 8
mov qword [rbp - 8], rbx
or r10d, eax
movzx eax, byte [rbx + 2]
shl eax, 0x10
or r10d, eax
movzx eax, byte [rbx + 3]
shl eax, 0x18
or r10d, eax
movzx eax, byte [rbx + 5]
shl eax, 8
or r8d, eax
movzx eax, byte [rbx + 6]
shl eax, 0x10
or r8d, eax
movzx eax, byte [rbx + 7]
shl eax, 0x18
or r8d, eax
test edi, edi
js 0x1800fe4f7
mov rbx, qword [rbp + 0x48]
lea r13d, [rdi + 8]
shr r13, 3
mov eax, r13d
neg eax
lea edi, [rdi + rax*8]
movzx edx, byte [r12]
movzx eax, byte [r12 + 1]
movzx ecx, byte [r12 + 4]
shl eax, 8
add r12, 8
or edx, eax
movzx eax, byte [r12 - 6]
shl eax, 0x10
or edx, eax
movzx eax, byte [r12 - 5]
shl eax, 0x18
or edx, eax
movzx eax, byte [r12 - 3]
shl eax, 8
xor edx, r10d
or ecx, eax
movzx eax, byte [r12 - 2]
mov dword [rbp - 0x10], edx
shl eax, 0x10
mov rdx, rbx
or ecx, eax
movzx eax, byte [r12 - 1]
shl eax, 0x18
or ecx, eax
xor ecx, r8d
mov dword [rbp - 0xc], ecx
lea rcx, [rbp - 0x10]
call fcn.1800fe0e0
mov r10d, dword [rbp - 0x10]
mov r8d, dword [rbp - 0xc]
movzx eax, r10b
add rsi, 8
mov byte [rsi - 8], al
mov eax, r10d
shr eax, 8
mov byte [rsi - 7], al
mov eax, r10d
shr eax, 0x10
mov byte [rsi - 6], al
mov eax, r10d
shr eax, 0x18
mov byte [rsi - 5], al
movzx eax, r8b
mov byte [rsi - 4], al
mov eax, r8d
shr eax, 8
mov byte [rsi - 3], al
mov eax, r8d
shr eax, 0x10
mov byte [rsi - 2], al
mov eax, r8d
shr eax, 0x18
dec r13
mov byte [rsi - 1], al
jne 0x1800fe431
mov rbx, qword [rbp - 8]
cmp edi, 0xfffffff8
je 0x1800fe5fb
xor edx, edx
lea ecx, [rdi + 8]
movsxd rax, ecx
mov r9d, edx
add r12, rax
dec ecx
cmp ecx, 7
ja case.default.0x1800fe52d
movsxd rax, ecx
lea rcx, sym.AliAuthSDK.dll_CB9L_7.qqAbQQMYOd__cGhb1_j__94QEyzIa__9fXt
mov eax, dword [rcx + rax*4 + 0xfe8d0]
add rax, rcx
jmp rax
movzx edx, byte [r12 - 1]
dec r12
shl edx, 0x18
movzx eax, byte [r12 - 1]
dec r12
shl eax, 0x10
or edx, eax
movzx eax, byte [r12 - 1]
dec r12
shl eax, 8
or edx, eax
movzx eax, byte [r12 - 1]
dec r12
or edx, eax
movzx r9d, byte [r12 - 1]
dec r12
shl r9d, 0x18
movzx eax, byte [r12 - 1]
dec r12
shl eax, 0x10
or r9d, eax
movzx eax, byte [r12 - 1]
dec r12
shl eax, 8
or r9d, eax
movzx eax, byte [r12 - 1]
or r9d, eax
xor edx, r8d
xor r9d, r10d
lea rcx, [rbp - 0x10]
mov dword [rbp - 0xc], edx
mov rdx, qword [rbp + 0x48]
mov dword [rbp - 0x10], r9d
call fcn.1800fe0e0
mov r10d, dword [rbp - 0x10]
mov r8d, dword [rbp - 0xc]
movzx eax, r10b
mov byte [rsi], al
mov eax, r10d
shr eax, 8
mov byte [rsi + 1], al
mov eax, r10d
shr eax, 0x10
mov byte [rsi + 2], al
mov eax, r10d
shr eax, 0x18
mov byte [rsi + 3], al
movzx eax, r8b
mov byte [rsi + 4], al
mov eax, r8d
shr eax, 8
mov byte [rsi + 5], al
mov eax, r8d
shr eax, 0x10
mov byte [rsi + 6], al
mov eax, r8d
shr eax, 0x18
mov byte [rsi + 7], al
mov byte [rbx], r10b
mov eax, r10d
shr eax, 8
mov byte [rbx + 1], al
mov eax, r10d
shr r10d, 0x18
shr eax, 0x10
mov byte [rbx + 2], al
mov byte [rbx + 3], r10b
mov byte [rbx + 4], r8b
mov eax, r8d
shr eax, 8
mov byte [rbx + 5], al
mov eax, r8d
shr eax, 0x10
shr r8d, 0x18
mov byte [rbx + 6], al
mov byte [rbx + 7], r8b
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r13, qword [rbp + 0x50]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r15
movzx eax, byte [r13 + 1]
movzx r14d, byte [r13]
movzx r15d, byte [r13 + 4]
shl eax, 8
lea ebx, [r8 - 8]
mov qword [rbp - 8], r13
or r14d, eax
movzx eax, byte [r13 + 2]
shl eax, 0x10
or r14d, eax
movzx eax, byte [r13 + 3]
shl eax, 0x18
or r14d, eax
movzx eax, byte [r13 + 5]
shl eax, 8
or r15d, eax
movzx eax, byte [r13 + 6]
shl eax, 0x10
or r15d, eax
movzx eax, byte [r13 + 7]
shl eax, 0x18
or r15d, eax
test ebx, ebx
js 0x1800fe788
lea r13d, [rbx + 8]
shr r13, 3
mov eax, r13d
neg eax
lea ebx, [rbx + rax*8]
mov dword [rbp + 0x58], ebx
movzx eax, byte [r12 + 1]
movzx edi, byte [r12]
movzx ebx, byte [r12 + 4]
shl eax, 8
lea rcx, [rbp - 0x10]
mov rdx, r9
or edi, eax
movzx eax, byte [r12 + 2]
add r12, 8
shl eax, 0x10
or edi, eax
movzx eax, byte [r12 - 5]
shl eax, 0x18
or edi, eax
movzx eax, byte [r12 - 3]
shl eax, 8
mov dword [rbp - 0x10], edi
or ebx, eax
movzx eax, byte [r12 - 2]
shl eax, 0x10
or ebx, eax
movzx eax, byte [r12 - 1]
shl eax, 0x18
or ebx, eax
mov dword [rbp - 0xc], ebx
call fcn.1800fe230
xor r14d, dword [rbp - 0x10]
xor r15d, dword [rbp - 0xc]
mov r9, qword [rbp + 0x48]
mov byte [rsi], r14b
mov eax, r14d
add rsi, 8
shr eax, 8
mov byte [rsi - 7], al
mov eax, r14d
shr r14d, 0x18
shr eax, 0x10
mov byte [rsi - 6], al
mov byte [rsi - 5], r14b
mov byte [rsi - 4], r15b
mov eax, r15d
mov r14d, edi
shr eax, 8
mov byte [rsi - 3], al
mov eax, r15d
shr r15d, 0x18
shr eax, 0x10
dec r13
mov byte [rsi - 2], al
mov byte [rsi - 1], r15b
mov r15d, ebx
jne 0x1800fe6c4
mov r13, qword [rbp - 8]
mov ebx, dword [rbp + 0x58]
cmp ebx, 0xfffffff8
je 0x1800fe874
movzx eax, byte [r12 + 1]
movzx edx, byte [r12 + 4]
movzx edi, byte [r12]
movzx ecx, byte [r12 + 7]
shl eax, 8
or edi, eax
movzx eax, byte [r12 + 2]
shl ecx, 8
shl eax, 0x10
or edi, eax
movzx eax, byte [r12 + 3]
shl eax, 0x18
or edi, eax
movzx eax, byte [r12 + 5]
shl eax, 8
mov dword [rbp - 0x10], edi
or edx, eax
movzx eax, byte [r12 + 6]
or ecx, eax
shl ecx, 0x10
or edx, ecx
lea rcx, [rbp - 0x10]
mov dword [rbp + 0x58], edx
mov dword [rbp - 0xc], edx
mov rdx, r9
call fcn.1800fe230
xor r14d, dword [rbp - 0x10]
xor r15d, dword [rbp - 0xc]
lea ecx, [rbx + 8]
movsxd rax, ecx
add rsi, rax
dec ecx
cmp ecx, 7
ja case.default.0x1800fe81f
movsxd rax, ecx
lea rcx, sym.AliAuthSDK.dll_CB9L_7.qqAbQQMYOd__cGhb1_j__94QEyzIa__9fXt
mov eax, dword [rcx + rax*4 + 0xfe8f0]
add rax, rcx
jmp rax
dec rsi
mov eax, r15d
shr eax, 0x18
mov byte [rsi], al
dec rsi
mov eax, r15d
shr eax, 0x10
mov byte [rsi], al
dec rsi
mov eax, r15d
shr eax, 8
mov byte [rsi], al
dec rsi
mov byte [rsi], r15b
dec rsi
mov eax, r14d
shr eax, 0x18
mov byte [rsi], al
dec rsi
mov eax, r14d
shr eax, 0x10
mov byte [rsi], al
dec rsi
mov eax, r14d
shr eax, 8
mov byte [rsi], al
mov byte [rsi - 1], r14b
mov r15d, dword [rbp + 0x58]
mov r14d, edi
mov rbx, qword [rsp + 0x70]
mov byte [r13], r14b
mov eax, r14d
shr eax, 8
mov byte [r13 + 1], al
mov eax, r14d
shr r14d, 0x18
shr eax, 0x10
mov byte [r13 + 2], al
mov byte [r13 + 3], r14b
mov r14, qword [rsp + 0x60]
mov byte [r13 + 4], r15b
mov eax, r15d
shr eax, 8
mov byte [r13 + 5], al
mov eax, r15d
shr eax, 0x10
shr r15d, 0x18
mov byte [r13 + 6], al
mov byte [r13 + 7], r15b
mov r15, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret