Function at 0x434840
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4823f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
push edi
push 0xd
xorps xmm0, xmm0
mov dword [ebp - 0xa0], 0
push str.SOFTWAREHOPE
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x9c], 0
movups xmmword [ebp - 0xb0], xmm0
call fcn.004083c0
cmp dword [ebp - 0x9c], 7
lea ecx, [ebp - 0x10]
push 0
push ecx
push 0
push 0x2011f
push 0
push 0
lea eax, [ebp - 0xb0]
mov dword [ebp - 4], 0
cmova eax, dword [ebp - 0xb0]
push 0
push eax
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4352c3
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x94], esi
push 4
xorps xmm0, xmm0
mov byte [ebp - 4], 1
push 0x495be8
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x68], eax
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x64], eax
call fcn.004083c0
push 4
xorps xmm0, xmm0
mov byte [ebp - 4], 2
push 0x495bf4
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x80], 0
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x7c], 0
call fcn.004083c0
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0x94]
call fcn.00432390
cmp byte [ebp - 0xb4], 1
mov byte [ebp - 4], 5
jne 0x435070
lea ecx, [ebp - 0x11c]
call fcn.00431090
cmp dword [ebp - 0xb8], 7
lea ecx, [ebp - 0xcc]
mov eax, dword [ebp - 0xbc]
cmova ecx, dword [ebp - 0xcc]
mov byte [ebp - 4], 6
lea eax, [ecx + eax*2]
push eax
push ecx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x11c]
call fcn.004342e0
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 5
call fcn.00431780
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x4349f4
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4349ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434b17
push ecx
push edx
call fcn.0043591e
add esp, 8
movups xmm0, xmmword [ebp - 0x30]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push str._____License:
movups xmmword [ebp - 0x48], xmm0
push 0x433ba0
movq xmm0, qword [ebp - 0x20]
movq qword [ebp - 0x38], xmm0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push eax
call fcn.004134f0
cmp dword [ebp - 0x34], 0xf
lea ecx, [ebp - 0x48]
push dword [ebp - 0x38]
cmova ecx, dword [ebp - 0x48]
push ecx
push eax
call fcn.0041f860
push 0x4a1917
push eax
call fcn.004134f0
add esp, 0x1c
mov ecx, eax
push 0x41fe30
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
sub esp, 0x18
lea eax, [ebp - 0x48]
mov ecx, esp
push eax
call fcn.00406f80
call fcn.00434250
add esp, 0x18
test al, al
je 0x434d90
lea ecx, [ebp - 0x11c]
call fcn.00431090
mov ecx, eax
cmp dword [ebp - 0x34], 0xf
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x38]
cmova edx, dword [ebp - 0x48]
add eax, edx
mov byte [ebp - 4], 7
push eax
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.00433ef0
lea ecx, [ebp - 0x11c]
call fcn.00431780
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x1c], 7
mov byte [ebp - 4], 8
cmova ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x64], 7
lea edx, [eax*2 + 2]
push edx
push ecx
push 1
lea eax, [ebp - 0x78]
cmova eax, dword [ebp - 0x78]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x434ae7
push str.Cannot_write_string_value:_RegSetValueExW_failed.
jmp 0x4352c8
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 5
cmp ecx, 7
jbe 0x434b27
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x434b1d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x434b1d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043591e
add esp, 8
lea ecx, [ebp - 0x11c]
call fcn.00431090
mov ecx, eax
cmp dword [0x7abc34], 0xf
mov edx, 0x7abc20
mov eax, dword [0x7abc30]
cmova edx, dword [0x7abc20]
add eax, edx
mov byte [ebp - 4], 9
push eax
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.00433ef0
lea ecx, [ebp - 0x11c]
call fcn.00431780
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x1c], 7
mov byte [ebp - 4], 0xa
cmova ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x7c], 7
lea edx, [eax*2 + 2]
push edx
push ecx
push 1
lea eax, [ebp - 0x90]
cmova eax, dword [ebp - 0x90]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x434bae
push str.Cannot_write_string_value:_RegSetValueExW_failed.
jmp 0x4352c8
mov ecx, dword [ebp - 0x1c]
cmp ecx, 7
jbe 0x434bea
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x434be0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x434be0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043591e
add esp, 8
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsx eax, byte [ebp - 0xb4]
inc eax
sub eax, 0
je 0x434c0d
sub eax, 1
je 0x434c0d
lea ecx, [ebp - 0xcc]
call fcn.00406c00
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x434c41
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x434c37
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434d82
push ecx
push edx
call fcn.0043591e
add esp, 8
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp ecx, 7
jbe 0x434c90
mov edx, dword [ebp - 0x90]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x434c86
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434d82
push ecx
push edx
call fcn.0043591e
add esp, 8
mov ecx, dword [ebp - 0x64]
xor eax, eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
cmp ecx, 7
jbe 0x434ce1
mov edx, dword [ebp - 0x78]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x434cd7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434d82
push ecx
push edx
call fcn.0043591e
add esp, 8
xor eax, eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
test esi, esi
je 0x434d44
cmp esi, reloc.WS2_32.dll_accept
je 0x434d44
cmp esi, reloc.WS2_32.dll_bind
je 0x434d44
cmp esi, 0x80000000
je 0x434d44
cmp esi, reloc.WS2_32.dll_getpeername
je 0x434d44
cmp esi, reloc.WS2_32.dll_getsockopt
je 0x434d44
cmp esi, reloc.WS2_32.dll_connect
je 0x434d44
cmp esi, 0x80000060
je 0x434d44
cmp esi, 0x80000050
je 0x434d44
cmp esi, reloc.WS2_32.dll_closesocket
je 0x434d44
push esi
call edi
mov ecx, dword [ebp - 0x9c]
cmp ecx, 7
jbe 0x4352ac
mov edx, dword [ebp - 0xb0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4352a2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4352a2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop dword [eax + eax]
cmp dword [ebp - 0x34], 0xf
lea eax, [ebp - 0x48]
mov dword [ebp - 0x38], 0
cmova eax, dword [ebp - 0x48]
push str._n_____License_FAILED
mov byte [eax], 0
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004134f0
push str._n_____Enter_license:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004134f0
lea eax, [ebp - 0x48]
push eax
push dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.00430b10
mov edi, esp
lea ecx, [ebp - 0x48]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
cmp dword [ebp - 0x34], 0xf
mov eax, dword [ebp - 0x38]
cmova ecx, dword [ebp - 0x48]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x18], ecx
cmp eax, 0x7fffffff
ja 0x4352be
cmp eax, 0xf
ja 0x434e23
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
movups xmm0, xmmword [ecx]
movups xmmword [edi], xmm0
jmp 0x434e6d
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x434e34
mov eax, accept
jmp 0x434e3f
cmp eax, 0x16
mov ecx, 0x16
cmovb eax, ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.00416190
mov edx, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x10]
mov dword [edi + 0x14], ecx
mov dword [edi], eax
lea ecx, [edx + 1]
mov dword [edi + 0x10], edx
push ecx
push dword [ebp - 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x14
call fcn.00434250
add esp, 0x18
test al, al
je 0x434d90
lea ecx, [ebp - 0x11c]
call fcn.00431090
mov ecx, eax
cmp dword [ebp - 0x34], 0xf
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x38]
cmova edx, dword [ebp - 0x48]
add eax, edx
mov byte [ebp - 4], 0xb
push eax
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.00433ef0
lea ecx, [ebp - 0x11c]
call fcn.00431780
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x1c], 7
mov byte [ebp - 4], 0xc
cmova ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x64], 7
lea edx, [eax*2 + 2]
push edx
push ecx
push 1
lea eax, [ebp - 0x78]
cmova eax, dword [ebp - 0x78]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x434ef4
push str.Cannot_write_string_value:_RegSetValueExW_failed.
jmp 0x4352c8
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 5
cmp ecx, 7
jbe 0x434f34
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x434f2a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x434f2a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043591e
add esp, 8
lea ecx, [ebp - 0x11c]
call fcn.00431090
mov ecx, eax
cmp dword [0x7abc34], 0xf
mov edx, 0x7abc20
mov eax, dword [0x7abc30]
cmova edx, dword [0x7abc20]
add eax, edx
mov byte [ebp - 4], 0xd
push eax
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.00433ef0
lea ecx, [ebp - 0x11c]
call fcn.00431780
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x1c], 7
cmova ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x7c], 7
lea edx, [eax*2 + 2]
push edx
push ecx
push 1
lea eax, [ebp - 0x90]
cmova eax, dword [ebp - 0x90]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x434fbb
push str.Cannot_write_string_value:_RegSetValueExW_failed.
jmp 0x4352c8
mov ecx, dword [ebp - 0x1c]
cmp ecx, 7
jbe 0x434ff7
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x434fed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x434fed
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043591e
add esp, 8
test esi, esi
je 0x434bea
cmp esi, reloc.WS2_32.dll_accept
je 0x435057
cmp esi, reloc.WS2_32.dll_bind
je 0x435057
cmp esi, 0x80000000
je 0x435057
cmp esi, reloc.WS2_32.dll_getpeername
je 0x435057
cmp esi, reloc.WS2_32.dll_getsockopt
je 0x435057
cmp esi, reloc.WS2_32.dll_connect
je 0x435057
cmp esi, 0x80000060
je 0x435057
cmp esi, 0x80000050
je 0x435057
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, reloc.WS2_32.dll_closesocket
je 0x43505d
push esi
call edi
xor esi, esi
jmp 0x434bf0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
jmp 0x434bf0
push str._n_____Enter_license:
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004134f0
lea eax, [ebp - 0x48]
push eax
push dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.00430b10
mov edi, dword [ebp - 0x38]
lea eax, [ebp - 0x48]
add esp, 0x10
mov dword [ebp - 0x50], 0
cmp dword [ebp - 0x34], 0xf
xorps xmm0, xmm0
movups xmmword [ebp - 0x60], xmm0
cmova eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x18], eax
cmp edi, 0x7fffffff
ja 0x4352be
cmp edi, 0xf
ja 0x4350dc
movups xmm0, xmmword [eax]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], 0xf
movups xmmword [ebp - 0x60], xmm0
jmp 0x435126
mov eax, edi
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x4350ef
mov eax, accept
jmp 0x4350fa
cmp eax, 0x16
mov ecx, 0x16
cmovb eax, ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00416190
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x4c], ecx
lea ecx, [edi + 1]
push ecx
push dword [ebp - 0x18]
mov dword [ebp - 0x60], eax
push eax
mov dword [ebp - 0x50], edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x14
sub esp, 0x18
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x60]
mov ecx, esp
push eax
call fcn.00406f80
mov ecx, 0x7abb00
call fcn.00404390
mov al, byte [0x7abc8c]
mov ecx, dword [ebp - 0x4c]
mov byte [ebp - 0x11], al
mov byte [ebp - 4], 5
cmp ecx, 0xf
jbe 0x435185
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x435178
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x434b17
push ecx
push edx
call fcn.0043591e
mov al, byte [ebp - 0x11]
add esp, 8
test al, al
jne 0x4351a1
push str._n_____License_FAILED
push dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.004134f0
add esp, 8
jmp 0x435070
lea ecx, [ebp - 0x11c]
call fcn.00431090
mov ecx, eax
cmp dword [ebp - 0x34], 0xf
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x38]
cmova edx, dword [ebp - 0x48]
add eax, edx
mov byte [ebp - 4], 0x10
push eax
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.00433ef0
lea ecx, [ebp - 0x11c]
call fcn.00431780
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x1c], 7
mov byte [ebp - 4], 0x11
cmova ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x64], 7
lea edx, [eax*2 + 2]
push edx
push ecx
push 1
lea eax, [ebp - 0x78]
cmova eax, dword [ebp - 0x78]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x435218
push str.Cannot_write_string_value:_RegSetValueExW_failed.
jmp 0x4352c8
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 5
cmp ecx, 7
jbe 0x435258
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x43524e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x43524e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043591e
add esp, 8
lea ecx, [ebp - 0x11c]
call fcn.00431090
mov ecx, eax
cmp dword [0x7abc34], 0xf
mov edx, 0x7abc20
mov eax, dword [0x7abc30]
cmova edx, dword [0x7abc20]
add eax, edx
mov byte [ebp - 4], 0x12
push eax
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.00433ef0
lea ecx, [ebp - 0x11c]
call fcn.00431780
mov byte [ebp - 4], 0x13
jmp 0x434f79
push ecx
push edx
call fcn.0043591e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004015f0
push str.RegCreateKeyExW_failed.
push eax
lea ecx, [ebp - 0x5c]
call fcn.00431240
push 0x4a7a6c
lea eax, [ebp - 0x5c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3