Function at 0x4016af
Capabilities:
Accept command line arguments
Get hostname
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
and dword [ebp - 0x30], 0
push ebx
push esi
push edi
push 5
pop ecx
mov esi, 0x403a24
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
lea edi, [ebp - 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x14], 1
stosd dword es:[edi], eax
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 4], 0xa0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff4
mov dword [ebp - 0x18], eax
call esi
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, 0xffffffff
jne 0x401711
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4019fa
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call main
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x40173e
call ebx
push eax
mov dword [ebp - 4], eax
push 0x403a00
jmp 0x4019cb
cmp dword [ebp - 0x20], 2
jae 0x401756
push 0x403970
push edi
call section..code
pop ecx
pop ecx
jmp 0x4019b6
push 0xfffffffffffffff5
call esi
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x401772
call ebx
push eax
mov dword [ebp - 4], eax
push 0x403954
jmp 0x4019a8
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x40178f
call ebx
push eax
push 0x403930
push 0x4038a0
jmp 0x401987
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x4017c1
call ebx
push eax
push 0x403880
mov esi, 0x40384c
push esi
push edi
mov dword [ebp - 4], eax
call section..code
add esp, 0x10
jmp 0x4017c6
mov esi, 0x40384c
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 0x32]
push eax
movzx eax, word [ebp - 0x34]
push eax
movzx eax, word [ebp - 0x36]
push eax
movzx eax, word [ebp - 0x38]
push eax
movzx eax, word [ebp - 0x40]
push eax
movzx eax, word [ebp - 0x3a]
push eax
movzx eax, word [ebp - 0x3e]
push eax
lea eax, [ebp - 0x60]
push eax
push 0x403040
push dword [ebp - 0x10]
call fcn.0040104e
add esp, 0x28
test eax, eax
jne 0x401820
call ebx
push eax
push 0x402d00
push esi
push edi
mov dword [ebp - 4], eax
call section..code
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
push 0x20
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401840
call ebx
push eax
mov dword [ebp - 4], eax
push 0x40301c
jmp 0x401892
xor eax, eax
push eax
push eax
push 0x10
push 0x402318
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x401870
call ebx
push eax
push 0x402ff0
push esi
push edi
mov dword [ebp - 4], eax
call section..code
add esp, 0x10
jmp 0x40187d
call ebx
test eax, eax
jne 0x40187d
mov dword [ebp - 0x30], 0x20000
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40189c
call ebx
push eax
push 0x402fd8
push esi
push edi
call section..code
add esp, 0x10
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
lea eax, [ecx + eax*4]
mov dword [ebp - 8], 0x80000000
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
xor ecx, 0x80000000
mov eax, dword [ecx*4 + 0x402b28]
mov di, word [eax]
cmp di, word [edx]
jne 0x4018ea
test di, di
je 0x4018e6
mov di, word [eax + 2]
cmp di, word [edx + 2]
jne 0x4018ea
add eax, 4
add edx, 4
test di, di
jne 0x4018c4
xor eax, eax
jmp 0x4018ef
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401a03
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov eax, dword [ecx*4 + 0x402b48]
mov di, word [eax]
cmp di, word [edx]
jne 0x401929
test di, di
je 0x401925
mov di, word [eax + 2]
cmp di, word [edx + 2]
jne 0x401929
add eax, 4
add edx, 4
test di, di
jne 0x401903
xor eax, eax
jmp 0x40192e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401a03
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x80000007
jbe 0x4018af
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
push dword [eax]
push 0x402f68
push edi
call section..code
add esp, 0xc
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x20]
jb 0x40189c
push 9
push 0x402f54
push dword [ebp - 0x10]
call fcn.004010a4
test eax, eax
jne 0x401993
call ebx
push eax
push 0x402d00
push esi
push edi
mov dword [ebp - 4], eax
call section..code
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4019b6
call ebx
push eax
push 0x402fd8
push 0x40384c
push edi
call section..code
add esp, 0x10
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x4019d9
call ebx
push eax
push 0x402f40
push 0x40384c
push edi
call section..code
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4019fa
call ebx
push eax
push 0x402fd8
push 0x40384c
push edi
call section..code
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, ecx
shl eax, 2
push dword [eax + 0x402b28]
mov esi, dword [eax + 0x402b48]
mov ecx, dword [eax + 0x402b68]
push 0x402f1c
push dword [ebp - 0x10]
mov edi, section..bss
mov dword [ebp - 4], eax
rep movsw word es:[edi], word [esi]
call fcn.0040104e
add esp, 0xc
test eax, eax
jne 0x401a51
call ebx
push eax
push 0x402d00
push 0x40384c
push dword [ebp - 0xc]
call section..code
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x402b68]
dec eax
push eax
push dword [ebp - 8]
xor eax, eax
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.004010f9
cmp dword [ebp - 8], 0x80000007
mov edi, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov esi, 0x40384c
jbe 0x40195c
jmp 0x401949