Function at 0x10015660
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10046b3c
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x1005a280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push str.advapi32.dll
mov dword [ebp - 0x478], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x10015761
push str.GetUserNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10015761
lea ecx, [ebp - 0x47c]
mov dword [ebp - 0x47c], 0xfe
push ecx
lea ecx, [ebp - 0x410]
push ecx
call eax
test eax, eax
je 0x10015761
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x428]
call fcn.100106f0
cmp dword [ebp - 0x414], 7
lea ecx, [ebp - 0x428]
mov eax, dword [ebp - 0x418]
lea edx, [ebp - 0x471]
cmova ecx, dword [ebp - 0x428]
push edx
mov dword [ebp - 4], 0
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x428]
cmova ecx, dword [ebp - 0x428]
push eax
push ecx
lea ecx, [ebp - 0x470]
call fcn.10014360
movups xmm0, xmmword [ebp - 0x470]
lea ecx, [ebp - 0x428]
movups xmmword [ebp - 0x458], xmm0
movq xmm0, qword [ebp - 0x460]
movq qword [ebp - 0x448], xmm0
call fcn.10005b30
jmp 0x10015786
xorps xmm0, xmm0
mov dword [ebp - 0x448], 0
movups xmmword [ebp - 0x458], xmm0
mov dword [ebp - 0x444], 0xf
mov byte [ebp - 0x458], 0
xor eax, eax
mov dword [ebp - 4], 1
push 0x1fe
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.10029940
add esp, 0xc
mov dword [ebp - 0x478], 0xff
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
xorps xmm0, xmm0
test eax, eax
je 0x100158c8
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x418], 0
movups xmmword [ebp - 0x428], xmm0
mov dword [ebp - 0x414], 0
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015800
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.1000fbb0
cmp dword [ebp - 0x414], 7
lea ecx, [ebp - 0x428]
mov eax, dword [ebp - 0x418]
lea edx, [ebp - 0x471]
cmova ecx, dword [ebp - 0x428]
push edx
mov byte [ebp - 4], 2
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x428]
cmova ecx, dword [ebp - 0x428]
push eax
push ecx
lea ecx, [ebp - 0x470]
call fcn.10014360
movups xmm0, xmmword [ebp - 0x470]
mov ecx, dword [ebp - 0x414]
mov byte [ebp - 4], 1
movups xmmword [ebp - 0x440], xmm0
movq xmm0, qword [ebp - 0x460]
movq qword [ebp - 0x430], xmm0
cmp ecx, 7
jbe 0x100158ea
mov edx, dword [ebp - 0x428]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100158bc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10015a25
push ecx
push edx
call fcn.100278c5
add esp, 8
jmp 0x100158ea
movups xmmword [ebp - 0x440], xmm0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0xf
mov byte [ebp - 0x440], 0
push 1
push 0x1004ac14
lea ecx, [ebp - 0x440]
mov byte [ebp - 4], 3
call fcn.10008c50
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x428], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x418], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x458]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x428]
mov ecx, edi
push eax
push dword [ebp - 0x478]
call fcn.10003740
mov ecx, dword [ebp - 0x414]
cmp ecx, 0xf
jbe 0x10015981
mov edx, dword [ebp - 0x428]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10015977
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10015a2a
push ecx
push edx
call fcn.100278c5
add esp, 8
mov ecx, dword [ebp - 0x42c]
cmp ecx, 0xf
jbe 0x100159b7
mov edx, dword [ebp - 0x440]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100159ad
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10015a2a
push ecx
push edx
call fcn.100278c5
add esp, 8
mov ecx, dword [ebp - 0x444]
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0xf
mov byte [ebp - 0x440], 0
cmp ecx, 0xf
jbe 0x10015a08
mov edx, dword [ebp - 0x458]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100159fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10015a2a
push ecx
push edx
call fcn.100278c5
add esp, 8
mov eax, edi
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.100278e1
mov esp, ebp
pop ebp
ret
call fcn.1002caaf
call fcn.1002caaf
int3