Function at 0x14001373c
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x398]
sub rsp, 0x490
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x1400971b0]
xor rax, rsp
mov qword [rbp + 0x388], rax
mov dword [rsp + 0x78], 0xbffb9748
mov dword [rsp + 0x7c], 0xbbff8fd6
mov dword [rbp - 0x80], 0x93196bd9
mov dword [rbp - 0x7c], 0x4033f7
mov dword [rbp - 0x78], 0xbff4975d
mov ebx, 0x8fbf
mov word [rbp - 0x74], bx
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14009cfd0], eax
jle 0x140013812
lea rcx, [0x14009cfd0]
call fcn.14004a96c
cmp dword [0x14009cfd0], 0xffffffff
jne 0x140013812
mov byte [0x14009d12e], 1
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [0x14009d118], xmm0
mov eax, dword [rbp - 0x78]
mov dword [0x14009d128], eax
mov word [0x14009d12c], bx
lea rcx, [0x14006ce74]
call fcn.14004b0e0
lea rcx, [0x14009cfd0]
call fcn.14004a90c
lea rdx, [0x14009d118]
xor r14d, r14d
cmp byte [0x14009d12e], r14b
je 0x140013853
mov r8d, r14d
mov cl, r8b
and cl, 7
shl cl, 3
movabs rax, 0x33936bbb8fbf972b
shr rax, cl
xor word [rdx + r8*2], ax
inc r8
cmp r8, 0xb
jb 0x140013828
mov byte [0x14009d12e], r14b
movdqa xmm0, xmmword [0x140085ca0]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], r14w
lea rcx, [rbp - 0x68]
call fcn.140017c18
nop
call fcn.140006744
mov rcx, rax
test rax, rax
je 0x140013aff
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x70], rbx
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
mov edx, 0x1008
sub eax, edx
or eax, ecx
jge 0x1400138b1
lea rcx, [rbp - 0x70]
call fcn.1400188bc
mov rbx, qword [rbp - 0x70]
mov r8d, 0x1000
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rsi, [rbx - 0x18]
test rbx, rbx
jne 0x1400138d0
mov eax, r14d
jmp 0x1400138e4
movsxd rdx, dword [rsi + 0xc]
mov rcx, rbx
call fcn.14004f364
test eax, eax
js 0x140013af4
cmp eax, dword [rsi + 0xc]
jg 0x140013af4
mov dword [rsi + 8], eax
cdqe
mov word [rbx + rax*2], r14w
movdqa xmm0, xmmword [0x140085ca0]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], r14w
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140017c18
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x68]
call fcn.140013440
mov dil, al
lea rcx, [rsp + 0x20]
call fcn.140017bb4
test dil, dil
jne 0x140013971
movdqa xmm0, xmmword [0x140085ca0]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r14w
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140017c18
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x68]
call fcn.1400135f4
lea rcx, [rsp + 0x40]
call fcn.140017bb4
xor edx, edx
mov r8d, 0x3d0
lea rcx, [rbp - 0x48]
call fcn.14004cad0
lea rcx, [rbp - 0x48]
call fcn.140006178
lea rax, vtable.CMainFrameWindow.0
mov qword [rbp - 0x48], rax
mov ebx, 0x20
mov edx, ebx
lea rcx, [rbp + 0xe0]
call fcn.14002d824
lea rax, vtable.Concurrency::concurrent_queue_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::allocator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____.0
mov qword [rbp + 0xe0], rax
mov edx, ebx
lea rcx, [rbp + 0x108]
call fcn.14002d824
lea rax, vtable.Concurrency::concurrent_queue_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____class_std::allocator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____.0
mov qword [rbp + 0x108], rax
lea edx, [rbx - 0x1e]
lea rcx, [rbp + 0x130]
call fcn.14002bce8
xor edx, edx
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
je 0x140013ada
mov byte [rbp + 0x1a8], r14b
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x1b0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1c0], xmm1
mov qword [rbp + 0x1d0], r14
lea ecx, [rbx - 0x10]
call fcn.14004ad38
mov qword [rbp + 0x1b0], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
movdqu xmmword [rax], xmm0
lea rcx, [rbp + 0x1b0]
mov rax, qword [rbp + 0x1b0]
mov qword [rax], rcx
lea rcx, [rbp + 0x1d8]
call fcn.1400069dc
mov word [rbp + 0x378], 0x101
mov qword [rbp + 0x380], r14
xor ecx, ecx
call qword [sym.imp.ole32.dll_OleInitialize]
call fcn.14000c010
lea rcx, [rbp - 0x48]
call fcn.140012640
mov ebx, eax
lea rcx, [rbp - 0x48]
call fcn.1400123d0
nop
or ecx, 0xffffffff
lock xadd dword [rsi + 0x10], ecx
sub ecx, 1
jg 0x140013aa3
mov rcx, qword [rsi]
mov r8, qword [rcx]
mov rdx, rsi
call qword [r8 + 8]
nop
lea rcx, [rbp - 0x68]
call fcn.140017bb4
mov eax, ebx
mov rcx, qword [rbp + 0x388]
xor rcx, rsp
call fcn.14004a750
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.140002490
int3
mov ecx, 0x80070057
call fcn.140002490
nop
mov ecx, 0x80004005
call fcn.140002490
int3