Function at 0x42c240
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x4971c4]
mov edx, dword [eax + 0xc]
push ebx
push esi
xor ebx, ebx
push edi
mov ecx, 0x4971c4
mov dword [ebp - 0x30], ebx
call edx
lea edi, [eax + 0x10]
mov eax, dword [0x4971c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4971c4
mov dword [ebp - 0x20], edi
call edx
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [0x4971c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4971c4
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [0x4971c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4971c4
call edx
add eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword [0x4971c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4971c4
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [0x4971c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4971c4
call edx
add eax, 0x10
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.USER32.dll_GetShellWindow]
cmp eax, ebx
je 0x42c321
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x42c321
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x42c31a
lea edx, [ebp - 8]
push esi
push edx
call fcn.0042cd50
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.0042cd50
mov ecx, dword [ebp - 0x10]
add esp, 8
cmp dword [ecx - 0xc], ebx
je 0x42c6da
mov edx, dword [ebp - 8]
cmp dword [edx - 0xc], ebx
je 0x42c6da
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.0042bf10
add esp, 8
test al, al
je 0x42c391
lea edx, [ebp - 4]
push edx
push ebx
push 2
mov dword [ebp - 4], ebx
call sub.Secur32.dll_GetUserNameExW
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x42c3e4
lea ecx, [ebp - 4]
push ecx
push eax
lea ecx, [ebp - 0xc]
call fcn.004072d2
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
push 0xffffffffffffffff
lea ecx, [ebp - 0xc]
call fcn.00406f91
jmp 0x42c3e4
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.0042be70
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0042cc00
mov eax, dword [ebp - 0x24]
add esp, 0xc
cmp dword [eax - 0xc], ebx
je 0x42c3d8
mov ecx, dword [ebp - 0x14]
push ecx
push eax
lea edx, [ebp - 0xc]
push str._s_s
push edx
call fcn.0042c190
add esp, 0x10
jmp 0x42c3e4
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xc]
call fcn.0042c120
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.RealCreateProcessScheduledTask
lea edx, [ebp - 0x20]
push 0x4760fc
push edx
call fcn.0042c190
lea eax, [ebp - 0x2c]
push eax
call fcn.0042cb40
add esp, 0x18
test eax, eax
jl 0x42c5b4
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x20]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [ebp - 0x1c]
push eax
push esi
call edx
mov eax, dword [0x4971c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4971c4
call edx
add eax, 0x10
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 3
call fcn.0042c200
mov esi, dword [ebp - 0x1c]
cmp esi, ebx
je 0x42c587
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x254]
push ebx
mov dword [ebp - 0x258], ecx
push edx
lea ecx, [ebp - 0x258]
call fcn.00403fd0
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x258]
push ebx
lea eax, [ebp - 0x150]
push ecx
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x154], eax
call fcn.00403fd0
mov edx, dword [esi]
mov eax, dword [ebp - 0x154]
mov edx, dword [edx]
push edi
push eax
mov ecx, esi
call edx
mov esi, eax
mov eax, dword [ebp - 0x154]
lea ecx, [ebp - 0x150]
cmp eax, ecx
je 0x42c4ce
push eax
call fcn.0044fe9b
add esp, 4
mov eax, dword [ebp - 0x258]
lea edx, [ebp - 0x254]
cmp eax, edx
je 0x42c4e7
push eax
call fcn.0044fe9b
add esp, 4
cmp esi, ebx
jl 0x42c587
lea ecx, [ebp - 0x50]
call fcn.0042bf70
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
lea edx, [ebp - 0x50]
push edx
call eax
lea ecx, [ebp - 0x50]
mov esi, eax
call fcn.0042bfc0
cmp esi, ebx
jl 0x42c587
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [ebp - 0x38]
push eax
call edx
cmp eax, ebx
jl 0x42c587
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 4
call edx
cmp eax, ebx
jl 0x42c587
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
jl 0x42c587
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
test eax, eax
jl 0x42c587
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea esp, [esp]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
lea edx, [ebp - 4]
push edx
call eax
cmp dword [ebp - 4], 4
je 0x42c580
push 0x64
call edi
inc esi
cmp esi, 0x32
jl 0x42c560
jmp 0x42c587
mov dword [ebp - 0x30], 1
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x20]
mov edx, dword [edx + 4]
push eax
call edx
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c5b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x18]
cmp esi, ebx
je 0x42c5e5
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x42c5e5
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 0x42c5e5
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov esi, dword [ebp - 0x28]
cmp esi, ebx
je 0x42c616
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x42c616
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 0x42c616
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c635
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c654
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c673
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c692
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c6b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c6d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x30]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x18]
cmp esi, ebx
je 0x42c70b
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x42c70b
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 0x42c70b
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov esi, dword [ebp - 0x28]
cmp esi, ebx
je 0x42c73c
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x42c73c
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 0x42c73c
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c75b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c77a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c799
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c7b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c7d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c7f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret