Function at 0x140007220
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 [0x1400623d0]
xor rax, rsp
mov qword [rbp + 0x9f0], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x70]
call fcn.14001a650
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x380]
call fcn.14001a650
mov rcx, rbx
call fcn.140005bd0
test eax, eax
je 0x14000792f
xor esi, esi
mov dword [rsp + 0x30], esi
lea rdi, [0x140065980]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x100
lea r9, [rsp + 0x70]
lea r8, [0x1400476d0]
lea rdx, [0x14004b120]
mov rcx, rbx
call fcn.14000e830
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x200
lea r9, [rbp + 0x380]
lea r8, [0x1400476d0]
lea rdx, str.SecondaryURL
mov rcx, rbx
call fcn.14000e830
lea rdx, [rsp + 0x70]
lea rcx, str._nCreating_IEHome__s_in_System_Regsitry
call fcn.14000b8c0
lea rcx, [rsp + 0x70]
or rbx, 0xffffffffffffffff
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rcx + rax*2], si
jne 0x140007320
test rax, rax
jne 0x14000733f
lea rcx, str._nIEHomeUrl_not_specified
call fcn.14001c2d0
jmp 0x14000792f
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 0x140007364
mov rax, qword [str.NTUSER.DAT]
mov qword [rcx], rax
mov rax, qword [0x14004b1e0]
mov qword [rcx + 8], rax
mov rax, qword [0x14004b1e8]
mov qword [rcx + 0x10], rax
lea rcx, [rsp + 0x70]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], si
jne 0x140007395
lea rcx, [rbp + 0x380]
mov rdi, rbx
nop dword [rax + rax]
inc rdi
cmp word [rcx + rdi*2], si
jne 0x1400073b0
test eax, eax
je 0x140007918
call fcn.14000df00
cmp eax, 1
jne 0x14000792f
lea r8, [rbp + 0x780]
lea rdx, str.DefaultUser
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x140007902
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 0x140007536
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 0x14000774f
lea rcx, [rsp + 0x70]
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140007580
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 0x14000774f
lea rcx, [rsp + 0x70]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400075c2
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 0x14000774f
lea rcx, [rsp + 0x70]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x140007604
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 0x14000774f
lea rcx, [rsp + 0x70]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x140007646
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 0x14000774f
lea rcx, [rsp + 0x70]
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140007690
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 0x14000774f
lea rcx, [rsp + 0x70]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400076d2
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 0x14000774f
lea rax, [rsp + 0x70]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140007710
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 0x14000774f
mov eax, dword [0x1400667b8]
jmp 0x140007762
lea rdx, [rsp + 0x70]
lea rcx, str._nError_Creating_IE_Home_Entry_in_System_Registry___s
call fcn.14000b8c0
mov eax, esi
test edi, edi
cmovne eax, esi
mov dword [0x1400667b8], 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, [0x14004b120]
call fcn.1400147a0
test eax, eax
jne 0x1400077ce
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x170]
lea rcx, str._nError_Creating_Ini_Entry_in__s__URL___Home_page_s
call fcn.14000b8c0
mov dword [0x1400667b8], esi
test edi, edi
je 0x14000781b
mov dword [rsp + 0x20], ebx
lea r9, [rbp + 0x170]
lea r8, [rbp + 0x380]
lea rdx, str.URL1
lea rcx, str.SecondaryStartPages
call fcn.1400147a0
test eax, eax
jne 0x14000781b
lea r8, [rbp + 0x380]
lea rdx, [rbp + 0x170]
lea rcx, str._nError_Creating_Ini_Entry_in__s__SecondaryStartPages___URL1_s
call fcn.14000b8c0
mov dword [0x1400667b8], 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, [0x14004b120]
call fcn.1400147a0
test eax, eax
jne 0x14000787a
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x170]
lea rcx, str._nError_Creating_Ini_Entry_in__s__URL___Home_page_s
call fcn.14000b8c0
mov dword [0x1400667b8], esi
test edi, edi
je 0x1400078c7
mov dword [rsp + 0x20], ebx
lea r9, [rbp + 0x170]
lea r8, [rbp + 0x380]
lea rdx, str.URL1
lea rcx, str.SecondaryStartPages
call fcn.1400147a0
test eax, eax
jne 0x1400078c7
lea r8, [rbp + 0x380]
lea rdx, [rbp + 0x170]
lea rcx, str._nError_Creating_Ini_Entry_in__s__SecondaryStartPages___URL1_s
call fcn.14000b8c0
mov dword [0x1400667b8], esi
test r13, r13
je 0x1400078d6
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test r12, r12
je 0x1400078e5
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test r15, r15
je 0x1400078f4
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test r14, r14
je 0x140007902
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 0x14000792f
lea rcx, str._nError_blank_IE_Home_URL_cannot_be_set_in_System_Registry
call fcn.14000b8c0
mov esi, 1
mov dword [0x1400667b8], esi
mov rcx, qword [rbp + 0x9f0]
xor rcx, rsp
call fcn.14001a120
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