Function at 0x7ff627adaf50
Capabilities:
Accept command line arguments
Create process on windows
Extract resource via kernel32 functions
Set environment variable
Write and execute a file
Write file on windows

Disassembly:
push rbp
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [section._________1]
xor rax, rsp
mov qword [rbp + 0x90], rax
lea rdx, [0x7ff627af9890]
lea rcx, [0x7ff627b02610]
call fcn.7ff627ada4e0
test al, al
je 0x7ff627adb478
mov edx, 1
lea rcx, [0x7ff627adaf20]
call qword [sym.imp.kernel32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x7ff627adb485
mov edx, 0x1b
xor ecx, ecx
lea r8d, [rdx - 0x11]
call qword [sym.imp.kernel32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.kernel32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.kernel32.dll_LockResource]
mov qword [0x7ff627b0ee38], rax
movzx ecx, word [rax]
movzx edx, byte [rax + 2]
add rax, 3
mov word [rsp + 0x50], cx
mov qword [0x7ff627b00608], rax
cmp cl, 0x4b
jne 0x7ff627adb472
cmp byte [rsp + 0x51], 0x41
jne 0x7ff627adb472
cmp dl, 0x59
jne 0x7ff627adb472
mov qword [rsp + 0x1a0], r15
mov ecx, 0x20000
xor r15d, r15d
mov qword [rsp + 0x1d0], rbx
mov qword [0x7ff627b005f0], r15
call fcn.7ff627ae30b8
mov qword [0x7ff627b06e10], rax
test rax, rax
je 0x7ff627adb499
movups xmm0, xmmword [0x7ff627af9e80]
mov ecx, 0x274b8
movaps xmmword [rsp + 0x70], xmm0
movsd xmm0, qword [0x7ff627af9e90]
movsd qword [rsp + 0x60], xmm0
call fcn.7ff627ae30b8
mov rbx, rax
test rax, rax
je 0x7ff627adb492
movaps xmm0, xmmword [rsp + 0x70]
mov rcx, rax
mov qword [rsp + 0x1d8], rsi
movups xmmword [rax + 0x73a0], xmm0
mov qword [rsp + 0x1e0], rdi
movsd xmm0, qword [rsp + 0x60]
mov qword [rsp + 0x1b8], r12
mov qword [rsp + 0x1b0], r13
movsd qword [rax + 0x73b0], xmm0
mov qword [rsp + 0x1a8], r14
call fcn.7ff627ad5300
mov qword [0x7ff627affde0], rbx
lea r12, [0x7ff627b00610]
mov byte [0x7ff627affde8], 1
lea esi, [r15 + 0x5c]
lea r13, [0x7ff627affdf0]
lea rdi, [0x7ff627b04610]
mov edx, 2
lea rcx, [rsp + 0x50]
mov rbx, rdi
call fcn.7ff627ada9e0
movzx eax, word [rsp + 0x50]
mov word [0x7ff627b04610], ax
test ax, ax
je 0x7ff627adb30d
nop dword [rax]
nop word [rax + rax]
mov edx, 2
lea rcx, [rsp + 0x50]
lea rbx, [rbx + 2]
call fcn.7ff627ada9e0
movzx eax, word [rsp + 0x50]
mov word [rbx], ax
test ax, ax
jne 0x7ff627adb110
cmp word [0x7ff627b04610], r15w
je 0x7ff627adb30d
cmp word [0x7ff627b02610], r15w
mov edx, 0x1000
mov word [0x7ff627b00610], r15w
mov rcx, r12
je 0x7ff627adb182
lea r8, [0x7ff627b02610]
sub r8, r12
cmp rdx, 1
jb 0x7ff627adb4ab
movzx eax, word [r8 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], r15w
jne 0x7ff627adb162
mov word [rcx], r15w
mov rax, r12
cmp word [0x7ff627b00610], r15w
mov ecx, 0x1000
je 0x7ff627adb1b7
nop dword [rax + rax]
add rax, 2
dec rcx
cmp word [rax], r15w
jne 0x7ff627adb1a0
cmp rcx, 1
jb 0x7ff627adb4ab
mov dword [rax], 0x5c
mov edx, 0x1000
cmp word [0x7ff627b00610], r15w
mov rax, r12
je 0x7ff627adb1dd
nop
add rax, 2
dec rdx
cmp word [rax], r15w
jne 0x7ff627adb1d0
mov r8, rdi
sub r8, rax
cmp rdx, 1
jb 0x7ff627adb4ab
movzx ecx, word [r8 + rax]
dec rdx
mov word [rax], cx
add rax, 2
cmp word [r8 + rax], r15w
jne 0x7ff627adb1e3
cmp word [0x7ff627affdf0], r15w
mov word [rax], r15w
jne 0x7ff627adb254
cmp word [0x7ff627b00610], r15w
mov edx, 0x1000
mov rcx, r13
je 0x7ff627adb250
mov r8, r12
sub r8, r13
nop dword [rax]
cmp rdx, 1
jb 0x7ff627adb4ab
movzx eax, word [r8 + rcx]
dec rdx
mov word [rcx], ax
add rcx, 2
cmp word [r8 + rcx], r15w
jne 0x7ff627adb230
mov word [rcx], r15w
mov edx, 8
lea rcx, [rsp + 0x70]
call fcn.7ff627ada9e0
mov rdi, qword [rsp + 0x70]
mov rcx, r12
call fcn.7ff627adacd0
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov edx, 0x40000000
mov rcx, r12
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 2]
call qword [sym.imp.kernel32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x7ff627adb4a5
test rdi, rdi
je 0x7ff627adb2ff
nop dword [rax]
mov ebx, 0x8000
lea rcx, [0x7ff627b06e30]
cmp rdi, rbx
cmovbe ebx, edi
movsxd rsi, ebx
mov rdx, rsi
call fcn.7ff627ada9e0
lea r9, [rsp + 0x60]
mov dword [rsp + 0x60], r15d
mov r8d, ebx
mov qword [rsp + 0x20], r15
lea rdx, [0x7ff627b06e30]
mov rcx, r14
call qword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x7ff627adb49f
sub rdi, rsi
jne 0x7ff627adb2b0
lea esi, [rdi + 0x5c]
mov rcx, r14
call qword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x7ff627adb0d5
call fcn.7ff627ad5490
mov rcx, qword [0x7ff627b06e10]
call fcn.7ff627ae30a4
call qword [sym.imp.kernel32.dll_GetCurrentProcessId]
lea r8, [0x7ff627af96f0]
mov edx, 0x80
mov r9d, eax
lea rcx, [rbp + 0x10]
call fcn.7ff627ad10c0
lea rdx, [rbp + 0x10]
lea rcx, [0x7ff627af9858]
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
xorps xmm0, xmm0
mov dword [rbp - 0x60], 0x68
xor eax, eax
movups xmmword [rbp - 0x5c], xmm0
mov dword [rbp + 4], eax
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
call qword [sym.imp.kernel32.dll_GetCommandLineW]
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, r13
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], r15d
call qword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
je 0x7ff627adb4b1
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
mov qword [0x7ff627affdd8], rcx
mov dword [rsp + 0x54], r15d
test rcx, rcx
je 0x7ff627adb419
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov rcx, qword [0x7ff627affdd8]
lea rdx, [rsp + 0x54]
call qword [sym.imp.kernel32.dll_GetExitCodeProcess]
test eax, eax
jne 0x7ff627adb405
mov dword [rsp + 0x54], 1
mov rcx, qword [0x7ff627affdd8]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov qword [0x7ff627affdd8], r15
call fcn.7ff627adade0
mov eax, dword [rsp + 0x54]
mov r14, qword [rsp + 0x1a8]
mov r13, qword [rsp + 0x1b0]
mov r12, qword [rsp + 0x1b8]
mov rdi, qword [rsp + 0x1e0]
mov rsi, qword [rsp + 0x1d8]
mov rbx, qword [rsp + 0x1d0]
mov r15, qword [rsp + 0x1a0]
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.7ff627adb4d0
add rsp, 0x1c0
pop rbp
ret
call fcn.7ff627ada930
int3
lea rcx, [0x7ff627af9890]
call fcn.7ff627ada9b0
int3
lea rcx, [0x7ff627af98c8]
call fcn.7ff627ada8b0
int3
mov qword [0x7ff627affde0], r15
call fcn.7ff627ada950
int3
call fcn.7ff627ada8f0
int3
call fcn.7ff627ada980
int3
call fcn.7ff627adfb04
int3
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
call fcn.7ff627ada970
int3