Function at 0x1001f440
Capabilities:
Get hostname

Disassembly:
push 0xffffffffffffffff
push 0x1004e61b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
mov eax, dword [0x1005d330]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x454]
test esi, esi
mov ebx, ecx
mov dword [esp + 0x43c], eax
push edi
mov dword [esp + 0x1c], 0
lea ecx, [ebx + 4]
jne 0x1001f487
xor eax, eax
jmp 0x1001f499
mov eax, esi
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001f490
sub eax, edi
push eax
push esi
call fcn.10002bf0
mov esi, dword [esp + 0x45c]
test esi, esi
lea ecx, [ebx + 8]
jne 0x1001f4b2
xor eax, eax
jmp 0x1001f4c0
mov eax, esi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001f4b7
sub eax, edi
push eax
push esi
call fcn.10002bf0
mov esi, dword [esp + 0x460]
test esi, esi
lea ecx, [ebx + 0xc]
jne 0x1001f4d9
xor eax, eax
jmp 0x1001f4e9
mov eax, esi
lea edi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1001f4e0
sub eax, edi
push eax
push esi
call fcn.10002bf0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x24], 0x400
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [esp + 0x40]
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001f510
sub eax, edi
push eax
lea edx, [esp + 0x44]
push edx
mov ecx, ebx
call fcn.10002bf0
mov ecx, ebx
call fcn.1001ee60
mov ecx, dword [str.NTLMSSP]
mov edx, dword [0x1005227c]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov byte [esp + 0x2c], 1
mov word [esp + 0x30], 0xb203
call ebp
mov word [esp + 0x30], ax
mov eax, dword [ebx]
push eax
call ebp
add eax, 0x20
mov word [esp + 0x34], ax
mov eax, dword [ebx]
push eax
call ebp
mov word [esp + 0x38], ax
mov eax, dword [ebx]
push eax
mov word [esp + 0x40], 0x20
call ebp
push esi
mov edi, eax
call ebp
lea eax, [edi + eax + 0x20]
push eax
call fcn.10045c41
mov edi, eax
mov ecx, 8
lea esi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebx]
add esp, 4
push esi
mov dword [esp + 0x18], eax
call ebp
mov edi, dword [esp + 0x14]
mov ecx, eax
mov edx, ecx
shr ecx, 2
add edi, 0x20
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x460]
mov edi, dword [ebx]
push esi
call ebp
push edi
mov dword [esp + 0x14], eax
call ebp
mov ecx, dword [esp + 0x14]
lea edi, [eax + ecx + 0x20]
mov eax, dword [esp + 0x10]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [ebx]
push ebx
call ebp
mov esi, eax
mov eax, dword [esp + 0x460]
push eax
call ebp
lea esi, [esi + eax + 0x20]
lea ecx, [esi*4]
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, esi
cdq
mov edi, 3
idiv edi
mov edi, 0x4c
add ecx, edx
mov eax, ecx
cdq
idiv edi
test edx, edx
je 0x1001f66a
and edx, reloc.WS2_32.dll_closesocket
jns 0x1001f65f
dec edx
or edx, 0xfffffffc
inc edx
je 0x1001f66a
mov edi, 4
sub edi, edx
add ecx, edi
lea eax, [ecx + eax*2 + 2]
mov dword [esp + 0x10], eax
inc eax
push eax
call fcn.10045c41
push 2
lea ecx, [esp + 0x18]
push ecx
mov edi, eax
push edi
push esi
mov esi, dword [esp + 0x28]
push esi
call fcn.1001d030
mov edx, dword [esp + 0x28]
add esp, 0x18
push edi
lea ecx, [esp + 0x1c]
mov byte [edi + edx], 0
call fcn.100047c0
push edi
mov dword [esp + 0x450], 0
call fcn.10045c46
push esi
call fcn.10045c46
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
push eax
call fcn.10008e60
mov esi, dword [esp + 0x460]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 0xc
mov dword [esp + 0x44c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001f6ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x444]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x434]
pop ebx
call fcn.10036c09
add esp, 0x440
ret 0x10