Function at 0x1003ff90
Capabilities:
Get hostname
Get user security identifier

Disassembly:
push ebp
lea ebp, [esp - 0x248]
sub esp, 0x248
push 0xfffffffffffffffe
push 0x100eba70
push 0x100baa89
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100fc018]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x244], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], 0x100c9854
mov dword [ebp - 0x24], esi
push 0x100
push esi
lea eax, [ebp]
push eax
call sub.MSVCR90.dll_memset
push 0x200
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
mov dword [ebp - 0x1c], eax
push 0x100
push esi
push eax
call sub.MSVCR90.dll_memset
add esp, 0x1c
mov dword [ebp - 4], esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp + 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x10040057
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x100fc018
call sub.MSVCR90.dll__local_unwind4
add esp, 0xc
xor eax, eax
jmp 0x1004023b
lea ecx, [ebp + 0x220]
push ecx
push 0x10
lea edx, [ebp + 0x200]
push edx
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
push 1
push 0x100dfcf0
lea eax, [ebp + 0x220]
push eax
call dword [sym.imp.MSVCR90.dll_wcsncat]
add esp, 0x18
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x2c], esi
xor edi, edi
mov dword [ebp - 0x28], edi
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x24]
push edx
push esi
lea eax, [ebp - 0x20]
push eax
push esi
lea ecx, [ebp + 0x220]
push ecx
push esi
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call ebx
test eax, eax
jne 0x10040106
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10040106
cmp eax, 0x534
jne 0x10040185
lea eax, [ebp + 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100400d3
sub eax, edx
sar eax, 1
xor edx, edx
mov word [ebp + eax*2 + 0x21e], dx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x24]
push ecx
push edx
lea edx, [ebp - 0x20]
push edx
push 0
lea eax, [ebp + 0x220]
push eax
push 0
call ebx
mov edx, dword [ebp - 0x20]
push edx
mov edi, dword [sym.imp.MSVCR90.dll_malloc]
call edi
mov esi, eax
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x24]
lea ecx, [eax + eax + 1]
push ecx
call edi
add esp, 8
mov edi, eax
mov dword [ebp - 0x28], edi
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x24]
push eax
push edi
lea ecx, [ebp - 0x20]
push ecx
push esi
lea edx, [ebp + 0x220]
push edx
push 0
call ebx
test eax, eax
je 0x10040037
mov dword [ebp - 0x30], 0x100
lea ecx, [ebp - 0x30]
push ecx
push esi
lea ebx, [ebp]
call fcn.1003fe70
add esp, 8
test eax, eax
jne 0x100401bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xfffffffffffffffe
lea edx, [ebp - 0x10]
push edx
push 0x100fc018
call sub.MSVCR90.dll__local_unwind4
add esp, 0xc
xor eax, eax
jmp 0x1004023b
cmp eax, 0x6fd
jne 0x100401a5
call fcn.1003fce0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
call fcn.100401e9
jmp 0x10040231
push 0xfffffffffffffffe
lea ecx, [ebp - 0x10]
push ecx
push 0x100fc018
call sub.MSVCR90.dll__local_unwind4
add esp, 0xc
xor eax, eax
jmp 0x1004023b
lea eax, [ebp]
push eax
push 0x100
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
add esp, 0xc
mov dword [ebp - 4], 0
call fcn.100401e9
jmp 0x10040231
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x244]
xor ecx, ebp
call fcn.100ba2f9
add ebp, 0x248
mov esp, ebp
pop ebp
ret