Function at 0x403620
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 0x408efc
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.00405be0
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.00404780
push str.C:_regeditkey.txt
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.00405be0
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.00404780
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 0x4038ae
push 0x4068f0
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.004066d0
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.00405be0
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 0x4037bb
mov edx, dword [ebp - 0x318]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4037b1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4037b1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407bb4
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.00407370
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.004066d0
cmp dword [ebp - 0x24], 0xf
lea edx, [ebp - 0x38]
push dword [ebp - 0x28]
cmova edx, dword [ebp - 0x38]
mov ecx, eax
call fcn.00407180
add esp, 4
mov ecx, eax
push 0x4068f0
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.00406920
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 0x40387e
mov edx, dword [ebp - 0xb0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403874
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403874
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407bb4
add esp, 8
lea ecx, [ebp - 0x210]
call fcn.00406170
test eax, eax
jne 0x403942
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 0x403942
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, 0x40a61c
call fcn.004066d0
cmp dword [ebp - 0x6c], 0xf
lea edx, [ebp - 0x80]
push dword [ebp - 0x70]
cmova edx, dword [ebp - 0x80]
mov ecx, eax
call fcn.00407180
add esp, 4
mov ecx, eax
push 0x4068f0
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.00405be0
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 0x403942
mov edx, dword [ebp - 0x318]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403938
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403938
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407bb4
add esp, 8
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x98]
call fcn.00405cf0
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.00405be0
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 0x4039d9
mov edx, dword [ebp - 0x318]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4039cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4039cf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407bb4
add esp, 8
push str.IUFSDHGGGSEDGGDF
lea ecx, [ebp - 0x334]
call fcn.00405be0
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.00402820
mov byte [ebp - 4], 0xc
add esp, 4
mov ecx, dword [ebp - 0x304]
cmp ecx, 0xf
jbe 0x403a4a
mov edx, dword [ebp - 0x318]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403a40
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403a95
push ecx
push edx
call fcn.00407bb4
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 0x403aa5
mov edx, dword [ebp - 0x334]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403a9b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403a9b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407bb4
add esp, 8
push str.First_Hash_Is_Wirtten
lea ecx, [ebp - 0x318]
call fcn.00405be0
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 0x403b04
mov edx, dword [ebp - 0x318]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403afa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403afa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407bb4
add esp, 8
push 0x34
call fcn.0040781e
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.00405cf0
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0x10
lea ecx, [esi + 0x18]
push eax
mov dword [ebp - 0x20], ecx
call fcn.00405cf0
mov dword [esi + 0x30], 0x402d20
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0x11
push eax
push 0
push esi
push 0x407790
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 0x403efc
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.00405be0
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 0x403be9
mov edx, dword [ebp - 0x318]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403bdf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403bdf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407bb4
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.00404780
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 0x403cba
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.00407370
add esp, 4
lea ecx, [ebp - 0x158]
call fcn.00406170
test eax, eax
jne 0x403c9a
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, 0x40a688
call fcn.004066d0
cmp dword [ebp - 0x54], 0xf
lea edx, [ebp - 0x68]
push dword [ebp - 0x58]
cmova edx, dword [ebp - 0x68]
jmp 0x403cd8
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, 0x40a48c
call fcn.004066d0
cmp dword [ebp - 0x3c], 0xf
lea edx, [ebp - 0x50]
push dword [ebp - 0x40]
cmova edx, dword [ebp - 0x50]
mov ecx, eax
call fcn.00407180
add esp, 4
mov ecx, eax
push 0x4068f0
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 0x403cfd
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 0x403d12
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 0x403d2d
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.00403f10
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x403d74
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403d6a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403eab
push ecx
push edx
call fcn.00407bb4
add esp, 8
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
je 0x403d92
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x403dcc
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403dc2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403eab
push ecx
push edx
call fcn.00407bb4
add esp, 8
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
call fcn.00403f10
mov ecx, dword [ebp - 0x24]
cmp ecx, 0xf
jbe 0x403e26
mov edx, dword [ebp - 0x38]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403e1c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403eab
push ecx
push edx
call fcn.00407bb4
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 0x403e68
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403e5e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403eab
push ecx
push edx
call fcn.00407bb4
add esp, 8
lea ecx, [ebp - 0x300]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
call fcn.00403f10
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x403ebb
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403eb1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403eb1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00407bb4
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.00407810
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