Function at 0x102ab22
Capabilities:
Get hostname

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
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.0102a389
test eax, eax
mov dword [ebp - 0x3c], eax
je 0x102acfc
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 0x102ab7b
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 0x102ac71
dec eax
je 0x102ac08
dec eax
jne 0x102aca5
push ebx
lea ecx, [ebp - 0x60]
call fcn.01019ea7
lea ecx, [ebp - 0x48]
call fcn.01075e60
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.010818de
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.01075e30
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.01075e24
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x48]
sub ebx, dword [ebp - 0x34]
mov eax, dword [ecx - 8]
cmp eax, ebx
jge 0x102abfe
mov ebx, eax
push ebx
push ecx
push esi
call edi
lea ecx, [ebp - 0x48]
jmp 0x102ac5d
push ebx
lea ecx, [ebp - 0x68]
call fcn.01019ea7
lea ecx, [ebp - 0x44]
call fcn.01075e60
push 2
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], ebx
call fcn.01081cad
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.01075e30
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.01075e24
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x44]
sub ebx, dword [ebp - 0x34]
mov eax, dword [ecx - 8]
cmp eax, ebx
jge 0x102ac55
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.01075e24
jmp 0x102aca5
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 0x102ac94
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.0102a389
test eax, eax
mov dword [ebp - 0x3c], eax
jne 0x102ab67
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 0x102acdf
mov ebx, dword [ebp - 0x40]
jmp 0x102ace7
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 0x102ad0a
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.01075aef
leave
ret 4