Function at 0x406390
Capabilities:
Get hostname
Get session user name
Schedule task via itaskscheduler

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c9c8
mov eax, dword fs:[0]
push eax
sub esp, 0x4b0
mov eax, dword [0x438928]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x4a8], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x4ac], eax
mov dword [ebp - 0x494], ebx
push str.GetLocalTime
push str.Kernel32.dll
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x4bc], eax
test eax, eax
je 0x406a1a
lea eax, [ebp - 0x494]
push eax
push 0x434778
push 1
push ebx
push 0x434798
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x406a1a
mov eax, dword [ebp - 0x494]
test eax, eax
je 0x406a20
push esi
lea ecx, [ebp - 0x4a4]
call fcn.00406b00
mov byte [ebp - 4], 2
cmp dword [ebp + 0x10], ebx
jne 0x4064aa
xor eax, eax
push 0x400
push eax
mov word [ebp - 0x43c], ax
lea eax, [ebp - 0x43a]
push eax
call fcn.00416250
mov esi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
add esp, 0xc
lea eax, [ebp - 0x490]
push eax
lea eax, [ebp - 0x43c]
push eax
mov dword [ebp - 0x490], 0x201
call esi
push ecx
lea ecx, [ebp - 0x4a4]
call fcn.00406c20
lea eax, [ebp - 0x43c]
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00406bd0
jmp 0x4064b0
mov esi, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [ebp - 0x494]
push dword [ebp - 0x4a4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov dword [ebp - 0x498], 0
lea edx, [ebp - 0x498]
push edx
push 0x434cb0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x494]
push 0x434788
push dword [ebp - 0x4a4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test eax, eax
mov eax, dword [ebp - 0x498]
jne 0x4069e8
test eax, eax
je 0x4069e8
lea edx, [ebp - 0x484]
push edx
mov dword [ebp - 0x484], 0
mov ecx, dword [eax]
push 0x434cb0
push eax
call dword [ecx]
mov ecx, eax
mov eax, dword [ebp - 0x484]
xor edx, edx
test ecx, ecx
cmovs eax, edx
mov dword [ebp - 0x484], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x4069c9
mov eax, dword [section..data]
mov ecx, section..data
mov dword [ebp - 0x488], 0x200
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x480], edi
xor eax, eax
push 0x400
mov byte [ebp - 4], 5
push eax
mov word [ebp - 0x43c], ax
lea eax, [ebp - 0x43a]
push eax
call fcn.00416250
xorps xmm0, xmm0
xor eax, eax
add esp, 0xc
mov word [ebp - 0x38], ax
movq qword [ebp - 0x36], xmm0
movq qword [ebp - 0x2e], xmm0
movq qword [ebp - 0x26], xmm0
movq qword [ebp - 0x1e], xmm0
cmp dword [ebp + 0x10], eax
jne 0x40661d
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x43c]
push eax
mov dword [ebp - 0x4b8], 0x201
call esi
test eax, eax
je 0x4069be
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x4b0], 0x11
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x4069be
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x480]
push str._s_s
push eax
call fcn.004070b0
mov edi, dword [ebp - 0x480]
add esp, 0x10
mov dword [ebp - 0x488], 0x2200
mov eax, dword [ebp - 0x484]
push dword [ebp - 0x488]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x70]
test eax, eax
jne 0x4069be
mov eax, dword [ebp - 0x484]
push 0
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x78]
test eax, eax
jne 0x4069be
mov edx, dword [ebp - 0x4ac]
test edx, edx
je 0x406686
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406660
sub ecx, esi
sar ecx, 1
je 0x406686
mov eax, dword [ebp - 0x484]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
test eax, eax
jne 0x4069be
mov dword [ebp - 0x48c], 0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x484]
lea edx, [ebp - 0x48c]
push edx
lea edx, [ebp - 0x4b4]
mov dword [ebp - 0x4b4], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
mov eax, dword [ebp - 0x48c]
jne 0x4069b0
test eax, eax
je 0x4069b0
mov eax, dword [ebp - 0x484]
push 0xffffffffffffffff
mov ecx, dword [eax]
push eax
call dword [ecx + 0xa8]
test eax, eax
je 0x4066f2
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x48c]
jmp 0x4069b4
push 0x2e
lea eax, [ebp - 0x47a]
push 0
push eax
call fcn.00416250
mov eax, 0x30
mov word [ebp - 0x47c], ax
xor eax, eax
add esp, 0xc
mov word [ebp - 0x44c], ax
mov dword [ebp - 0x442], eax
mov word [ebp - 0x43e], ax
lea eax, [ebp - 0x44c]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x44a], xmm0
call dword [ebp - 0x4bc]
movzx eax, word [ebp - 0x446]
mov word [ebp - 0x474], ax
movzx eax, word [ebp - 0x44a]
mov word [ebp - 0x476], ax
movzx eax, word [ebp - 0x44c]
mov word [ebp - 0x478], ax
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x44c]
push eax
mov dword [ebp - 0x4a0], 0
mov dword [ebp - 0x49c], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
cmp dword [ebp + 0x10], 0
mov edx, 0x47868c00
mov eax, 0x23c34600
cmovne eax, edx
cdq
add dword [ebp - 0x4a0], eax
mov eax, dword [section..data]
mov ecx, section..data
adc dword [ebp - 0x49c], edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x488], esi
mov ecx, 0x6c
mov byte [ebp - 4], 7
call fcn.00407150
test eax, eax
je 0x406823
push 0x6c
push eax
lea ecx, [ebp - 0x488]
call fcn.00406cb0
mov esi, dword [ebp - 0x488]
test eax, eax
je 0x406823
cmp dword [esi - 0xc], 0
je 0x406823
push esi
call fcn.00413c58
cdq
add esp, 4
test edx, edx
jl 0x406823
jg 0x406809
test eax, eax
je 0x406823
push 0
push 0x23c34600
push edx
push eax
call fcn.00419210
add dword [ebp - 0x4a0], eax
adc dword [ebp - 0x49c], edx
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x4a0]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x444]
mov word [ebp - 0x46c], ax
movzx eax, word [ebp - 0x442]
mov word [ebp - 0x46a], ax
mov eax, 1
mov word [ebp - 0x458], ax
mov eax, dword [ebp - 0x48c]
lea edx, [ebp - 0x47c]
mov dword [ebp - 0x468], 0x5a0
mov dword [ebp - 0x464], 0xf
mov dword [ebp - 0x45c], 1
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x4068ae
lea ecx, [ebp - 0x488]
call fcn.00406bb0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x48c]
jmp 0x4069b4
mov eax, dword [ebp - 0x484]
push dword [ebp - 0x4a8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x80]
test eax, eax
je 0x4068e1
lea ecx, [ebp - 0x488]
call fcn.00406bb0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x48c]
jmp 0x4069b4
mov ecx, dword [ebp - 0x498]
xor eax, eax
mov dword [ebp - 0x490], eax
test ecx, ecx
je 0x406919
mov eax, dword [ecx]
lea edx, [ebp - 0x490]
push edx
push 0x434ca0
push ecx
call dword [eax]
mov ecx, eax
mov eax, dword [ebp - 0x490]
xor edx, edx
test ecx, ecx
cmovs eax, edx
mov dword [ebp - 0x490], eax
mov byte [ebp - 4], 8
test eax, eax
jne 0x406938
lea ecx, [ebp - 0x488]
call fcn.00406bb0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x48c]
jmp 0x4069b4
mov ecx, dword [eax]
push 1
push 0
push eax
call dword [ecx + 0x18]
xor ebx, ebx
test eax, eax
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x490]
sete bl
test eax, eax
je 0x40695d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 6
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40697d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x48c]
test eax, eax
je 0x406991
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add edi, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edi + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4069cc
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4069cc
mov byte [ebp - 4], 5
test eax, eax
je 0x4069be
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x480]
call fcn.00406bb0
or esi, 0xffffffff
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x484]
test eax, eax
je 0x4069e0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x498]
jmp 0x4069eb
or esi, 0xffffffff
mov byte [ebp - 4], 2
test eax, eax
je 0x4069f9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x4a4]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x406a1a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x494]
mov byte [ebp - 4], 0
test eax, eax
je 0x406a2e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00413c49
mov esp, ebp
pop ebp
ret