Function at 0x403690
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408f7c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x324
mov eax, dword [0x40e040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
add esp, 4
push str.._moonloader_config_Palatka___Arizona_RP_hash.txt
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.00405c40
push 0xb8
lea eax, [ebp - 0x300]
mov byte [ebp - 4], 1
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push str.C:_regeditkey.txt
lea ecx, [ebp - 0x300]
call fcn.004047e0
push str.C:_regeditkey.txt
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.00405c40
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
push 0xb8
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 4
push 0
push eax
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x6c], 0xf
lea eax, [ebp - 0x80]
lea ecx, [ebp - 0x220]
cmova eax, dword [ebp - 0x80]
push eax
call fcn.004047e0
mov eax, dword [ebp - 0x220]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x224], eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x1c4], 0
je 0x40391e
push 0x406950
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.File_opened
call fcn.00406730
add esp, 4
mov ecx, eax
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 str.Key_Opened
lea ecx, [ebp - 0x318]
call fcn.00405c40
lea ecx, [ebp - 0x318]
mov byte [ebp - 4], 6
call fcn.004013c0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x304]
cmp ecx, 0xf
jbe 0x40382b
mov edx, dword [ebp - 0x318]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403821
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403821
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407c14
add esp, 8
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x220]
push 0xa
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x220]
call fcn.004073d0
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
add esp, 4
mov edx, str.Read_String:
call fcn.00406730
cmp dword [ebp - 0x24], 0xf
lea edx, [ebp - 0x38]
push dword [ebp - 0x28]
cmova edx, dword [ebp - 0x38]
mov ecx, eax
call fcn.004071e0
add esp, 4
mov ecx, eax
push 0x406950
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_____]
lea eax, [ebp - 0x38]
mov edx, str.Key:
push eax
lea ecx, [ebp - 0xb0]
call fcn.00406980
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.004013c0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x9c]
cmp ecx, 0xf
jbe 0x4038ee
mov edx, dword [ebp - 0xb0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4038e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4038e4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407c14
add esp, 8
lea ecx, [ebp - 0x210]
call fcn.004061d0
test eax, eax
jne 0x4039b2
push eax
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x220]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
jmp 0x4039b2
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, 0x40a694
call fcn.00406730
cmp dword [ebp - 0x6c], 0xf
lea edx, [ebp - 0x80]
push dword [ebp - 0x70]
cmova edx, dword [ebp - 0x80]
mov ecx, eax
call fcn.004071e0
add esp, 4
mov ecx, eax
push 0x406950
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 str.Cannot_Open_File
lea ecx, [ebp - 0x318]
call fcn.00405c40
lea ecx, [ebp - 0x318]
mov byte [ebp - 4], 8
call fcn.004013c0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x304]
cmp ecx, 0xf
jbe 0x4039b2
mov edx, dword [ebp - 0x318]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4039a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4039a8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407c14
add esp, 8
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x98]
call fcn.00405d50
xorps xmm0, xmm0
mov dword [ebp - 0xa0], 0
movups xmmword [ebp - 0xb0], xmm0
mov dword [ebp - 0x9c], 0xf
mov byte [ebp - 0xb0], 0
push str.Continue_after_download...
lea ecx, [ebp - 0x318]
mov byte [ebp - 4], 0xa
call fcn.00405c40
lea ecx, [ebp - 0x318]
mov byte [ebp - 4], 0xb
call fcn.004013c0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x304]
cmp ecx, 0xf
jbe 0x403a49
mov edx, dword [ebp - 0x318]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403a3f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403a3f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407c14
add esp, 8
push str.IUFSDHGGGSEDGGDF
lea ecx, [ebp - 0x334]
call fcn.00405c40
lea edx, [ebp - 0x98]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x318]
call fcn.00401ed0
push ecx
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x50]
call fcn.00402890
mov byte [ebp - 4], 0xc
add esp, 4
mov ecx, dword [ebp - 0x304]
cmp ecx, 0xf
jbe 0x403aba
mov edx, dword [ebp - 0x318]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403ab0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403b05
push ecx
push edx
call fcn.00407c14
add esp, 8
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x320]
mov dword [ebp - 0x308], 0
mov dword [ebp - 0x304], 0xf
mov byte [ebp - 0x318], 0
cmp ecx, 0xf
jbe 0x403b15
mov edx, dword [ebp - 0x334]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403b0b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403b0b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407c14
add esp, 8
push str.First_Hash_Is_Wirtten
lea ecx, [ebp - 0x318]
call fcn.00405c40
lea ecx, [ebp - 0x318]
mov byte [ebp - 4], 0xe
call fcn.004013c0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x304]
cmp ecx, 0xf
jbe 0x403b74
mov edx, dword [ebp - 0x318]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403b6a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403b6a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407c14
add esp, 8
push 0x34
call fcn.0040787e
mov esi, eax
add esp, 4
mov dword [ebp - 0x31c], esi
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 0xf
push eax
mov ecx, esi
call fcn.00405d50
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0x10
lea ecx, [esi + 0x18]
push eax
mov dword [ebp - 0x20], ecx
call fcn.00405d50
mov dword [esi + 0x30], 0x402d90
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x11
push eax
push 0
push esi
push 0x4077f0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x403f6c
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
push str.Potok
lea ecx, [ebp - 0x318]
mov byte [ebp - 4], 0x13
call fcn.00405c40
lea ecx, [ebp - 0x318]
mov byte [ebp - 4], 0x14
call fcn.004013c0
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x304]
cmp ecx, 0xf
jbe 0x403c59
mov edx, dword [ebp - 0x318]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403c4f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403c4f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407c14
add esp, 8
push 0xb8
lea eax, [ebp - 0x168]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x3c], 0xf
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x168]
cmova eax, dword [ebp - 0x50]
push eax
call fcn.004047e0
mov eax, dword [ebp - 0x168]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x168]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x16c], eax
mov byte [ebp - 4], 0x15
cmp dword [ebp - 0x10c], 0
je 0x403d2a
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x168]
push 0xa
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x168]
call fcn.004073d0
add esp, 4
lea ecx, [ebp - 0x158]
call fcn.004061d0
test eax, eax
jne 0x403d0a
push eax
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x168]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x40a700
call fcn.00406730
cmp dword [ebp - 0x54], 0xf
lea edx, [ebp - 0x68]
push dword [ebp - 0x58]
cmova edx, dword [ebp - 0x68]
jmp 0x403d48
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, 0x40a504
call fcn.00406730
cmp dword [ebp - 0x3c], 0xf
lea edx, [ebp - 0x50]
push dword [ebp - 0x40]
cmova edx, dword [ebp - 0x50]
mov ecx, eax
call fcn.004071e0
add esp, 4
mov ecx, eax
push 0x406950
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_____]
cmp dword [ebp - 0x18], 0
jne 0x403d6d
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
call dword [sym.imp.MSVCP140.dll__Thrd_id]
mov ecx, dword [ebp - 0x18]
cmp ecx, eax
jne 0x403d82
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 0
push ecx
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCP140.dll__Thrd_join]
add esp, 0xc
test eax, eax
je 0x403d9d
push 2
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
xorps xmm0, xmm0
lea ecx, [ebp - 0x168]
movlpd qword [ebp - 0x1c], xmm0
call fcn.00403f80
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x403de4
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403dda
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403f1b
push ecx
push edx
call fcn.00407c14
add esp, 8
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
je 0x403e02
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x403e3c
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403e32
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403f1b
push ecx
push edx
call fcn.00407c14
add esp, 8
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
call fcn.00403f80
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x403e96
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403e8c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403f1b
push ecx
push edx
call fcn.00407c14
add esp, 8
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
cmp ecx, 0xf
jbe 0x403ed8
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403ece
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403f1b
push ecx
push edx
call fcn.00407c14
add esp, 8
lea ecx, [ebp - 0x300]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
call fcn.00403f80
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x403f2b
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403f21
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403f21
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407c14
add esp, 8
lea eax, [ebp - 0x248]
mov dword [ebp - 0x40], 0
push eax
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
call dword [sym.imp.MSVCP140.dll__Cnd_destroy_in_situ]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407870
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 6
mov dword [ebp - 0x18], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3