Function at 0x140035c70
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r14, rax
test rax, rax
je 0x1400361b6
lea rdx, [0x1401a4870]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r13d, r13d
lea r12, str.security::ConfigureSecuritySettings
mov rbp, rax
lea r15, str....._srcmisc_src_security_security.cpp
test rax, rax
je 0x14003601a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, [r13 + 1]
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
mov r12, rax
call rbp
test eax, eax
jne 0x140035e78
lea rcx, str.swifdiag.log
call fcn.140001910
mov rbx, rax
test rax, rax
je 0x140035e78
mov r10, qword [rax]
lea rdi, str.security::ConfigureSecuritySettings
lea r8, str.default
lea edx, [r13 + 2]
mov r9, r15
mov rcx, rax
mov qword [rsp + 0x20], rdi
call qword [r10 + 8]
test al, al
je 0x140035e78
mov byte [rbx + 0xf8], 0x69
mov eax, r13d
mov r8b, 0x2e
mov rcx, r15
mov edx, 1
nop word [rax + rax]
cmp r8b, 0x5c
movzx r8d, byte [rcx + 1]
cmove eax, edx
inc rcx
inc edx
test r8b, r8b
jne 0x140035d50
add rax, r15
mov rcx, rbx
mov dword [rbx + 0x108], 0x24
mov qword [rbx + 0x100], rax
mov qword [rbx + 0x110], rdi
call fcn.1400027f0
mov rsi, rax
lea rax, str.HeapSetInformation_for_HeapEnableTerminationOnCorruption_failed:
mov rbx, r13
inc rbx
cmp byte [rbx + rax], r13b
jne 0x140035d96
mov ecx, dword [rsi + 0x430]
mov dword [rsi + 0x430], r13d
cmp ebx, ecx
jge 0x140035de0
movzx eax, byte [rsi + 0x42c]
sub ecx, ebx
mov byte [rsp + 0x70], al
mov edi, ecx
nop
lea rdx, [rsp + 0x70]
mov r8d, 1
mov rcx, rsi
call fcn.14002f090
sub rdi, 1
jne 0x140035dc0
lea rax, str.HeapSetInformation_for_HeapEnableTerminationOnCorruption_failed:
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call fcn.14002f090
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
call fcn.140014390
mov rbx, r13
mov rsi, rax
lea rax, str._Ignored.
nop dword [rax + rax]
inc rbx
cmp byte [rbx + rax], r13b
jne 0x140035e10
mov ecx, dword [rsi + 0x430]
mov dword [rsi + 0x430], r13d
cmp ebx, ecx
jge 0x140035e60
movzx eax, byte [rsi + 0x42c]
sub ecx, ebx
mov byte [rsp + 0x70], al
mov edi, ecx
nop dword [rax]
lea rdx, [rsp + 0x70]
mov r8d, 1
mov rcx, rsi
call fcn.14002f090
sub rdi, 1
jne 0x140035e40
lea rax, str._Ignored.
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call fcn.14002f090
mov r11, qword [rsi]
mov rcx, rsi
call qword [r11 + 8]
lea r8, [rsp + 0x78]
mov r9d, 4
xor edx, edx
mov rcx, r12
mov dword [rsp + 0x78], 2
call rbp
test eax, eax
jne 0x140036013
lea rcx, str.swifdiag.log
call fcn.140001910
lea r12, str.security::ConfigureSecuritySettings
mov rbx, rax
test rax, rax
je 0x14003601a
mov r10, qword [rax]
lea r8, str.default
mov r9, r15
mov edx, 2
mov rcx, rax
mov qword [rsp + 0x20], r12
call qword [r10 + 8]
test al, al
je 0x14003601a
mov byte [rbx + 0xf8], 0x69
mov eax, r13d
mov r8b, 0x2e
mov rcx, r15
mov edx, 1
nop word [rax + rax]
cmp r8b, 0x5c
movzx r8d, byte [rcx + 1]
cmove eax, edx
inc rcx
inc edx
test r8b, r8b
jne 0x140035f00
add rax, r15
mov rcx, rbx
mov dword [rbx + 0x108], 0x2a
mov qword [rbx + 0x100], rax
mov qword [rbx + 0x110], r12
call fcn.1400027f0
mov rbx, r13
lea rbp, str.HeapSetInformation_for_HeapCompatibilityInformation_failed:
mov rsi, rax
inc rbx
cmp byte [rbx + rbp], r13b
jne 0x140035f46
mov ecx, dword [rax + 0x430]
mov dword [rax + 0x430], r13d
cmp ebx, ecx
jge 0x140035f89
movzx eax, byte [rax + 0x42c]
sub ecx, ebx
mov byte [rsp + 0x70], al
mov edi, ecx
nop
lea rdx, [rsp + 0x70]
mov r8d, 1
mov rcx, rsi
call fcn.14002f090
sub rdi, 1
jne 0x140035f70
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14002f090
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
call fcn.140014390
mov rbx, r13
lea rbp, str._Ignored.
mov rdi, rax
inc rbx
cmp byte [rbx + rbp], r13b
jne 0x140035fb4
mov ecx, dword [rax + 0x430]
mov dword [rax + 0x430], r13d
cmp ebx, ecx
jge 0x140035ff9
movzx eax, byte [rax + 0x42c]
sub ecx, ebx
mov byte [rsp + 0x70], al
mov esi, ecx
nop dword [rax]
lea rdx, [rsp + 0x70]
mov r8d, 1
mov rcx, rdi
call fcn.14002f090
sub rsi, 1
jne 0x140035fe0
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.14002f090
mov r11, qword [rdi]
mov rcx, rdi
call qword [r11 + 8]
jmp 0x14003601a
lea r12, str.security::ConfigureSecuritySettings
lea rdx, str.SetDllDirectoryW
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400364d1
lea rcx, [0x1401a498c]
call rax
test eax, eax
jne 0x1400364d1
lea rcx, str.swifdiag.log
call fcn.140001910
mov rbx, rax
test rax, rax
je 0x1400364d1
mov r10, qword [rax]
lea r8, str.default
mov r9, r15
mov edx, 2
mov rcx, rax
mov qword [rsp + 0x20], r12
call qword [r10 + 8]
test al, al
je 0x1400364d1
mov byte [rbx + 0xf8], 0x69
mov eax, r13d
mov r8b, 0x2e
mov rcx, r15
mov edx, 1
nop word [rax + rax]
cmp r8b, 0x5c
movzx r8d, byte [rcx + 1]
cmove eax, edx
inc rcx
inc edx
test r8b, r8b
jne 0x1400360a0
add rax, r15
mov rcx, rbx
mov dword [rbx + 0x108], 0x35
mov qword [rbx + 0x100], rax
mov qword [rbx + 0x110], r12
call fcn.1400027f0
mov rbx, r13
lea rbp, str.SetDllDirectoryW_failed:
mov rsi, rax
inc rbx
cmp byte [rbx + rbp], r13b
jne 0x1400360e6
mov ecx, dword [rax + 0x430]
mov dword [rax + 0x430], r13d
cmp ebx, ecx
jge 0x140036129
movzx eax, byte [rax + 0x42c]
sub ecx, ebx
mov byte [rsp + 0x70], al
mov edi, ecx
nop
lea rdx, [rsp + 0x70]
mov r8d, 1
mov rcx, rsi
call fcn.14002f090
sub rdi, 1
jne 0x140036110
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14002f090
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
call fcn.140014390
mov rbx, r13
lea r14, str._Ignored.
mov rdi, rax
inc rbx
cmp byte [rbx + r14], r13b
jne 0x140036154
mov ecx, dword [rax + 0x430]
mov dword [rax + 0x430], r13d
cmp ebx, ecx
jge 0x140036199
movzx eax, byte [rax + 0x42c]
sub ecx, ebx
mov byte [rsp + 0x70], al
mov esi, ecx
nop dword [rax]
lea rdx, [rsp + 0x70]
mov r8d, 1
mov rcx, rdi
call fcn.14002f090
sub rsi, 1
jne 0x140036180
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call fcn.14002f090
mov r11, qword [rdi]
mov rcx, rdi
call qword [r11 + 8]
jmp 0x1400364d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.swifdiag.log
mov ebp, eax
call fcn.140001910
xor r13d, r13d
lea r14, str.GetModuleHandleW_on_kernel32_failed:
lea rdi, str._err:
lea r12, str.security::ConfigureSecuritySettings
mov rbx, rax
lea r15, str....._srcmisc_src_security_security.cpp
test rax, rax
je 0x140036351
mov r10, qword [rax]
lea r8, str.default
lea edx, [r13 + 1]
mov r9, r15
mov rcx, rax
mov qword [rsp + 0x20], r12
call qword [r10 + 8]
test al, al
je 0x140036351
mov byte [rbx + 0xf8], 0x65
mov eax, r13d
mov r8b, 0x2e
mov rcx, r15
mov edx, 1
nop
cmp r8b, 0x5c
movzx r8d, byte [rcx + 1]
cmove eax, edx
inc rcx
inc edx
test r8b, r8b
jne 0x140036230
add rax, r15
mov rcx, rbx
mov dword [rbx + 0x108], 0x3b
mov qword [rbx + 0x100], rax
mov qword [rbx + 0x110], r12
call fcn.1400027f0
mov rsi, rax
mov rbx, r13
nop
inc rbx
cmp byte [rbx + r14], r13b
jne 0x140036270
mov ecx, dword [rax + 0x430]
mov dword [rax + 0x430], r13d
cmp ebx, ecx
jge 0x1400362c0
movzx eax, byte [rax + 0x42c]
sub ecx, ebx
mov byte [rsp + 0x70], al
mov edi, ecx
nop dword [rax]
lea rdx, [rsp + 0x70]
mov r8d, 1
mov rcx, rsi
call fcn.14002f090
sub rdi, 1
jne 0x1400362a0
lea rdi, str._err:
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call fcn.14002f090
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
call fcn.140014390
mov rbx, r13
mov rsi, rax
inc rbx
cmp byte [rbx + rdi], r13b
jne 0x1400362e4
mov ecx, dword [rax + 0x430]
mov dword [rax + 0x430], r13d
cmp ebx, ecx
jge 0x140036330
movzx eax, byte [rax + 0x42c]
sub ecx, ebx
mov byte [rsp + 0x70], al
mov edi, ecx
nop dword [rax]
lea rdx, [rsp + 0x70]
mov r8d, 1
mov rcx, rsi
call fcn.14002f090
sub rdi, 1
jne 0x140036310
lea rdi, str._err:
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.14002f090
mov edx, ebp
mov rcx, rsi
call fcn.1400146a0
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 8]
lea rcx, [0x14019e670]
call fcn.140030de0
mov rbx, rax
test rax, rax
je 0x1400364d1
mov r10, qword [rax]
lea r8, str.default
mov r9, r15
mov edx, 1
mov rcx, rax
mov qword [rsp + 0x20], r12
call qword [r10 + 8]
test al, al
je 0x1400364d1
mov byte [rbx + 0xf8], 0x65
mov eax, r13d
mov r8b, 0x2e
mov rcx, r15
mov edx, 1
nop word [rax + rax]
cmp r8b, 0x5c
movzx r8d, byte [rcx + 1]
cmove eax, edx
inc rcx
inc edx
test r8b, r8b
jne 0x1400363b0
add rax, r15
mov rcx, rbx
mov dword [rbx + 0x108], 0x3b
mov qword [rbx + 0x100], rax
mov qword [rbx + 0x110], r12
call fcn.1400027f0
mov rsi, rax
mov rbx, r13
nop
inc rbx
cmp byte [rbx + r14], r13b
jne 0x1400363f0
mov ecx, dword [rax + 0x430]
mov dword [rax + 0x430], r13d
cmp ebx, ecx
jge 0x140036440
movzx eax, byte [rax + 0x42c]
sub ecx, ebx
mov byte [rsp + 0x70], al
mov edi, ecx
nop dword [rax]
lea rdx, [rsp + 0x70]
mov r8d, 1
mov rcx, rsi
call fcn.14002f090
sub rdi, 1
jne 0x140036420
lea rdi, str._err:
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call fcn.14002f090
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
call fcn.140014390
mov rbx, r13
mov rsi, rax
inc rbx
cmp byte [rbx + rdi], r13b
jne 0x140036464
mov ecx, dword [rax + 0x430]
mov dword [rax + 0x430], r13d
cmp ebx, ecx
jge 0x1400364b0
movzx eax, byte [rax + 0x42c]
sub ecx, ebx
mov byte [rsp + 0x70], al
mov edi, ecx
nop dword [rax]
lea rdx, [rsp + 0x70]
mov r8d, 1
mov rcx, rsi
call fcn.14002f090
sub rdi, 1
jne 0x140036490
lea rdi, str._err:
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.14002f090
mov edx, ebp
mov rcx, rsi
call fcn.1400146a0
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + 8]
lea r14, str._Ignored.
lea rcx, str.PATH
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x140036661
lea rcx, str.swifdiag.log
call fcn.140001910
mov rbx, rax
test rax, rax
je 0x140036661
mov r10, qword [rax]
lea r8, str.default
mov r9, r15
mov edx, 2
mov rcx, rax
mov qword [rsp + 0x20], r12
call qword [r10 + 8]
test al, al
je 0x140036661
mov byte [rbx + 0xf8], 0x69
mov eax, r13d
mov r8b, 0x2e
mov rcx, r15
mov edx, 1
nop word [rax + rax]
cmp r8b, 0x5c
movzx r8d, byte [rcx + 1]
cmove eax, edx
inc rcx
inc edx
test r8b, r8b
jne 0x140036550
add rax, r15
mov rcx, rbx
mov dword [rbx + 0x108], 0x40
mov qword [rbx + 0x100], rax
mov qword [rbx + 0x110], r12
call fcn.1400027f0
mov rbx, r13
lea rbp, str.SetEnvironmentVariableW_failed:
mov rsi, rax
inc rbx
cmp byte [rbx + rbp], 0
jne 0x140036596
mov ecx, dword [rax + 0x430]
mov dword [rax + 0x430], r13d
cmp ebx, ecx
jge 0x1400365d9
movzx eax, byte [rax + 0x42c]
sub ecx, ebx
mov byte [rsp + 0x70], al
mov edi, ecx
nop
lea rdx, [rsp + 0x70]
mov r8d, 1
mov rcx, rsi
call fcn.14002f090
sub rdi, 1
jne 0x1400365c0
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14002f090
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
call fcn.140014390
mov rbx, r13
mov rdi, rax
nop dword [rax]
inc rbx
cmp byte [rbx + r14], 0
jne 0x140036600
mov ecx, dword [rax + 0x430]
mov dword [rax + 0x430], r13d
cmp ebx, ecx
jge 0x140036649
movzx eax, byte [rax + 0x42c]
sub ecx, ebx
mov byte [rsp + 0x70], al
mov esi, ecx
nop word [rax + rax]
lea rdx, [rsp + 0x70]
mov r8d, 1
mov rcx, rdi
call fcn.14002f090
sub rsi, 1
jne 0x140036630
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call fcn.14002f090
mov r11, qword [rdi]
mov rcx, rdi
call qword [r11 + 8]
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret