Function at 0x401cd0
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ca18
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x5606dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
call esi
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.00403387
test eax, eax
jne 0x401d2e
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0
call esi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, 1
mov ebx, eax
cmp dword [ebp - 0x14], edi
jle 0x401d92
mov edi, edi
mov ecx, dword [ebx + edi*4]
push ecx
call section..text
mov esi, eax
add esp, 4
test esi, esi
je 0x401d86
push 0x51ad5c
push esi
call fcn.004f5e01
add esp, 8
test eax, eax
je 0x401db8
push str.HIBERNATE
push esi
call fcn.004f5e01
add esp, 8
test eax, eax
je 0x401db8
inc edi
cmp edi, dword [ebp - 0x14]
jl 0x401d50
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call esi
push eax
lea ecx, [ebp - 0x10]
call fcn.00401c10
mov edx, dword [ebp - 0x10]
mov esi, dword [edx - 0xc]
mov dword [ebp - 4], 0
test esi, esi
jns 0x401dd9
push 0x80070057
call fcn.004010e0
push str.Access_denied_n
call fcn.004f5c41
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x401df6
push esi
lea ecx, [ebp - 0x10]
call fcn.004014f0
mov edx, dword [ebp - 0x10]
lea eax, [esi + 1]
push eax
push edx
call fcn.004f5837
mov eax, dword [ebp - 0x10]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x401dae
mov dword [eax - 0xc], esi
mov edx, dword [ebp - 0x10]
xor ecx, ecx
mov word [edx + esi*2], cx
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 0xc], 0
jl 0x401e78
push 0x51ad1c
push ecx
call fcn.004f55ad
mov ecx, dword [ebp - 0x10]
add esp, 8
test eax, eax
je 0x401e47
sub eax, ecx
sar eax, 1
js 0x401e47
push str.powercfg.exe.bak
push 0x51ad1c
jmp 0x401e70
cmp dword [ecx - 0xc], 0
jl 0x401e78
push str.powercfg
push ecx
call fcn.004f55ad
add esp, 8
test eax, eax
je 0x401e78
sub eax, dword [ebp - 0x10]
sar eax, 1
js 0x401e78
push str.powercfg.exe.bak
push str.powercfg
lea ecx, [ebp - 0x10]
call fcn.004017e0
push 0x40
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.004f5e90
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 0xc
push 0xfffffffffffffff6
mov dword [ebp - 0x6c], 0x44
call esi
push 0xfffffffffffffff5
mov dword [ebp - 0x34], eax
call esi
push 0xfffffffffffffff4
mov dword [ebp - 0x30], eax
call esi
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x2c], eax
xor eax, eax
lea edx, [ebp - 0x6c]
push edx
push eax
push eax
push eax
push 1
push eax
push eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 0x28]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401f09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret