Function at 0x100510c
Capabilities:
Get hostname
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100ea20
push 0x1009d9a
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x1140
call fcn.01009e40
mov eax, dword [0x1010004]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1118], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1148], eax
xor ebx, ebx
mov dword [ebp - 0x10ec], ebx
mov dword [ebp - 0x1128], ebx
mov dword [ebp - 0x110c], ebx
xor eax, eax
mov word [ebp - 0x3c], ax
push 7
pop ecx
lea edi, [ebp - 0x3a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x1138], 0x10
xor eax, eax
mov word [ebp - 0x83c], ax
mov edi, 0x7fe
push edi
push ebx
lea eax, [ebp - 0x83a]
push eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x1100], ebx
mov dword [ebp - 0x112c], ebx
mov dword [ebp - 0x1120], ebx
mov dword [ebp - 0x10f0], ebx
mov dword [ebp - 0x10f4], ebx
mov dword [ebp - 0x1114], ebx
mov dword [ebp - 0x10f8], ebx
mov dword [ebp - 0x1130], ebx
mov dword [ebp - 0x1140], ebx
mov dword [ebp - 0x1150], ebx
mov dword [ebp - 0x1144], ebx
xor eax, eax
mov word [ebp - 0x103c], ax
push edi
push ebx
lea eax, [ebp - 0x103a]
push eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0x10e8], ebx
push 0xa8
push ebx
lea eax, [ebp - 0x10e4]
push eax
call sub.msvcrt.dll_memset
add esp, 0x24
mov dword [ebp - 0x114c], ebx
mov dword [ebp - 0x1104], ebx
mov dword [ebp - 0x1124], ebx
mov dword [ebp - 0x10fc], ebx
mov dword [ebp - 0x1108], ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x10100c4]
cmp eax, ebx
jne 0x1005285
lea eax, [ebp - 0x1138]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x1005272
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1005274
and eax, 0xffff
or eax, 0x80070000
jmp 0x1005274
xor eax, eax
mov dword [ebp - 0x10ec], eax
cmp eax, ebx
jne 0x10056a4
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x110c], eax
lea eax, [ebp - 0x10f0]
push eax
push esi
call fcn.01004f59
mov dword [ebp - 0x10ec], eax
cmp eax, ebx
jne 0x10056a4
lea eax, [ebp - 0x10f8]
push eax
push 0x80
push dword [ebp - 0x10f0]
call fcn.01003c74
mov dword [ebp - 0x10ec], eax
cmp eax, ebx
jne 0x10056a4
lea eax, [ebp - 0x1130]
push eax
mov edi, dword [ebp - 0x10f8]
push edi
call fcn.01003336
mov dword [ebp - 0x10ec], eax
cmp eax, ebx
jne 0x10056a4
mov dword [ebp - 0x1140], edi
mov dword [ebp - 0x10ec], ebx
lea eax, [ebp - 0x1158]
push eax
push dword [ebp - 0x1130]
push dword [ebp - 0x10f0]
push dword [ebp - 0x1148]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
jne 0x1005331
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1005333
and eax, 0xffff
or eax, 0x80070000
jmp 0x1005333
xor eax, eax
mov dword [ebp - 0x10ec], eax
cmp eax, ebx
jne 0x10056a4
mov eax, dword [ebp - 0x1158]
cdq
idiv dword [ebp + 0x14]
mov ecx, eax
mov dword [ebp - 0x1120], ecx
mov dword [ebp - 0x1150], edx
cmp ecx, ebx
jbe 0x10054a6
cmp edx, ebx
jbe 0x100536c
inc ecx
mov dword [ebp - 0x1120], ecx
mov eax, dword [ebp - 0x10f8]
lea esi, [eax + ecx]
mov dword [ebp - 0x1114], esi
xor edx, edx
div ecx
mov dword [ebp - 0x1128], eax
lea eax, [esi + esi + 2]
push eax
push 8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10f4], eax
cmp eax, ebx
jne 0x10053b4
mov dword [ebp - 0x10ec], 0x8007000e
jmp 0x10056aa
xor eax, eax
mov dword [ebp - 0x113c], eax
xor ecx, ecx
mov dword [ebp - 0x111c], ecx
cmp eax, dword [ebp - 0x10f8]
jae 0x100541c
mov edx, dword [ebp - 0x10f0]
mov dx, word [edx + eax*2]
mov esi, dword [ebp - 0x10f4]
mov word [esi + ecx*2], dx
inc ecx
mov dword [ebp - 0x111c], ecx
lea esi, [eax + 1]
mov eax, esi
xor edx, edx
div dword [ebp - 0x1128]
test edx, edx
jne 0x100540c
push 0xa
pop eax
mov edx, dword [ebp - 0x10f4]
mov word [edx + ecx*2], ax
inc ecx
mov dword [ebp - 0x111c], ecx
mov eax, esi
mov dword [ebp - 0x113c], eax
mov esi, dword [ebp - 0x1114]
jmp 0x10053c4
xor eax, eax
mov edx, dword [ebp - 0x10f4]
mov word [edx + ecx*2], ax
cmp dword [ebp - 0x10f0], ebx
je 0x1005480
push dword [ebp - 0x10f0]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapSize]
cmp eax, 0xffffffff
je 0x100547a
mov dword [ebp - 0x1110], eax
mov eax, dword [ebp - 0x10f0]
mov dword [ebp - 0x1134], eax
cmp dword [ebp - 0x1110], ebx
je 0x100546a
mov byte [eax], bl
inc eax
dec dword [ebp - 0x1110]
jmp 0x1005451
push dword [ebp - 0x10f0]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x10f0], ebx
mov dword [ebp - 0x10f8], ebx
mov eax, dword [ebp - 0x10f4]
mov dword [ebp - 0x10f0], eax
mov dword [ebp - 0x10f8], esi
mov dword [ebp - 0x10f4], ebx
mov dword [ebp - 0x1114], ebx
jmp 0x10054ac
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, 0x400
push esi
lea eax, [ebp - 0x83c]
push eax
push ebx
push ebx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
test eax, eax
jne 0x10054e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10054dc
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x10ec], eax
jmp 0x10056aa
push esi
lea eax, [ebp - 0x103c]
push eax
push ebx
push ebx
push 2
push esi
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
test eax, eax
je 0x10054c8
lea eax, [ebp - 0x10e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov dword [ebp - 0x114c], eax
dec eax
je 0x100552b
dec eax
je 0x1005523
mov dword [ebp - 0x1104], 0x1001370
jmp 0x1005537
lea eax, [ebp - 0x1090]
jmp 0x1005531
lea eax, [ebp - 0x10e4]
mov dword [ebp - 0x1104], eax
lea eax, [ebp - 0x1108]
push eax
push dword [ebp - 0x10fc]
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x10054c8
mov eax, dword [ebp - 0x1108]
add eax, eax
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10fc], eax
lea ecx, [ebp - 0x1108]
push ecx
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x1005596
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1005598
and eax, 0xffff
or eax, 0x80070000
jmp 0x1005598
xor eax, eax
mov dword [ebp - 0x10ec], eax
cmp eax, ebx
jne 0x10056aa
lea eax, [ebp - 0x1100]
push eax
push 0xe6
call fcn.01003cef
mov dword [ebp - 0x10ec], eax
cmp eax, ebx
jne 0x10056aa
lea eax, [ebp - 0x112c]
push eax
mov esi, 0x7fffffff
push esi
push dword [ebp - 0x1100]
call fcn.01003c74
mov dword [ebp - 0x10ec], eax
cmp eax, ebx
jne 0x10056aa
lea eax, [ebp - 0x1124]
push eax
push esi
push dword [ebp - 0x1104]
call fcn.01003c74
mov dword [ebp - 0x10ec], eax
cmp eax, ebx
jne 0x10056aa
mov eax, dword [ebp - 0x110c]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x1005615
sub eax, ecx
sar eax, 1
mov ecx, dword [ebp - 0x1108]
add eax, ecx
add eax, dword [ebp - 0x1124]
add eax, dword [ebp - 0x10f8]
mov ecx, dword [ebp - 0x112c]
lea esi, [eax + ecx + 0x801]
mov dword [ebp - 0x1144], esi
lea eax, [esi + esi]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x1118]
mov dword [ecx], eax
cmp eax, ebx
je 0x10053a5
push dword [ebp - 0x10fc]
push dword [ebp - 0x1104]
lea ecx, [ebp - 0x103c]
push ecx
lea ecx, [ebp - 0x83c]
push ecx
push dword [ebp - 0x10f0]
push dword [ebp - 0x110c]
push dword [ebp - 0x1100]
push esi
push eax
call fcn.01003ac7
add esp, 0x24
jmp 0x10054dc
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 4], 0xfffffffe
call fcn.010056e0
mov eax, dword [ebp - 0x10ec]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.01009dc4
leave
ret 0x10