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

Disassembly:
push ebp
lea ebp, [esp - 0x20cc]
mov eax, 0x20cc
call fcn.00530230
push 0xffffffffffffffff
push 0x54c0e5
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x58cb30]
xor eax, ebp
mov dword [ebp + 0x20c8], 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 ebx, eax
push ebx
push str.elevate
push str.__s_d
push 0x64
lea eax, [ebp + 0x2000]
push eax
call fcn.00404ce0
add esp, 0x14
mov dword [ebp - 0x98], 0x3c
mov dword [ebp - 0x94], 0x40
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], str.runas
lea eax, [ebp + 0x1000]
mov dword [ebp - 0x88], eax
lea eax, [ebp + 0x2000]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 0x558b90
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x78], 0
lea ecx, [ebp - 0x44]
call fcn.004a7f40
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x44]
push eax
push 0x5b432c
call fcn.00415330
lea eax, [ebp - 0x44]
push eax
push 0x5b4388
call fcn.00415330
lea eax, [ebp - 0x44]
push eax
push 0x5b43e4
call fcn.00415330
lea eax, [ebp - 0x44]
push eax
push 0x5b4440
call fcn.00415330
lea eax, [ebp - 0x44]
push eax
push 0x5b449c
call fcn.00415330
lea eax, [ebp - 0x11]
push eax
push 0x200
lea ecx, [ebp - 0x24]
call fcn.00415270
mov byte [ebp - 4], 2
cmp byte [0x5943f4], 0
je 0x415cc5
cmp byte [0x5b4504], 0
jne 0x415cc5
cmp byte [0x5c3f48], 0
je 0x415cc5
lea ecx, [ebp - 0x5c]
call fcn.004ba930
mov byte [ebp - 4], 3
lea eax, [ebp - 0x5c]
push eax
mov ecx, 0x5c3bd0
call fcn.00415650
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
sub ecx, eax
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.004babd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5c]
call fcn.004baa00
jmp 0x415cdb
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
sub ecx, eax
sar ecx, 1
push ecx
push eax
mov ecx, 0x5b44f8
call fcn.004babd0
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
sub ecx, eax
and ecx, 0xfffffffe
push 1
push 1
push ecx
push eax
call fcn.004badf0
push 0x200
push dword [ebp - 0x24]
lea ecx, [ebp - 0x44]
call fcn.004a83c0
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
sub ecx, eax
and ecx, 0xfffffffe
push ecx
push eax
call fcn.004baf90
mov eax, dword [0x5b450c]
sub eax, dword [0x5b4508]
sar eax, 3
push eax
lea ecx, [ebp - 0x44]
call fcn.004a8190
mov esi, dword [0x5b4508]
mov dword [ebp - 0x48], esi
mov edi, dword [0x5b450c]
lea esp, [esp]
cmp esi, edi
je 0x415d59
push dword [esi + 4]
push dword [esi]
lea ecx, [ebp - 0x44]
call fcn.004a81f0
add esi, 8
mov dword [ebp - 0x48], esi
jmp 0x415d40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004160e0
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x44]
call fcn.004a8420
mov esi, eax
mov dword [ebp - 0x28], esi
push ebx
push str.winrar_map_
push str._s_d
push 0x800
lea eax, [ebp]
push eax
call fcn.00404ce0
add esp, 0x14
lea eax, [ebp]
push eax
lea eax, [esi + 0xf650]
push eax
push 0
push 0x8000004
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x415dda
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x416036
push eax
call fcn.0053867f
add esp, 4
jmp 0x416036
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x2c], esi
push 0xf650
call fcn.0052ffdd
add esp, 4
mov edi, eax
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 6
test edi, edi
je 0x415e16
lea ecx, [edi + 0x10]
call fcn.0047f880
mov byte [ebp - 4], 6
jmp 0x415e18
xor edi, edi
mov byte [ebp - 4], 0
mov byte [edi], 0
mov eax, dword [ebp - 0x28]
mov dword [edi + 4], eax
mov eax, dword [0x5933dc]
mov dword [edi + 8], eax
lea ebx, [edi + 0x10]
push 0xd428
push 0x5a4ed8
push ebx
call fcn.00531d40
add esp, 0xc
movzx eax, byte [0x5b2300]
mov byte [ebx + 0xd428], al
movzx eax, byte [0x5b2301]
mov byte [ebx + 0xd429], al
mov eax, dword [0x5b2304]
mov dword [ebx + 0xd42c], eax
movzx eax, byte [0x5b2308]
mov byte [ebx + 0xd430], al
movzx eax, byte [0x5b2309]
mov byte [ebx + 0xd431], al
lea edx, [ebx + 0xd432]
xor ecx, ecx
lea ebx, [ebx]
mov ax, word [ecx + 0x5b230a]
mov word [edx], ax
add ecx, 2
lea edx, [edx + 2]
cmp ecx, 0x1020
jb 0x415e90
lea edx, [ebx + 0xe452]
xor ecx, ecx
mov ax, word [ecx + 0x5b332a]
mov word [edx], ax
add ecx, 2
lea edx, [edx + 2]
cmp ecx, 0x1000
jb 0x415eb0
push 0x5b432c
lea ecx, [ebx + 0xf454]
call fcn.0040d5f0
push 0x5b4388
lea ecx, [ebx + 0xf4b0]
call fcn.0040d5f0
push 0x5b43e4
lea ecx, [ebx + 0xf50c]
call fcn.0040d5f0
push 0x5b4440
lea ecx, [ebx + 0xf568]
call fcn.0040d5f0
push 0x5b449c
lea ecx, [ebx + 0xf5c4]
call fcn.0040d5f0
lea eax, [ebx + 0xf620]
cmp eax, 0x5b44f8
je 0x415f3b
push dword [ebp - 0x18]
push dword [0x5b44fc]
push dword [0x5b44f8]
mov ecx, eax
call fcn.00404d10
mov al, byte [0x5b4504]
mov byte [ebx + 0xf62c], al
lea ecx, [ebx + 0xf630]
cmp ecx, 0x5b4508
je 0x415f68
push dword [ebp - 0x18]
push dword [0x5b450c]
push dword [0x5b4508]
call fcn.0040d450
push 0xf650
push edi
push esi
call fcn.00531d40
add esp, 0xc
push dword [ebp - 0x28]
lea ecx, [ebp - 0x44]
call fcn.004a80e0
push eax
lea eax, [esi + 0xf650]
push eax
call fcn.00531d40
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x415fd7
push 0x2710
push dword [ebp - 0x60]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
xor esi, esi
mov eax, dword [ebp - 0x2c]
cmp byte [eax], 0
jne 0x415fc9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x64
jl 0x415fb3
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x2c]
jmp 0x415fde
mov byte [0x594404], 1
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 0
mov ecx, ebx
call fcn.00413b10
push 0xf650
push edi
call fcn.0053000d
add esp, 8
xor eax, eax
mov word [0x5a7eee], ax
jmp 0x415dba
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c8]
xor ecx, ebp
call fcn.00530218
lea esp, [ebp + 0x20cc]
pop ebp
ret