Function at 0x404800
Capabilities:
Check os version
Create process on windows
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416e73
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x422008]
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 - 0x368], edx
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x36c], eax
mov dword [ebp - 0x364], ecx
test eax, eax
je 0x404851
mov dword [eax], 0
cmp dword [edi + 0x10], 0
jne 0x404864
mov dword [ecx], 0x3e9
xor al, al
jmp 0x404fa7
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x4c]
mov ecx, edi
call fcn.00406f80
mov edx, edi
lea ecx, [ebp - 0x94]
call fcn.004062c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x94]
cmp dword [ebp - 0x80], 8
mov edx, str..exe
cmovae ecx, dword [ebp - 0x94]
call fcn.00406b20
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x35d], al
mov dword [ebp - 0x34], 0
call fcn.00408360
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp - 0x34]
call fcn.00408a30
neg al
sbb al, al
and byte [ebp - 0x35d], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.004083e0
cmp byte [ebp - 0x35d], 0
je 0x404b6d
xor eax, eax
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
mov word [ebp - 0x96], ax
mov eax, 1
mov dword [ebp - 0x14], 0
mov word [ebp - 0xa8], ax
xor eax, eax
movlpd qword [ebp - 0xd4], xmm0
movlpd qword [ebp - 0xcc], xmm0
movlpd qword [ebp - 0xc4], xmm0
movlpd qword [ebp - 0xbc], xmm0
movlpd qword [ebp - 0xb4], xmm0
movlpd qword [ebp - 0xa6], xmm0
movlpd qword [ebp - 0x9e], xmm0
movups xmmword [ebp - 0x320], xmm0
mov dword [ebp - 0xd8], 0x44
mov dword [ebp - 0xac], 0x81
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x18]
mov byte [ebp - 0x34], al
mov eax, 0x104
push dword [ebp - 0x34]
sub eax, esi
push eax
call fcn.004051f0
push 1
push 0x41aaac
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], esi
call fcn.00403a40
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4049d0
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00405180
push 1
push 0x41aaac
lea ecx, [ebp - 0x28]
call fcn.00405180
mov esi, dword [ebp - 0x368]
cmp dword [esi + 0x10], 0
je 0x404a1c
push 1
push 0x41aab0
lea ecx, [ebp - 0x28]
call fcn.00405180
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x404a10
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00405180
cmp dword [ebp - 0x3c], 0
jne 0x404a26
xor eax, eax
jmp 0x404a31
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edx, edi
cmovae ecx, dword [ebp - 0x28]
cmp dword [edi + 0x14], 8
jb 0x404a46
mov edx, dword [edi]
lea esi, [ebp - 0x320]
push esi
lea esi, [ebp - 0xd8]
push esi
push eax
push 0
push 0x30
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404b19
mov eax, dword [ebp - 0x31c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x404a8c
push eax
call esi
mov dword [ebp - 0x31c], 0
mov ecx, dword [ebp - 0x320]
test ecx, ecx
jne 0x404a9e
mov byte [ebp - 0x35d], cl
jmp 0x404ac0
mov eax, dword [ebp - 0x36c]
test eax, eax
je 0x404aac
mov dword [eax], ecx
jmp 0x404ab9
push ecx
call esi
mov dword [ebp - 0x320], 0
mov byte [ebp - 0x35d], 1
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x404b00
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404af6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404af6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041503a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x404eed
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x404b59
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404b4f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404b4f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041503a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push 4
xor eax, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x64]
push 0x41aab4
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
call fcn.00403a40
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1f0]
push 0x118
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1f4], 0x11c
lea eax, [ebp - 0x1f4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x404cd3
cmp dword [ebp - 0x1f0], 6
ja 0x404bf3
jne 0x404c78
cmp dword [ebp - 0x1ec], 2
jb 0x404c78
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x404c78
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x404c78
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404c78
movups xmm0, xmmword [0x41adf8]
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [0x41ae08]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404c78
lea eax, [ebp - 0x30]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x404c78
cmp word [esi + 2], ax
jbe 0x404c78
movzx edx, word [esi + 0x32]
movzx ecx, word [esi + 0x30]
movzx eax, word [esi + 0x36]
mov dword [ebp - 0x1f0], edx
mov dword [ebp - 0x1ec], ecx
mov dword [ebp - 0x1e8], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x404cd3
push 0x118
lea eax, [ebp - 0x30c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x310], 0x11c
lea eax, [ebp - 0x310]
push eax
call esi
mov ecx, dword [ebp - 0x1e8]
test eax, eax
cmove ecx, dword [ebp - 0x304]
mov dword [ebp - 0x1e8], ecx
cmp dword [ebp - 0x1f0], 6
jb 0x404ceb
push 5
push str.runas
lea ecx, [ebp - 0x64]
call fcn.00403a40
push dword [ebp - 0x368]
lea ecx, [ebp - 0x7c]
call fcn.004050a0
mov byte [ebp - 4], 5
xorps xmm0, xmm0
cmp dword [ebp - 0x50], 8
lea eax, [ebp - 0x64]
movlpd qword [ebp - 0x33c], xmm0
cmovae eax, dword [ebp - 0x64]
cmp dword [edi + 0x14], 8
movlpd qword [ebp - 0x334], xmm0
movlpd qword [ebp - 0x32c], xmm0
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x35c], 0x3c
mov dword [ebp - 0x354], 0
mov dword [ebp - 0x358], 0x100540
mov dword [ebp - 0x350], eax
jb 0x404d59
mov edi, dword [edi]
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
push str.Shell32.dll
cmovae eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x68], 8
mov dword [ebp - 0x344], eax
lea eax, [ebp - 0x7c]
cmovae eax, dword [ebp - 0x7c]
mov dword [ebp - 0x34c], edi
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x340], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x404e27
push str.ShellExecuteExW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404e27
lea ecx, [ebp - 0x35c]
push ecx
call eax
test eax, eax
jne 0x404dd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x364]
add eax, 0x2710
mov dword [ecx], eax
jmp 0x404e37
mov ecx, dword [ebp - 0x324]
test ecx, ecx
jne 0x404dea
mov ecx, dword [ebp - 0x364]
mov dword [ecx], 0x3ea
jmp 0x404e37
mov eax, dword [ebp - 0x36c]
test eax, eax
je 0x404e06
push esi
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 0x35d], 1
jmp 0x404e45
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [ebp - 0x324], 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 0x35d], 1
jmp 0x404e45
mov ecx, dword [ebp - 0x364]
mov dword [ecx], 0x3eb
test esi, esi
je 0x404e3e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 0x35d], 0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x68]
cmp edx, 8
jb 0x404e85
mov ecx, dword [ebp - 0x7c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404e7b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404e7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041503a
add esp, 8
xor eax, eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 7
mov word [ebp - 0x7c], ax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x50]
cmp edx, 8
jb 0x404ed9
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404ecf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404ecf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041503a
add esp, 8
xor eax, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x80]
cmp edx, 8
jb 0x404f30
mov ecx, dword [ebp - 0x94]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404f26
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404f26
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041503a
add esp, 8
xor eax, eax
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x404f8d
mov ecx, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404f83
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404f83
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0041503a
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
mov al, byte [ebp - 0x35d]
mov dword [ebp - 0x38], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414ff9
mov esp, ebp
pop ebp
ret