Function at 0x408230
Capabilities:
Encode data using xor

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 0x4e83ad
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x70
push esi
push edi
mov eax, dword [0x522298]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, 0x52
mov byte [ebp - 0x60], 0x37
mov byte [ebp - 0x13], al
mov cl, 0x5b
xor al, byte [ebp - 0x60]
mov ch, 0x7b
xor cl, byte [ebp - 0x60]
mov dl, 0x4e
mov byte [ebp - 0x5f], al
mov dh, 0x58
mov byte [ebp - 0x5e], cl
mov ah, 0x4f
mov cl, byte [ebp - 0x60]
mov byte [ebp - 0x11], 0x56
xor dl, cl
mov al, byte [ebp - 0x11]
xor ch, cl
xor al, cl
mov byte [ebp - 0x12], 0x53
mov byte [ebp - 0x59], al
xor dh, cl
mov al, byte [ebp - 0x12]
xor ah, cl
xor al, cl
mov byte [ebp - 0x14], 0x45
mov byte [ebp - 0x58], al
mov al, byte [ebp - 0x13]
xor al, cl
mov byte [ebp - 0x5b], ch
mov byte [ebp - 0x57], al
mov al, byte [ebp - 0x14]
xor al, cl
mov byte [ebp - 0x55], 0
lea ecx, [ebp - 0x5f]
mov byte [ebp - 0x5d], dl
mov byte [ebp - 0x5a], dh
lea edx, [ecx + 1]
mov byte [ebp - 0x5c], ah
mov byte [ebp - 0x56], al
mov byte [ebp - 0x55], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4082e0
mov esi, closesocket
sub ecx, edx
mov edx, dword [0x641538]
mov eax, esi
sub eax, edx
cmp eax, ecx
jb 0x408a3b
cmp dword [0x64153c], 0x10
mov eax, 0x641528
push edx
cmovae eax, dword [0x641528]
push eax
push ecx
lea eax, [ebp - 0x5f]
push eax
push 0x641528
push dword [ebp - 0x1e]
lea ecx, [ebp - 0x7c]
call fcn.004091a0
cmp dword [ebp - 0x68], 0x10
lea eax, [ebp - 0x7c]
mov edi, dword [0x648d90]
cmovae eax, dword [ebp - 0x7c]
movss xmm0, dword [0x515cb0]
movss xmm1, dword [edi + 0x3be0]
test eax, eax
jne 0x408354
xorps xmm0, xmm0
jmp 0x408397
push ecx
push 0
push eax
push ecx
mov ecx, dword [edi + 0x3bdc]
lea eax, [ebp - 0x44]
mov dword [esp], 0xbf800000
movaps xmm3, xmm0
push eax
movaps xmm2, xmm1
call fcn.004334c0
movss xmm0, dword [ebp - 0x44]
addss xmm0, dword [0x515c00]
movss xmm1, dword [ebp - 0x40]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [ebp - 0x30], xmm0
mov eax, dword [edi + 0x3e78]
movss xmm2, dword [0x648dd8]
movss xmm3, dword [0x648ddc]
mulss xmm0, dword [0x515bc8]
mov byte [eax + 0xac], 1
mov eax, dword [edi + 0x3e78]
mulss xmm1, dword [0x515bc8]
subss xmm2, xmm0
movss xmm0, dword [eax + 0x18]
subss xmm0, dword [eax + 0x7c]
subss xmm3, xmm1
movss xmm1, dword [eax + 0x14]
subss xmm1, dword [eax + 0x78]
mov byte [eax + 0x131], 1
addss xmm0, xmm3
addss xmm1, xmm2
movss dword [eax + 0xf4], xmm0
movss dword [eax + 0xf0], xmm1
mov ecx, dword [ebp - 0x68]
cmp ecx, 0x10
jb 0x408439
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40842f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408a40
push ecx
push edx
call fcn.004b41a3
add esp, 8
mov ch, 0x77
mov byte [ebp - 0x1b], 0
mov al, 0x12
mov byte [ebp - 0x20], ch
mov ah, 0xf
mov byte [ebp - 0x1b], 0
xor al, ch
xor ah, ch
mov cl, 0x1b
mov byte [ebp - 0x1f], al
mov dl, 0xe
mov byte [ebp - 0x1c], ah
lea eax, [ebp - 0x1f]
xor cl, ch
xor dl, ch
mov byte [ebp - 0x1e], cl
push eax
mov byte [ebp - 0x1d], dl
call fcn.004358d0
add esp, 4
xorps xmm1, xmm1
xorps xmm0, xmm0
call fcn.0041c0e0
movaps xmm1, xmmword [0x515e60]
mov al, 0x31
mov byte [ebp - 0x30], 0x7d
mov ah, 0x19
xor al, byte [ebp - 0x30]
mov cl, 0x12
mov byte [ebp - 0x2f], al
mov dl, 0x1c
mov al, byte [ebp - 0x30]
mov ch, 0x18
xor ah, al
mov byte [ebp - 0x29], 0
mov dh, 0xf
mov byte [ebp - 0x2c], ah
xor cl, al
mov byte [ebp - 0x29], 0
xor dl, al
mov byte [ebp - 0x2e], cl
xor ch, al
mov byte [ebp - 0x2d], dl
xor dh, al
mov byte [ebp - 0x2b], ch
lea eax, [ebp - 0x2f]
mov byte [ebp - 0x2a], dh
push eax
lea eax, [ebp - 0x4c]
push eax
movups xmmword [ebp - 0x4c], xmm1
call fcn.004359a0
add esp, 8
xorps xmm1, xmm1
xorps xmm0, xmm0
call fcn.0041c0e0
mov eax, dword [0x648d90]
mov eax, dword [eax + 0x2c]
mov ecx, dword [eax + 0x44]
mov ecx, dword [ecx + 8]
call fcn.00419880
mov ch, 0x5c
mov byte [ebp - 0x23], 0
mov al, 0x7c
mov byte [ebp - 0x28], ch
mov cl, 0x20
mov byte [ebp - 0x23], 0
mov dl, al
xor cl, ch
xor dl, ch
mov byte [ebp - 0x26], cl
xor al, ch
mov byte [ebp - 0x25], dl
mov ah, 0x2a
mov byte [ebp - 0x27], al
xor ah, ch
lea ecx, [ebp - 0x27]
mov byte [ebp - 0x24], ah
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408520
sub ecx, edx
mov edx, dword [0x641538]
sub esi, edx
cmp esi, ecx
jb 0x408a45
cmp dword [0x64153c], 0x10
mov eax, 0x641528
push edx
cmovae eax, dword [0x641528]
push eax
push ecx
lea eax, [ebp - 0x27]
push eax
push 0x641528
push dword [ebp - 0x1e]
lea ecx, [ebp - 0x54]
call fcn.004091a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x54]
cmp dword [ebp - 0x40], 0x10
cmovae eax, dword [ebp - 0x54]
push eax
call fcn.00435a30
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov ecx, dword [ebp - 0x40]
cmp ecx, 0x10
jb 0x4085b9
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4085af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408a4a
push ecx
push edx
call fcn.004b41a3
add esp, 8
mov esi, dword [0x648d90]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
mov eax, dword [esi + 0x3e78]
mov ecx, dword [eax + 0x264]
mov edx, dword [ecx + 0x48]
sub edx, 1
mov dword [ecx + 0x48], edx
jne 0x4085ec
xor eax, eax
jmp 0x4085f3
mov eax, dword [ecx + 0x50]
mov eax, dword [eax + edx*4 - 4]
mov dword [ecx + 0x70], eax
call fcn.0042ba20
mov ecx, dword [esi + 0x47a4]
mov edi, dword [0x648d90]
sub ecx, 1
mov dword [esi + 0x47a4], ecx
jne 0x408623
mov ecx, dword [edi + 0x38]
test ecx, ecx
jne 0x40862d
mov eax, dword [edi + 0x2c]
mov eax, dword [eax + 0x44]
mov ecx, dword [eax]
jmp 0x40862d
mov eax, dword [esi + 0x47ac]
mov ecx, dword [eax + ecx*4 - 4]
call fcn.004197c0
movsx eax, word [0x6414b8]
mov dword [ebp - 0x40], 0x41f00000
lea esi, [eax - 0x14]
movd xmm3, eax
movsx eax, word [0x6414ba]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
movd xmm2, eax
mov eax, dword [edi + 0x3e78]
cvtdq2ps xmm2, xmm2
mov byte [eax + 0xac], 1
mov eax, dword [edi + 0x3e78]
cvtdq2ps xmm3, xmm3
subss xmm2, dword [0x515c74]
movss xmm1, dword [eax + 0x14]
subss xmm3, xmm0
subss xmm1, dword [eax + 0x78]
movss dword [ebp - 0x44], xmm0
movss xmm0, dword [eax + 0x18]
subss xmm0, dword [eax + 0x7c]
subss xmm2, dword [0x515c64]
mulss xmm3, dword [0x515bc8]
mov byte [eax + 0x131], 1
addss xmm1, xmm3
movss dword [ebp - 0x18], xmm3
addss xmm0, xmm2
movss dword [ebp - 0x20], xmm2
movss dword [eax + 0xf0], xmm1
movss dword [eax + 0xf4], xmm0
mov eax, dword [edi + 0x2c]
mov ecx, dword [eax + 0x44]
mov ecx, dword [ecx + 4]
call fcn.00419880
mov edi, dword [0x648d90]
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0
movups xmm0, xmmword [edi + 0x3868]
lea ecx, [edi + 0x478c]
movups xmmword [ebp - 0x38], xmm0
call fcn.00422e50
mov dword [edi + 0x3868], 0x3e4ccccd
mov cl, 2
mov dword [edi + 0x386c], 0x3f4ccccd
mov al, 0x25
mov dword [edi + 0x3870], 0x3ecccccd
mov ah, 0x18
mov dword [edi + 0x3874], 0x3f800000
mov dl, 0x17
mov byte [ebp - 0x34], 0x76
mov ch, 0x12
xor al, byte [ebp - 0x34]
mov dh, 0x37
mov byte [ebp - 0x33], al
mov byte [ebp - 0x14], cl
xor cl, byte [ebp - 0x34]
mov al, byte [ebp - 0x14]
mov byte [ebp - 0x32], cl
mov cl, byte [ebp - 0x34]
xor al, cl
mov byte [ebp - 0x13], ah
mov byte [ebp - 0x2d], al
xor dl, cl
mov al, byte [ebp - 0x13]
xor ah, cl
xor al, cl
mov byte [ebp - 0x12], 0x1f
mov byte [ebp - 0x2c], al
xor ch, cl
mov al, byte [ebp - 0x12]
xor dh, cl
xor al, cl
mov byte [ebp - 0x11], 0x1d
mov byte [ebp - 0x2b], al
mov al, byte [ebp - 0x11]
mov byte [ebp - 0x29], 0
mov byte [ebp - 0x31], dl
mov byte [ebp - 0x30], ah
mov byte [ebp - 0x2f], ch
mov byte [ebp - 0x2e], dh
xor al, cl
mov byte [ebp - 0x29], 0
mov byte [ebp - 0x2a], al
lea eax, [ebp - 0x33]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4087ee
mov ch, 0x6b
mov byte [ebp - 0x2b], 0
mov cl, 4
mov byte [ebp - 0x30], ch
mov dl, 0xa
mov byte [ebp - 0x2b], 0
xor cl, ch
xor dl, ch
mov al, 0x27
mov byte [ebp - 0x2e], cl
mov ah, 0xf
mov byte [ebp - 0x2d], dl
xor al, ch
lea edx, [ebp - 0x44]
xor ah, ch
mov byte [ebp - 0x2f], al
push ecx
lea ecx, [ebp - 0x2f]
mov byte [ebp - 0x2c], ah
call fcn.00436220
add esp, 4
test al, al
je 0x408830
mov dword [0x648df0], 2
jmp 0x408830
movaps xmm0, xmmword [0x515e80]
xor ecx, ecx
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x6c], 0x49454304
mov dword [ebp - 0x68], 0xa0a0a41
mov byte [ebp - 0x64], 0
nop dword [eax]
mov al, byte [ebp - 0x7c]
xor byte [ebp + ecx - 0x7b], al
inc ecx
cmp ecx, 0x17
jb 0x408810
push ecx
lea edx, [ebp - 0x44]
mov byte [ebp - 0x64], 0
lea ecx, [ebp - 0x7b]
call fcn.00436220
add esp, 4
mov edi, dword [0x648d90]
mov eax, dword [edi + 0x478c]
cmp eax, 1
jl 0x408863
mov ecx, dword [edi + 0x4794]
lea edx, [eax + eax*4]
mov eax, dword [ecx + edx*4 - 0x14]
movups xmm0, xmmword [ecx + edx*4 - 0x10]
add eax, eax
movups xmmword [edi + eax*8 + 0x3868], xmm0
dec dword [edi + 0x478c]
mov eax, dword [edi + 0x3e78]
mov ecx, dword [eax + 0x264]
mov edx, dword [ecx + 0x48]
sub edx, 1
mov dword [ecx + 0x48], edx
jne 0x40887e
xor eax, eax
jmp 0x408885
mov eax, dword [ecx + 0x50]
mov eax, dword [eax + edx*4 - 4]
mov dword [ecx + 0x70], eax
call fcn.0042ba20
mov ecx, dword [edi + 0x47a4]
sub ecx, 1
mov dword [edi + 0x47a4], ecx
jne 0x4088b4
mov eax, dword [0x648d90]
mov ecx, dword [eax + 0x38]
test ecx, ecx
jne 0x4088be
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x44]
mov ecx, dword [eax]
jmp 0x4088be
mov eax, dword [edi + 0x47ac]
mov ecx, dword [eax + ecx*4 - 4]
call fcn.004197c0
mov ecx, dword [0x648d90]
mov eax, dword [ecx + 0x2c]
mov ecx, dword [eax + 0x44]
mov ecx, dword [ecx + 8]
call fcn.00419880
movaps xmm0, xmmword [0x515f20]
xor ecx, ecx
movups xmmword [ebp - 0x3c], xmm0
mov word [ebp - 0x2c], 0x4f77
mov byte [ebp - 0x2a], 0
nop
mov al, byte [ebp - 0x3c]
xor byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0x11
jb 0x4088f0
mov edi, dword [0x648d90]
lea eax, [ebp - 0x3b]
movss xmm3, dword [0x515cb0]
push ecx
push 0
movss xmm2, dword [edi + 0x3be0]
push eax
push ecx
mov ecx, dword [edi + 0x3bdc]
lea eax, [ebp - 0x44]
mov dword [esp], 0xbf800000
push eax
mov byte [ebp - 0x2a], 0
call fcn.004334c0
mov eax, dword [edi + 0x3e78]
movss xmm0, dword [ebp - 0x44]
addss xmm0, dword [0x515c00]
movss xmm2, dword [ebp - 0x20]
mov byte [eax + 0xac], 1
mov ecx, dword [edi + 0x3e78]
subss xmm2, dword [ebp - 0x40]
cvttss2si eax, xmm0
movd xmm1, esi
cvtdq2ps xmm1, xmm1
movd xmm0, eax
lea eax, [ebp - 0x3b]
cvtdq2ps xmm0, xmm0
push eax
subss xmm1, xmm0
movss xmm0, dword [ecx + 0x14]
subss xmm0, dword [ecx + 0x78]
mulss xmm1, dword [0x515bc8]
addss xmm1, dword [ebp - 0x18]
addss xmm1, xmm0
movss xmm0, dword [ecx + 0x18]
subss xmm0, dword [ecx + 0x7c]
mov byte [ecx + 0x131], 1
movss dword [ecx + 0xf0], xmm1
addss xmm0, xmm2
movss dword [ecx + 0xf4], xmm0
call fcn.00435a30
mov esi, dword [0x648d90]
add esp, 4
mov eax, dword [esi + 0x3e78]
mov ecx, dword [eax + 0x264]
mov edx, dword [ecx + 0x48]
sub edx, 1
mov dword [ecx + 0x48], edx
jne 0x4089e2
xor eax, eax
jmp 0x4089e9
mov eax, dword [ecx + 0x50]
mov eax, dword [eax + edx*4 - 4]
mov dword [ecx + 0x70], eax
call fcn.0042ba20
mov ecx, dword [esi + 0x47a4]
sub ecx, 1
mov dword [esi + 0x47a4], ecx
jne 0x408a18
mov eax, dword [0x648d90]
mov ecx, dword [eax + 0x38]
test ecx, ecx
jne 0x408a22
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 0x44]
mov ecx, dword [eax]
jmp 0x408a22
mov eax, dword [esi + 0x47ac]
mov ecx, dword [eax + ecx*4 - 4]
call fcn.004197c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004013a0
call fcn.004b955f
call fcn.004013a0
call fcn.004b955f
int3