Function at 0x102ac5b
Capabilities:
Get hostname

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077868
sub esp, 0x5c
mov eax, dword [0x10de03c]
push esi
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x40]
mov edi, edx
push eax
mov esi, ecx
push edi
mov dword [ebp - 0x58], esi
call fcn.0102a427
test eax, eax
mov dword [ebp - 0x3c], eax
je 0x102ae35
and dword [ebp - 0x34], 0
mov dword [ebp - 0x38], edi
mov edi, dword [sym.imp.msvcrt.dll_wcsncpy]
push ebx
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x38]
mov ebx, dword [ebp + 8]
sub ebx, dword [ebp - 0x34]
sar eax, 1
cmp ebx, eax
jl 0x102acb4
mov ebx, eax
push ebx
push dword [ebp - 0x38]
push esi
call edi
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
add dword [ebp - 0x34], ebx
lea eax, [ecx + eax*2]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x4c]
lea esi, [esi + ebx*2]
xor ebx, ebx
add esp, 0xc
sub eax, ebx
je 0x102adaa
dec eax
je 0x102ad41
dec eax
jne 0x102adde
push ebx
lea ecx, [ebp - 0x60]
call fcn.01019ece
lea ecx, [ebp - 0x48]
call fcn.01075f2c
push 2
pop eax
push ebx
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x5c]
call fcn.010819d0
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.01075efc
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.01075ef0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x48]
sub ebx, dword [ebp - 0x34]
mov eax, dword [ecx - 8]
cmp eax, ebx
jge 0x102ad37
mov ebx, eax
push ebx
push ecx
push esi
call edi
lea ecx, [ebp - 0x48]
jmp 0x102ad96
push ebx
lea ecx, [ebp - 0x68]
call fcn.01019ece
lea ecx, [ebp - 0x44]
call fcn.01075f2c
push 2
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], ebx
call fcn.01081d9f
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.01075efc
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.01075ef0
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x44]
sub ebx, dword [ebp - 0x34]
mov eax, dword [ecx - 8]
cmp eax, ebx
jge 0x102ad8e
mov ebx, eax
push ebx
push ecx
push esi
call edi
lea ecx, [ebp - 0x44]
add dword [ebp - 0x34], ebx
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea esi, [esi + ebx*2]
call fcn.01075ef0
jmp 0x102adde
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x3c], reloc.KERNEL32.dll_LoadLibraryW
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov ebx, dword [ebp + 8]
sub ebx, dword [ebp - 0x34]
cmp dword [ebp - 0x3c], ebx
jae 0x102adcd
mov ebx, dword [ebp - 0x3c]
push ebx
lea eax, [ebp - 0x30]
push eax
push esi
call edi
add esp, 0xc
add dword [ebp - 0x34], ebx
lea esi, [esi + ebx*2]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x38]
call fcn.0102a427
test eax, eax
mov dword [ebp - 0x3c], eax
jne 0x102aca0
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 0x34]
push dword [ebp - 0x38]
mov ebx, dword [sym.imp.msvcrt.dll_wcslen]
mov dword [ebp - 0x40], eax
call ebx
cmp dword [ebp - 0x40], eax
pop ecx
jae 0x102ae18
mov ebx, dword [ebp - 0x40]
jmp 0x102ae20
push dword [ebp - 0x38]
call ebx
pop ecx
mov ebx, eax
push ebx
push dword [ebp - 0x38]
push esi
call edi
add esp, 0xc
and word [esi + ebx*2], 0
mov esi, dword [ebp - 0x58]
pop ebx
jmp 0x102ae43
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
mov eax, dword [ebp + 8]
and word [esi + eax*2], 0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.01075bbb
leave
ret 4