Function at 0x412800
Capabilities:
Create process on windows
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x21cc]
mov eax, 0x21cc
call fcn.00502fa0
push 0xffffffffffffffff
push 0x51b340
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5513d4]
xor eax, ebp
mov dword [ebp + 0x21c8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x800
lea eax, [ebp + 0x1000]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
push esi
push str.elevate
push str.__s_d
push 0x64
lea eax, [ebp + 0x2000]
push eax
call fcn.004027c0
add esp, 0x14
mov dword [ebp - 0x74], 0x3c
mov dword [ebp - 0x70], 0x40
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], str.runas
lea eax, [ebp + 0x1000]
mov dword [ebp - 0x64], eax
lea eax, [ebp + 0x2000]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 0x524968
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x2c]
call fcn.004895d0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
push 0x570afc
call fcn.00412090
lea eax, [ebp - 0x2c]
push eax
push 0x570b5c
call fcn.00412090
lea eax, [ebp - 0x2c]
push eax
push 0x570bbc
call fcn.00412090
lea eax, [ebp - 0x2c]
push eax
push 0x570c1c
call fcn.00412090
lea eax, [ebp - 0x2c]
push eax
push 0x570c7c
call fcn.00412090
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00489a50
mov ebx, eax
mov dword [ebp - 0x30], ebx
push esi
push str.winrar_map_
push str._s_d
push 0x800
lea eax, [ebp]
push eax
call fcn.004027c0
add esp, 0x14
lea eax, [ebp]
push eax
lea eax, [ebx + 0xc748]
push eax
push 0
push 0x8000004
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x41299b
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x412afe
cmp byte [ebp - 0x1c], 0
je 0x41298d
push dword [ebp - 0x24]
push eax
call fcn.0049a3e0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.005097b2
add esp, 4
jmp 0x412afe
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
push 0xc748
call fcn.00502d4e
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x4129d4
lea ecx, [edi + 0x10]
call fcn.00465ff0
mov byte [ebp - 4], 4
jmp 0x4129d6
xor edi, edi
mov byte [ebp - 4], 0
mov byte [edi], 0
mov esi, dword [ebp - 0x30]
mov dword [edi + 4], esi
mov eax, dword [0x558aa8]
mov dword [edi + 8], eax
lea ecx, [edi + 0x10]
push 0x5645a8
call fcn.00410b10
push 0x80
lea eax, [ebp + 0x20c8]
push eax
mov ecx, 0x5695d0
call fcn.0049a100
mov byte [edi + 0x5139], 1
lea eax, [ebp + 0x20c8]
push eax
lea ecx, [edi + 0x5038]
call fcn.0049a360
push 0x100
lea eax, [ebp + 0x20c8]
push eax
call fcn.0049a3e0
push 0xc748
push edi
push ebx
call fcn.00504fb0
add esp, 0xc
push esi
lea ecx, [ebp - 0x2c]
call fcn.00489710
push eax
lea eax, [ebx + 0xc748]
push eax
call fcn.00504fb0
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x412a9e
push 0x2710
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
xor esi, esi
mov edi, edi
cmp byte [ebx], 0
jne 0x412a93
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x64
jl 0x412a80
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412aa5
mov byte [0x558bb8], 1
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 0
lea ecx, [edi + 0x10]
call fcn.004109c0
push 0xc748
push edi
call fcn.00502d81
add esp, 8
xor eax, eax
mov word [0x5675be], ax
jmp 0x412969
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x21c8]
xor ecx, ebp
call fcn.00502f8e
lea esp, [ebp + 0x21cc]
pop ebp
ret