Function at 0x408388
Capabilities:
Acquire debug privileges
Check for time delay via gettickcount
Check mutex on windows
Create process on windows
Read file via mapping
Resume thread

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x11c
push ebx
push esi
push edi
push 0xffffffffffffffff
xor ebx, ebx
push 0xffffffffffffffff
mov esi, eax
mov byte [ebp + 0x6f], 1
mov byte [ebp + 0x6d], 1
mov byte [ebp + 0x14], bl
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_SetProcessWorkingSetSize]
xor eax, eax
mov dword [ebp - 0xc], ebx
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xf
pop ecx
xor eax, eax
mov dword [ebp - 0x94], 0x44
mov dword [ebp - 0x90], ebx
lea edi, [ebp - 0x8c]
rep stosd dword es:[edi], eax
or byte [ebp - 0x68], 0x80
mov ecx, esi
mov dword [ebp + 0x70], esi
call fcn.00403fae
mov dword [ebp + 0x70], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp + 0x6e], bl
mov byte [ebp + 0x6a], bl
mov byte [ebp + 0x6b], bl
mov byte [ebp + 0x6c], bl
mov dword [ebp + 0x20], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp + 0x58], ebx
mov byte [ebp + 0x57], bl
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x48], bl
mov ecx, eax
jmp 0x408812
push 2
lea eax, [ebp + 0x70]
push eax
push 0x4a465c
call fcn.0043f1bd
add esp, 0xc
test al, al
jne 0x408833
push 3
lea eax, [ebp + 0x70]
push eax
push 0x4a4658
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x408455
mov byte [ebp + 0x6a], 1
jmp 0x40880f
push 5
lea eax, [ebp + 0x70]
push eax
push str.__usr
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x408475
mov byte [ebp + 0x6b], 1
jmp 0x40880f
push 5
lea eax, [ebp + 0x70]
push eax
push str.__svr
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x408498
mov dword [ebp + 0x58], 1
jmp 0x40880f
push 6
pop edi
push edi
lea eax, [ebp + 0x70]
push eax
push str.__desk
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x4084ba
mov byte [ebp + 0x6c], 2
jmp 0x40880f
push 7
lea eax, [ebp + 0x70]
push eax
push str.__desk_
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x4084d9
mov byte [ebp + 0x6c], bl
jmp 0x40880f
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
push edi
push dword [ebp + 0x70]
push str.__ack:
call esi
test eax, eax
jne 0x408529
add dword [ebp + 0x70], 0xc
mov esi, dword [ebp + 0x70]
lea eax, [ebp + 0x70]
push eax
mov dword [ebp + 0x20], esi
call fcn.004050f3
pop ecx
mov ecx, dword [ebp + 0x70]
mov eax, ecx
sub eax, esi
sar eax, 1
mov dword [ebp - 0x4c], eax
call fcn.00403eac
mov dword [ebp + 0x70], eax
mov byte [ebp + 0x6a], 1
mov byte [ebp + 0x6d], bl
mov byte [ebp + 0x6f], 1
mov dword [ebp - 0x68], ebx
jmp 0x40880f
push edi
push dword [ebp + 0x70]
push str.__exe:
call esi
test eax, eax
jne 0x40856b
add dword [ebp + 0x70], 0xc
mov eax, dword [ebp + 0x70]
push 0x8d
mov dword [ebp + 0x3c], eax
lea eax, [ebp + 0x3c]
push ebx
push eax
call fcn.00418d74
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x3c]
add esp, 0xc
cmp word [eax], bx
je 0x40880f
mov dword [ebp - 0x28], eax
jmp 0x40880f
push 5
lea eax, [ebp + 0x70]
push eax
push str.__job
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x40858b
mov byte [ebp + 0x6d], 1
jmp 0x40880f
push 7
lea eax, [ebp + 0x70]
push eax
push str.__nojob
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x4085aa
mov byte [ebp + 0x6d], bl
jmp 0x40880f
push edi
lea eax, [ebp + 0x70]
push eax
push 0x4a4600
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x4085c9
mov byte [ebp + 0x6e], 1
jmp 0x40880f
push edi
lea eax, [ebp + 0x70]
push eax
push str.__wait
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x4085e8
mov byte [ebp + 0x6f], 1
jmp 0x40880f
push 7
lea eax, [ebp + 0x70]
push eax
push str.__waiti
call fcn.0043f1bd
add esp, 0xc
test al, al
jne 0x40880f
push 8
lea eax, [ebp + 0x70]
push eax
push str.__nowait
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x408622
mov byte [ebp + 0x6f], bl
jmp 0x40880f
push 0xa
lea eax, [ebp + 0x70]
push eax
push str.__idlewait
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x408642
mov byte [ebp + 0x57], 1
jmp 0x40880f
push edi
lea eax, [ebp + 0x70]
push eax
push str.__idle
call fcn.0043f1bd
add esp, 0xc
test al, al
lea eax, [ebp + 0x70]
je 0x408679
lea edx, [ebp + 0x60]
mov dword [ebp + 0x60], ebx
call fcn.00403fc1
test eax, eax
je 0x40880f
mov eax, dword [ebp + 0x60]
mov dword [ebp - 0x18], eax
jmp 0x40880f
push 0xa
push eax
push str.__killwin2
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x408696
mov byte [ebp + 0x14], 1
jmp 0x40880f
push 9
lea eax, [ebp + 0x70]
push eax
push str.__killwin
call fcn.0043f1bd
add esp, 0xc
test al, al
lea eax, [ebp + 0x70]
je 0x4086d4
mov esi, dword [ebp + 0x70]
push eax
call fcn.004050f3
mov eax, dword [ebp + 0x70]
pop ecx
sub eax, esi
push 0xffffffffffffffff
sar eax, 1
push eax
push esi
mov ecx, 0x4bdc5c
call fcn.0043d405
jmp 0x40880f
push 0xe
push eax
push str.__delayservice
call fcn.0043f1bd
add esp, 0xc
test al, al
lea eax, [ebp + 0x70]
je 0x40873d
lea edx, [ebp + 0x60]
mov dword [ebp + 0x60], ebx
call fcn.00403fc1
test eax, eax
je 0x40880f
cmp dword [ebp + 0x7c], 1
jne 0x40880f
mov esi, dword [ebp + 0x60]
lea eax, [esi + 0x63]
push 0x64
cdq
pop ecx
idiv ecx
mov edi, eax
jmp 0x408723
dec edi
js 0x40872b
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [0x4bc2c0], bl
jg 0x408718
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, esi
mov dword [0x4bdbf0], eax
jmp 0x40880f
push 0xa
push eax
push str.__idlequit
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x4087f3
mov esi, dword [ebp + 0x70]
mov dword [ebp + 0x38], esi
xor eax, eax
jmp 0x40876d
call fcn.00482120
test al, al
jne 0x408775
inc esi
inc esi
mov dword [ebp + 0x70], esi
mov ax, word [esi]
cmp ax, bx
jne 0x40875f
sub esi, dword [ebp + 0x38]
sar esi, 1
cmp esi, ebx
jle 0x40880f
lea eax, [esi + esi + 0xc]
mov dword [ebp + 0x40], eax
push dword [ebp + 0x40]
push ebx
push dword [0x4be0d8]
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov edi, eax
cmp edi, ebx
jne 0x4087ac
push 2
call fcn.0043d201
cmp eax, 4
pop ecx
je 0x408789
lea eax, [esi + esi + 4]
cdq
mov dword [edi], eax
mov eax, dword [ebp + 0x38]
mov dword [edi + 4], 0xaa55
mov dword [edi + 4], edx
mov cx, word [eax]
add edi, 8
cmp cx, 0x2a
mov dword [ebp - 0x24], edi
je 0x4087d5
cmp cx, 0x21
jne 0x4087e0
mov cl, byte [eax]
inc eax
inc eax
mov byte [ebp - 0x48], cl
mov dword [ebp + 0x38], eax
dec esi
push esi
push dword [ebp + 0x38]
push edi
call fcn.00405064
add esp, 0xc
mov word [edi + esi*2], bx
jmp 0x40880f
mov eax, dword [ebp + 0x70]
mov cx, word [eax]
cmp cx, 0x2d
jne 0x408819
cmp word [eax + 2], cx
jne 0x408819
lea eax, [ebp + 0x70]
push eax
call fcn.004050f3
pop ecx
mov ecx, dword [ebp + 0x70]
call fcn.00403eac
jmp 0x408825
cmp cx, 0x3d
jne 0x408836
inc eax
inc eax
mov byte [ebp + 0x6f], 1
mov dword [ebp + 0x70], eax
cmp word [eax], bx
jne 0x40841a
jmp 0x408836
mov eax, dword [ebp + 0x70]
mov ecx, eax
call fcn.00403eac
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
push eax
mov dword [ebp + 0x70], eax
call edi
push ebx
mov dword [ebp + 0x7c], eax
mov byte [ebp + 0x38], bl
call dword [sym.imp.KERNEL32.DLL_SetLastError]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_SetProcessWorkingSetSize]
cmp dword [ebp - 0x18], ebx
jbe 0x40887b
push dword [ebp - 0x18]
call fcn.00403e15
pop ecx
mov esi, dword [0x4bdc58]
push esi
call edi
cmp eax, 0x11
jl 0x40888c
push 0x11
pop eax
mov ecx, dword [ebp + 0x7c]
lea esi, [esi + eax*2]
lea eax, [eax + ecx + 0xa0]
push eax
lea ecx, [ebp + 0x18]
call fcn.0043d49b
cmp word [esi], 0x3d
jne 0x4088ae
inc esi
inc esi
mov byte [ebp + 0x6f], 1
push esi
call edi
mov dword [ebp + 0x7c], eax
inc eax
push eax
push esi
push dword [ebp + 0x18]
call fcn.00405064
mov esi, dword [ebp + 0x7c]
add esp, 0xc
push dword [ebp + 0x70]
call edi
inc eax
push eax
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x70]
lea eax, [eax + esi*2]
push eax
call fcn.00405064
push 0x4a4588
push dword [ebp + 0x18]
call fcn.00403ef4
add esp, 0x14
cmp eax, ebx
je 0x408905
movzx eax, word [eax + 0x10]
cmp ax, bx
je 0x408901
call fcn.00482120
test al, al
je 0x408905
mov byte [ebp + 0x38], 1
xor eax, eax
mov byte [ebp - 0xa8], bl
or dword [ebp + 0x5c], 0xffffffff
lea edi, [ebp - 0xa7]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x44], 0xc
mov dword [ebp - 0x3c], ebx
call fcn.0043a300
cmp byte [0x4bc2c0], bl
mov eax, dword [ebp - 0x28]
pop ecx
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0xc], ebx
jle 0x4089e1
call fcn.00402cb8
mov eax, dword [ebp + 0x18]
mov ecx, eax
movzx eax, word [eax]
mov dword [ebp + 0x50], ebx
mov byte [ebp + 0x7f], 0xa
mov dword [ebp + 0x2c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0x1c], ebx
xor edx, edx
jmp 0x408990
or eax, 0x20
cmp ax, 0x61
jb 0x408995
cmp ax, 0x7a
ja 0x408995
inc edx
inc ecx
inc ecx
mov ax, word [ecx]
cmp ax, bx
jne 0x40897b
mov ax, word [ecx]
call fcn.00482120
test al, al
jne 0x4089a3
xor edx, edx
cmp edx, 4
jne 0x408a00
push 0x4a4560
lea ecx, [ebp + 0x7c]
call fcn.004457e4
push dword [ebp + 0x70]
lea ecx, [ebp + 0x7c]
call fcn.0043d4e9
mov al, byte [ebp + 0x6c]
push dword [ebp + 0x7c]
or al, 1
mov byte [0x4bdb98], al
call fcn.00403d38
pop ecx
lea ecx, [ebp + 0x7c]
mov byte [0x4bdb98], bl
call fcn.00437960
mov esi, dword [ebp + 0x5c]
lea ecx, [ebp + 0xc]
call fcn.00437960
lea ecx, [ebp + 0x18]
call fcn.00437960
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_SetProcessWorkingSetSize]
mov al, byte [ebp + 0x6b]
mov dword [ebp + 0x48], ebx
mov dword [ebp - 0x34], 4
mov byte [ebp + 0x47], al
cmp dword [ebp + 0x58], ebx
je 0x408a3e
cmp dword [ebp + 0x1c], ebx
je 0x408a3e
push 1
call fcn.00439473
pop ecx
push 0xffffffffffffffff
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp dword [ebp + 0x20], ebx
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x30], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp + 8], ebx
je 0x408ea4
cmp dword [ebp + 0x58], ebx
je 0x408ab8
cmp dword [ebp + 0x48], ebx
mov dword [ebp + 0x64], ebx
je 0x408a6f
push dword [ebp + 0x48]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp + 0x48], ebx
call dword [sym.imp.KERNEL32.DLL_WTSGetActiveConsoleSessionId]
mov ecx, dword [0x4bdba8]
cmp ecx, ebx
je 0x408a8d
lea edx, [ebp + 0x48]
push edx
push eax
call ecx
test eax, eax
jne 0x408a8d
mov dword [ebp + 0x48], ebx
lea eax, [ebp - 0x50]
push eax
push 4
lea eax, [ebp + 0x64]
push eax
push 0x13
push dword [ebp + 0x48]
mov dword [ebp - 0x50], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x408ab8
push dword [ebp + 0x48]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x48], eax
lea ecx, [ebp + 0x24]
call fcn.0043d47d
mov eax, dword [ebp + 0x58]
neg eax
sbb eax, eax
and eax, 0x100000
mov dword [ebp + 0x64], eax
add eax, 0x80
cmp dword [ebp + 0x50], ebx
mov byte [ebp + 0x56], bl
mov dword [ebp + 4], eax
jne 0x408c3d
cmp dword [ebp + 0x2c], ebx
jne 0x408c0a
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp + 0x20]
lea edi, [ecx + eax*2]
mov si, word [edi]
cmp si, bx
je 0x408b00
mov word [edi], bx
push 0xffffffffffffffff
push 0xffffffffffffffff
push str.Globalpecmd2012.shm.
lea ecx, [ebp + 0x24]
call fcn.0043d538
push dword [ebp + 0x20]
lea ecx, [ebp + 0x24]
call fcn.0043d4e9
push dword [ebp + 0x24]
push ebx
push 6
call dword [sym.imp.KERNEL32.DLL_OpenFileMappingW]
push ebx
mov dword [ebp + 0x2c], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
cmp dword [ebp + 0x58], ebx
je 0x408bdb
cmp dword [ebp - 0x14], ebx
jne 0x408b94
push 0xffffffffffffffff
push str.Globalpecmd2012.lock.
lea ecx, [ebp + 0x10]
call fcn.0044581a
push dword [ebp + 0x20]
lea ecx, [ebp + 0x10]
call fcn.0043d4e9
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
jmp 0x408b72
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x408b6a
lea ecx, [ebp + 0x10]
call fcn.00437960
cmp dword [ebp - 0x14], ebx
je 0x408bdb
cmp dword [ebp + 0x1c], ebx
jne 0x408bdb
push 0xffffffffffffffff
push str.Globalpecmd2012.event.
lea ecx, [ebp - 0x10]
call fcn.0044581a
push dword [ebp + 0x20]
lea ecx, [ebp - 0x10]
call fcn.0043d4e9
jmp 0x408bbd
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
push dword [ebp - 0x10]
lea eax, [ebp - 0x44]
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
cmp eax, ebx
mov dword [ebp + 0x1c], eax
je 0x408bb5
lea ecx, [ebp - 0x10]
call fcn.00437960
cmp si, bx
je 0x408be3
mov word [edi], si
cmp dword [ebp + 0x2c], ebx
jne 0x408c0a
push dword [ebp + 0x24]
lea eax, [ebp - 0x44]
push dword [ebp + 4]
push ebx
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
cmp eax, ebx
setne byte [ebp + 0x56]
cmp eax, ebx
mov dword [ebp + 0x2c], eax
je 0x408c1d
push dword [ebp + 4]
push ebx
push ebx
push 6
push dword [ebp + 0x2c]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [ebp + 0x50], eax
cmp byte [ebp + 0x56], bl
je 0x408c3d
cmp dword [ebp + 0x50], ebx
je 0x408c38
push 0x80
push ebx
push dword [ebp + 0x50]
call fcn.00403ebf
add esp, 0xc
cmp dword [ebp + 0x1c], ebx
jne 0x408cb0
cmp byte [ebp + 0x7f], bl
jle 0x408c56
dec byte [ebp + 0x7f]
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_SetProcessWorkingSetSize]
mov edi, dword [ebp + 0x50]
xor esi, esi
cmp edi, ebx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x40], ebx
je 0x408c91
mov eax, dword [edi + 0x18]
mov esi, dword [edi + 0x1c]
push 0xfffffffffffffffe
pop ecx
and eax, ecx
mov dword [ebp + 0x60], eax
mov eax, dword [edi + 0x20]
and eax, ecx
mov dword [ebp + 0x4c], eax
mov eax, dword [edi + 0x24]
and esi, ecx
and eax, ecx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [ebp + 0x40], eax
mov dword [edi + 0x20], ebx
cmp dword [ebp + 0x58], ebx
je 0x408cd5
cmp edi, ebx
je 0x408ca8
mov eax, dword [edi]
cmp eax, 0xffffffff
mov ecx, dword [edi + 4]
jne 0x408ca8
cmp ecx, eax
je 0x408cd5
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea ecx, [ebp + 0x24]
call fcn.00437960
lea ecx, [ebp + 8]
call fcn.00437960
lea ecx, [ebp + 0x30]
call fcn.00437960
lea ecx, [ebp + 0x34]
call fcn.00437960
jmp 0x408a21
cmp dword [ebp + 0x64], ebx
jle 0x408d27
mov eax, dword [ebp + 0x60]
cmp eax, ebx
jle 0x408d27
add eax, 8
push eax
lea ecx, [ebp + 8]
call fcn.0043d398
push dword [ebp + 0x60]
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x80]
push ecx
push eax
mov dword [ebp - 0x2c], eax
call fcn.004125f9
mov eax, dword [ebp + 0x60]
mov ecx, dword [ebp - 0x2c]
mov word [eax + ecx], bx
mov eax, dword [edi + 0x28]
mov edi, dword [edi + 0x2c]
and eax, 1
and edi, ebx
add esp, 0xc
or eax, edi
je 0x408d27
mov al, byte [ebp + 0x6b]
and al, 0xfe
mov byte [ebp + 0x47], al
cmp esi, ebx
mov ecx, dword [ebp + 0x60]
lea edi, [ecx + 0x80]
jle 0x408da9
mov eax, dword [ebp + 0x64]
sub eax, ecx
jns 0x408d3d
xor eax, eax
cmp dword [ebp + 0x4c], eax
jle 0x408d45
mov dword [ebp + 0x4c], eax
mov eax, dword [ebp + 0x50]
mov dword [ebp - 0x38], eax
lea eax, [edi + esi]
cmp eax, dword [ebp + 4]
mov dword [ebp + 0x28], ebx
jle 0x408d6a
push eax
push ebx
push ebx
push 6
push dword [ebp + 0x2c]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [ebp - 0x38], eax
mov dword [ebp + 0x28], eax
cmp dword [ebp - 0x38], ebx
je 0x408da9
lea eax, [esi + 8]
push eax
lea ecx, [ebp + 0x30]
call fcn.0043d398
mov eax, dword [ebp + 0x30]
push 8
add eax, esi
push ebx
push eax
call fcn.00403ebf
mov eax, dword [ebp - 0x38]
push esi
add eax, edi
push eax
push dword [ebp + 0x30]
call fcn.004125f9
add esp, 0x18
cmp dword [ebp + 0x28], ebx
je 0x408da9
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
add edi, esi
cmp dword [ebp + 0x4c], ebx
jle 0x408e28
mov eax, dword [ebp + 0x64]
sub eax, dword [ebp + 0x60]
jns 0x408dba
xor eax, eax
cmp dword [ebp + 0x4c], eax
jle 0x408dc2
mov dword [ebp + 0x4c], eax
mov eax, dword [ebp + 0x4c]
mov esi, dword [ebp + 0x50]
add eax, edi
cmp eax, dword [ebp + 4]
mov dword [ebp + 0x64], ebx
jle 0x408de5
push eax
push ebx
push ebx
push 6
push dword [ebp + 0x2c]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov esi, eax
mov dword [ebp + 0x64], esi
cmp esi, ebx
je 0x408e28
mov eax, dword [ebp + 0x4c]
add eax, 8
push eax
lea ecx, [ebp + 0x34]
call fcn.0043d398
push dword [ebp + 0x4c]
add esi, edi
push esi
push dword [ebp + 0x34]
call fcn.004125f9
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x4c]
push 8
add ecx, eax
push ebx
push ecx
call fcn.00403ebf
add esp, 0x18
cmp dword [ebp + 0x64], ebx
je 0x408e28
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov esi, dword [ebp + 0x40]
add edi, dword [ebp + 0x4c]
cmp esi, ebx
jle 0x408e9c
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x64], eax
lea eax, [edi + esi]
cmp eax, dword [ebp + 4]
mov dword [ebp + 0x28], ebx
jle 0x408e57
push eax
push ebx
push ebx
push 6
push dword [ebp + 0x2c]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x28], eax
cmp dword [ebp + 0x64], ebx
je 0x408e9c
lea eax, [esi + 8]
push eax
lea ecx, [ebp + 0xc]
call fcn.0043d398
mov eax, dword [ebp + 0x64]
push esi
add eax, edi
push eax
push dword [ebp + 0xc]
call fcn.004125f9
mov eax, dword [ebp + 0xc]
push 8
add esi, eax
push ebx
push esi
call fcn.00403ebf
add esp, 0x18
cmp dword [ebp + 0x28], ebx
je 0x408e96
push dword [ebp + 0x28]
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x3c], eax
lea ecx, [ebp + 0x24]
call fcn.00437960
cmp dword [ebp + 0x58], ebx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
je 0x408eca
push 6
lea eax, [ebp - 0x30]
push eax
push 0x4a4600
call fcn.0043f1bd
add esp, 0xc
test al, al
je 0x408eca
mov byte [ebp + 0x6e], 1
cmp byte [ebp + 0x6e], bl
je 0x408ed7
or dword [ebp - 0x68], 1
mov word [ebp - 0x64], bx
cmp dword [ebp + 0x34], ebx
je 0x408ee3
mov dword [ebp - 0x34], 0x404
cmp byte [ebp + 0x6c], bl
jne 0x408f0d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x94]
push eax
push dword [ebp + 0x30]
push dword [ebp + 0x34]
push dword [ebp - 0x34]
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
jmp 0x408f3e
movsx eax, byte [ebp + 0x47]
push ebx
push 0x4a41f0
push ebx
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x94]
push eax
push dword [ebp + 0x30]
push dword [ebp + 0x34]
push dword [ebp - 0x34]
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
push dword [ebp + 0x3c]
call fcn.004051e3
add esp, 0x38
cmp dword [ebp + 0x48], ebx
mov dword [ebp + 0x40], eax
je 0x408f4f
push dword [ebp + 0x48]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp + 0x58], ebx
mov dword [ebp + 0x48], ebx
je 0x408f7e
push 0x44
pop esi
push esi
lea eax, [ebp - 0x94]
push ebx
push eax
call fcn.00403ebf
add esp, 0xc
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x68], 0x80
mov byte [ebp + 0x6e], bl
mov dword [ebp + 0x3c], ebx
lea ecx, [ebp + 8]
call fcn.00437960
lea ecx, [ebp + 0x30]
call fcn.00437960
lea ecx, [ebp + 0x34]
call fcn.00437960
mov edi, dword [ebp - 4]
cmp edi, ebx
je 0x408fa1
xor esi, esi
jmp 0x408fa6
or esi, 0xffffffff
mov edi, esi
cmp dword [ebp + 0x50], ebx
je 0x408fd5
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
cmp dword [ebp + 0x58], ebx
mov ecx, dword [ebp + 0x50]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], esi
mov dword [ecx], 1
mov dword [ecx + 4], ebx
jne 0x408fd5
push ecx
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
cmp dword [ebp + 0x40], ebx
jne 0x408fe3
cmp dword [ebp + 0x58], ebx
je 0x4089e1
cmp byte [ebp + 0x14], bl
je 0x409028
test byte [0x4beb98], 8
jne 0x409008
or byte [0x4beb98], 8
push ebx
push 2
push str.SeShutdownPrivilege
call fcn.00411514
add esp, 0xc
test byte [0x4beb98], 4
jne 0x409028
or byte [0x4beb98], 4
push ebx
push 2
push str.SeDebugPrivilege
call fcn.00411514
add esp, 0xc
cmp byte [ebp + 0x6d], bl
je 0x409042
cmp dword [0x4bdc78], ebx
jne 0x40904a
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateJobObjectW]
mov dword [0x4bdc78], eax
cmp dword [0x4bdc78], ebx
je 0x409059
push dword [ebp - 0xc]
push dword [0x4bdc78]
call dword [sym.imp.KERNEL32.DLL_AssignProcessToJobObject]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
cmp dword [ebp - 0xc], ebx
je 0x409075
push 0x1388
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push 0xffffffffffffffff
push 0xffffffffffffffff
mov dword [ebp - 8], ebx
call edi
push eax
call dword [sym.imp.KERNEL32.DLL_SetProcessWorkingSetSize]
cmp dword [0x4bdbf4], ebx
je 0x4090a6
push dword [0x4bdbf4]
call esi
cmp dword [ebp + 0x58], ebx
mov eax, dword [ebp - 0xc]
mov dword [0x4bdbf4], ebx
mov dword [0x4bdbf4], eax
je 0x4090c4
push eax
call esi
mov dword [ebp - 0xc], ebx
jmp 0x408a11
push 0xffffffffffffffff
push 0xffffffffffffffff
call edi
push eax
call dword [sym.imp.KERNEL32.DLL_SetProcessWorkingSetSize]
mov edi, dword [sym.imp.USER32.dll_GetLastInputInfo]
lea eax, [ebp - 0x20]
push eax
call edi
push 1
call fcn.00439473
cmp dword [ebp - 0x18], ebx
pop ecx
jbe 0x40928e
lea eax, [ebp - 0x20]
mov esi, 0x103
push eax
mov dword [ebp + 0x5c], esi
call edi
cmp byte [ebp + 0x57], bl
jne 0x4091e9
cmp byte [ebp + 0x38], bl
je 0x40923c
cmp byte [0x4bc2c0], bl
jle 0x4092e0
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edi, 0xc8
call esi
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x7c], eax
mov dword [ebp + 0x3c], ebx
cmp byte [0x4bc2c0], bl
jle 0x40917c
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetLastInputInfo]
mov eax, dword [ebp - 0x1c]
sub eax, dword [0x4bdbf0]
test eax, eax
jg 0x40917c
cmp byte [ebp + 0x6f], bl
je 0x40917c
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
call esi
mov dword [ebp + 0x7c], eax
sub eax, dword [ebp + 0x40]
cmp eax, 0x64
jae 0x40917c
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc dword [ebp + 0x3c]
cmp dword [ebp + 0x3c], 3
jl 0x409130
mov eax, dword [ebp + 0x7c]
sub eax, dword [ebp + 0x40]
cmp byte [0x4bc2c0], bl
mov dword [ebp + 0x7c], eax
jle 0x4091f6
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [0x4bdbf0]
test ecx, ecx
jg 0x4091f6
cmp byte [ebp + 0x6f], bl
je 0x4091a4
cmp eax, 0x64
jb 0x4091f6
cmp eax, edi
jae 0x4091b4
mov eax, edi
sub eax, dword [ebp + 0x7c]
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp byte [0x4bc2c0], bl
jg 0x409125
jmp 0x4092e0
push 0x64
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea eax, [ebp + 0x5c]
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x5c], esi
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
cmp dword [ebp + 0x5c], esi
jne 0x4092cb
cmp byte [0x4bc2c0], bl
jge 0x4091c5
jmp 0x4092cb
mov eax, dword [ebp - 0x1c]
mov ecx, eax
sub ecx, dword [0x4bdbf0]
test ecx, ecx
jle 0x40920a
mov dword [0x4bdbf0], eax
push dword [ebp + 0x38]
mov edi, 0x4bdc78
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
call fcn.00408302
cmp dword [ebp - 0x24], ebx
pop ecx
pop ecx
je 0x409234
push 1
push dword [ebp - 0x48]
push dword [ebp - 0x24]
call fcn.00405926
add esp, 0xc
mov dword [ebp + 0x5c], ebx
jmp 0x4092e0
cmp byte [0x4bc2c0], bl
jl 0x40928b
mov edi, 0xc8
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
je 0x409263
cmp eax, ebx
jne 0x409263
cmp dword [ebp + 0x5c], esi
jne 0x40928b
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetLastInputInfo]
mov eax, dword [ebp - 0x1c]
mov ecx, eax
sub ecx, dword [0x4bdbf0]
test ecx, ecx
jg 0x409286
cmp byte [0x4bc2c0], bl
jge 0x409249
jmp 0x40928b
mov dword [0x4bdbf0], eax
push ebx
jmp 0x4092ce
cmp byte [ebp + 0x6f], bl
mov dword [ebp + 0x5c], ebx
je 0x4092e0
cmp byte [0x4bc2c0], bl
jl 0x4092cb
mov esi, 0x103
push 0x64
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea eax, [ebp + 0x5c]
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x5c], esi
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
cmp dword [ebp + 0x5c], esi
jne 0x4092cb
cmp byte [0x4bc2c0], bl
jge 0x4092a3
push dword [ebp + 0x38]
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
mov edi, 0x4bdc78
call fcn.00408302
pop ecx
pop ecx
cmp byte [ebp + 0x6a], bl
je 0x4089e1
push ebx
push ebx
push 0x895440
mov ecx, 0x4bdfa0
call fcn.00413857
jmp 0x4092e9