Function at 0x140006720
Capabilities:
Query environment variable
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xa28]
sub rsp, 0xb00
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14003f2f0]
xor rax, rsp
mov qword [rbp + 0x9f0], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x70]
call fcn.1400166f0
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x380]
call fcn.1400166f0
mov rcx, rbx
call fcn.140005b10
test eax, eax
je 0x140006e2f
xor esi, esi
mov dword [rsp + 0x30], esi
lea rdi, [0x140042700]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], pe_nt_image_headers64
lea r9, [rsp + 0x70]
lea r8, [0x14002ce18]
lea rdx, [0x140030880]
mov rcx, rbx
call fcn.14000db60
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x200
lea r9, [rbp + 0x380]
lea r8, [0x14002ce18]
lea rdx, str.SecondaryURL
mov rcx, rbx
call fcn.14000db60
lea rdx, [rsp + 0x70]
lea rcx, str._nCreating_IEHome__s_in_System_Regsitry
call fcn.14000adf0
lea rcx, [rsp + 0x70]
or rbx, 0xffffffffffffffff
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rcx + rax*2], si
jne 0x140006820
test rax, rax
jne 0x14000683f
lea rcx, str._nIEHomeUrl_not_specified
call fcn.140017d0c
jmp 0x140006e2f
mov r8d, 0x104
lea rdx, [rbp + 0x780]
lea rcx, str.DEFAULT_USER
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rbp + 0x780]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], si
jne 0x140006864
mov rax, qword [str.NTUSER.DAT]
mov qword [rcx], rax
mov rax, qword [0x140030940]
mov qword [rcx + 8], rax
mov rax, qword [0x140030948]
mov qword [rcx + 0x10], rax
lea rcx, [rsp + 0x70]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], si
jne 0x140006895
lea rcx, [rbp + 0x380]
mov rdi, rbx
nop dword [rax + rax]
inc rdi
cmp word [rcx + rdi*2], si
jne 0x1400068b0
test eax, eax
je 0x140006e18
call fcn.14000d240
cmp eax, 1
jne 0x140006e2f
lea r8, [rbp + 0x780]
lea rdx, str.DefaultUser
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x140006e02
mov qword [rsp + 0x50], rsi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftInternet_ExplorerMain
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov r14, rsi
test eax, eax
cmove r14, qword [rsp + 0x50]
mov qword [rsp + 0x50], rsi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREWow6432NodeMicrosoftInternet_ExplorerMain
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov r12, rsi
test eax, eax
cmove r12, qword [rsp + 0x50]
mov qword [rsp + 0x50], rsi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DefaultUserSOFTWAREMicrosoftInternet_ExplorerMain
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov r15, rsi
test eax, eax
cmove r15, qword [rsp + 0x50]
mov qword [rsp + 0x50], rsi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftInternet_ExplorerMain
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov r13, rsi
test eax, eax
cmove r13, qword [rsp + 0x50]
lea rcx, [rsp + 0x70]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x140006a36
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov esi, 1
mov r9d, esi
xor r8d, r8d
lea rdx, str.Start_Page
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140006c4f
lea rcx, [rsp + 0x70]
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140006a80
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
lea rdx, str.Default_Page_URL
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140006c4f
lea rcx, [rsp + 0x70]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x140006ac2
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
lea rdx, str.Start_Page
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140006c4f
lea rcx, [rsp + 0x70]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x140006b04
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
lea rdx, str.Default_Page_URL
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140006c4f
lea rcx, [rsp + 0x70]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x140006b46
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
lea rdx, str.Start_Page
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140006c4f
lea rcx, [rsp + 0x70]
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140006b90
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
lea rdx, str.Default_Page_URL
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140006c4f
lea rcx, [rsp + 0x70]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x140006bd2
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
lea rdx, str.Start_Page
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140006c4f
lea rax, [rsp + 0x70]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140006c10
inc ebx
lea eax, [rbx + rbx]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
lea rdx, str.Default_Page_URL
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140006c4f
mov eax, dword [0x1400434f8]
jmp 0x140006c62
lea rdx, [rsp + 0x70]
lea rcx, str._nError_Creating_IE_Home_Entry_in_System_Registry___s
call fcn.14000adf0
mov eax, esi
test edi, edi
cmovne eax, esi
mov dword [0x1400434f8], eax
mov r8d, 0x104
lea rdx, [rbp + 0x170]
lea rcx, str._ProgramFiles_Internet_ExplorerSIGNUPinstall.ins
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea r9, [rbp + 0x170]
lea r8, [rsp + 0x70]
lea rdx, str.Home_page
lea rcx, [0x140030880]
call fcn.1400135d0
test eax, eax
jne 0x140006cce
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x170]
lea rcx, str._nError_Creating_Ini_Entry_in__s__URL___Home_page_s
call fcn.14000adf0
mov dword [0x1400434f8], esi
test edi, edi
je 0x140006d1b
mov dword [rsp + 0x20], ebx
lea r9, [rbp + 0x170]
lea r8, [rbp + 0x380]
lea rdx, str.URL1
lea rcx, str.SecondaryStartPages
call fcn.1400135d0
test eax, eax
jne 0x140006d1b
lea r8, [rbp + 0x380]
lea rdx, [rbp + 0x170]
lea rcx, str._nError_Creating_Ini_Entry_in__s__SecondaryStartPages___URL1_s
call fcn.14000adf0
mov dword [0x1400434f8], esi
mov r8d, 0x104
lea rdx, [rbp + 0x170]
lea rcx, str._ProgramFiles_x86__Internet_ExplorerSIGNUPinstall.ins
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x20], ebx
lea r9, [rbp + 0x170]
lea r8, [rsp + 0x70]
lea rdx, str.Home_page
lea rcx, [0x140030880]
call fcn.1400135d0
test eax, eax
jne 0x140006d7a
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x170]
lea rcx, str._nError_Creating_Ini_Entry_in__s__URL___Home_page_s
call fcn.14000adf0
mov dword [0x1400434f8], esi
test edi, edi
je 0x140006dc7
mov dword [rsp + 0x20], ebx
lea r9, [rbp + 0x170]
lea r8, [rbp + 0x380]
lea rdx, str.URL1
lea rcx, str.SecondaryStartPages
call fcn.1400135d0
test eax, eax
jne 0x140006dc7
lea r8, [rbp + 0x380]
lea rdx, [rbp + 0x170]
lea rcx, str._nError_Creating_Ini_Entry_in__s__SecondaryStartPages___URL1_s
call fcn.14000adf0
mov dword [0x1400434f8], esi
test r13, r13
je 0x140006dd6
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test r12, r12
je 0x140006de5
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test r15, r15
je 0x140006df4
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test r14, r14
je 0x140006e02
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.DefaultUser
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
jmp 0x140006e2f
lea rcx, str._nError_blank_IE_Home_URL_cannot_be_set_in_System_Registry
call fcn.14000adf0
mov esi, 1
mov dword [0x1400434f8], esi
mov rcx, qword [rbp + 0x9f0]
xor rcx, rsp
call fcn.1400161c0
lea r11, [rsp + 0xb00]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret