Function at 0x1001cc3b
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ca6a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xa4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1001cd46
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x64]
movzx eax, byte [eax]
test eax, eax
je 0x1001cced
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x44]
mov ecx, dword [ebp - 0x8c]
call fcn.1001e9e0
mov ecx, dword [ebp - 0x6c]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x1001cd41
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x1001cd24
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 4
jge 0x1001cd41
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x48]
call fcn.1001e97a
mov dword [eax], 0xb8b78acc
jmp 0x1001cd19
jmp 0x1001d05e
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x60], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x34], 0x1983
mov dword [ebp - 0x50], 0x10007ad8
cmp dword [ebp - 0x34], 0x1a2b
jle 0x1001cdf3
and dword [ebp - 0x2c], 0
jmp 0x1001cd80
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x3fad
jge 0x1001cde9
and dword [ebp - 0x24], 0
jmp 0x1001cd96
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x5395
jge 0x1001cde7
and dword [ebp - 0x28], 0
jmp 0x1001cdac
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x1546
jge 0x1001cde5
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
sar eax, cl
cdq
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], edx
push dword [ebp - 0xb0]
push dword [ebp - 0xb4]
mov ecx, 0x106142f8
call fcn.1001e69c
jmp 0x1001cda5
jmp 0x1001cd8f
jmp 0x1001cd79
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x68], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x34], 0x1877
jge 0x1001ce13
mov edx, dword [ebp - 0x50]
mov ecx, 0x106142f8
call fcn.10020f77
jmp 0x1001ce2f
or dword [ebp - 4], 0xffffffff
jmp 0x1001ce39
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax]
test eax, eax
je 0x1001d054
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x78], 0x1f9a
cmp dword [ebp - 0x78], 0xd48
jge 0x1001cfb5
push 0x10615428
push 0x100076f4
call fcn.1005533b
pop ecx
pop ecx
and dword [ebp - 0x30], 0
jmp 0x1001ce9a
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [0x10615428]
jge 0x1001cebe
mov eax, dword [ebp - 0x30]
lea eax, [eax*4 + 0x10615430]
push eax
push 0x100076f4
call fcn.1005533b
pop ecx
pop ecx
jmp 0x1001ce93
and dword [ebp - 0x20], 0
xor eax, eax
inc eax
je 0x1001cfa6
push 4
pop eax
imul eax, eax, 0
cmp dword [eax + 0x10615430], 0
je 0x1001cee9
mov eax, dword [0x10615428]
cmp dword [eax*4 + 0x1061542c], 0
jne 0x1001cef8
push dword [ebp - 0x20]
push 0x10007b2c
call fcn.1005556f
pop ecx
pop ecx
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x10615428]
jge 0x1001cf6b
mov eax, dword [0x10615428]
dec eax
cmp dword [ebp - 0x14], eax
jne 0x1001cf14
jmp 0x1001cf6b
mov eax, dword [ebp - 0x14]
inc eax
inc eax
cmp eax, dword [0x10615428]
jge 0x1001cf38
mov eax, dword [ebp - 0x14]
cmp dword [eax*4 + 0x10615438], 0
jle 0x1001cf38
mov eax, dword [ebp - 0x14]
inc eax
inc eax
mov dword [ebp - 0x14], eax
jmp 0x1001cf69
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, dword [0x10615428]
jge 0x1001cf5a
mov eax, dword [ebp - 0x14]
cmp dword [eax*4 + 0x10615434], 0
jle 0x1001cf5a
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
jmp 0x1001cf69
push dword [ebp - 0x20]
push 0x10007b2c
call fcn.1005556f
pop ecx
pop ecx
jmp 0x1001cefc
and dword [ebp - 0x1c], 0
jmp 0x1001cf78
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [0x10615428]
jge 0x1001cf9a
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax*4 + 0x10615430]
dec eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx*4 + 0x10615430], eax
jmp 0x1001cf71
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
jmp 0x1001cec2
push dword [ebp - 0x20]
push 0x10007b2c
call fcn.1005556f
pop ecx
pop ecx
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 0
je 0x1001d052
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
test eax, eax
je 0x1001d006
mov ecx, dword [ebp - 0x38]
call fcn.1001ea51
movzx eax, al
test eax, eax
jne 0x1001d052
push 1
push 1
push dword [ebp - 0xa8]
push dword [ebp - 0x3c]
push 1
push 0x2dbb
push 0x21ba
push 0x32a7
push dword [ebp - 0x38]
push 0x3222
push 0x7a52
call fcn.1000adc1
add esp, 0x2c
push 0x49ad
push 1
push 1
push dword [ebp - 0x40]
push 0xe4f
call fcn.1000b0a8
add esp, 0x14
jmp 0x1001d05e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret