Function at 0x1400033d8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov esi, r8d
mov rbp, rdx
cmp dword [0x14008e97c], edi
mov rbx, rcx
jne 0x14000340e
call fcn.1400030e0
mov dword [0x14008e97c], 1
mov eax, esi
mov r9d, 0xa
add eax, 0xffffff80
je 0x14000343e
sub eax, 0x40
je 0x140003436
cmp eax, 0x40
je 0x14000342e
lea eax, [r9 - 0x2a]
jmp 0x1400036af
mov dword [rbx], InitCommonControls
jmp 0x140003441
mov dword [rbx], InitCommonControls
jmp 0x140003441
mov dword [rbx], r9d
shr esi, 5
lea r10, [rbx + 0x10]
mov qword [rbx + 8], r10
je 0x14000348d
mov r11, r10
lea r8, [rbp + 2]
movzx eax, byte [r8]
movzx edx, byte [r8 + 1]
add r8, 4
shl edx, 8
or edx, eax
movzx eax, byte [r8 - 5]
shl edx, 8
or edx, eax
mov eax, edi
add edi, 1
shl eax, 2
shl edx, 8
movzx eax, byte [rax + rbp]
or edx, eax
mov dword [r11], edx
add r11, 4
cmp edi, esi
jb 0x140003455
cmp dword [rbx], r9d
je 0x14000362e
cmp dword [rbx], 0xc
je 0x14000358f
cmp dword [rbx], 0xe
jne 0x1400036ad
lea rbx, [0x14008c4d0]
mov edi, 7
lea r11, [0x14008bbd0]
movzx eax, byte [r10 + 0x1c]
movzx edx, byte [rax + r11]
movzx eax, byte [r10 + 0x1f]
movzx ecx, byte [rax + r11]
movzx eax, byte [r10 + 0x1e]
shl edx, 8
xor edx, ecx
movzx ecx, byte [rax + r11]
movzx eax, byte [r10 + 0x1d]
shl edx, 8
xor edx, ecx
movzx ecx, byte [rax + r11]
mov eax, dword [r10 + 4]
shl edx, 8
xor edx, ecx
mov ecx, dword [r10 + 8]
xor edx, dword [r10]
add r10, 0x20
xor edx, dword [rbx]
add rbx, 4
xor eax, edx
mov dword [r10], edx
mov edx, dword [r10 - 0x14]
xor ecx, eax
mov dword [r10 + 4], eax
xor edx, ecx
mov dword [r10 + 8], ecx
mov dword [r10 + 0xc], edx
movzx eax, byte [r10 + 0xf]
movzx r8d, byte [rax + r11]
movzx eax, byte [r10 + 0xe]
movzx ecx, byte [rax + r11]
movzx eax, byte [r10 + 0xd]
shl r8d, 8
xor r8d, ecx
movzx ecx, byte [rax + r11]
movzx eax, dl
movzx eax, byte [rax + r11]
shl r8d, 8
xor r8d, ecx
mov ecx, dword [r10 - 8]
shl r8d, 8
xor r8d, eax
mov eax, dword [r10 - 0xc]
xor r8d, dword [r10 - 0x10]
xor eax, r8d
mov dword [r10 + 0x10], r8d
xor ecx, eax
mov dword [r10 + 0x14], eax
mov dword [r10 + 0x18], ecx
xor ecx, dword [r10 - 4]
sub rdi, 1
mov dword [r10 + 0x1c], ecx
jne 0x1400034bb
jmp 0x1400036ad
lea rbx, [0x14008c4d0]
mov r9d, 8
lea r11, [0x14008bbd0]
movzx eax, byte [r10 + 0x14]
movzx r8d, byte [rax + r11]
movzx eax, byte [r10 + 0x17]
movzx ecx, byte [rax + r11]
movzx eax, byte [r10 + 0x16]
shl r8d, 8
xor r8d, ecx
movzx ecx, byte [rax + r11]
movzx eax, byte [r10 + 0x15]
shl r8d, 8
xor r8d, ecx
movzx ecx, byte [rax + r11]
mov eax, dword [r10 + 4]
shl r8d, 8
xor r8d, ecx
mov ecx, dword [r10 + 8]
xor r8d, dword [r10]
add r10, 0x18
xor r8d, dword [rbx]
add rbx, 4
xor eax, r8d
mov dword [r10], r8d
xor ecx, eax
mov dword [r10 + 4], eax
mov eax, dword [r10 - 0xc]
xor eax, ecx
mov dword [r10 + 8], ecx
mov ecx, dword [r10 - 8]
xor ecx, eax
mov dword [r10 + 0xc], eax
mov dword [r10 + 0x10], ecx
xor ecx, dword [r10 - 4]
sub r9, 1
mov dword [r10 + 0x14], ecx
jne 0x1400035a3
jmp 0x1400036ad
lea rbx, [0x14008c4d0]
lea r11, [0x14008bbd0]
movzx eax, byte [r10 + 0xc]
movzx r8d, byte [rax + r11]
movzx eax, byte [r10 + 0xf]
movzx ecx, byte [rax + r11]
movzx eax, byte [r10 + 0xe]
shl r8d, 8
xor r8d, ecx
movzx ecx, byte [rax + r11]
movzx eax, byte [r10 + 0xd]
shl r8d, 8
xor r8d, ecx
movzx ecx, byte [rax + r11]
mov eax, dword [r10 + 4]
shl r8d, 8
xor r8d, ecx
mov ecx, dword [r10 + 8]
xor r8d, dword [rbx]
add rbx, 4
xor r8d, dword [r10]
add r10, 0x10
xor eax, r8d
mov dword [r10], r8d
xor ecx, eax
mov dword [r10 + 4], eax
mov dword [r10 + 8], ecx
xor ecx, dword [r10 - 4]
sub r9, 1
mov dword [r10 + 0xc], ecx
jne 0x14000363c
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret