Function at 0x40fb00
Capabilities:
Create thread
Execute command
Extract resource via kernel32 functions
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418015
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x42100c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
call fcn.00413dc0
call fcn.004086d0
push 0xd
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
push 0x41a7e4
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], 0
mov esi, eax
movups xmmword [ebp - 0x68], xmm0
call fcn.0040ad80
lea edi, [esi + 0x18]
mov dword [ebp - 4], 0
mov al, byte [edi]
test al, al
jne 0x40fbec
lea eax, [ebp - 0x68]
cmp esi, eax
je 0x40fb87
cmp dword [ebp - 0x54], 0x10
mov ecx, esi
push dword [ebp - 0x58]
cmovae eax, dword [ebp - 0x68]
push eax
call fcn.0040a440
mov al, 1
xchg byte [edi], al
push 4
call fcn.00415527
mov dword [ebp - 0x20], eax
mov dword [eax], esi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
push ecx
push 0
push eax
push 0x40e610
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [ebp - 0x50], eax
test eax, eax
je 0x40fbdd
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x40fbd5
push ecx
push eax
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
add esp, 8
test eax, eax
je 0x40fbec
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 6
mov dword [ebp - 0x4c], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x54]
cmp ecx, 0x10
jb 0x40fc27
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40fc1d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fea8
push ecx
push edx
call fcn.004158c2
add esp, 8
call fcn.004086d0
mov edi, eax
lea esi, [edi + 0x1c]
push esi
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x40fc47
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
jne 0x40fc5d
dec eax
push 6
mov dword [esi + 0x2c], eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov al, byte [edi + 0x74]
lea ecx, [edi + 0x4c]
test al, al
jne 0x40fc7c
push esi
push ecx
call dword [sym.imp.MSVCP140.dll__Cnd_wait]
mov al, byte [edi + 0x74]
add esp, 8
lea ecx, [edi + 0x4c]
test al, al
je 0x40fc67
push esi
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
push 0x64
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x40fcca
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov edi, eax
test edi, edi
je 0x40fcca
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push 0x80
push edi
call esi
push dword [ebp - 0x20]
push 0
push 0x80
push edi
call esi
push 0xa
push 0x65
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
push 0
movq qword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40fd14
mov edx, str.Cannot_find_resource_
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.0040a7d0
push 0x40a9b0
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_____]
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x24], ecx
jmp 0x40fd9a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40fd28
mov edx, str.Cannot_load_resource_
jmp 0x40fcf0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor ecx, ecx
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
movq qword [ebp - 0x1c], xmm0
mov esi, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 3
test esi, esi
je 0x40fd6e
push ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040e460
mov ecx, dword [ebp - 0x1c]
push esi
push edi
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 4
cmp edx, ecx
je 0x40fdbf
mov esi, dword [ebp - 0x48]
sub esp, 0x1c
mov eax, dword [esi]
mov ecx, dword [eax]
call fcn.00414620
add esp, 0x1c
jmp 0x40fdd6
push 0
push str.SAChecker__kichiro
push 0x41a7f4
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [ebp - 0x48]
lea edi, [esi + 4]
nop dword [eax]
push 0x41a750
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
mov ecx, edi
call fcn.00410830
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.e_36m
call fcn.0040a7d0
mov edx, 0x41a790
mov ecx, eax
call fcn.0040a7d0
mov edx, str.e_0m
mov ecx, eax
call fcn.0040a7d0
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 5
mov esi, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
push 0xa
mov eax, dword [esi]
mov ecx, dword [eax + 4]
add ecx, esi
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 - 0x44]
push eax
mov ecx, esi
call fcn.004104e0
add esp, 4
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.004108e0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x40fde0
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40fe99
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fea8
push ecx
push edx
call fcn.004158c2
add esp, 8
jmp 0x40fde0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3