Function at 0x5e5d20
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov eax, dword [ebp + 8]
mov edi, ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], eax
call fcn.005e5480
test eax, eax
mov dword [esp + 0x24], edi
je 0x5e5e8f
mov ecx, dword [esp + 0x14]
mov dword [esp + 4], edx
test ecx, ecx
je 0x5e5ddf
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp byte [eax], 0x3a
jne 0x5e5ddf
mov dword [esp + 0x60], ecx
dec ecx
inc eax
xor esi, esi
mov dword [esp], eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x5e5da0
nop
mov edx, dword [esp]
xor eax, eax
movzx edi, byte [edx]
add edi, 0xffffffd0
cmp edi, 0xa
setb al
jae 0x5e5da2
inc edx
dec ecx
mov dword [esp], edx
jmp 0x5e5da2
xor eax, eax
cmp eax, 1
jne 0x5e6049
mov eax, esi
mov dx, 0xa
mul dx
jo 0x5e606a
mov esi, eax
add si, di
setb dl
xor eax, eax
cmp edi, 0xffff
ja 0x5e6083
test dl, dl
jne 0x5e6083
dec ebx
test ecx, ecx
jne 0x5e5d80
jmp 0x5e5da0
xor eax, eax
test ax, ax
mov ebx, ecx
je 0x5e5e8f
mov edx, dword [ebp + 8]
test ebx, ebx
jne 0x5e6217
rol si, 8
xor edi, edi
mov dword [esp + 0xc], 0
mov word [esp + 8], 2
mov dword [esp], 0
mov eax, dword [0x6f1130]
test eax, eax
jne 0x5e5e2e
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x5e6776
mov dword [0x6f1130], eax
push 0x20
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x5e6776
movzx ecx, word [esp + 8]
mov edx, dword [esp + 4]
mov dword [eax], edi
movdqa xmm0, xmmword [esp + 0x60]
mov word [eax + 4], cx
mov word [eax + 6], si
mov dword [eax + 8], edx
mov esi, dword [esp + 0xc]
mov edx, dword [esp]
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], edx
movq qword [eax + 0x14], xmm0
mov dword [eax + 0x1c], ebx
mov ebx, dword [esp + 0x24]
mov dword [ebx + 4], eax
mov dword [ebx + 8], 1
mov dword [ebx + 0xc], eax
add eax, 0x20
mov dword [ebx + 0x10], eax
xor eax, eax
jmp 0x5e62d7
mov edx, dword [ebp + 8]
test edx, edx
je 0x5e6217
mov eax, dword [esp + 0xc]
lea edi, [edx - 1]
lea esi, [eax + 1]
mov al, byte [eax]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
cmp al, 0x5b
jne 0x5e6217
pxor xmm0, xmm0
lea edx, [esp + 0x40]
lea ecx, [esp + 0x10]
movdqa xmmword [esp + 0x40], xmm0
push 8
call fcn.005e5900
add esp, 4
cmp eax, 8
jne 0x5e5f8c
movdqa xmm0, xmmword [esp + 0x40]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 8]
xor edi, edi
movdqa xmm1, xmm0
psllw xmm0, 8
test ecx, ecx
psrlw xmm1, 8
por xmm0, xmm1
je 0x5e609a
cmp byte [eax], 0x25
jne 0x5e60da
lea esi, [ecx - 1]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x1c], eax
inc eax
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x20], esi
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], eax
cmp dword [esp], 0
mov eax, 0
je 0x5e5f57
mov edi, dword [esp + 4]
xor eax, eax
movzx esi, byte [edi]
add esi, 0xffffffd0
cmp esi, 0xa
setb al
jae 0x5e5f57
dec dword [esp]
inc edi
mov dword [esp + 4], edi
cmp eax, 1
jne 0x5e609c
mov eax, ebx
mov edx, 0xa
xor edi, edi
mul edx
jo 0x5e60b6
mov edx, dword [ebp + 8]
mov ebx, eax
add ebx, esi
jb 0x5e60c1
dec ecx
cmp dword [esp], 0
mov eax, 0
jne 0x5e5f3b
jmp 0x5e5f57
test dl, 1
jne 0x5e6039
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x5e6039
mov edx, dword [esp + 0x10]
cmp byte [edx], 0x3a
jne 0x5e6039
cmp ecx, 1
je 0x5e6039
mov bl, byte [edx + 1]
add edx, 2
add ecx, 0xfffffffe
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
cmp bl, 0x3a
jne 0x5e6039
mov ebx, 7
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x32], 0
mov dword [esp + 0x2e], 0
sub ebx, eax
jb 0x5e6798
lea esi, [esp + 0x28]
lea ecx, [esp + 0x10]
mov edx, esi
push ebx
call fcn.005e5900
add esp, 4
mov ecx, 8
sub ecx, eax
jb 0x5e67a6
cmp eax, 8
je 0x5e67ba
add eax, eax
lea ecx, [esp + ecx*2 + 0x40]
push eax
push esi
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x5e5edb
mov edx, dword [ebp + 8]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
jmp 0x5e6217
xor eax, eax
test ebx, ebx
mov ebx, dword [esp + 8]
setne al
cmovne ebx, ecx
mov ecx, dword [esp + 0x60]
cmp ax, 1
jne 0x5e5de1
jmp 0x5e5dec
mov ebx, dword [esp + 8]
xor eax, eax
mov ecx, dword [esp + 0x60]
cmp ax, 1
jne 0x5e5de1
jmp 0x5e5dec
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0x60]
cmp ax, 1
jne 0x5e5de1
jmp 0x5e5dec
jmp 0x5e60da
test ecx, ecx
je 0x5e60bf
mov eax, dword [esp]
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 4]
mov edi, 1
mov dword [esp + 0x20], eax
jmp 0x5e60c9
mov esi, dword [esp + 8]
mov edx, dword [ebp + 8]
jmp 0x5e60c5
xor edi, edi
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x1c]
cmp edi, 1
jne 0x5e60da
mov ecx, dword [esp + 0x20]
mov eax, esi
jmp 0x5e60df
test edi, edi
cmove ebx, edi
test ecx, ecx
je 0x5e6217
cmp byte [eax], 0x5d
jne 0x5e6217
mov edi, ecx
dec edi
je 0x5e6191
cmp byte [eax + 1], 0x3a
jne 0x5e6195
add ecx, 0xfffffffe
add eax, 2
xor esi, esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x60], ecx
mov dword [esp], ecx
mov dword [esp + 0x1c], eax
mov ecx, eax
xor eax, eax
cmp dword [esp], 0
mov dword [esp + 4], eax
je 0x5e6187
movzx edi, byte [ecx]
xor eax, eax
add edi, 0xffffffd0
cmp edi, 0xa
setb al
jae 0x5e613e
dec dword [esp]
inc ecx
jmp 0x5e6151
mov dword [esp + 8], eax
mov eax, dword [esp]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x5e6199
mov eax, esi
mov dx, 0xa
mul dx
mov edx, dword [ebp + 8]
jo 0x5e61a9
mov esi, eax
add si, di
setb al
cmp edi, 0xffff
ja 0x5e61a9
test al, al
jne 0x5e61a9
mov eax, dword [esp + 4]
dec eax
cmp dword [esp], 0
mov dword [esp + 4], eax
jne 0x5e6128
mov dword [esp + 8], 0
jmp 0x5e6142
xor eax, eax
jmp 0x5e61c1
xor eax, eax
jmp 0x5e61c1
cmp dword [esp + 4], 0
je 0x5e61a9
mov ecx, dword [esp]
mov ax, 1
jmp 0x5e61b7
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x10], eax
xor eax, eax
mov edi, dword [esp + 0x20]
cmp ax, 1
je 0x5e61c8
test ax, ax
mov ecx, edi
je 0x5e6217
xor eax, eax
mov dword [esp + 4], 0
test al, al
jne 0x5e6217
test ecx, ecx
jne 0x5e6217
pshufd xmm1, xmm0, 0x55
movd dword [esp + 0xc], xmm0
pshufd xmm0, xmm0, 0xee
rol si, 8
mov edi, 1
mov word [esp + 8], 0x17
movd dword [esp], xmm1
movdqa xmmword [esp + 0x60], xmm0
mov eax, dword [0x6f1130]
test eax, eax
jne 0x5e5e2e
jmp 0x5e5e1c
mov ebx, edx
mov edi, 0x6d63c4
jmp 0x5e6228
cmp ebx, edx
ja 0x5e62c8
mov edx, dword [esp + 0xc]
mov ecx, 0x3a
push ebx
call fcn.0045f5e0
add esp, 4
mov ecx, 0x1402
cmp eax, 1
jne 0x5e62c8
mov esi, edx
mov ebx, edx
mov edx, dword [ebp + 8]
inc esi
je 0x5e6220
cmp esi, edx
ja 0x5e6220
mov eax, dword [esp + 0xc]
cmp byte [eax + ebx], 0x3a
jne 0x5e6220
sub edx, esi
mov edi, 0x6d63a4
je 0x5e62c8
mov eax, dword [esp + 0xc]
add eax, esi
mov dword [esp], eax
mov al, byte [eax]
cmp al, 0x2d
je 0x5e6284
cmp al, 0x2b
jne 0x5e6289
dec edx
je 0x5e62c8
inc dword [esp]
jmp 0x5e6289
cmp edx, 1
je 0x5e62c8
xor eax, eax
nop dword [eax + eax]
test edx, edx
je 0x5e62e1
mov ecx, dword [esp]
movzx ecx, byte [ecx]
add ecx, 0xffffffd0
cmp ecx, 9
ja 0x5e62c3
mov dword [esp + 4], edx
mov dx, 0xa
mul dx
jo 0x5e62c3
mov edx, dword [esp + 4]
inc dword [esp]
dec edx
add ax, cx
mov ecx, 0x1402
jae 0x5e6290
jmp 0x5e62c8
mov ecx, 0x1402
mov ebx, dword [esp + 0x24]
mov eax, 1
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edi
mov dword [ebx], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp], eax
mov eax, dword [0x6f1134]
cmp eax, 3
jne 0x5e6730
test esi, esi
js 0x5e673d
je 0x5e6330
mov eax, dword [0x6f1130]
test eax, eax
jne 0x5e6313
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x5e6322
mov dword [0x6f1130], eax
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov edi, eax
test eax, eax
jne 0x5e6335
mov ecx, esi
mov edx, 1
call fcn.0040a640
ud2
mov edi, 1
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0
push ebx
push dword [esp + 0x10]
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
cmp ebx, 8
mov dword [esp + 0x30], ebx
jae 0x5e637a
test ebx, ebx
je 0x5e640b
xor eax, eax
cmp byte [edi + eax], 0
je 0x5e648b
inc eax
cmp ebx, eax
jne 0x5e6366
jmp 0x5e640b
lea ecx, [edi + 3]
and ecx, 0xfffffffc
sub ecx, edi
je 0x5e63a7
cmp ecx, ebx
cmova ecx, ebx
xor eax, eax
cmp byte [edi + eax], 0
je 0x5e648b
inc eax
cmp ecx, eax
jne 0x5e638b
lea eax, [ebx - 8]
cmp ecx, eax
mov dword [esp + 0xc], eax
jbe 0x5e63b0
jmp 0x5e63f2
lea eax, [ebx - 8]
xor ecx, ecx
mov dword [esp + 0xc], eax
mov edx, dword [edi + ecx]
mov esi, dword [edi + ecx + 4]
mov eax, edi
mov edi, edx
add edx, 0xfefefeff
not edi
and edx, edi
mov edi, esi
add esi, 0xfefefeff
not edi
and esi, edi
or esi, edx
test esi, 0x80808080
jne 0x5e63e8
add ecx, 8
mov edi, eax
cmp ecx, dword [esp + 0xc]
jbe 0x5e63b0
jmp 0x5e63ea
mov edi, eax
cmp ecx, ebx
ja 0x5e6787
cmp ecx, ebx
je 0x5e640b
add edi, ecx
sub ebx, ecx
xor eax, eax
cmp byte [edi + eax], 0
je 0x5e648b
inc eax
cmp ebx, eax
jne 0x5e63fc
mov eax, dword [esp + 0x30]
movq xmm0, qword [esp + 0x28]
lea ebx, [esp + 0x40]
mov ecx, ebx
mov dword [esp + 0x48], eax
movq qword [esp + 0x40], xmm0
call fcn.005e0120
pxor xmm0, xmm0
mov esi, eax
mov edi, edx
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x50], xmm0
mov dword [esp + 0x48], 1
push eax
push ebx
push 0
push esi
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x5e64c7
call sub.WS2_32.dll_WSAGetLastError
mov ecx, eax
mov edx, eax
mov ebx, 1
shr eax, 0x18
mov byte [esp + 0x10], 0
shr ecx, 8
shl edx, 0x18
mov byte [esp + 0x17], al
mov dword [esp + 0x11], edx
mov word [esp + 0x15], cx
jmp 0x5e64dc
cmp dword [esp + 0x2c], 0
je 0x5e64a8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5e64a8
push eax
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
mov dword [esp + 0x14], str.data_provided_contains_a_nul_byte
mov dword [esp + 0x10], 0x1402
mov edi, 0x6d4334
mov ecx, 0x1402
jmp 0x5e62c8
movzx ecx, word [esp]
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp], ecx
test edi, edi
mov byte [esi], 0
je 0x5e64f1
push esi
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
test ebx, ebx
jne 0x5e62c8
mov ebx, dword [esp + 0x24]
test edi, edi
mov dword [esp + 0xc], ecx
je 0x5e6529
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x10]
mov edi, dword [edi + 0x1c]
movzx edx, word [eax]
cmp dx, 0x17
je 0x5e6541
cmp dx, 2
je 0x5e656d
test edi, edi
jne 0x5e650d
mov edi, dword [0x6d6b64]
push dword [esp + 0xc]
call sub.WS2_32.dll_freeaddrinfo
xor esi, esi
xor eax, eax
jmp 0x5e675e
cmp ecx, 0x1c
jb 0x5e67d3
movsd xmm0, qword [eax + 0x14]
mov ecx, dword [eax]
mov esi, 1
movsd qword [esp + 0x50], xmm0
mov dword [esp + 4], ecx
movq xmm0, qword [eax + 0xc]
movq qword [esp + 0x48], xmm0
jmp 0x5e6585
cmp ecx, 0x10
jb 0x5e67e4
mov edx, dword [eax + 0xc]
mov ecx, dword [eax]
xor esi, esi
mov dword [esp + 0x48], edx
mov dword [esp + 4], ecx
movsd xmm0, qword [eax + 4]
movsd qword [esp + 0x40], xmm0
movq xmm0, qword [esp + 0x50]
movsd xmm2, qword [esp + 0x40]
movq xmm1, qword [esp + 0x48]
movq qword [esp + 0x38], xmm0
movq qword [esp + 0x30], xmm1
movsd qword [esp + 0x28], xmm2
mov eax, dword [0x6f1130]
test eax, eax
jne 0x5e65cf
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x5e6776
mov dword [0x6f1130], eax
push 0x20
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x5e6776
movsd xmm0, qword [esp + 0x38]
mov ecx, dword [esp]
mov edx, dword [esp + 4]
movsd qword [eax + 0x18], xmm0
rol cx, 8
test edi, edi
movq xmm0, qword [esp + 0x28]
movq xmm1, qword [esp + 0x30]
movq qword [eax + 0x10], xmm1
movq qword [eax + 8], xmm0
mov dword [eax], esi
mov word [eax + 4], dx
mov word [eax + 6], cx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 1
je 0x5e6744
mov esi, 1
mov dword [esp], ecx
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x10]
mov edi, dword [edi + 0x1c]
movzx ebx, word [ecx]
cmp bx, 0x17
je 0x5e665c
cmp bx, 2
je 0x5e6684
test edi, edi
jne 0x5e663b
jmp 0x5e6749
cmp edx, 0x1c
jb 0x5e67d3
movsd xmm0, qword [ecx + 0x14]
mov edx, dword [ecx]
mov ebx, 1
movsd qword [esp + 0x50], xmm0
movq xmm0, qword [ecx + 0xc]
movq qword [esp + 0x48], xmm0
jmp 0x5e669a
cmp edx, 0x10
jb 0x5e67e4
mov edx, dword [ecx + 0xc]
mov ebx, dword [ecx]
mov dword [esp + 0x48], edx
mov edx, ebx
xor ebx, ebx
movsd xmm0, qword [ecx + 4]
movsd qword [esp + 0x40], xmm0
movsd xmm0, qword [esp + 0x50]
movsd xmm2, qword [esp + 0x40]
movsd xmm1, qword [esp + 0x48]
cmp esi, dword [esp + 0x14]
movsd qword [esp + 0x38], xmm0
movsd qword [esp + 0x30], xmm1
movsd qword [esp + 0x28], xmm2
je 0x5e6717
mov ecx, esi
inc esi
shl ecx, 5
mov dword [eax + ecx], ebx
mov word [eax + ecx + 4], dx
mov edx, dword [esp]
mov word [eax + ecx + 6], dx
movsd xmm0, qword [esp + 0x28]
movq xmm1, qword [esp + 0x30]
movsd qword [eax + ecx + 8], xmm0
movq qword [eax + ecx + 0x10], xmm1
movq xmm0, qword [esp + 0x38]
movq qword [eax + ecx + 0x18], xmm0
mov dword [esp + 0x18], esi
test edi, edi
jne 0x5e663b
jmp 0x5e6749
mov dword [esp + 4], edx
lea ecx, [esp + 0x10]
mov edx, esi
call fcn.005e12a0
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x10]
jmp 0x5e66cf
call fcn.005e5730
test esi, esi
jns 0x5e62fa
call fcn.0040a620
ud2
mov esi, 1
push dword [esp + 0xc]
call sub.WS2_32.dll_freeaddrinfo
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
shl esi, 5
mov dword [ebx + 4], edi
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edi
xor eax, eax
add esi, edi
mov dword [ebx + 0x10], esi
jmp 0x5e62d7
mov ecx, 0x20
mov edx, 4
call fcn.0040a640
ud2
mov edx, ebx
push 0x60ce68
call fcn.0045a820
add esp, 4
ud2
mov ecx, ebx
mov edx, 7
push 0x6d4bb0
jmp 0x5e67c9
mov edx, 8
push 0x6d4bc0
call fcn.0045ce70
add esp, 4
ud2
mov ecx, 8
mov edx, 7
push 0x6d4bd0
call fcn.0045ab50
add esp, 4
ud2
mov ecx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
mov edx, 0x43
push 0x6d632c
jmp 0x5e67f3
mov ecx, 0x6d633c
mov edx, 0x42
push 0x6d6380
call fcn.0045aec0
add esp, 4
ud2