Function at 0x422530
Capabilities:
Encode data using xor
Initialize winsock library

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49bb30
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x4d90c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x4dcb88]
push 0x4005c
call fcn.00472234
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
push 0x4005c
push 0
push esi
mov dword [ebp - 4], 0
call fcn.00473b50
mov dword [esi], vtable.CAPISocket.0
lea ecx, [esi + 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x20], ecx
movups xmmword [esi + 0xc], xmm0
mov dword [ecx], 0
add esp, 0xc
mov dword [esi + 0x20], 0xf
mov byte [esi + 0xc], 0
mov byte [ebp - 4], 1
push 0x40000
mov dword [esi + 0x4002c], 0x4ccfc4
mov dword [esi + 0x40030], 0x40000
call fcn.00472277
add esp, 4
mov dword [esi + 0x40034], eax
mov dword [esi + 0x40038], 0
mov dword [esi + 0x4003c], 0
add esi, 0x40044
mov byte [ebp - 4], 2
push 8
mov dword [ebp - 0x54], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.00472234
add esp, 4
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
mov esi, dword [ebp - 0x1c]
lea eax, [esi + 0xc]
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0
cmp dword [eax + 0x14], 0xf
jbe 0x422660
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], 0
mov byte [eax], 0
mov eax, dword [0x4dcb38]
mov ecx, eax
inc eax
mov dword [esi + 0x24], 0
mov dword [0x4dcb38], eax
test ecx, ecx
jne 0x422694
push 0x4dd1a0
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [esi + 0x40040], 0
lea eax, [edi + 0x130]
mov dword [esi + 0x40028], 0
mov dword [esi + 0x40058], 1
mov dword [ebp - 4], 0xffffffff
mov dword [edi], esi
cmp dword [eax + 0x14], 0xf
jbe 0x4226c9
mov eax, dword [eax]
push ecx
push eax
push dword [edi + 0x148]
mov ecx, esi
call fcn.004017d0
test eax, eax
je 0x422745
movaps xmm0, xmmword [0x4d3150]
xor ecx, ecx
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x30], 0x1415195a
movaps xmm0, xmmword [0x4d30a0]
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0xe191f14
mov dword [ebp - 0x28], 0x541d1413
mov byte [ebp - 0x24], 0
nop dword [eax]
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x2b
jb 0x422710
lea ecx, [ebp - 0x4f]
mov byte [ebp - 0x24], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422727
sub ecx, edx
lea eax, [ebp - 0x4f]
push ecx
push eax
lea ecx, [edi + 0x280]
call fcn.004024f0
jmp 0x422805
mov ecx, dword [0x4dcb88]
mov eax, dword [ecx]
cmp dword [eax + 4], 0xffffffff
je 0x42276a
mov ecx, dword [edi]
lea eax, [ebp - 0x15]
push 1
push eax
mov byte [ebp - 0x15], 1
call fcn.00402190
mov ecx, dword [0x4dcb88]
mov eax, dword [ecx]
cmp dword [eax + 4], 0xffffffff
je 0x422805
nop word [eax + eax]
mov esi, dword [edi]
cmp dword [esi + 0x40054], 0
je 0x4227f9
nop dword [eax + eax]
mov edx, dword [esi + 0x40050]
mov eax, edx
mov ecx, dword [esi + 0x4004c]
and edx, 3
shr eax, 2
dec ecx
and ecx, eax
mov eax, dword [esi + 0x40048]
mov eax, dword [eax + ecx*4]
mov ecx, edi
mov esi, dword [eax + edx*4]
push esi
call fcn.00423b90
test al, al
je 0x4227f3
test esi, esi
je 0x4227cb
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [edi]
add dword [eax + 0x40054], 0xffffffff
jne 0x4227e2
mov dword [eax + 0x40050], 0
jmp 0x4227e8
inc dword [eax + 0x40050]
mov esi, dword [edi]
cmp dword [esi + 0x40054], 0
jne 0x422790
mov ecx, dword [0x4dcb88]
mov eax, dword [ecx]
cmp dword [eax + 4], 0xffffffff
jne 0x422780
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00472221
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret