Function at 0x140005cc0
Capabilities:
Access pe header
Encode data using xor

Disassembly:
push rbp
push rdi
push r13
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0xa8
mov rax, qword [0x140041040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x140085280]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ecx, 0x64
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov cl, 0x43
call fcn.140003110
mov edx, 1
mov byte [rbp - 0x19], al
mov cl, 0x61
call fcn.140003110
mov edx, 2
mov byte [rbp - 0x18], al
mov cl, 0x6c
call fcn.140003110
mov edx, 3
mov byte [rbp - 0x17], al
call fcn.140003110
mov edx, 4
mov byte [rbp - 0x16], al
mov cl, 0x20
call fcn.140003110
mov edx, 5
mov byte [rbp - 0x15], al
mov cl, 0x6f
call fcn.140003110
mov edx, 6
mov byte [rbp - 0x14], al
mov cl, 0x66
call fcn.140003110
mov edx, 7
mov byte [rbp - 0x13], al
mov cl, 0x20
call fcn.140003110
mov edx, 8
mov byte [rbp - 0x12], al
mov cl, 0x44
call fcn.140003110
mov edx, 9
mov byte [rbp - 0x11], al
mov cl, 0x75
call fcn.140003110
mov edx, 0xa
mov byte [rbp - 0x10], al
mov cl, 0x74
call fcn.140003110
mov edx, 0xb
mov byte [rbp - 0xf], al
mov cl, 0x79
call fcn.140003110
mov edx, 0xc
mov byte [rbp - 0xe], al
mov cl, 0xae
call fcn.140003110
mov edx, 0xd
mov byte [rbp - 0xd], al
mov cl, 0x20
call fcn.140003110
mov edx, 0xe
mov byte [rbp - 0xc], al
mov cl, 0x48
call fcn.140003110
mov edx, 0xf
mov byte [rbp - 0xb], al
mov cl, 0x51
call fcn.140003110
mov byte [rbp - 0xa], al
xor eax, eax
mov byte [rbp - 9], al
xor r13d, r13d
nop word [rax + rax]
movsxd rcx, eax
lea rdx, [rbp - 0x19]
add rdx, rcx
lea ecx, [rax + 0x13]
inc eax
xor byte [rdx], cl
cmp eax, 0x10
jb 0x140005e00
lea rdx, [rbp - 0x19]
mov byte [rbp - 9], r13b
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov rcx, rax
lea rdx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, 0x64
mov dword [rbp - 0x25], eax
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rbp - 0x29], r13d
je 0x140006320
test r15d, r15d
je 0x140006320
mov rcx, qword gs:[0x58]
mov qword [rsp + 0xd0], rbx
mov qword [rsp + 0xd8], rsi
mov qword [rsp + 0xe0], r12
mov r12d, 4
add r12, qword [rcx]
mov ecx, dword [0x14008a830]
mov qword [rsp + 0xa0], r14
cmp ecx, dword [r12]
jle 0x140005edc
lea rcx, [0x14008a830]
call fcn.14000f1ac
mov ecx, dword [0x14008a830]
cmp ecx, 0xffffffff
jne 0x140005edc
lea rcx, [0x14002f530]
mov dword [0x14008a838], r13d
mov qword [0x14008a840], 0xffffffffffffffff
call fcn.14000f44c
lea rcx, [0x14008a830]
call fcn.14000f140
mov ecx, dword [0x14008a830]
mov eax, dword [rbp - 0x29]
mov dword [0x14008a838], eax
cmp ecx, dword [r12]
jle 0x140005f2a
lea rcx, [0x14008a830]
call fcn.14000f1ac
cmp dword [0x14008a830], 0xffffffff
jne 0x140005f2a
lea rcx, [0x14002f530]
mov dword [0x14008a838], r13d
mov qword [0x14008a840], 0xffffffffffffffff
call fcn.14000f44c
lea rcx, [0x14008a830]
call fcn.14000f140
mov eax, dword [0x14008a838]
mov r14, r13
mov rcx, qword [0x14008a840]
mov dword [rbp + 7], eax
lea rax, [rbp - 0x21]
mov qword [rbp + 0xf], rax
mov eax, dword [rdi + 0x50]
mov qword [rbp + 0x17], rax
mov qword [rbp - 0x21], r13
mov dword [rbp + 0xb], r13d
mov qword [rbp + 0x1f], 0x40
cmp rcx, 0xffffffffffffffff
je 0x140005f8f
mov qword [rsp + 0x38], r13
lea r8, [rbp + 7]
mov qword [rsp + 0x30], r13
mov r9d, 0x20
mov dword [rsp + 0x28], r13d
mov edx, 0x3009d220
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov r14, qword [rbp - 0x21]
mov r8, rdi
mov rcx, r14
call fcn.1400058c0
test eax, eax
jne 0x140006034
mov eax, dword [r12]
cmp dword [0x14008a830], eax
jle 0x140005fed
lea rcx, [0x14008a830]
call fcn.14000f1ac
cmp dword [0x14008a830], 0xffffffff
jne 0x140005fed
lea rcx, [0x14002f530]
mov dword [0x14008a838], r13d
mov qword [0x14008a840], 0xffffffffffffffff
call fcn.14000f44c
lea rcx, [0x14008a830]
call fcn.14000f140
mov rcx, qword [0x14008a840]
mov eax, dword [0x14008a838]
mov dword [rbp - 0x15], r13d
mov dword [rbp - 0x19], eax
mov qword [rbp - 0x11], r14
cmp rcx, 0xffffffffffffffff
je 0x140006034
mov qword [rsp + 0x38], r13
lea r8, [rbp - 0x19]
mov qword [rsp + 0x30], r13
mov r9d, 0x10
mov dword [rsp + 0x28], r13d
mov edx, 0x3009d4e0
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov r8, rdi
mov ecx, r15d
call fcn.140005a50
test eax, eax
jne 0x1400060d9
mov eax, dword [r12]
cmp dword [0x14008a830], eax
jle 0x140006092
lea rcx, [0x14008a830]
call fcn.14000f1ac
cmp dword [0x14008a830], 0xffffffff
jne 0x140006092
lea rcx, [0x14002f530]
mov dword [0x14008a838], r13d
mov qword [0x14008a840], 0xffffffffffffffff
call fcn.14000f44c
lea rcx, [0x14008a830]
call fcn.14000f140
mov rcx, qword [0x14008a840]
mov eax, dword [0x14008a838]
mov dword [rbp - 0x15], r13d
mov dword [rbp - 0x19], eax
mov qword [rbp - 0x11], r14
cmp rcx, 0xffffffffffffffff
je 0x1400060d9
mov qword [rsp + 0x38], r13
lea r8, [rbp - 0x19]
mov qword [rsp + 0x30], r13
mov r9d, 0x10
mov dword [rsp + 0x28], r13d
mov edx, 0x3009d4e0
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
movzx ebx, word [rdi + 0x14]
movzx esi, r13w
add rbx, 0x2c
cmp r13w, word [rdi + 6]
jae 0x1400061c6
add rbx, rdi
lea r15, [0x140085280]
nop word [rax + rax]
mov eax, dword [r12]
cmp dword [0x14008a830], eax
jle 0x14000614b
lea rcx, [0x14008a830]
call fcn.14000f1ac
cmp dword [0x14008a830], 0xffffffff
jne 0x14000614b
lea rcx, [0x14002f530]
mov dword [0x14008a838], r13d
mov qword [0x14008a840], 0xffffffffffffffff
call fcn.14000f44c
lea rcx, [0x14008a830]
call fcn.14000f140
mov eax, dword [0x14008a838]
mov rcx, qword [0x14008a840]
mov dword [rbp - 1], eax
mov eax, dword [rbx - 8]
add rax, r14
mov word [rbp + 4], r13w
mov qword [rbp - 0x11], rax
mov eax, dword [rbx]
add rax, r15
mov byte [rbp + 6], r13b
mov qword [rbp - 0x19], rax
mov eax, dword [rbx - 4]
mov qword [rbp - 9], rax
mov byte [rbp + 3], 1
cmp rcx, 0xffffffffffffffff
je 0x1400061b1
mov qword [rsp + 0x38], r13
lea r8, [rbp - 0x19]
mov qword [rsp + 0x30], r13
mov r9d, 0x20
mov dword [rsp + 0x28], r13d
mov edx, 0x3009ce20
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
inc si
add rbx, 0x28
cmp si, word [rdi + 6]
jb 0x140006100
mov r15d, dword [rbp - 0x25]
mov r8, rdi
mov rdx, r14
mov ecx, r15d
call fcn.140005330
movzx ebx, word [rdi + 0x14]
movzx esi, r13w
add rbx, 0x28
cmp r13w, word [rdi + 6]
jae 0x1400062eb
add rbx, rdi
nop
mov eax, dword [rbx]
test eax, eax
je 0x1400062da
test dword [rbx + 0x14], 0x2000000
je 0x1400062da
xor ecx, ecx
mov edx, eax
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [r12]
mov r15, rax
cmp dword [0x14008a830], ecx
jle 0x140006269
lea rcx, [0x14008a830]
call fcn.14000f1ac
cmp dword [0x14008a830], 0xffffffff
jne 0x140006269
lea rcx, [0x14002f530]
mov dword [0x14008a838], r13d
mov qword [0x14008a840], 0xffffffffffffffff
call fcn.14000f44c
lea rcx, [0x14008a830]
call fcn.14000f140
mov eax, dword [0x14008a838]
mov rcx, qword [0x14008a840]
mov dword [rbp - 1], eax
mov eax, dword [rbx - 4]
add rax, r14
mov word [rbp + 4], r13w
mov qword [rbp - 0x11], rax
mov eax, dword [rbx]
mov qword [rbp - 9], rax
mov byte [rbp + 6], r13b
mov qword [rbp - 0x19], r15
mov byte [rbp + 3], 1
cmp rcx, 0xffffffffffffffff
je 0x1400062c9
mov qword [rsp + 0x38], r13
lea r8, [rbp - 0x19]
mov qword [rsp + 0x30], r13
mov r9d, 0x20
mov dword [rsp + 0x28], r13d
mov edx, 0x3009ce20
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
inc si
add rbx, 0x28
cmp si, word [rdi + 6]
jb 0x1400061f0
xor edx, edx
lea rcx, [0x140085280]
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r14, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14000f120
add rsp, 0xa8
pop r15
pop r13
pop rdi
pop rbp
ret