Function at 0x40c940
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Set current directory
Shutdown system

Disassembly:
push 0xffffffffffffffff
push 0x46267f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc
push ebx
push ebp
mov ebx, ecx
cmp byte [ebx + 0x181], 1
push esi
push edi
mov dword [esp + 0x14], ebx
jne 0x40cf83
mov ecx, dword [ebx + 0x200]
call fcn.00417000
sub esp, 0xc
mov edi, eax
mov eax, esp
mov dword [esp + 0x1c], esp
push eax
mov ecx, edi
call fcn.00425d80
call fcn.0040d880
add esp, 0xc
cmp eax, 8
jne 0x40ca17
mov ecx, dword [ebx + 0x200]
push 0x3e7
call fcn.004172c0
test al, al
je 0x40cf67
call fcn.00409bf0
lea ecx, [esp + 0x14]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea edx, [esp + 0x4c]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
lea eax, [esp + 0x54]
push eax
push 0
push ecx
mov dword [esp + 0x60], 1
mov dword [esp + 0x6c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40cf67
mov ecx, ebx
call fcn.0040af70
lea ecx, [esp + 0x30]
call fcn.004227a0
xor ebp, ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x114], ebp
call fcn.004227a0
lea ecx, [esp + 0x24]
mov byte [esp + 0x114], 1
call fcn.004227a0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x114], 2
call fcn.004227a0
mov ecx, edi
mov byte [esp + 0x114], 3
call fcn.00425fe0
test eax, eax
jle 0x40cf20
push ebp
mov ecx, edi
call fcn.00425fc0
mov ecx, eax
call fcn.004241c0
test eax, eax
jne 0x40cf0e
lea edx, [esp + 0x88]
push edx
push ebp
mov ecx, edi
call fcn.00425fc0
mov ecx, eax
call fcn.004241d0
mov eax, dword [esp + 0x8c]
push eax
call fcn.00447162
add esp, 4
lea ecx, [esp + 0x88]
mov esi, eax
call fcn.00422390
mov ecx, dword [ebx + 0x200]
push esi
call fcn.004172c0
test al, al
je 0x40cf0e
push ebp
mov ecx, edi
xor esi, esi
call fcn.00425fc0
mov ecx, eax
call fcn.00424240
test eax, eax
jle 0x40cf0e
jmp 0x40caf0
lea ecx, [esp + 0x94]
push ecx
push esi
push ebp
mov ecx, edi
call fcn.00425fc0
mov ecx, eax
call fcn.00424220
mov ecx, eax
call fcn.004296e0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x118], 4
call fcn.00422610
lea ecx, [esp + 0x94]
mov byte [esp + 0x114], 3
call fcn.00422390
push esi
push ebp
mov ecx, edi
call fcn.00425fc0
mov ecx, eax
call fcn.00424220
mov ecx, eax
call fcn.004296d0
sub eax, 9
je 0x40cee6
sub eax, 1
je 0x40cedb
sub eax, 1
jne 0x40cef4
sub esp, 0xc
lea edx, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00422580
lea eax, [esp + 0xf4]
push eax
call fcn.004042f0
add esp, 0x10
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x118], 5
call fcn.00422610
lea ecx, [esp + 0xe8]
mov byte [esp + 0x114], 3
call fcn.00422390
sub esp, 0xc
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00422580
lea eax, [esp + 0x10c]
push eax
call fcn.004042f0
mov eax, dword [eax + 4]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x100]
call fcn.00422390
push 0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x20], esp
push str.HTTP:__
call fcn.00422640
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x128], 6
call fcn.004228a0
mov byte [esp + 0x124], 7
mov ecx, eax
mov byte [esp + 0x124], 8
call fcn.004224e0
cmp eax, 1
lea ecx, [esp + 0xac]
sete bl
mov byte [esp + 0x114], 3
call fcn.00422390
test bl, bl
je 0x40cc5f
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
call fcn.00422610
jmp 0x40ce3f
push 0x469780
lea ecx, [esp + 0x40]
call fcn.00422450
test al, al
je 0x40cd97
push 0x469ad8
lea ecx, [esp + 0x68]
call fcn.00422640
push 0x469a68
lea ecx, [esp + 0x74]
mov byte [esp + 0x118], 9
call fcn.00422640
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xa8]
push edx
mov byte [esp + 0x120], 0xa
call fcn.0040a9e0
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0xfc]
push edx
mov byte [esp + 0x120], 0xb
call fcn.0040a9e0
lea ecx, [esp + 0x64]
push ecx
push eax
lea edx, [esp + 0xcc]
push edx
mov byte [esp + 0x120], 0xc
call fcn.0040a9e0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x1c], esp
lea edx, [esp + 0x48]
push edx
push eax
push ecx
mov byte [esp + 0x12c], 0xd
call fcn.0040a9e0
lea eax, [esp + 0xe8]
push eax
call fcn.004042f0
add esp, 0x10
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x118], 0xe
call fcn.00422610
lea ecx, [esp + 0xdc]
mov byte [esp + 0x114], 0xd
call fcn.00422390
lea ecx, [esp + 0xc4]
mov byte [esp + 0x114], 0xc
call fcn.00422390
lea ecx, [esp + 0xf4]
mov byte [esp + 0x114], 0xb
call fcn.00422390
lea ecx, [esp + 0xa0]
mov byte [esp + 0x114], 0xa
call fcn.00422390
lea ecx, [esp + 0x70]
mov byte [esp + 0x114], 9
call fcn.00422390
lea ecx, [esp + 0x64]
jmp 0x40ce32
push 0x469a68
lea ecx, [esp + 0x80]
call fcn.00422640
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xd8]
push eax
mov byte [esp + 0x120], 0xf
call fcn.0040a9e0
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x1c], esp
lea edx, [esp + 0x30]
push edx
push eax
push ecx
mov byte [esp + 0x12c], 0x10
call fcn.0040a9e0
lea eax, [esp + 0xc4]
push eax
call fcn.004042f0
add esp, 0x10
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x118], 0x11
call fcn.00422610
lea ecx, [esp + 0xb8]
mov byte [esp + 0x114], 0x10
call fcn.00422390
lea ecx, [esp + 0xd0]
mov byte [esp + 0x114], 0xf
call fcn.00422390
lea ecx, [esp + 0x7c]
mov byte [esp + 0x114], 3
call fcn.00422390
push 0x469e84
lea ecx, [esp + 0x4c]
push ecx
sub esp, 0xc
lea edx, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00422580
lea eax, [esp + 0x6c]
push eax
call fcn.0040ab30
add esp, 0x10
mov ecx, eax
mov byte [esp + 0x11c], 0x12
call fcn.004228a0
mov ecx, eax
mov byte [esp + 0x118], 0x13
call fcn.004223c0
lea ecx, [esp + 0x48]
mov bl, al
mov byte [esp + 0x114], 0x12
call fcn.00422390
lea ecx, [esp + 0x58]
mov byte [esp + 0x114], 3
call fcn.00422390
test bl, bl
push 5
je 0x40cec2
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ebx, dword [esp + 0x14]
jmp 0x40cef4
mov edx, dword [esp + 0x20]
push 0
push 0
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ebx, dword [esp + 0x14]
jmp 0x40cef4
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
jmp 0x40ceef
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x28]
call fcn.00422610
push ebp
mov ecx, edi
add esi, 1
call fcn.00425fc0
mov ecx, eax
call fcn.00424240
cmp esi, eax
jl 0x40caf0
mov ecx, edi
add ebp, 1
call fcn.00425fe0
cmp ebp, eax
jl 0x40ca72
lea ecx, [esp + 0x3c]
mov byte [esp + 0x114], 2
call fcn.00422390
lea ecx, [esp + 0x24]
mov byte [esp + 0x114], 1
call fcn.00422390
lea ecx, [esp + 0x18]
mov byte [esp + 0x114], 0
call fcn.00422390
lea ecx, [esp + 0x30]
mov dword [esp + 0x114], 0xffffffff
call fcn.00422390
mov ecx, ebx
call fcn.0040bb10
mov edx, dword [ebx + 0x20]
push 0
push 0x64
push 8
push edx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x40d0a3
mov ecx, 0x493500
call fcn.00419e00
mov esi, eax
test esi, esi
jne 0x40cfc3
cmp dword [ebx + 0x204], 7
jne 0x40d0a3
push eax
mov ecx, ebx
call fcn.0042b1c8
mov ecx, ebx
call fcn.0040bb10
mov eax, dword [ebx + 0x20]
push esi
push 0x64
push 8
push eax
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x40d0a3
cmp byte [0x488027], 0
je 0x40d09b
mov ecx, dword [ebx + 0x1fc]
mov byte [ebx + 0x181], 1
call fcn.00419120
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
mov ecx, dword [ebx + 0x200]
call fcn.00416fd0
mov ecx, dword [ebx + 0x200]
sub esp, 0xc
mov edx, esp
mov dword [esp + 0x2c], esp
push edx
mov dword [esp + 0x130], 0x14
call fcn.00416fa0
or edi, 0xffffffff
mov ecx, ebx
mov dword [esp + 0x12c], edi
call fcn.0040be40
mov ecx, dword [ebx + 0x200]
push esi
call fcn.00417590
mov ecx, dword [ebx + 0x200]
call fcn.00417010
push 0
lea ecx, [ebx + 0x74]
mov dword [ebx + 0x204], 9
call fcn.0042b204
lea esi, [ebx + 0xc8]
push 1
mov ecx, esi
call fcn.0042b204
push 0x10
lea eax, [esp + 0x5c]
push eax
mov ecx, 0x4935e4
call fcn.0041c030
mov eax, dword [eax + 4]
push eax
mov ecx, esi
mov dword [esp + 0x118], 0x15
call fcn.0042b12e
lea ecx, [esp + 0x58]
mov dword [esp + 0x114], edi
call fcn.00422390
jmp 0x40d0a3
push esi
mov ecx, ebx
call fcn.0040bec0
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x108
ret