Function at 0x422b10
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x44f27c
mov eax, dword fs:[0]
push eax
sub esp, 0x8d0
mov eax, dword [0x46b114]
xor eax, esp
mov dword [esp + 0x8cc], eax
push ebx
push esi
push edi
mov eax, dword [0x46b114]
xor eax, esp
push eax
lea eax, [esp + 0x8e0]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x8e8], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [esp + 0x8e8], 4
test esi, esi
je 0x422b8a
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422b72
lea ecx, [esp + 0x6c]
push ecx
sub eax, edx
push eax
push esi
call fcn.0043ef6f
add esp, 0xc
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0xe6]
push eax
mov word [esp + 0xe8], dx
call sub.MSVCR90.dll_memset
lea ecx, [esp + 0x8fc]
push 0x459ee4
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.MSVCP90.dll_bool___cdecl_std::operator__wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
add esp, 0x14
test al, al
je 0x4230e2
mov esi, dword [esp + 0x924]
mov edi, dword [esp + 0x910]
mov ebx, 8
mov eax, edi
cmp esi, ebx
jae 0x422bed
lea eax, [esp + 0x910]
mov ecx, str.HKEY_CURRENT_USER
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x422c18
test dx, dx
je 0x422c14
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x422c18
add eax, 4
add ecx, 4
test dx, dx
jne 0x422bf2
xor eax, eax
jmp 0x422c1d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x422c2b
mov eax, getpeername
jmp 0x422d10
mov eax, edi
cmp esi, ebx
jae 0x422c38
lea eax, [esp + 0x910]
mov ecx, str.HKEY_CLASSES_ROOT
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x422c66
test dx, dx
je 0x422c62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x422c66
add eax, 4
add ecx, 4
test dx, dx
jne 0x422c40
xor eax, eax
jmp 0x422c6b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x422c79
mov eax, closesocket
jmp 0x422d10
mov eax, edi
cmp esi, ebx
jae 0x422c86
lea eax, [esp + 0x910]
mov ecx, str.HKEY_LOCAL_MACHINE
jmp 0x422c90
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x422cb6
test dx, dx
je 0x422cb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x422cb6
add eax, 4
add ecx, 4
test dx, dx
jne 0x422c90
xor eax, eax
jmp 0x422cbb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x422cc6
mov eax, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x422d10
mov eax, edi
cmp esi, ebx
jae 0x422cd3
lea eax, [esp + 0x910]
mov ecx, str.HKEY_USERS
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x422cfe
test dx, dx
je 0x422cfa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x422cfe
add eax, 4
add ecx, 4
test dx, dx
jne 0x422cd8
xor eax, eax
jmp 0x422d03
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4230e2
mov eax, reloc.WS2_32.dll_closesocket
mov ecx, dword [esp + 0x92c]
cmp dword [esp + 0x940], ebx
jae 0x422d27
lea ecx, [esp + 0x92c]
lea edx, [esp + 0x14]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4230e2
mov eax, dword [esp + 0x948]
mov dword [esp + 0x10], 0x400
cmp dword [esp + 0x95c], ebx
jae 0x422d5f
lea eax, [esp + 0x948]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xe0]
push edx
push 0
push 0
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4230e2
cmp dword [esp + 0x10], esi
je 0x4230e2
lea edx, [esp + 0xdc]
push edx
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x8e8], 5
cmp dword [esp + 0x48], esi
je 0x4230d0
push esi
push 0x22
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp dword [ecx], eax
je 0x422e0f
mov ecx, dword [ecx]
push ecx
inc eax
push eax
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x8ec], 6
call dword [0x454368]
lea ecx, [esp + 0x50]
mov byte [esp + 0x8e8], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push 0
push 0x22
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp dword [ecx], eax
je 0x422e5e
push eax
push 0
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x8ec], 7
call dword [0x454368]
lea ecx, [esp + 0x50]
mov byte [esp + 0x8e8], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebx
jae 0x422e6c
lea eax, [esp + 0x38]
push eax
call fcn.004403a9
add esp, 4
test al, al
je 0x4230d0
mov ecx, dword [esp + 0x70]
cmp dword [esp + 0x84], ebx
jae 0x422e8e
lea ecx, [esp + 0x70]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebx
jae 0x422e9c
lea eax, [esp + 0x38]
push 1
push 0
push ecx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x4230d0
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [esp + 0x8e8], 8
mov eax, dword [esp + 0x8f4]
cmp dword [esp + 0x908], ebx
jae 0x422ee1
lea eax, [esp + 0x8f4]
mov edx, dword [esp + 0x904]
lea ecx, [esp + 0x50]
push ecx
push edx
push eax
call fcn.0043eefa
add esp, 0xc
push str._value1_:
lea ecx, [esp + 0xa8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x45a884
lea ecx, [esp + 0x8c]
mov byte [esp + 0x8ec], 9
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x8c]
mov bl, 0xa
push ecx
lea edx, [esp + 0x20]
mov byte [esp + 0x8f0], bl
mov esi, dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push edx
call esi
add esp, 0xc
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x8ec], 0xb
call dword [0x454388]
lea ecx, [esp + 0x18]
mov byte [esp + 0x8e8], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0x45a7e0
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0xc
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x8ec], 0xc
call dword [0x454388]
lea ecx, [esp + 0x18]
mov byte [esp + 0x8e8], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea edx, [esp + 0x88]
push edx
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0x20]
push ecx
call esi
add esp, 0xc
push eax
lea ecx, [esp + 0xa8]
mov byte [esp + 0x8ec], 0xd
call dword [0x454388]
lea ecx, [esp + 0x18]
mov byte [esp + 0x8e8], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push str.browserget
lea ecx, [esp + 0xc4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0xc0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x88]
mov byte [esp + 0x8e8], 9
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xa4]
mov byte [esp + 0x8e8], 8
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x50]
mov byte [esp + 0x8e8], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x8e8], 4
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x6c]
mov byte [esp + 0x8e8], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x8f0]
mov byte [esp + 0x8e8], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x90c]
mov byte [esp + 0x8e8], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x928]
mov byte [esp + 0x8e8], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x944]
mov dword [esp + 0x8e8], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 1
jmp 0x42314d
lea ecx, [esp + 0x34]
mov byte [esp + 0x8e8], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x6c]
mov byte [esp + 0x8e8], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x8f0]
mov byte [esp + 0x8e8], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x90c]
mov byte [esp + 0x8e8], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x928]
mov byte [esp + 0x8e8], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x944]
mov dword [esp + 0x8e8], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x8e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8cc]
xor ecx, esp
call fcn.004390e8
add esp, 0x8dc
ret 0x70