Function at 0x40beb0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454de2
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1418
call fcn.004344d0
mov eax, dword [0x46a1c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor eax, eax
lea ecx, [ebp - 0x3c]
push 0xd
xorps xmm0, xmm0
mov dword [ebp - 0x13e0], eax
push 0x461020
mov dword [ebp - 0x13e4], eax
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
call fcn.00417190
push ecx
lea edx, [ebp - 0x3c]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1424]
call fcn.00405170
mov esi, eax
add esp, 4
cmp esi, 0x46de74
je 0x40bfb7
mov edx, dword [0x46de88]
cmp edx, 7
jbe 0x40bf77
mov ecx, dword [0x46de74]
lea edx, [edx*2 + 2]
cmp edx, 0x1000
jb 0x40bf6d
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x40c453
mov ecx, edi
push edx
push ecx
call fcn.00433928
add esp, 8
mov dword [0x46de84], 0
xor eax, eax
mov dword [0x46de88], 7
mov word [0x46de74], ax
movups xmm0, xmmword [esi]
movups xmmword [0x46de74], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x46de84], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x1410]
cmp ecx, 7
jbe 0x40bff7
mov edx, dword [ebp - 0x1424]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40bfed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c453
push ecx
push edx
call fcn.00433928
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1414], 0
mov dword [ebp - 0x1410], 7
mov word [ebp - 0x1424], ax
cmp ecx, 7
jbe 0x40c055
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c04b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c453
push ecx
push edx
call fcn.00433928
add esp, 8
mov eax, dword [0x46de84]
mov ecx, 2
inc eax
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.00433936
cmp dword [0x46de88], 7
mov edx, eax
mov eax, dword [0x46de84]
mov ecx, 0x46de74
cmova ecx, dword [0x46de74]
inc eax
push ecx
push eax
push edx
mov dword [ebp - 0x13ec], edx
call fcn.00439776
add esp, 0x10
call fcn.00420099
mov dword [ebp - 0x58], 0xffffffff
mov edx, 1
mov dword [ebp - 0x13d8], eax
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [ebp + edx*4 - 0x13d8], eax
inc edx
cmp edx, 0x270
jb 0x40c0b3
lea eax, [ebp - 0x13dc]
mov dword [ebp - 0x13dc], 0x270
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xb
mov dword [ebp - 0x18], 0x13
call fcn.00416920
imul eax, eax, 0x3e8
lea ecx, [ebp - 0x1c]
cdq
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
call fcn.004169b0
push 0x31
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
push str.hgerfgffsdhsdsfddfghhhzxcnjuikukfghfghhfsjhjiohgh
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], 0
movups xmmword [ebp - 0x54], xmm0
call fcn.00417360
mov ecx, 0x461070
mov dword [ebp - 4], 1
mov dword [ebp - 0x13e8], ecx
mov esi, ecx
lea edx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x40c150
mov eax, dword [ebp - 0x40]
sub esi, edx
mov edx, dword [ebp - 0x44]
sub eax, edx
mov dword [ebp - 0x20], edx
push esi
push ecx
cmp esi, eax
ja 0x40c193
cmp dword [ebp - 0x40], 0xf
lea edi, [ebp - 0x54]
lea eax, [esi + edx]
cmova edi, dword [ebp - 0x54]
mov dword [ebp - 0x44], eax
lea eax, [edi + edx]
push eax
call fcn.00434d10
mov ecx, dword [ebp - 0x20]
lea eax, [esi + edi]
add esp, 0xc
mov byte [eax + ecx], 0
jmp 0x40c1a3
mov byte [ebp - 0x18], 0
lea ecx, [ebp - 0x54]
push dword [ebp - 0x18]
push esi
call fcn.00418280
mov ecx, dword [ebp - 0x13e8]
add ecx, 0xa
mov dword [ebp - 0x13e8], ecx
cmp ecx, 0x46164c
jl 0x40c144
push 4
push str.null
lea ecx, [ebp - 0x54]
call fcn.00415520
mov edi, dword [ebp - 0x13e0]
mov ecx, 0x46de39
mov byte [ebp - 4], 2
xor al, al
xchg byte [ecx], al
push closesocket
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov eax, dword [ebp - 0x13ec]
xorps xmm0, xmm0
push 0xb0
movlpd qword [ebp - 0x24], xmm0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x13f4], eax
mov dword [ebp - 0x13f0], 0x4093f0
call fcn.004336a7
mov esi, eax
add esp, 4
mov dword [ebp - 0x13e0], esi
push 0xb0
push 0
push esi
mov byte [ebp - 4], 3
call fcn.00435290
add esp, 0xc
lea eax, [ebp - 0x13f4]
mov ecx, esi
push eax
call fcn.0041b660
mov esi, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x30], esi
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 4
test esi, esi
je 0x40c458
mov byte [ebp - 0x28], 1
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 1
lock inc dword [esi + 4]
or edi, 1
or eax, 0xffffffff
mov dword [ebp - 0x13e4], edi
lock xadd dword [esi + 4], eax
jne 0x40c29d
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x40c28f
mov eax, dword [ecx]
push esi
jmp 0x40c295
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov dword [ebp - 0x13e4], edi
mov byte [ebp - 4], 5
mov dword [ebp - 0x13e0], edi
mov dword [ebp - 0x13fc], 0x7d0
mov dword [ebp - 0x13f8], 0
test esi, esi
je 0x40c458
cmp byte [esi + 0x6c], 0
jne 0x40c458
lea eax, [ebp - 0x13fc]
mov ecx, esi
push eax
call fcn.0041ac60
cmp eax, 1
jne 0x40c319
push 0x36
push str.sdfghsdsdfkdslhsdflksdhlkdsfhklfdshsdkflsdhsdfklhdslkh
lea ecx, [ebp - 0x54]
call fcn.00415520
mov al, 1
mov ecx, 0x46de39
xchg byte [ecx], al
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1404], 0xa
mov dword [ebp - 0x1400], 0
call fcn.00416a50
jmp 0x40c365
xorps xmm0, xmm0
xor eax, eax
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x18], 1
mov byte [ebp - 4], 6
cmp byte [esi + 0x6c], al
jne 0x40c462
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 8]
mov byte [ebp - 4], 5
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x40c365
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x40c35d
mov eax, dword [ecx]
push esi
jmp 0x40c363
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea ecx, [ebp - 0x13dc]
mov esi, 0x8000000b
call fcn.0041b7c0
mov ecx, eax
mov eax, 9
mul ecx
mov ecx, esi
mov dword [ebp - 0x13e8], eax
mov eax, edx
cmp dword [ebp - 0x13e8], 9
mov edx, dword [ebp - 0x13e0]
mov edi, edx
jae 0x40c3cd
cmp dword [ebp - 0x13e8], 4
jae 0x40c3cd
lea ecx, [ebp - 0x13dc]
mov dword [ebp - 0x13e0], esi
mov edi, edx
call fcn.0041b7c0
mov ecx, eax
mov eax, 9
mul ecx
mov dword [ebp - 0x18], edx
mov edx, edi
cmp eax, 4
jb 0x40c3a2
mov eax, dword [ebp - 0x18]
mov ecx, esi
add eax, ecx
lea ecx, [ebp - 0x140c]
xor eax, 0x80000000
imul eax, eax, 0x3e8
cdq
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], edx
call fcn.004169b0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x40c429
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x40c429
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x40c423
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax]
mov dword [ebp - 4], 1
mov dword [ebp - 0x13e4], edi
jmp 0x40c1cf
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebp - 4], 1
mov dword [ebp - 0x13e4], edi
jmp 0x40c1cf
call fcn.0043bda5
mov ecx, 4
call fcn.00404ee0
mov ecx, 4
call fcn.00404ee0
int3