Function at 0x180001910
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Get common file path
Hash data with crc32
Parse pe header
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1100]
mov eax, 0x1200
call fcn.18001d680
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x10f0], rax
cmp dword [rcx + 0x14], 0
mov rsi, rcx
jne 0x180001ff1
xor r14d, r14d
test byte [rcx + 0x10], 1
je 0x180001ad9
cmp dword [rcx + 0x18], 6
jb 0x180001ad9
cmp dword [rcx + 0x1c], 1
jb 0x180001ad9
mov edx, 0x104
mov dword [rsp + 0x40], r14d
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.ZwQuerySystemInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x180001bf2
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov ecx, 0xb
call rbx
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x180001bf2
mov edx, eax
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rax
mov ecx, 0xb
mov r15, rax
call rbx
test eax, eax
jne 0x180001bf2
mov rdi, r15
lea r12, str.SystemRoot_system32_
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [r12 + rbx], r14b
jne 0x180001a14
mov eax, dword [rsp + 0x40]
cmp rax, rbx
je 0x180001a58
nop word [rax + rax]
mov r8, rbx
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x180001a58
mov edx, dword [rsp + 0x40]
inc rdi
mov rax, rdi
sub rdx, rbx
sub rax, r15
cmp rax, rdx
jb 0x180001a30
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
lea rcx, [rsi + 0x3c]
mov r9, rax
lea rax, [rsp + 0x70]
mov r8, rcx
sub r8, rax
lea rdx, [rsp + 0x70]
nop dword [rax + rax]
movzx eax, byte [rdx]
mov byte [r8 + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x180001a80
lea rdx, [rcx - 1]
cmp byte [rdx + 1], r14b
lea rdx, [rdx + 1]
jne 0x180001a93
movzx eax, word [0x180023ba8]
dec rcx
mov word [rdx], ax
nop word [rax + rax]
cmp byte [rcx + 1], r14b
lea rcx, [rcx + 1]
jne 0x180001ab0
xor edx, edx
nop dword [rax]
movzx eax, byte [r9 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x180001ac0
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test byte [rsi + 0x10], 2
lea r12, [0x1800234d0]
mov ebx, 0xffffffff
mov edi, 0x5a4d
je 0x180001c2a
mov rcx, qword [rsi + 8]
mov edx, 8
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180001c2a
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x180001c6d
cmp word [rcx], di
jne 0x180001c6d
call qword [sym.imp.imagehlp.dll_ImageNtHeader]
mov r13, rax
test rax, rax
je 0x180001c6d
cmp dword [rax], 0x4550
jne 0x180001c6d
movzx r15d, word [rax + 0x14]
lea rdi, [rsi + 0x140]
mov rax, qword [rdi]
add r15, 0x24
cmp rax, qword [rdi + 8]
je 0x180001b5c
mov qword [rdi + 8], rax
mov r12, r14
cmp r14w, word [r13 + 6]
jae 0x180001c1e
add r15, r13
nop dword [rax]
mov eax, dword [r15 + 0x18]
and eax, 0xc0000000
cmp eax, 0x40000000
jne 0x180001c09
mov eax, dword [r15 - 4]
mov edx, ebx
mov r8d, dword [r15]
add r8, qword [rsi + 8]
mov qword [rsp + 0x60], r8
mov dword [rsp + 0x68], eax
test eax, eax
je 0x180001bd3
mov r9d, eax
lea rdi, [0x1800234d0]
nop dword [rax + rax]
movzx ecx, byte [r8]
lea r8, [r8 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
xor edx, dword [rdi + rax*4]
sub r9, 1
jne 0x180001bb0
lea rdi, [rsi + 0x140]
not edx
mov dword [rsp + 0x6c], edx
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x180001bfc
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rdx], xmm0
add qword [rdi + 8], 0x10
jmp 0x180001c09
mov eax, 1
jmp 0x180001ff3
lea r8, [rsp + 0x60]
mov rcx, rdi
call fcn.180002600
movzx eax, word [r13 + 6]
add r15, 0x28
inc r12
cmp r12, rax
jb 0x180001b70
mov edi, 0x5a4d
lea r12, [0x1800234d0]
test byte [rsi + 0x10], 4
je 0x180001ff1
cmp dword [rsi + 0x20], r14d
je 0x180001c8d
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.ZwQueryInformationProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x158], rax
test rax, rax
jne 0x180001c77
mov eax, 4
jmp 0x180001ff3
mov eax, 2
jmp 0x180001ff3
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
sub qword [rsi + 0x158], rax
jmp 0x180001c8e
int3
lea rcx, str.ntdll.dll
cmp dword [rsi + 0x20], r14d
je 0x180001d32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0x1000
lea rcx, [rbp + 0xf0]
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
cmp word [rbp + 0xf0], di
jne 0x180002023
movsxd rax, dword [rbp + 0x12c]
lea r8, [rbp + 0xf0]
add r8, rax
cmp dword [r8], 0x4550
jne 0x180002023
movzx ecx, word [r8 + 0x14]
mov rdx, r14
movzx r10d, word [r8 + 6]
add rcx, 0x18
add rcx, r8
test r10, r10
je 0x180001d95
mov r9, qword [rsi + 0x158]
nop dword [rax]
mov r8d, dword [rcx + 0xc]
cmp r8, r9
ja 0x180001d24
mov eax, dword [rcx + 8]
add eax, r8d
cmp r9, rax
jbe 0x180001d95
add rcx, 0x28
inc rdx
cmp rdx, r10
jb 0x180001d10
jmp 0x180001d95
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp word [rax], di
jne 0x180002023
movsxd r8, dword [rax + 0x3c]
add r8, rax
cmp dword [r8], 0x4550
jne 0x180002023
movzx ecx, word [r8 + 0x14]
mov rdx, r14
movzx r10d, word [r8 + 6]
add rcx, 0x18
add rcx, r8
test r10, r10
je 0x180001d95
mov r9, qword [rsi + 0x158]
mov r8d, dword [rcx + 0xc]
cmp r8, r9
ja 0x180001d89
mov eax, dword [rcx + 8]
add eax, r8d
cmp r9, rax
jbe 0x180001d95
add rcx, 0x28
inc rdx
cmp rdx, r10
jb 0x180001d75
mov edi, dword [rcx + 0x14]
sub edi, dword [rcx + 0xc]
add edi, dword [rsi + 0x158]
test edi, edi
je 0x180002023
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rcx, [rsp + 0x70]
dec rcx
cmp byte [rcx + 1], r14b
lea rcx, [rcx + 1]
jne 0x180001dd3
movzx eax, word [0x180023bd8]
xor r9d, r9d
movsd xmm0, qword [str._ntdll.dll]
mov edx, 0x80000000
movsd qword [rcx], xmm0
mov r8d, 1
mov word [rcx + 8], ax
movzx eax, byte [0x180023bda]
mov byte [rcx + 0xa], al
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x180001e3f
mov eax, 3
jmp 0x180001ff3
mov r9d, 1
xor r8d, r8d
mov edx, edi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r14
mov r8d, 0x64
lea rdx, [rbp + 0x80]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15d, dword [rsi + 0x20]
lea rdi, [rbp + 0x80]
nop word [rax + rax]
mov r8d, r15d
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.180001340
mov eax, eax
cmp rax, 5
jne 0x180001ead
cmp byte [rdi], 0xb8
je 0x180001eb2
add rdi, rax
jmp 0x180001e90
mov eax, dword [rdi + 1]
xor edx, edx
mov r8d, dword [rsi + 0x2c]
mov rcx, 0xffffffffffffffff
mov r9d, 0x1000
mov dword [rsi + 0x160], eax
mov byte [rsp + 0x48], 0xb8
mov dword [rsp + 0x4d], 0x3e8
mov dword [rsp + 0x51], 0x14c200
mov dword [rsp + 0x55], 0x340fd48b
mov byte [rsp + 0x59], 0xc3
mov byte [rsp + 0x60], 0xb8
mov dword [rsp + 0x65], 0xfd18b4c
mov byte [rsp + 0x69], 5
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsi + 0x30], rax
test rax, rax
jne 0x180001f23
mov eax, 5
jmp 0x180001ff3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov rdi, qword [rsi + 0x30]
cmp dword [rsi + 0x2c], r14d
jbe 0x180001f55
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov byte [rdi + r14], al
inc r14
mov eax, dword [rsi + 0x2c]
cmp r14, rax
jb 0x180001f40
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ecx, dword [rsi + 0x2c]
xor edx, edx
sub rcx, 0x1d
cdqe
div rcx
mov eax, dword [rsi + 0x160]
mov rcx, qword [rsi + 0x30]
add rcx, rdx
mov dword [rsp + 0x49], eax
movups xmm0, xmmword [rsp + 0x48]
mov qword [rsi + 0x168], rcx
mov dword [rsp + 0x61], eax
movzx eax, word [rsp + 0x58]
movups xmmword [rcx], xmm0
mov word [rcx + 0x10], ax
add rcx, 0x12
movzx eax, word [rsp + 0x68]
movsd xmm0, qword [rsp + 0x60]
mov qword [rsi + 0x170], rcx
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
mov byte [rcx + 0xa], 0xc3
mov eax, dword [rsi + 0x2c]
test eax, eax
je 0x180001fec
mov rdx, qword [rsi + 0x30]
mov r8d, eax
nop word [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov ecx, ebx
shr ebx, 8
xor rcx, rax
movzx eax, cl
xor ebx, dword [r12 + rax*4]
sub r8, 1
jne 0x180001fd0
not ebx
mov dword [rsi + 0x38], ebx
xor eax, eax
mov rcx, qword [rbp + 0x10f0]
xor rcx, rsp
call fcn.1800085f0
lea r11, [rsp + 0x1200]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, 6
jmp 0x180001ff3