Function at 0x140053fa0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xce0
mov rax, qword [0x1400e6480]
xor rax, rsp
mov qword [rsp + 0xcd0], rax
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x70], 0xffffffff
mov qword [rsp + 0x78], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0xc8], 0
mov byte [rsp + 0xd0], 0
lea rax, [rsp + 0xd1]
mov rdi, rax
xor eax, eax
mov ecx, 0x3ff
rep stosb byte [rdi], al
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x38], 0
xor eax, eax
mov word [rsp + 0x4d0], ax
lea rax, [rsp + 0x4d2]
mov rdi, rax
xor eax, eax
mov ecx, 0x7fe
rep stosb byte [rdi], al
cmp qword [rsp + 0x48], 0
je 0x140054077
mov rcx, qword [rsp + 0x48]
call fcn.140078000
mov rax, qword [rsp + 0xcf8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rax + 0x20]
call fcn.14005f500
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14005409e
jmp 0x14005444c
xor eax, eax
test eax, eax
jne 0x140054065
mov rax, qword [rsp + 0xcf8]
mov rax, qword [rax + 0x10]
mov edx, 0x5c
mov rcx, qword [rax]
call fcn.140076444
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x38], 0
je 0x1400540d7
mov rcx, qword [rsp + 0x38]
call fcn.140078000
cmp qword [rsp + 0x90], 0
je 0x1400540f7
mov rax, qword [rsp + 0x90]
inc rax
mov qword [rsp + 0x98], rax
jmp 0x14005410e
mov rax, qword [rsp + 0xcf8]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0x98]
call fcn.14005f500
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14005412d
jmp 0x14005444c
xor eax, eax
test eax, eax
jne 0x1400540c5
mov rdx, qword [rsp + 0x38]
lea rcx, str.USERNAME
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
mov rax, qword [rsp + 0xcf8]
cmp dword [rax + 0xc8], 0
jne 0x1400542cf
lea rcx, str.COMPUTERNAME
call fcn.140082f64
mov rcx, qword [rsp + 0xcf8]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x20], rax
mov r9, qword [rcx]
lea r8, [0x1400df270]
mov edx, 0x400
lea rcx, [rsp + 0xd0]
call fcn.14004fc00
cmp qword [rsp + 0x38], 0
je 0x1400541a5
mov rcx, qword [rsp + 0x38]
call fcn.140078000
lea rcx, [rsp + 0xd0]
call fcn.14005f500
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400541c4
jmp 0x14005444c
xor eax, eax
test eax, eax
jne 0x140054193
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0
jmp 0x1400541e6
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0xa8], rcx
mov qword [rsp + 0x80], 0xffffffffffffffff
inc qword [rsp + 0x80]
mov rcx, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0x80]
cmp word [rcx + rdx*2], 0
jne 0x140054204
mov rcx, qword [rsp + 0x80]
cmp rax, rcx
jae 0x1400542a1
movsxd rax, dword [rsp + 0x30]
cmp rax, 0x3ff
jae 0x1400542a1
movsxd rax, dword [rsp + 0x40]
movsxd rcx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
movzx eax, word [rdx + rax*2]
mov word [rsp + rcx*2 + 0x4d0], ax
movsxd rax, dword [rsp + 0x30]
movzx eax, word [rsp + rax*2 + 0x4d0]
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x88], 0x24
jne 0x14005429c
movsxd rax, dword [rsp + 0x30]
mov ecx, 0x24
mov word [rsp + rax*2 + 0x4d0], cx
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
jmp 0x1400541dc
lea r8, str.__P_G
mov edx, 0x400
lea rcx, [rsp + 0x4d0]
call fcn.140084d04
lea rdx, [rsp + 0x4d0]
lea rcx, str.PROMPT
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x48]
call fcn.140054510
mov rax, qword [rsp + 0xcf8]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x28]
mov rdx, qword [rsp + 0xcf8]
mov rcx, qword [rsp + 0xcf0]
call fcn.140050ae0
mov qword [rsp + 0x68], rax
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x140054444
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0xb0], rax
lea rdx, [0x1400ddeac]
mov rcx, qword [rsp + 0xb0]
call fcn.140076788
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
cmp qword [rsp + 0xb8], 0
je 0x14005443f
mov r8d, 5
lea rdx, str.PATH
mov rcx, qword [rsp + 0x78]
call fcn.140078170
test eax, eax
je 0x1400543ad
mov r8d, 5
lea rdx, str.MAIL
mov rcx, qword [rsp + 0x78]
call fcn.140078170
test eax, eax
jne 0x1400543b2
jmp 0x140054303
mov rax, qword [rsp + 0x60]
inc rax
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x60]
mov byte [rax], 0
cmp qword [rsp + 0x50], 0
je 0x1400543dc
mov rcx, qword [rsp + 0x50]
call fcn.140078000
mov rcx, qword [rsp + 0x78]
call fcn.14005f500
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1400543f5
jmp 0x14005444c
xor eax, eax
test eax, eax
jne 0x1400543ca
cmp qword [rsp + 0x58], 0
je 0x14005440d
mov rcx, qword [rsp + 0x58]
call fcn.140078000
mov rcx, qword [rsp + 0xa0]
call fcn.14005f500
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140054429
jmp 0x14005444c
xor eax, eax
test eax, eax
jne 0x1400543fb
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
jmp 0x140054303
mov dword [rsp + 0x70], 0
cmp qword [rsp + 0x48], 0
je 0x14005445e
mov rcx, qword [rsp + 0x48]
call fcn.140078000
cmp qword [rsp + 0x38], 0
je 0x140054470
mov rcx, qword [rsp + 0x38]
call fcn.140078000
cmp qword [rsp + 0x50], 0
je 0x140054482
mov rcx, qword [rsp + 0x50]
call fcn.140078000
cmp qword [rsp + 0x58], 0
je 0x140054494
mov rcx, qword [rsp + 0x58]
call fcn.140078000
cmp qword [rsp + 0x68], 0
je 0x1400544ef
mov dword [rsp + 0x34], 0
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xc0], rax
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
cmp qword [rsp + 0xc0], 0
je 0x1400544e5
mov rcx, qword [rsp + 0x60]
call fcn.140078000
jmp 0x1400544a4
mov rcx, qword [rsp + 0x68]
call fcn.140078000
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0xcd0]
xor rcx, rsp
call fcn.1400758f0
add rsp, 0xce0
pop rdi
ret