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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b7070
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x100e7e80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0xb8], esi
xorps xmm0, xmm0
mov dword [ebp - 0x98], 0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x40
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x98], 1
push eax
call fcn.10089e40
add esp, 0xc
mov dword [ebp - 0x54], 0x1f
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
xorps xmm0, xmm0
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x5c], 0
movups xmmword [ebp - 0x70], xmm0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100654d0
sub ecx, edx
lea eax, [ebp - 0x50]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.10002390
mov dword [ebp - 0x98], 3
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x60]
test edi, edi
je 0x100657f5
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x90], 0
push 0x100cd400
lea ecx, [ebp - 0xb4]
mov dword [ebp - 0x8c], 0
movups xmmword [ebp - 0xb4], xmm0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
call fcn.10002390
mov byte [ebp - 4], 2
mov eax, Ordinal_1
mov edx, dword [ebp - 0xa4]
sub eax, edx
cmp eax, edi
jb 0x10065848
cmp dword [ebp - 0xa0], 7
lea ecx, [ebp - 0xb4]
push edi
cmova ecx, dword [ebp - 0xb4]
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 7
cmova eax, dword [ebp - 0x70]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0xb8]
lea ecx, [ebp - 0xd0]
call fcn.10001de0
mov dword [ebp - 0x98], 7
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x88]
call fcn.10002280
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xbc]
cmp ecx, 7
jbe 0x100655fe
mov edx, dword [ebp - 0xd0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100655f4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10065852
push ecx
push edx
call fcn.10087edd
add esp, 8
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xa0]
cmp ecx, 7
jbe 0x10065642
mov edx, dword [ebp - 0xb4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10065638
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10065852
push ecx
push edx
call fcn.10087edd
add esp, 8
cmp dword [ebp - 0x74], 7
lea ecx, [ebp - 0x58]
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x88]
cmova eax, dword [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x8c]
push ecx
push 0
lea ecx, [ebp - 0x90]
push ecx
push 0
push eax
push 0
call edi
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x100657bc
push eax
call fcn.10087f43
mov dword [ebp - 0x54], eax
mov ecx, 2
mov eax, dword [ebp - 0x8c]
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.10087f43
add esp, 8
lea edx, [ebp - 0x58]
cmp dword [ebp - 0x74], 7
mov ecx, eax
mov dword [ebp - 0x9c], ecx
lea eax, [ebp - 0x88]
cmova eax, dword [ebp - 0x88]
push edx
lea edx, [ebp - 0x8c]
push edx
push ecx
lea ecx, [ebp - 0x90]
push ecx
push dword [ebp - 0x54]
push eax
push 0
call edi
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0
push eax
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
mov edx, dword [ebp - 0x94]
test edx, edx
je 0x100657a6
mov ecx, edx
mov dword [ebp - 0xa4], 0
xorps xmm0, xmm0
mov dword [ebp - 0xa0], 0
movups xmmword [ebp - 0xb4], xmm0
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10065730
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xb4]
call fcn.10002390
lea eax, [ebp - 0xb4]
mov ecx, esi
push eax
call fcn.10006a20
mov ecx, dword [ebp - 0xa0]
cmp ecx, 7
jbe 0x1006579a
mov edx, dword [ebp - 0xb4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10065790
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006584d
push ecx
push edx
call fcn.10087edd
add esp, 8
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x54]
call fcn.10087f3e
push dword [ebp - 0x9c]
call fcn.10087f3e
add esp, 8
mov ecx, dword [ebp - 0x74]
cmp ecx, 7
jbe 0x100657f5
mov edx, dword [ebp - 0x88]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100657eb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10065852
push ecx
push edx
call fcn.10087edd
add esp, 8
mov ecx, dword [ebp - 0x5c]
cmp ecx, 7
jbe 0x1006582b
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10065821
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10065857
push ecx
push edx
call fcn.10087edd
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10087ecf
mov esp, ebp
pop ebp
ret
call fcn.10002eb0
call fcn.1008d13f
call fcn.1008d13f
call fcn.1008d13f
int3