Function at 0x5bfd70
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
lea edx, [ecx + 1]
mov eax, dword [edi + 0x18]
mov dword [ebp - 8], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5bfd91
sub ecx, edx
cmp ecx, 7
jb 0x5bfde4
lea esi, [ecx + ebx]
lea eax, [esi - 6]
push str..onion
push eax
call fcn.005c1ed0
add esp, 8
test eax, eax
jne 0x5bfdcc
lea eax, [esi - 7]
push str..onion.
push eax
call fcn.005c1ed0
add esp, 8
test eax, eax
je 0x5bfde4
push str.Not_resolving_.onion_address__RFC_7686_
push edi
call fcn.005bada0
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, dword [ebp - 8]
mov byte [eax + 0x1be], 0
cmp dword [edi + 0x84], 0
je 0x5bfe0d
push 2
push 3
push edi
call fcn.005a5910
add esp, 0xc
mov esi, dword [ebp + 0x10]
push esi
push ebx
push edi
call fcn.005c0400
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
je 0x5bfe3e
push ebx
push str.Hostname__s_was_found_in_DNS_cache
push edi
call fcn.005bae40
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 4], 0
inc dword [eax + 0x10]
cmp dword [edi + 0x84], 0
je 0x5bfe52
push 3
push edi
call fcn.005a5950
add esp, 8
cmp dword [ebp + 8], 0
jne 0x5c0215
cmp dword [edi + 0x634], 0
mov dword [ebp - 0xc], 0
je 0x5bfea2
push 1
push edi
call fcn.005a9e70
push dword [edi + 0x638]
mov eax, dword [edi + 0x634]
push 0
push dword [edi + 0x964]
call eax
push 0
push edi
mov esi, eax
call fcn.005a9e70
add esp, 0x1c
test esi, esi
jne 0x5bfdda
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
push ebx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x5bfebd
push esi
push ebx
lea eax, [ebp - 0x10]
push eax
push 2
jmp 0x5bfed6
lea eax, [ebp - 0x38]
push eax
push ebx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x5bfef2
push esi
push ebx
lea eax, [ebp - 0x38]
push eax
push 0x17
call fcn.005cca80
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x5c0169
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
cmp byte [eax + 0x25f], 2
jne 0x5bff34
mov eax, dword [edi + 0x7c]
cmp byte [eax + 0x104], 0
jne 0x5bff27
push 0
call fcn.005bf8a0
add esp, 4
test al, al
mov eax, dword [edi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x104], cl
mov eax, dword [edi + 0x7c]
cmp byte [eax + 0x104], 2
jne 0x5bfdda
push str.localhost
push ebx
call fcn.005c1ed0
add esp, 8
test eax, eax
jne 0x5bffea
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5bff50
sub ecx, edx
cmp ecx, 0xa
jb 0x5bff77
lea eax, [ebx - 0xa]
push 0xa
add eax, ecx
push eax
push str..localhost
call fcn.005c1f30
add esp, 0xc
test eax, eax
jne 0x5bffea
cmp byte [ebp + 0x14], 0
je 0x5bff94
cmp byte [edi + 0x688], 0
je 0x5bff94
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push edi
call fcn.005db180
jmp 0x5bffb4
push dword [ebp - 8]
push edi
call fcn.005db160
add esp, 8
test al, al
je 0x5bfdda
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push edi
call fcn.005cce30
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x5c0169
cmp dword [ebp - 0xc], 0
je 0x5c0215
mov eax, dword [edi + 0x18]
cmp byte [eax + 0x1be], 0
lea eax, [ebp + 8]
push eax
push edi
je 0x5c01e7
call fcn.005db2c0
jmp 0x5c01ec
mov esi, ebx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x5bfff0
mov eax, 2
xorps xmm0, xmm0
mov word [ebp - 0x28], ax
sub esi, ecx
mov eax, dword [ebp + 0x10]
movzx eax, ax
push eax
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x26], ax
lea eax, [ebp - 0x14]
push eax
push str.127.0.0.1
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x5bffc1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
lea eax, [esi + 0x31]
push eax
push 1
call dword [0x8f7f5c]
mov edx, eax
add esp, 8
mov dword [ebp - 8], edx
test edx, edx
je 0x5bffc1
movups xmm0, xmmword [ebp - 0x28]
lea eax, [edx + 0x20]
mov dword [edx], 0
mov dword [edx + 4], 2
lea ecx, [eax + 0x10]
mov dword [edx + 8], 1
mov dword [edx + 0xc], 6
mov dword [edx + 0x10], 0x10
mov dword [edx + 0x18], eax
movups xmmword [eax], xmm0
mov dword [edx + 0x14], ecx
mov edx, ebx
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x5c0090
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5c00a3
sub ecx, edx
lea eax, [ecx + 0x3d]
push eax
push 1
call dword [0x8f7f5c]
mov esi, eax
add esp, 8
test esi, esi
je 0x5c0166
push dword [ebp - 0x18]
mov eax, 0x17
mov word [ebp - 0x54], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x52], ax
lea eax, [ebp - 0x28]
push eax
push 0x79acd8
push 0x17
mov dword [ebp - 0x50], 0
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x5c0166
movups xmm1, xmmword [ebp - 0x28]
lea eax, [esi + 0x20]
mov dword [esi], 0
mov dword [esi + 4], 0x17
lea ecx, [eax + 0x1c]
movups xmmword [ebp - 0x4c], xmm1
mov dword [esi + 8], 1
mov edx, ebx
movups xmm0, xmmword [ebp - 0x54]
mov dword [esi + 0xc], 6
mov dword [esi + 0x10], 0x1c
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], eax
movups xmmword [eax], xmm0
unpckhpd xmm1, xmm1
movq qword [eax + 0x10], xmm1
mov dword [eax + 0x18], 0
mov dword [esi + 0x14], ecx
nop
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x5c0150
mov eax, dword [ebp - 8]
mov dword [esi + 0x1c], eax
jmp 0x5c0169
mov esi, dword [ebp - 8]
cmp dword [edi + 0x84], 0
je 0x5c017f
push 2
push 3
push edi
call fcn.005a5910
add esp, 0xc
push dword [ebp + 0x10]
push 0
push ebx
push esi
push edi
call fcn.005bf4b0
add esp, 0x14
mov dword [ebp + 8], eax
cmp dword [edi + 0x84], 0
je 0x5c01a9
push 3
push edi
call fcn.005a5950
mov eax, dword [ebp + 8]
add esp, 8
test eax, eax
jne 0x5c01ca
push esi
call fcn.005cc8b0
mov eax, dword [ebp + 0x18]
add esp, 4
mov esi, dword [ebp - 4]
mov ecx, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push edi
xor esi, esi
call fcn.005c0610
mov eax, dword [ebp + 0x18]
add esp, 8
mov ecx, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.005af2f0
mov esi, eax
add esp, 8
mov eax, dword [ebp + 8]
test eax, eax
je 0x5c0202
push eax
push edi
call fcn.005c0610
add esp, 8
test esi, esi
jne 0x5bfdda
xor ecx, ecx
cmp dword [ebp + 8], ecx
sete cl
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp - 4]
mov ecx, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret