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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x30022344]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x30004588
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x340]
push eax
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x128]
xor ebx, ebx
mov esi, 0x101
push eax
mov dword [ebp - 0x338], ebx
mov dword [ebp - 0x334], ebx
mov dword [ebp - 0x340], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x30031e9e
push esi
lea eax, [ebp - 0x128]
push eax
push 0x300041ac
call fcn.3005b52e
push 0x10
pop esi
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x340], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x30031ed7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x340], eax
push esi
lea eax, [ebp - 0x14]
push eax
push 0x300041bc
call fcn.3005b52e
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x30003f40
push 0x300bdd60
push 0x30003bcc
lea eax, [ebp - 0x330]
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll_swprintf_s]
mov eax, dword [0x300d27b8]
add esp, 0x14
cmp dword [eax], ebx
je 0x30031f16
push 0x15
pop esi
jmp 0x30031f25
push dword [0x300bdf68]
call fcn.3005a04d
mov esi, eax
add esi, esi
lea eax, [ebp - 0x14]
push eax
call fcn.30059fbc
mov edi, eax
lea eax, [ebp - 0x128]
push eax
call fcn.30059fbc
add edi, esi
lea esi, [eax + edi + 0x1a]
push esi
lea eax, [ebp - 0x334]
push eax
call fcn.3004349f
test eax, eax
je 0x3003215e
push esi
push dword [ebp - 0x334]
lea eax, [ebp - 0x354]
push eax
call fcn.3003e319
push dword [ebp - 0x334]
call fcn.30059fbc
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
sub ecx, eax
push 0x30004580
push ecx
mov ecx, dword [ebp - 0x334]
add eax, ecx
push eax
call edi
add esp, 0x14
push dword [ebp - 0x334]
call fcn.30059fbc
mov ecx, dword [0x300d27b8]
mov edx, dword [ecx]
sub esi, eax
cmp edx, ebx
je 0x30031fd1
push dword [ecx + 4]
mov ecx, dword [ebp - 0x334]
push edx
push 0x30004578
add eax, ecx
push esi
push eax
call edi
add esp, 0x14
jmp 0x30031feb
push dword [0x300bdf68]
mov ecx, dword [ebp - 0x334]
push 0x30004570
add eax, ecx
push esi
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x330]
push eax
push dword [ebp - 0x334]
call fcn.3003dc4e
push dword [ebp - 0x334]
call fcn.300433f3
mov eax, dword [0x300bdf74]
cmp eax, ebx
mov dword [ebp - 0x334], ebx
je 0x3003202d
push eax
call fcn.3003de13
cmp word [eax], 0x5c
mov dword [ebp - 0x33c], eax
jne 0x30032036
inc eax
inc eax
jmp 0x30032030
lea eax, [ebp - 0x24]
mov dword [ebp - 0x33c], eax
push dword [0x300bdf6c]
call fcn.3005a04d
push 0x30003f6c
mov esi, eax
call fcn.3005a04d
lea ebx, [esi + eax + 2]
cmp ebx, 0x104
jle 0x30032075
call fcn.3003dc3a
test eax, eax
je 0x3003215e
push 0x30004528
call fcn.3003dcd4
jmp 0x3003215e
push dword [ebp - 0x33c]
call fcn.3005a04d
lea esi, [eax + eax + 0x1a]
lea eax, [ebp - 0x14]
push eax
call fcn.30059fbc
add eax, esi
mov dword [ebp - 0x344], eax
lea eax, [ebp - 0x128]
push eax
call fcn.30059fbc
mov esi, eax
add esi, dword [ebp - 0x344]
lea eax, [ebx + ebx]
push eax
lea eax, [ebp - 0x338]
push eax
call fcn.3004349f
test eax, eax
je 0x3003215e
push 0x30003f6c
push dword [0x300bdf6c]
push 0x30003bcc
push ebx
push dword [ebp - 0x338]
call dword [sym.imp.MSVCR80.dll_swprintf_s]
add esp, 0x14
push esi
lea eax, [ebp - 0x334]
push eax
call fcn.3004349f
test eax, eax
je 0x30032153
push esi
push dword [ebp - 0x334]
lea eax, [ebp - 0x354]
push eax
call fcn.3003e319
push dword [ebp - 0x334]
call fcn.30059fbc
push dword [ebp - 0x33c]
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x334]
sub esi, eax
push 0x3000451c
add eax, ecx
push esi
push eax
call edi
add esp, 0x18
push dword [ebp - 0x338]
push dword [ebp - 0x334]
call fcn.3003dc4e
push dword [ebp - 0x334]
call fcn.300433f3
push dword [ebp - 0x338]
call fcn.300433f3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30069876
leave
ret