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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x3002223c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x30004520
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 0x30031cdb
push esi
lea eax, [ebp - 0x128]
push eax
push 0x30004144
call fcn.3005b2f6
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 0x30031d14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x340], eax
push esi
lea eax, [ebp - 0x14]
push eax
push 0x30004154
call fcn.3005b2f6
lea eax, [ebp - 0x354]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x30003ed8
push 0x300bcd30
push 0x30003b64
lea eax, [ebp - 0x330]
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll_swprintf_s]
mov eax, dword [0x300c7ae8]
add esp, 0x14
cmp dword [eax], ebx
je 0x30031d53
push 0x15
pop esi
jmp 0x30031d62
push dword [0x300bcf38]
call fcn.30059e13
mov esi, eax
add esi, esi
lea eax, [ebp - 0x14]
push eax
call fcn.30059d82
mov edi, eax
lea eax, [ebp - 0x128]
push eax
call fcn.30059d82
add edi, esi
lea esi, [eax + edi + 0x1a]
push esi
lea eax, [ebp - 0x334]
push eax
call fcn.30043287
test eax, eax
je 0x30031f9b
push esi
push dword [ebp - 0x334]
lea eax, [ebp - 0x354]
push eax
call fcn.3003e0e9
push dword [ebp - 0x334]
call fcn.30059d82
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 0x30004518
push ecx
mov ecx, dword [ebp - 0x334]
add eax, ecx
push eax
call edi
add esp, 0x14
push dword [ebp - 0x334]
call fcn.30059d82
mov ecx, dword [0x300c7ae8]
mov edx, dword [ecx]
sub esi, eax
cmp edx, ebx
je 0x30031e0e
push dword [ecx + 4]
mov ecx, dword [ebp - 0x334]
push edx
push 0x30004510
add eax, ecx
push esi
push eax
call edi
add esp, 0x14
jmp 0x30031e28
push dword [0x300bcf38]
mov ecx, dword [ebp - 0x334]
push 0x30004508
add eax, ecx
push esi
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x330]
push eax
push dword [ebp - 0x334]
call fcn.3003da1e
push dword [ebp - 0x334]
call fcn.300431db
mov eax, dword [0x300bcf44]
cmp eax, ebx
mov dword [ebp - 0x334], ebx
je 0x30031e6a
push eax
call fcn.3003dbe3
cmp word [eax], 0x5c
mov dword [ebp - 0x33c], eax
jne 0x30031e73
inc eax
inc eax
jmp 0x30031e6d
lea eax, [ebp - 0x24]
mov dword [ebp - 0x33c], eax
push dword [0x300bcf3c]
call fcn.30059e13
push 0x30003f04
mov esi, eax
call fcn.30059e13
lea ebx, [esi + eax + 2]
cmp ebx, 0x104
jle 0x30031eb2
call fcn.3003da0a
test eax, eax
je 0x30031f9b
push 0x300044c0
call fcn.3003daa4
jmp 0x30031f9b
push dword [ebp - 0x33c]
call fcn.30059e13
lea esi, [eax + eax + 0x1a]
lea eax, [ebp - 0x14]
push eax
call fcn.30059d82
add eax, esi
mov dword [ebp - 0x344], eax
lea eax, [ebp - 0x128]
push eax
call fcn.30059d82
mov esi, eax
add esi, dword [ebp - 0x344]
lea eax, [ebx + ebx]
push eax
lea eax, [ebp - 0x338]
push eax
call fcn.30043287
test eax, eax
je 0x30031f9b
push 0x30003f04
push dword [0x300bcf3c]
push 0x30003b64
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.30043287
test eax, eax
je 0x30031f90
push esi
push dword [ebp - 0x334]
lea eax, [ebp - 0x354]
push eax
call fcn.3003e0e9
push dword [ebp - 0x334]
call fcn.30059d82
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 0x300044b4
add eax, ecx
push esi
push eax
call edi
add esp, 0x18
push dword [ebp - 0x338]
push dword [ebp - 0x334]
call fcn.3003da1e
push dword [ebp - 0x334]
call fcn.300431db
push dword [ebp - 0x338]
call fcn.300431db
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3006961b
leave
ret