Function at 0x180038090
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push r14
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x18005b0d0]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0xe8]
mov rdi, qword [rbp + 0xf8]
xor r14d, r14d
mov qword [rsp + 0x38], r9
mov r9, qword [rbp + 0xd8]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0xf0]
mov dword [rsp + 0x18], r8d
mov r8, qword [rbp + 0xe0]
mov qword [rsp + 0x50], rax
mov r11d, edx
mov r10, rcx
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x30], rdi
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r14
mov qword [rbp], r14
mov qword [rbp + 8], r14
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], r14
nop dword [rax]
mov eax, dword [rcx]
add rcx, 4
inc dword [rbp + rax*4 - 0x20]
dec edx
jne 0x180038120
cmp dword [rbp - 0x20], r11d
jne 0x180038141
mov qword [r9], r14
xor eax, eax
mov dword [r8], r14d
jmp 0x180038502
mov qword [rsp + 0x188], rsi
mov esi, dword [r8]
mov qword [rsp + 0x178], r13
mov qword [rsp + 0x170], r15
mov ecx, 1
mov eax, ecx
cmp dword [rbp + rax*4 - 0x20], r14d
jne 0x180038171
inc ecx
cmp ecx, 0xf
jbe 0x180038161
cmp esi, ecx
mov r13d, ecx
mov edx, Ordinal_16
cmovb esi, ecx
lea rax, [rbp + 0x1c]
cmp dword [rax], r14d
jne 0x18003818f
sub rax, 4
dec edx
jne 0x180038182
cmp esi, edx
movsxd r15, edx
cmova esi, edx
mov dword [rsp + 8], r15d
mov dword [r8], esi
mov r8d, 1
shl r8d, cl
cmp ecx, edx
jae 0x1800381c2
nop dword [rax]
mov eax, ecx
sub r8d, dword [rbp + rax*4 - 0x20]
js 0x1800381d2
inc ecx
add r8d, r8d
cmp ecx, edx
jb 0x1800381b0
mov ecx, edx
mov eax, dword [rbp + rcx*4 - 0x20]
sub r8d, eax
mov dword [rsp + 0x20], r8d
jns 0x1800381dc
mov eax, 0xfffffffd
jmp 0x1800384ea
add eax, r8d
dec edx
mov qword [rsp + 0x1c0], rbx
mov dword [rbp + rcx*4 - 0x20], eax
mov qword [rsp + 0x180], r12
mov dword [rbp + 0x24], r14d
mov ecx, r14d
je 0x180038220
mov rax, r14
nop word [rax + rax]
add ecx, dword [rbp + rax - 0x1c]
add rax, 4
dec edx
mov dword [rbp + rax + 0x24], ecx
jne 0x180038210
mov edx, r14d
mov eax, dword [r10]
add r10, 4
test eax, eax
je 0x18003823d
mov ecx, eax
mov eax, dword [rbp + rax*4 + 0x20]
mov dword [rdi + rax*4], edx
inc eax
mov dword [rbp + rcx*4 + 0x20], eax
inc edx
cmp edx, r11d
jb 0x180038223
mov eax, dword [rbp + r15*4 + 0x20]
mov rdx, rdi
or r12, 0xffffffffffffffff
mov r11d, esi
mov ebx, r14d
mov dword [rbp + 0x20], r14d
neg r11d
mov dword [rsp + 0x1c], eax
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x60], r14
mov r9, r14
mov r10d, r14d
mov rdi, r12
cmp r13d, r15d
jg 0x1800384c6
nop dword [rax]
movsxd rax, r13d
lea rax, [rbp + rax*4 - 0x20]
mov qword [rsp + 0x28], rax
mov r15d, dword [rax]
test r15d, r15d
je 0x1800384b0
lea r8d, [r15 + 1]
nop dword [rax]
dec r8d
lea ecx, [r11 + rsi]
dec r15d
mov dword [rsp + 0xc], r8d
cmp r13d, ecx
jle 0x1800383b8
mov eax, esi
neg eax
lea r14d, [rax + rax]
mov r9d, dword [rsp + 8]
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, r8d
jbe 0x180038327
mov r8, qword [rsp + 0x28]
or eax, 0xffffffff
sub eax, r15d
add edx, eax
cmp ecx, r9d
jae 0x180038327
inc ecx
cmp ecx, r9d
jae 0x180038327
nop word [rax + rax]
mov eax, dword [r8 + 4]
add r8, 4
add edx, edx
cmp edx, eax
jbe 0x180038327
inc ecx
sub edx, eax
cmp ecx, r9d
jb 0x180038310
mov r8, qword [rsp + 0x50]
mov r10d, 1
mov eax, dword [r8]
shl r10d, cl
lea edx, [rax + r10]
cmp edx, 0x5a0
ja 0x18003851a
mov r9, qword [rsp + 0x40]
mov dword [r8], edx
lea r9, [r9 + rax*8]
mov qword [rsp + rdi*8 + 0x60], r9
test r12d, r12d
je 0x180038396
mov rdx, qword [rsp + rdi*8 + 0x58]
mov byte [rsp], cl
mov r8d, ebx
lea ecx, [r14 + r11]
mov rax, r9
mov byte [rsp + 1], sil
sub rax, rdx
add ecx, esi
mov dword [rbp + rdi*4 + 0x20], 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 0x18003839e
mov rax, qword [rsp + 0x48]
mov qword [rax], r9
mov r8d, dword [rsp + 0xc]
lea ecx, [r11 + rsi]
cmp r13d, ecx
jg 0x1800382c0
mov rdx, qword [rsp + 0x10]
xor r14d, r14d
mov rcx, qword [rsp + 0x30]
movzx eax, r13b
sub al, r11b
mov byte [rsp + 1], al
mov eax, dword [rsp + 0x1c]
lea rcx, [rcx + rax*4]
cmp rdx, rcx
jb 0x1800383db
mov byte [rsp], 0xc0
jmp 0x180038424
mov ecx, dword [rdx]
mov eax, dword [rsp + 0x18]
cmp ecx, eax
jae 0x1800383fd
mov eax, 0x60
cmp ecx, 0x100
mov dword [rsp + 4], ecx
cmovb eax, r14d
mov byte [rsp], al
jmp 0x18003841b
sub ecx, eax
mov rax, qword [rbp + 0xd0]
movzx eax, byte [rax + rcx*4]
add al, 0x50
mov byte [rsp], al
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 4], eax
add rdx, 4
mov qword [rsp + 0x10], 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 0x18003844f
mov rax, qword [rsp]
mov qword [r9 + rdx*8], rax
add edx, r8d
cmp edx, r10d
jb 0x180038443
lea ecx, [r13 - 1]
mov eax, 1
shl eax, cl
test ebx, eax
je 0x180038468
nop
xor ebx, eax
shr eax, 1
test ebx, eax
jne 0x180038460
xor ebx, eax
mov ecx, r11d
mov eax, 1
shl eax, cl
dec eax
and eax, ebx
cmp eax, dword [rbp + rdi*4 + 0x20]
je 0x18003849d
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 [rbp + rdi*4 + 0x20]
jne 0x180038480
mov rdx, qword [rsp + 0x10]
mov r8d, dword [rsp + 0xc]
test r15d, r15d
jne 0x1800382a0
mov r15d, dword [rsp + 8]
inc r13d
cmp r13d, r15d
jle 0x180038280
mov r8d, dword [rsp + 0x20]
test r8d, r8d
je 0x1800384d7
cmp r15d, 1
je 0x1800384d7
mov r14d, 0xfffffffb
mov eax, r14d
mov r12, qword [rsp + 0x180]
mov rbx, qword [rsp + 0x1c0]
mov rsi, qword [rsp + 0x188]
mov r13, qword [rsp + 0x178]
mov r15, qword [rsp + 0x170]
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.18003c580
add rsp, 0x190
pop r14
pop rdi
pop rbp
ret
mov eax, 0xfffffffd
jmp 0x1800384da