Function at 0x46fcd0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4f9590]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [0x4f94fc]
push ebx
push esi
mov dword [ebp - 0x258], eax
mov eax, dword [edx + 0xc]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov ecx, 0x4f94fc
mov dword [ebp - 0x25c], ebx
call eax
mov edx, dword [0x4f94fc]
add eax, 0x10
mov dword [ebp - 0x248], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4f94fc
call eax
mov edx, dword [0x4f94fc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4f94fc
call eax
mov edx, dword [0x4f94fc]
add eax, 0x10
mov dword [ebp - 0x244], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4f94fc
call eax
mov edx, dword [0x4f94fc]
add eax, 0x10
mov dword [ebp - 0x24c], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4f94fc
call eax
mov edx, dword [0x4f94fc]
add eax, 0x10
mov dword [ebp - 0x240], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4f94fc
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x254], ebx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], ebx
call dword [sym.imp.USER32.dll_GetShellWindow]
cmp eax, ebx
je 0x46fdfa
lea ecx, [ebp - 0x230]
push ecx
push eax
mov dword [ebp - 0x230], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x230]
cmp eax, ebx
je 0x46fdfa
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x46fdf3
lea edx, [ebp - 0x22c]
push esi
push edx
call fcn.00470780
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x244]
push ebx
push eax
call fcn.00470780
mov ecx, dword [ebp - 0x244]
add esp, 8
cmp dword [ecx - 0xc], ebx
je 0x470284
mov edx, dword [ebp - 0x22c]
cmp dword [edx - 0xc], ebx
je 0x470284
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x244]
push ecx
call fcn.0046fb40
add esp, 8
test al, al
je 0x46feb1
lea edx, [ebp - 0x230]
push edx
push ebx
push 2
mov dword [ebp - 0x230], ebx
call sub.Secur32.dll_GetUserNameExW
mov eax, dword [ebp - 0x230]
cmp eax, ebx
je 0x46ff1c
lea ecx, [ebp - 0x230]
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.0041899f
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
mov esi, dword [ebp - 0x228]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004967b7
add esp, 8
cmp eax, ebx
jl 0x46fea7
cmp eax, dword [esi - 8]
jg 0x46fea7
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
jmp 0x46ff1c
push 0x80070057
call fcn.0040d624
lea eax, [ebp - 0x240]
push eax
mov eax, dword [ebp - 0x22c]
lea ecx, [ebp - 0x24c]
push ecx
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.0041e4ea
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004708a0
mov eax, dword [ebp - 0x24c]
add esp, 0xc
cmp dword [eax - 0xc], ebx
je 0x46ff0a
mov edx, dword [ebp - 0x240]
push edx
push eax
lea eax, [ebp - 0x228]
push 0x4db98c
push eax
call fcn.00450791
add esp, 0x10
jmp 0x46ff1c
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x228]
call fcn.0046fc20
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.RealCreateProcessScheduledTask
lea eax, [ebp - 0x248]
push 0x4db93c
push eax
call fcn.00450791
lea ecx, [ebp - 0x254]
push ecx
call fcn.004706c0
add esp, 0x18
test eax, eax
js 0x470139
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x248]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [ebp - 0x23c]
push eax
push esi
call edx
mov eax, dword [0x4f94fc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4f94fc
call edx
add eax, 0x10
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x228]
push eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x234], 3
call fcn.0046fc90
mov esi, dword [ebp - 0x23c]
cmp esi, ebx
je 0x470103
lea ecx, [ebp - 0x11c]
push ebx
mov dword [ebp - 0x120], ecx
push edi
lea ecx, [ebp - 0x120]
call fcn.00412170
mov eax, dword [ebp - 0x258]
mov edi, dword [ebp - 0x120]
push ebx
lea edx, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x224], edx
call fcn.00412170
mov edx, dword [esi]
mov eax, dword [ebp - 0x224]
mov edx, dword [edx]
push edi
push eax
mov ecx, esi
call edx
mov esi, eax
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x220]
cmp eax, ecx
je 0x47002a
push eax
call fcn.00495e67
add esp, 4
mov eax, dword [ebp - 0x120]
lea edx, [ebp - 0x11c]
cmp eax, edx
je 0x470043
push eax
call fcn.00495e67
add esp, 4
cmp esi, ebx
jl 0x470103
lea ecx, [ebp - 0x1c]
call fcn.0046fba0
mov ecx, dword [ebp - 0x23c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
lea edx, [ebp - 0x1c]
push edx
call eax
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.0046fbf0
cmp esi, ebx
jl 0x470103
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [ebp - 0x234]
push eax
call edx
cmp eax, ebx
jl 0x470103
mov ecx, dword [ebp - 0x23c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 4
call edx
cmp eax, ebx
jl 0x470103
mov ecx, dword [ebp - 0x23c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
js 0x470103
mov ecx, dword [ebp - 0x23c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
test eax, eax
js 0x470103
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
jmp 0x4700d0
mov ecx, dword [ebp - 0x23c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
lea edx, [ebp - 0x258]
push edx
call eax
cmp dword [ebp - 0x258], 4
je 0x4700f9
push 0x64
call edi
inc esi
cmp esi, 0x32
jl 0x4700d0
jmp 0x470103
mov dword [ebp - 0x25c], 1
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x248]
mov edx, dword [edx + 4]
push eax
call edx
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470139
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x238]
cmp esi, ebx
je 0x47016d
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x47016d
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x47016d
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov esi, dword [ebp - 0x250]
cmp esi, ebx
je 0x4701a1
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4701a1
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4701a1
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4701c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4701e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470207
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470229
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47024b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x248]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47026d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x25c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004944f9
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x238]
cmp esi, ebx
je 0x4702b8
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4702b8
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4702b8
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov esi, dword [ebp - 0x250]
cmp esi, ebx
je 0x4702ec
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4702ec
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4702ec
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47030e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470330
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470352
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x244]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470374
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x470396
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x248]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4703b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004944f9
mov esp, ebp
pop ebp
ret