Function at 0x140056330
Capabilities:
Create process on windows
Query environment variable
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x158
mov ebp, r9d
mov rdi, r8
mov rbx, rdx
mov r12, rcx
mov rsi, qword [rsp + 0x1c0]
mov rax, qword [0x1400e00c0]
mov rax, qword [rax]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rcx, rdx
call qword [sym.imp.mozglue.dll__wcsdup]
mov rcx, qword [r12 + 0x50]
mov qword [r12 + 0x50], rax
test rcx, rcx
je 0x140056389
call sub.mozglue.dll_free
mov r14, qword [rsp + 0x1d0]
mov rcx, rdi
call qword [sym.imp.mozglue.dll__wcsdup]
mov r15, rax
xor r13d, r13d
cmp qword [rsi + 0x70], 0
setne r13b
shl r13d, 0x13
or r13d, 0x40c
cmp qword [r12 + 0x30], 0
je 0x1400563d2
call fcn.140031240
lea ecx, [r13 + 0x1000000]
cmp eax, 5
cmovge ecx, r13d
mov r13d, ecx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdi, rax
lea rcx, [rsp + 0x98]
mov rdx, rax
mov r8, r14
call fcn.14000cb10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
test byte [rsp + 0x98], 1
je 0x14005640b
mov rax, qword [rsp + 0xa8]
jmp 0x140056413
lea rax, [rsp + 0x9a]
mov rdi, qword [rsp + 0x1d8]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
mov rcx, qword [r12 + 0x18]
movzx edx, bpl
add rsi, 8
lea rbp, [rsp + 0x80]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, r15
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x14005658e
lea rcx, [rsp + 0x68]
lea rdx, [rsp + 0x80]
call fcn.14002fce0
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x1400564b7
mov rdx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x1400565b5
mov rbx, qword [r12 + 0x20]
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14005673d
mov qword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x68]
lea r8, [rsp + 0xc0]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400566a8
mov rdx, qword [rsp + 0xc0]
mov qword [rsp + 0xb0], 0
lea rcx, [rsp + 0xb0]
call fcn.14000ad60
mov rsi, qword [rsp + 0xb0]
mov ecx, 0x4c
call fcn.1400aa7c0
mov rbp, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x3c], xmm0
lea rax, [rsp + 0xbc]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov edx, 0x1f
mov r8, rbp
mov r9d, 0x4c
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r13, rdi
test eax, eax
je 0x1400565d4
mov rsi, qword [rbp]
test rsi, rsi
je 0x1400565db
mov ecx, 0x44
call fcn.1400aa7c0
mov r14, rax
mov rdx, qword [rbp]
mov rcx, rax
call fcn.140053600
jmp 0x1400565de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov edi, 0x12
mov rbx, qword [0x1400e00c0]
test byte [rsp + 0x98], 1
jne 0x14005681c
jmp 0x140056829
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x14
jmp 0x140056801
xor r14d, r14d
xor edi, edi
jmp 0x1400565e5
xor r14d, r14d
test rsi, rsi
setne dil
mov rcx, rbp
call fcn.1400aa8a0
mov rsi, qword [rsp + 0xb0]
lea rax, [rsi + 1]
cmp rax, 2
jae 0x14005665f
test dil, dil
je 0x140056698
lea r8, [r12 + 0x58]
lea rsi, [rsp + 0xc0]
mov rcx, rsi
mov rdx, r14
call fcn.140051ea0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8, rsi
xor r9d, r9d
call fcn.14004e180
mov edi, eax
mov rcx, rsi
call fcn.1400520e0
mov rcx, r14
call fcn.1400aa8a0
test edi, edi
jne 0x1400566a5
mov rbx, qword [rsp + 0x60]
jmp 0x1400566a5
mov rbp, qword [rsp + 0x198]
call fcn.14000aaf0
lea rdx, [rsp + 0xb0]
mov rcx, rsi
mov r8, rbp
mov r9, rax
call fcn.14002e980
mov rcx, qword [rsp + 0xb0]
call fcn.14002e910
test dil, dil
jne 0x140056608
test r14, r14
je 0x1400566a5
mov rcx, r14
call fcn.1400aa8a0
mov rdi, r13
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0xc0]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov ebx, eax
test eax, eax
je 0x14005670d
lea rsi, [r12 + 0x20]
mov rbp, qword [rsi]
lea rax, [rbp + 1]
cmp rax, 2
jb 0x140056722
mov r14, qword [rsp + 0x198]
call fcn.14000aaf0
mov rcx, rbp
mov rdx, rsi
mov r8, r14
mov r9, rax
call fcn.14002e980
mov rcx, qword [rsi]
call fcn.14002e910
mov qword [rsi], 0
jmp 0x140056722
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rsi, qword [rsp + 0x60]
lea rax, [rsi + 1]
cmp rax, 2
jae 0x1400567ca
test ebx, ebx
je 0x1400567fc
mov rcx, qword [rsp + 0x1c8]
lea rdx, [rsp + 0x68]
call fcn.14002fee0
test al, al
je 0x140056792
mov rcx, qword [rsp + 0x68]
call fcn.1400598e0
mov qword [r12 + 0x48], rax
test rax, rax
mov rbx, qword [0x1400e00c0]
je 0x1400567ae
lea rsi, [rsp + 0xc0]
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.14002fff0
mov rcx, r12
mov rdx, rsi
call fcn.14002fd30
xor edi, edi
jmp 0x140056808
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x17
jmp 0x140056801
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x140056808
mov rbp, qword [rsp + 0x198]
call fcn.14000aaf0
lea rdx, [rsp + 0x60]
mov rcx, rsi
mov r8, rbp
mov r9, rax
call fcn.14002e980
mov rcx, qword [rsp + 0x60]
call fcn.14002e910
test ebx, ebx
jne 0x14005673d
mov edi, 0x15
mov rbx, qword [0x1400e00c0]
lea rcx, [rsp + 0x68]
call fcn.14002fd90
test byte [rsp + 0x98], 1
je 0x140056829
mov rcx, qword [rsp + 0xa8]
call fcn.1400aa8a0
test r15, r15
je 0x140056836
mov rcx, r15
call sub.mozglue.dll_free
mov rax, qword [rsp + 0x150]
xor rax, rsp
mov rcx, qword [rbx]
cmp rcx, rax
jne 0x14005685f
mov eax, edi
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14005fbe0
int3