Function at 0x140013f28
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 [0x1400991b0]
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 [0x14009efc0], eax
jle 0x140013ffe
lea rcx, [0x14009efc0]
call fcn.14004b21c
cmp dword [0x14009efc0], 0xffffffff
jne 0x140013ffe
mov byte [0x14009f11e], 1
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [0x14009f108], xmm0
mov eax, dword [rbp - 0x78]
mov dword [0x14009f118], eax
mov word [0x14009f11c], bx
lea rcx, [0x14006d7a4]
call fcn.14004b990
lea rcx, [0x14009efc0]
call fcn.14004b1bc
lea rdx, [0x14009f108]
xor r14d, r14d
cmp byte [0x14009f11e], r14b
je 0x14001403f
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 0x140014014
mov byte [0x14009f11e], r14b
movdqa xmm0, xmmword [0x140086d90]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], r14w
lea rcx, [rbp - 0x68]
call fcn.1400183ec
nop
call fcn.140006754
mov rcx, rax
test rax, rax
je 0x1400142eb
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 0x14001409d
lea rcx, [rbp - 0x70]
call fcn.140019090
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 0x1400140bc
mov eax, r14d
jmp 0x1400140d0
movsxd rdx, dword [rsi + 0xc]
mov rcx, rbx
call fcn.14004fc14
test eax, eax
js 0x1400142e0
cmp eax, dword [rsi + 0xc]
jg 0x1400142e0
mov dword [rsi + 8], eax
cdqe
mov word [rbx + rax*2], r14w
movdqa xmm0, xmmword [0x140086d90]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], r14w
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400183ec
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x68]
call fcn.140013c2c
mov dil, al
lea rcx, [rsp + 0x20]
call fcn.140018388
test dil, dil
jne 0x14001415d
movdqa xmm0, xmmword [0x140086d90]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], r14w
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1400183ec
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x68]
call fcn.140013de0
lea rcx, [rsp + 0x40]
call fcn.140018388
xor edx, edx
mov r8d, 0x3d0
lea rcx, [rbp - 0x48]
call fcn.14004d380
lea rcx, [rbp - 0x48]
call fcn.140006188
lea rax, vtable.CMainFrameWindow.0
mov qword [rbp - 0x48], rax
mov ebx, 0x20
mov edx, ebx
lea rcx, [rbp + 0xe0]
call fcn.14002e0dc
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.14002e0dc
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.14002c5a0
xor edx, edx
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
je 0x1400142c6
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.14004b5e8
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.1400069ec
mov word [rbp + 0x378], 0x101
mov qword [rbp + 0x380], r14
xor ecx, ecx
call qword [sym.imp.ole32.dll_OleInitialize]
call fcn.14000c74c
lea rcx, [rbp - 0x48]
call fcn.140012e2c
mov ebx, eax
lea rcx, [rbp - 0x48]
call fcn.140012bbc
nop
or ecx, 0xffffffff
lock xadd dword [rsi + 0x10], ecx
sub ecx, 1
jg 0x14001428f
mov rcx, qword [rsi]
mov r8, qword [rcx]
mov rdx, rsi
call qword [r8 + 8]
nop
lea rcx, [rbp - 0x68]
call fcn.140018388
mov eax, ebx
mov rcx, qword [rbp + 0x388]
xor rcx, rsp
call fcn.14004b000
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.1400024a0
int3
mov ecx, 0x80070057
call fcn.1400024a0
nop
mov ecx, 0x80004005
call fcn.1400024a0
int3