Function at 0x41337c
Capabilities:
Create process on windows
Hide graphical window
Set current directory
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov esi, eax
xor eax, eax
push ebp
push 0x413d78
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov al, byte [0x418620]
mov edx, dword [0x419810]
mov bl, byte [edx + eax]
cmp bl, 2
sete dl
mov eax, dword [esi + 0xe4]
mov ecx, dword [eax]
call dword [ecx + 8]
test bl, bl
jbe 0x4133d6
cmp bl, 9
jb 0x4133da
xor eax, eax
jmp 0x4133dc
mov al, 1
mov byte [ebp - 1], al
mov eax, dword [esi + 0x20]
mov dl, byte [ebp - 1]
call fcn.00405f8c
mov eax, dword [esi + 0x30]
mov dl, byte [ebp - 1]
call fcn.00405f8c
cmp byte [0x418620], 0
seta dl
mov eax, dword [esi + 0x30]
call fcn.0040a0e4
mov eax, dword [esi + 0xa4]
mov dl, byte [ebp - 1]
call fcn.00405f8c
mov eax, dword [esi + 0xa8]
mov dl, byte [ebp - 1]
call fcn.00405f8c
cmp byte [ebp - 1], 0
je 0x413484
mov eax, dword [esi + 0x18]
call fcn.0040ac04
mov edi, eax
mov eax, dword [esi + 0xa8]
call fcn.0040aba4
sub edi, eax
mov eax, dword [esi + 0xa8]
call fcn.0040ac04
mov edx, edi
sub edx, eax
sub edx, 0x14
mov eax, dword [esi + 0xa4]
call fcn.0040ac10
mov eax, dword [esi + 0xa8]
call fcn.0040aba4
mov edi, eax
mov eax, dword [esi + 0xa8]
call fcn.0040ac04
add edi, eax
mov edx, edi
mov eax, dword [esi + 0xa4]
call fcn.0040abb0
cmp bl, 0xa
jae 0x4134b7
xor edi, edi
xor eax, eax
mov al, bl
cmp edi, eax
je 0x4134a1
mov eax, esi
mov edx, edi
call fcn.004132e0
call fcn.00405f9c
inc edi
cmp edi, 0xa
jne 0x41348b
xor edx, edx
mov dl, bl
mov eax, esi
call fcn.004132e0
call fcn.0040a974
xor eax, eax
mov al, bl
cmp eax, 0xa
ja case.default.0x4134c4
jmp dword [eax*4 + 0x4134cb]
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x5c]
mov eax, dword [esi + 0x34]
call fcn.0040a7e0
jmp case.default.0x4134c4
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x24]
mov eax, dword [esi + 0x24]
call fcn.0040a7e0
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x28]
mov eax, dword [esi + 0x28]
call fcn.0040a7e0
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x58]
mov eax, dword [esi + 0x34]
call fcn.0040a7e0
jmp case.default.0x4134c4
mov eax, dword [0x419808]
mov edx, 0xffffff
call fcn.0040ac58
mov eax, dword [0x419808]
mov dl, 1
call fcn.00407abc
mov eax, dword [esi + 0x34]
xor edx, edx
call fcn.0040a0e4
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x5c]
mov eax, dword [esi + 0x34]
call fcn.0040a7e0
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0xd4]
mov eax, dword [esi + 0x24]
call fcn.0040a7e0
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0xd8]
mov eax, dword [esi + 0x28]
call fcn.0040a7e0
jmp case.default.0x4134c4
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x88]
mov eax, dword [esi + 0x24]
call fcn.0040a7e0
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x148]
mov eax, dword [esi + 0x28]
call fcn.0040a7e0
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x5c]
mov eax, dword [esi + 0x34]
call fcn.0040a7e0
jmp case.default.0x4134c4
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x2c]
mov eax, dword [esi + 0x24]
call fcn.0040a7e0
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x30]
mov eax, dword [esi + 0x28]
call fcn.0040a7e0
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x5c]
mov eax, dword [esi + 0x34]
call fcn.0040a7e0
mov ebx, dword [esi + 0x48]
xor edx, edx
mov eax, dword [ebx + 0x1e0]
call dword [ebx + 0x1dc]
jmp case.default.0x4134c4
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x38]
mov eax, dword [esi + 0x24]
call fcn.0040a7e0
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x34]
mov eax, dword [esi + 0x28]
call fcn.0040a7e0
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x5c]
mov eax, dword [esi + 0x34]
call fcn.0040a7e0
jmp case.default.0x4134c4
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x38]
mov eax, dword [esi + 0x24]
call fcn.0040a7e0
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x3c]
mov eax, dword [esi + 0x28]
call fcn.0040a7e0
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x5c]
mov eax, dword [esi + 0x34]
call fcn.0040a7e0
jmp case.default.0x4134c4
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x40]
mov eax, dword [esi + 0x24]
call fcn.0040a7e0
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0xf8]
mov eax, dword [esi + 0x28]
call fcn.0040a7e0
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x68]
mov eax, dword [esi + 0x34]
call fcn.0040a7e0
mov eax, dword [0x41866c]
mov eax, dword [eax]
push dword [eax + 0xac]
push 0x413d90
lea edx, [ebp - 0x38]
mov eax, dword [esi + 0x48]
call fcn.00405f44
push dword [ebp - 0x38]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00401d60
mov eax, 0x56
call fcn.00415574
test al, al
je 0x41377a
mov eax, dword [esi + 0x9c]
call fcn.0040b00c
test al, al
jne 0x41377a
push dword [ebp - 0x10]
push 0x413da0
mov eax, dword [0x41866c]
mov eax, dword [eax]
push dword [eax + 0xb0]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00401d60
push dword [ebp - 0x10]
push 0x413d90
lea edx, [ebp - 0x3c]
mov eax, dword [esi + 0x50]
call fcn.00405f44
push dword [ebp - 0x3c]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00401d60
lea eax, [ebp - 0x14]
call fcn.00401a48
mov eax, 0x16
call fcn.00415574
test al, al
je 0x413858
mov eax, dword [esi + 0x84]
call fcn.0040b00c
test al, al
je 0x4137d3
mov eax, dword [esi + 0x84]
call fcn.0040a81c
test al, al
je 0x4137d3
push 0x413d90
mov eax, dword [0x41866c]
mov eax, dword [eax]
push dword [eax + 0x7c]
push 0x413db0
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00401d60
mov eax, dword [esi + 0x88]
call fcn.0040b00c
test al, al
je 0x413818
mov eax, dword [esi + 0x88]
call fcn.0040a81c
test al, al
je 0x413818
push dword [ebp - 0x14]
push 0x413d90
mov eax, dword [0x41866c]
mov eax, dword [eax]
push dword [eax + 0x80]
push 0x413db0
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00401d60
mov eax, dword [esi + 0x8c]
call fcn.0040b00c
test al, al
je 0x413858
mov eax, dword [esi + 0x8c]
call fcn.0040a81c
test al, al
je 0x413858
push dword [ebp - 0x14]
push 0x413d90
mov eax, dword [0x41866c]
mov eax, dword [eax]
push dword [eax + 0x84]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00401d60
cmp dword [ebp - 0x14], 0
je 0x413883
push dword [ebp - 0x10]
push 0x413da0
mov eax, dword [0x41866c]
mov eax, dword [eax]
push dword [eax + 0xb4]
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00401d60
mov eax, dword [esi + 0xf8]
mov edx, dword [ebp - 0x10]
call fcn.0040a7e0
jmp case.default.0x4134c4
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0xf4]
mov eax, dword [esi + 0x24]
call fcn.0040a7e0
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x44]
mov eax, dword [esi + 0x28]
call fcn.0040a7e0
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x14]
mov eax, dword [esi + 0x68]
call fcn.0040a7e0
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x5c]
mov eax, dword [esi + 0x34]
call fcn.0040a7e0
mov eax, dword [esi + 0x34]
xor edx, edx
call fcn.0040a0e4
mov eax, dword [esi + 0x30]
xor edx, edx
call fcn.0040a0e4
mov eax, esi
call fcn.00412c04
mov eax, dword [0x4186ac]
mov eax, dword [eax]
call fcn.0040ad48
jmp case.default.0x4134c4
mov eax, 0x27
call fcn.00415574
mov edx, eax
mov eax, dword [esi + 0xcc]
call fcn.00405f8c
mov eax, 0x4f
call fcn.00415574
mov edx, eax
mov eax, dword [esi + 0xd0]
call fcn.00405f8c
mov eax, 0x24
call fcn.00415574
mov edx, eax
mov eax, dword [esi + 0x100]
call fcn.00405f8c
mov eax, 0x34
call fcn.00415574
test al, al
je 0x4139fc
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x108]
mov eax, dword [esi + 0xf0]
call fcn.0040a7e0
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x10c]
mov eax, dword [esi + 0xf4]
call fcn.0040a7e0
mov eax, 0x34
call fcn.00415574
mov edx, eax
mov eax, dword [esi + 0xf0]
call fcn.00405f8c
mov eax, 0x34
call fcn.00415574
mov edx, eax
mov eax, dword [esi + 0xf4]
call fcn.00405f8c
mov eax, dword [esi + 0xf0]
mov edx, 0xffffff
call fcn.0040ac58
mov eax, dword [esi + 0xf4]
mov edx, 0xffffff
call fcn.0040ac58
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x13c]
mov eax, dword [esi + 0xc4]
call fcn.0040a7e0
jmp 0x413a11
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x1c]
mov eax, dword [esi + 0xc4]
call fcn.0040a7e0
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x18]
mov eax, dword [esi + 0xc0]
call fcn.0040a7e0
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0xa4]
mov eax, dword [esi + 0x34]
call fcn.0040a7e0
mov eax, dword [esi + 0xc4]
mov edx, 0x41
call fcn.0040ac38
mov eax, dword [esi + 0xd0]
mov edx, 0xffffff
call fcn.0040ac58
mov eax, dword [esi + 0xcc]
mov edx, 0xffffff
call fcn.0040ac58
mov eax, dword [esi + 0x100]
mov edx, 0xffffff
call fcn.0040ac58
mov eax, dword [esi + 0xcc]
call fcn.0040a81c
test al, al
jne 0x413a9a
mov eax, dword [esi + 0xd0]
mov edx, 0x98
call fcn.0040abe0
mov eax, dword [esi + 0xd0]
call fcn.0040a81c
test al, al
jne 0x413ab9
mov eax, dword [esi + 0x100]
mov edx, 0xb0
call fcn.0040abe0
mov eax, dword [esi + 0xcc]
call fcn.0040a81c
test al, al
jne 0x413ae7
mov eax, dword [esi + 0xd0]
call fcn.0040a81c
test al, al
jne 0x413ae7
mov eax, dword [esi + 0x100]
mov edx, 0x98
call fcn.0040abe0
mov eax, dword [esi + 0xcc]
call fcn.0040a81c
test al, al
jne 0x413b15
mov eax, dword [esi + 0xd0]
call fcn.0040a81c
test al, al
je 0x413b15
mov eax, dword [esi + 0x100]
mov edx, 0xb0
call fcn.0040abe0
mov eax, dword [esi + 0x34]
mov dl, 1
call fcn.0040a0e4
mov eax, dword [esi + 0x34]
mov dl, 1
call fcn.00407abc
mov eax, dword [esi + 0x2c]
xor edx, edx
call fcn.0040a0e4
mov eax, dword [esi + 0xa8]
call fcn.00405f9c
jmp case.default.0x4134c4
mov eax, dword [0x4186b0]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
call fcn.00405f9c
mov eax, dword [esi + 0x18]
call fcn.00405f9c
push 0
mov eax, dword [0x4186ac]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_ShowWindow
mov eax, 0x27
call fcn.00415574
test al, al
je 0x413be0
mov eax, dword [esi + 0xcc]
call fcn.0040b00c
test al, al
je 0x413be0
lea ecx, [ebp - 0x10]
mov eax, dword [0x4186d0]
mov eax, dword [eax]
mov eax, dword [eax + 0xac]
xor edx, edx
call fcn.0041085c
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x10]
call fcn.00404024
mov eax, dword [ebp - 0x40]
call fcn.00401e98
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
push 5
mov eax, dword [ebp - 0x10]
call fcn.00401e98
mov ebx, eax
push ebx
call sub.kernel32.dll_WinExec
cmp eax, 0x20
jae 0x413be0
push 5
push 0
push 0
push ebx
push 0
push 0
call sub.shell32.dll_ShellExecuteA
mov eax, 0x4f
call fcn.00415574
test al, al
je 0x413c45
mov eax, dword [esi + 0xd0]
call fcn.0040b00c
test al, al
je 0x413c45
lea ecx, [ebp - 0x10]
mov eax, dword [0x4186d0]
mov eax, dword [eax]
mov eax, dword [eax + 0xbc]
xor edx, edx
call fcn.0041085c
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 0x10]
call fcn.00404024
mov eax, dword [ebp - 0x44]
call fcn.00401e98
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
push 5
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.00401e98
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
mov eax, 0x24
call fcn.00415574
test al, al
je 0x413c91
mov eax, dword [esi + 0x100]
call fcn.0040b00c
test al, al
je 0x413c91
push 5
push 0
push 0
lea ecx, [ebp - 0x48]
mov eax, dword [0x4186d0]
mov eax, dword [eax]
mov eax, dword [eax + 0x94]
xor edx, edx
call fcn.0041085c
mov eax, dword [ebp - 0x48]
call fcn.00401e98
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
mov eax, 0x34
call fcn.00415574
test al, al
je 0x413d19
mov eax, dword [esi + 0xf0]
call fcn.0040b00c
test al, al
je 0x413d19
call fcn.0040c800
cmp al, 2
jbe 0x413d10
lea eax, [ebp - 8]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x413d10
lea eax, [ebp - 0x20]
push eax
push 0x413db4
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x413d10
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x18], 2
mov eax, 0x10
xor edx, edx
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x34]
push edx
push eax
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push 6
call sub.user32.dll_ExitWindowsEx
call fcn.00401940
xor eax, eax
mov al, byte [0x418620]
mov edx, dword [0x419810]
cmp byte [edx + eax + 1], 8
jne 0x413d44
mov eax, dword [0x41866c]
mov eax, dword [eax]
mov edx, dword [eax + 0x68]
mov eax, dword [esi + 0x34]
call fcn.0040a7e0
mov eax, dword [0x4186ac]
mov eax, dword [eax]
call fcn.0040ad48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413d7f
lea eax, [ebp - 0x48]
mov edx, 5
call fcn.00401a6c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00401a6c
ret