Function at 0x406c80
Capabilities:
Access peb ldr_data
Get session information
Hide graphical window

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c54b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x130
mov eax, dword [0x428014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x138], edi
mov eax, dword [ebx + 8]
push 0x3f4
mov dword [ebp - 0x13c], edi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [edi], eax
call esi
push 0x3f6
push dword [edi]
mov dword [edi + 4], eax
call esi
push 0x400
push dword [edi]
mov dword [edi + 8], eax
call esi
push 0x3f9
push dword [edi]
mov dword [edi + 0xc], eax
call esi
push 0x3fa
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push 0x3fe
push dword [edi]
mov dword [edi + 0x14], eax
call esi
push 0x3fb
push dword [edi]
mov dword [edi + 0x18], eax
call esi
push 0x3ea
push dword [edi]
mov dword [edi + 0x1c], eax
call esi
push 0x3ed
push dword [edi]
mov dword [edi + 0x20], eax
call esi
push 0x3eb
push dword [edi]
mov dword [edi + 0x24], eax
call esi
push 0x3ec
push dword [edi]
mov dword [edi + 0x28], eax
call esi
push 0x3ee
push dword [edi]
mov dword [edi + 0x2c], eax
call esi
push 0x3fd
push dword [edi]
mov dword [edi + 0x30], eax
call esi
push 0x3fc
push dword [edi]
mov dword [edi + 0x34], eax
call esi
push 0x3f5
push dword [edi]
mov dword [edi + 0x38], eax
call esi
push 0x401
push dword [edi]
mov dword [edi + 0x3c], eax
call esi
push 0x3ff
push dword [edi]
mov dword [edi + 0x40], eax
call esi
push 0x404
push dword [edi]
mov dword [edi + 0x44], eax
call esi
push 0x402
push dword [edi]
mov dword [edi + 0x48], eax
call esi
mov dword [edi + 0x4c], eax
push 0x403
push dword [edi]
call esi
push 0x406
push dword [edi]
mov dword [edi + 0x50], eax
call esi
push 0x407
push dword [edi]
mov dword [edi + 0x54], eax
call esi
push 0x3f2
push dword [edi]
mov dword [edi + 0x58], eax
call esi
push 0x405
push dword [edi]
mov dword [edi + 0x5c], eax
call esi
push 0x408
push dword [edi]
mov dword [edi + 0x60], eax
call esi
mov dword [edi + 0x64], eax
xor esi, esi
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x406e5e
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push 0x14
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0xa8]
test eax, eax
cmovne esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
lea ecx, [edi + 0x80]
setne al
mov byte [edi + 0x7c], al
call fcn.00409e60
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0
push eax
push 0x18
push 0xffffffffffffffff
lea esi, [edi + 0xb0]
mov dword [ebp - 0x18], 0
push 0
mov dword [ebp - 0x138], esi
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x406fcd
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x138], eax
test eax, eax
je 0x406fcd
lea edx, [eax + 0x82]
mov dword [ebp - 0xc4], 0
mov ecx, edx
mov dword [ebp - 0xb4], 0
xor eax, eax
mov dword [ebp - 0xb0], 7
mov word [ebp - 0xc4], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x20], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406f00
sub ecx, dword [ebp - 0x20]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xc4]
call fcn.004096e0
mov edx, dword [ebp - 0x138]
add edx, 0x60
mov byte [ebp - 4], 1
mov ecx, edx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
lea eax, [ecx + 2]
mov dword [ebp - 0x138], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406f50
sub ecx, dword [ebp - 0x138]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.004096e0
push dword [ebp - 0xa8]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
movups xmm0, xmmword [ebp - 0x4c]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x3c]
movq qword [esi + 0x10], xmm0
movups xmm0, xmmword [ebp - 0xc4]
mov dword [esi + 0x18], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [ebp - 0xb4]
movq qword [esi + 0x28], xmm0
jmp 0x406ff7
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [esi + 0x18], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 7
mov word [esi + 0x18], ax
mov byte [ebp - 4], 2
push 0x20
mov dword [edi + 0xe0], 0
mov dword [edi + 0xe4], 0
call fcn.0040b2eb
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0xe0], eax
push 0x41
mov byte [ebp - 4], 3
call dword [sym.imp.USER32.dll_CharLowerW]
xorps xmm0, xmm0
movzx edi, ax
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x38], 0
xor esi, esi
movups xmmword [ebp - 0x48], xmm0
mov ecx, edi
test esi, esi
je 0x407061
lea edx, [esi - 1]
call fcn.004029d0
imul ecx, eax, 0x19660d
add ecx, 0x3c6ef35f
mov ax, word [esi*2 + 0x425088]
xor ax, cx
movzx eax, ax
mov word [ebp + esi*2 - 0x58], ax
inc esi
cmp esi, 0x12
jb 0x407047
movups xmm0, xmmword [ebp - 0x58]
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x134]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xd0]
movups xmmword [ebp - 0xd0], xmm0
push eax
movups xmm0, xmmword [ebp - 0x48]
push edi
movups xmmword [ebp - 0xc0], xmm0
call fcn.004032b0
add esp, 8
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntdll.dll_RtlGetNtVersionNumbers]
mov eax, dword [ebp - 0x24]
mov ecx, eax
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
movzx eax, ax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x130]
shr ecx, 0x1c
push eax
mov dword [ebp - 0x138], ecx
call fcn.00407480
push dword [ebp - 0x138]
push dword [ebp - 0x18]
push esi
push edi
mov edi, dword [ebp - 0x134]
push eax
push edi
call fcn.004032b0
movzx esi, byte [edi + 0x7c]
add esp, 0x18
push 0x41
call dword [sym.imp.USER32.dll_CharLowerW]
movzx edx, ax
mov ecx, 0x42500c
lea eax, [ebp - 0xe8]
push eax
call fcn.00402270
add esp, 4
movups xmm0, xmmword [eax]
push esi
movups xmmword [ebp - 0x6c], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x5c], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ebp - 0x4c], xmm0
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x3c], ecx
mov ax, word [eax + 0x34]
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x6c]
push eax
push edi
call fcn.004032b0
lea eax, [edi + 0x98]
add esp, 0xc
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x134], eax
jb 0x407187
mov eax, dword [eax]
mov dword [ebp - 0x134], eax
cmp dword [edi + 0xdc], 8
lea esi, [edi + 0xc8]
jb 0x407198
mov esi, dword [esi]
push 0x41
call dword [sym.imp.USER32.dll_CharLowerW]
movzx edx, ax
mov ecx, 0x424fc8
lea eax, [ebp - 0x78]
push eax
call fcn.004063b0
add esp, 4
movups xmm0, xmmword [eax]
push dword [ebp - 0x134]
movups xmmword [ebp - 0x130], xmm0
push esi
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x120], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ebp - 0x110], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [ebp - 0x100], xmm0
mov eax, dword [eax + 0x40]
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0x130]
push eax
push edi
call fcn.004032b0
add esp, 0x10
xor eax, eax
cmp byte [edi + 0x7c], al
mov ecx, 4
cmovne eax, ecx
push dword [eax + 0x425b3c]
push dword [edi + 0x44]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 1
push 0xf1
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [edi + 8]
call esi
push 0
push dword [edi + 4]
call esi
cmp byte [edi + 0x7c], 0
push 0
jne 0x407280
push dword [edi + 0x10]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
call esi
push 0
push dword [edi + 0x14]
call esi
push 0
push dword [edi + 0x18]
call esi
push 0
push dword [edi + 0x1c]
call esi
push 0
push dword [edi + 0x34]
call esi
push 0
push dword [edi + 0x38]
call esi
push 0
push dword [edi + 0xc]
call esi
jmp 0x407289
push dword [edi + 0x64]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x10000020
push 0
push 0x1036
push dword [edi + 0x3c]
call esi
push 0x2c
lea eax, [ebp - 0xa4]
push 0
push eax
call fcn.0040cde0
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
push 0
push 0x1061
push dword [edi + 0x3c]
call esi
push 0xffffffffffffffff
push 0
push 0x1026
push dword [edi + 0x3c]
call esi
mov ecx, dword [0x4295a4]
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x20]
xor edx, edx
mov dword [ebp - 0x134], edx
cmp dword [ebp - 0x1c], edx
jle 0x40743a
nop dword [eax]
mov ecx, dword [0x4295a4]
lea esi, [ebp - 0xa8]
push esi
mov dword [ebp - 0xa8], 0
push edx
mov eax, dword [ecx]
push ecx
call dword [eax + 0x24]
mov ecx, dword [ebp - 0xa8]
lea eax, [ebp - 0x4c]
push eax
call fcn.00402b10
mov byte [ebp - 4], 4
lea esi, [ebp - 0x4c]
mov eax, dword [ebp - 0x134]
xorps xmm0, xmm0
cmp dword [ebp - 0x38], 8
movups xmmword [ebp - 0xd0], xmm0
cmovae esi, dword [ebp - 0x4c]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xe8]
push eax
push 0
push 0x104d
push dword [edi + 0x3c]
mov dword [ebp - 0xe8], 4
mov dword [ebp - 0xe4], SysReAllocString
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0x424fc0
movups xmmword [ebp - 0xc0], xmm0
mov dword [ebp - 0xb0], 0
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x128]
mov dword [ebp - 0x114], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ecx
push eax
push 0x1074
push dword [edi + 0x3c]
mov dword [ebp - 0x120], 0
call esi
mov eax, dword [ebp - 0xa8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x38]
cmp edx, 8
jb 0x407424
mov eax, dword [ebp - 0x4c]
lea edx, [edx*2 + 2]
mov ecx, eax
cmp edx, 0x1000
jb 0x40741a
mov eax, dword [eax - 4]
add edx, 0x23
sub ecx, eax
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x407474
push edx
push eax
call fcn.0040b069
add esp, 8
mov edx, dword [ebp - 0x134]
inc edx
mov dword [ebp - 0x134], edx
cmp edx, dword [ebp - 0x1c]
jl 0x407300
push 0xffff
push 0
push 0x101e
push dword [edi + 0x3c]
call esi
mov ecx, edi
call fcn.00406630
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040b05b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.0040e6bc
int3