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

Disassembly:
push ebp
lea ebp, [esp - 0x21cc]
mov eax, 0x21cc
call fcn.00507730
push 0xffffffffffffffff
push 0x5378d0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5755c4]
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.00402930
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], 0x542024
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x2c]
call fcn.0048a570
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
push 0x599eec
call fcn.00412210
lea eax, [ebp - 0x2c]
push eax
push 0x599f4c
call fcn.00412210
lea eax, [ebp - 0x2c]
push eax
push 0x599fac
call fcn.00412210
lea eax, [ebp - 0x2c]
push eax
push 0x59a00c
call fcn.00412210
lea eax, [ebp - 0x2c]
push eax
push 0x59a06c
call fcn.00412210
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.0048a9f0
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.00402930
add esp, 0x14
lea eax, [ebp]
push eax
lea eax, [ebx + 0xe748]
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 0x412b1b
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x412c7e
cmp byte [ebp - 0x1c], 0
je 0x412b0d
push dword [ebp - 0x24]
push eax
call fcn.0049b220
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00524aa2
add esp, 4
jmp 0x412c7e
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
push 0xe748
call fcn.005074d2
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x412b54
lea ecx, [edi + 0x10]
call fcn.00466960
mov byte [ebp - 4], 4
jmp 0x412b56
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 [0x57cf9c]
mov dword [edi + 8], eax
lea ecx, [edi + 0x10]
push 0x58b998
call fcn.00410c80
push 0x80
lea eax, [ebp + 0x20c8]
push eax
mov ecx, 0x5909c0
call fcn.0049af40
mov byte [edi + 0x5139], 1
lea eax, [ebp + 0x20c8]
push eax
lea ecx, [edi + 0x5038]
call fcn.0049b1a0
push 0x100
lea eax, [ebp + 0x20c8]
push eax
call fcn.0049b220
push 0xe748
push edi
push ebx
call fcn.0051ff80
add esp, 0xc
push esi
lea ecx, [ebp - 0x2c]
call fcn.0048a6b0
push eax
lea eax, [ebx + 0xe748]
push eax
call fcn.0051ff80
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x412c1e
push 0x2710
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
xor esi, esi
mov edi, edi
cmp byte [ebx], 0
jne 0x412c13
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x64
jl 0x412c00
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412c25
mov byte [0x57dfc4], 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.00410b30
push 0xe748
push edi
call fcn.00507505
add esp, 8
xor eax, eax
mov word [0x58e9ae], ax
jmp 0x412ae9
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.00507712
lea esp, [ebp + 0x21cc]
pop ebp
ret