Function at 0x4023b0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
mov eax, dword [0x479520]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x168], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x1c]
cmp dword [ebx + 0x20], 0
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, edx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x170], eax
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x150], 0
je 0x402551
test edi, edi
je 0x402551
nop
mov al, byte [edi]
cmp al, 0x20
je 0x40242a
cmp al, 9
jne 0x40242d
inc edi
jmp 0x402420
mov ecx, edi
nop
movsx eax, byte [ecx]
inc ecx
cmp dword [eax*4 + 0x468710], 0x3f
jle 0x402430
sub ecx, edi
lea eax, [ecx - 1]
mov dword [ebp - 0x148], eax
add eax, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
lea ecx, [eax + eax*2]
lea eax, [ecx + 4]
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x14c], eax
test eax, eax
je 0x40248e
push eax
call fcn.004414e5
push dword [ebp - 0x14c]
mov dword [ebp - 0x144], eax
push 0
push eax
call fcn.0043b130
mov ecx, dword [ebp - 0x160]
add esp, 0x10
mov eax, dword [ebp - 0x148]
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x14c], ecx
test eax, eax
jle 0x40252d
dec eax
shr eax, 2
inc eax
mov ebx, eax
nop
movsx eax, byte [edi + 1]
lea edx, [edx + 3]
mov ecx, dword [eax*4 + 0x468710]
movsx eax, byte [edi]
sar ecx, 4
movzx eax, byte [eax*4 + 0x468710]
shl al, 2
or cl, al
mov byte [edx - 3], cl
movsx eax, byte [edi + 2]
mov ecx, dword [eax*4 + 0x468710]
movsx eax, byte [edi + 1]
sar ecx, 2
movzx eax, byte [eax*4 + 0x468710]
shl al, 4
or cl, al
mov byte [edx - 2], cl
movsx eax, byte [edi + 2]
movsx ecx, byte [edi + 3]
add edi, 4
movzx eax, byte [eax*4 + 0x468710]
shl al, 6
or al, byte [ecx*4 + 0x468710]
mov byte [edx - 1], al
sub ebx, 1
jne 0x4024b0
mov ebx, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x160]
mov eax, dword [ebp - 0x148]
test al, 3
je 0x402545
movsx eax, byte [edi - 2]
cmp dword [eax*4 + 0x468710], 0x3f
jle 0x402544
sub ecx, 2
jmp 0x402545
dec ecx
mov eax, dword [ebp - 0x144]
mov edi, eax
mov byte [eax + ecx], 0
cmp dword [ebx], 0
je 0x4026c2
xor ebx, ebx
test esi, esi
jne 0x402570
cmp dword [ebp + 0x20], ebx
jne 0x40256c
xor ecx, ecx
jmp 0x40265f
test esi, esi
je 0x4025dc
lea ecx, [ebp - 0x13c]
sub ecx, esi
nop dword [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x402580
lea ebx, [ebp - 0x13c]
mov eax, ebx
push 0x4685fc
push eax
call int.004414a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x402800
cmp byte [0x47e4d8], al
jne 0x4025d1
lea eax, [ebp - 0x140]
mov dword [ebp - 0x140], 0x10
push eax
push 0x47e4d8
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov ebx, 0x47e4d8
lea esi, [ebp - 0x13c]
mov dword [ebp - 0x180], 0
xorps xmm0, xmm0
movq qword [ebp - 0x188], xmm0
movups xmmword [ebp - 0x198], xmm0
test esi, esi
je 0x402614
mov dword [ebp - 0x198], esi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x402605
sub esi, ecx
mov dword [ebp - 0x194], esi
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x402633
mov dword [ebp - 0x188], ecx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402624
sub ecx, edx
mov dword [ebp - 0x184], ecx
test ebx, ebx
je 0x40264f
mov dword [ebp - 0x190], ebx
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x402640
sub ebx, ecx
mov dword [ebp - 0x18c], ebx
mov dword [ebp - 0x180], 1
lea ecx, [ebp - 0x198]
mov ebx, dword [ebp - 0x164]
lea eax, [ebp - 0x1bc]
push eax
lea eax, [ebx + 4]
push eax
push 0
push 0
push ecx
push 0
push 2
push 0x4685a0
push 0
call dword [0x47e3d8]
test eax, eax
jne 0x402831
lea eax, [ebp - 0x148]
mov dword [ebx + 0xc], 1
push eax
push 0x4685a0
call dword [0x47e3dc]
test eax, eax
jne 0x402831
mov ecx, dword [ebp - 0x148]
push ecx
mov eax, dword [ecx + 8]
mov dword [ebx + 0x10], eax
call dword [0x47e3e0]
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x4026e4
push esi
call fcn.004414e5
push esi
push 0
push eax
mov dword [ebp - 0x150], eax
call fcn.0043b130
mov esi, dword [ebx + 0x10]
add esp, 0x10
mov dword [ebp - 0x17c], 0
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x178], 1
mov dword [ebp - 0x15c], esi
mov dword [ebp - 0x158], 2
mov dword [ebp - 0x154], eax
test edi, edi
je 0x402760
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x1ac], 1
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x1a0], 2
mov dword [ebp - 0x19c], edi
mov ecx, dword [ebx]
lea eax, [ebp - 0x1bc]
push eax
lea eax, [ebp - 0x1b4]
xor edx, edx
push eax
lea eax, [ebp - 0x17c]
test ecx, ecx
push eax
lea edi, [ebx + 0x18]
push edi
push 0
lea eax, [ebp - 0x1b0]
cmovne eax, edx
push eax
push 0x10
push edx
xor eax, eax
test ecx, ecx
push edx
push str.InetSvcs
cmove eax, edi
push eax
lea eax, [ebx + 4]
push eax
call dword [0x47e3e4]
mov esi, eax
test esi, esi
jns 0x40284b
cmp esi, 0x8009030c
mov eax, 0x52e
cmove esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x4027da
push eax
call fcn.004414e0
add esp, 4
mov eax, dword [ebp - 0x150]
test eax, eax
je 0x4027ed
push eax
call fcn.004414e0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00438a38
mov esp, ebp
pop ebp
ret
mov byte [esi], 0
inc esi
mov al, byte [esi]
test al, al
je 0x402816
cmp al, 0x5c
je 0x402816
cmp al, 0x2f
jne 0x4025dc
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00438a38
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438a38
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x15c]
xor eax, eax
test edx, edx
mov dword [ebx + 0x14], 1
setne al
mov dword [ebp - 0x140], eax
cmp esi, 0x90313
je 0x402875
cmp esi, 0x90314
jne 0x4028a2
mov eax, dword [0x47e3e8]
test eax, eax
je 0x4027c5
lea ecx, [ebp - 0x17c]
push ecx
push edi
call eax
mov esi, eax
test esi, esi
js 0x4027c5
mov edx, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x140]
test eax, eax
je 0x402916
cmp dword [ebx + 0x20], 0
mov edi, dword [ebp - 0x168]
je 0x4028e3
mov ecx, dword [ebp - 0x154]
push edi
call fcn.004029b0
add esp, 4
test eax, eax
je 0x4027c5
mov ecx, dword [edi]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4028d0
sub ecx, edx
mov edx, dword [ebp - 0x16c]
mov dword [edx], ecx
jmp 0x402916
mov ecx, edi
call fcn.00402960
test eax, eax
je 0x4027c5
push dword [ebp - 0x15c]
push dword [ebp - 0x154]
push dword [edi]
call fcn.0043a630
mov edx, dword [ebp - 0x16c]
add esp, 0xc
mov eax, dword [ebp - 0x15c]
mov dword [edx], eax
cmp dword [ebx], 0
je 0x402921
mov dword [ebx], 0
cmp esi, 0x90312
je 0x402943
cmp esi, 0x90314
je 0x402943
mov ecx, dword [ebp - 0x170]
xor eax, eax
mov dword [ecx], eax
lea esi, [eax + 1]
jmp 0x4027c7
mov ecx, dword [ebp - 0x170]
mov eax, 1
mov esi, eax
mov dword [ecx], eax
jmp 0x4027c7