Function at 0x40af20
Capabilities:
Access peb ldr_data
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x4401a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x454654]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
push str.WSHTCPIP.DLL
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [0x45a98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x45a98c
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
xor eax, eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x2c], eax
lea ecx, [ecx]
test eax, eax
jne 0x40afd3
mov ecx, dword [esp + 0x44]
push eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
push 0
push 0x68
push 5
push ecx
call sub.DNSAPI.dll_DnsQuery_W
test eax, eax
jne 0x40b0d1
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40b0d1
mov ebx, dword [eax + 0x18]
lea eax, [esp + 0x14]
call fcn.00403a10
mov edx, dword [esp + 0x28]
push 1
push edx
call sub.DNSAPI.dll_DnsFree
mov esi, dword [esp + 0x14]
jmp 0x40b0d1
cmp eax, 1
jne 0x40b0d1
push 5
push ecx
mov ecx, dword [esp + 0x4c]
mov eax, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00403530
lea ecx, [esp + 0x20]
push ecx
call fcn.0040c000
add esp, 0xc
mov byte [esp + 0x38], 1
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x40b053
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x40b042
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40b042
call fcn.00403da0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x40b039
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea esi, [ebx + 0x10]
mov dword [esp + 0x14], esi
jmp 0x40b053
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00403d00
mov esi, dword [esp + 0x14]
mov byte [esp + 0x38], 0
mov ecx, dword [esp + 0x18]
cmp dword [ecx - 0xc], 0
mov edi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
je 0x40b0b5
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x40b08f
cmp dword [ecx - 8], 0
jl 0x40b344
mov dword [ecx - 0xc], 0
mov ecx, dword [esp + 0x18]
mov byte [ecx], 0
mov ecx, dword [esp + 0x18]
jmp 0x40b0b5
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b0a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x18], ecx
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi - 0xc], 0
jle 0x40b304
push 0x2e
push esi
call fcn.004291fa
add esp, 8
test eax, eax
jne 0x40b0ef
or eax, 0xffffffff
jmp 0x40b0f1
sub eax, esi
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
call fcn.0040fe30
mov byte [esp + 0x38], 2
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40b151
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40b144
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40b144
call fcn.00403da0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40b13b
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x40b151
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00403d00
mov byte [esp + 0x38], 0
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 0
mov esi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
je 0x40b1b3
cmp dword [eax + 0xc], 0
lea edx, [eax + 0xc]
jge 0x40b18d
cmp dword [ecx - 8], 0
jl 0x40b344
mov dword [ecx - 0xc], 0
mov ecx, dword [esp + 0x1c]
mov byte [ecx], 0
mov ecx, dword [esp + 0x1c]
jmp 0x40b1b3
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b1a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x1c], ecx
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b1cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
call fcn.0040fc40
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
call fcn.004035e0
mov byte [esp + 0x38], 3
mov edx, dword [eax]
lea ecx, [esp + 0x20]
call fcn.00422350
mov byte [esp + 0x38], 4
mov ebx, dword [eax]
lea eax, [esp + 0x14]
call fcn.00403a10
mov byte [esp + 0x38], 3
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
xor ebx, ebx
cmp dword [eax + 4], ebx
je 0x40b266
cmp dword [eax + 0xc], ebx
lea edx, [eax + 0xc]
jge 0x40b240
cmp dword [ecx - 8], ebx
jl 0x40b344
mov dword [ecx - 0xc], ebx
mov ecx, dword [esp + 0x20]
xor eax, eax
mov word [ecx], ax
mov ecx, dword [esp + 0x20]
jmp 0x40b266
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b256
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x20], ecx
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b282
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], bl
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx - 0x10]
cmp dword [ecx - 0xc], ebx
lea eax, [ecx - 0x10]
je 0x40b2de
cmp dword [eax + 0xc], ebx
lea edx, [eax + 0xc]
jge 0x40b2b8
cmp dword [ecx - 8], ebx
jl 0x40b344
mov dword [ecx - 0xc], ebx
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov word [edx], cx
mov ecx, dword [esp + 0x24]
jmp 0x40b2de
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b2ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea ecx, [eax + 0x10]
mov dword [esp + 0x24], ecx
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b2fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
jg 0x40b316
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, 2
mov dword [esp + 0x2c], eax
jl 0x40af80
mov ebx, dword [esp + 0x40]
push ebx
mov ecx, esi
call fcn.004035e0
lea eax, [esi - 0x10]
mov dword [esp + 0x38], 0xffffffff
cmp dword [eax + 4], 0
mov edi, dword [eax]
je 0x40b37e
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
jge 0x40b35a
cmp dword [esi - 8], 0
jge 0x40b34e
push 0x80070057
call fcn.00401960
mov dword [esi - 0xc], 0
mov byte [esi], 0
jmp 0x40b37e
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b370
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
mov ecx, edi
call eax
mov esi, eax
add esi, 0x10
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b39a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret