Function at 0x650b80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1f0
mov eax, dword [0x80e040]
xor eax, ebp
mov dword [esp + 0x1e8], eax
cmp dword [ebp + 0xc], 0
je 0x65110b
mov esi, dword [ebp + 0x10]
call fcn.0055f250
mov edi, eax
mov al, byte [esi]
mov byte [esp + 0x190], al
mov al, byte [esi + 1]
mov byte [esp + 0x191], al
mov al, byte [esi + 2]
mov byte [esp + 0x192], al
mov al, byte [esi + 3]
mov byte [esp + 0x193], al
mov al, byte [esi + 4]
mov byte [esp + 0x194], al
mov al, byte [esi + 5]
mov byte [esp + 0x195], al
mov al, byte [esi + 6]
mov byte [esp + 0x196], al
mov al, byte [esi + 7]
mov byte [esp + 0x197], al
mov al, byte [esi + 8]
mov byte [esp + 0x198], al
mov al, byte [esi + 9]
mov byte [esp + 0x199], al
mov al, byte [esi + 0xa]
mov byte [esp + 0x19a], al
mov al, byte [esi + 0xb]
mov byte [esp + 0x19b], al
mov al, byte [esi + 0xc]
mov byte [esp + 0x19c], al
mov al, byte [esi + 0xd]
mov byte [esp + 0x19d], al
mov al, byte [esi + 0xe]
mov byte [esp + 0x19e], al
mov al, byte [esi + 0xf]
mov byte [esp + 0x19f], al
mov al, byte [esi + 0x10]
mov byte [esp + 0x1a0], al
mov al, byte [esi + 0x11]
mov byte [esp + 0x1a1], al
mov al, byte [esi + 0x12]
mov byte [esp + 0x1a2], al
mov al, byte [esi + 0x13]
mov byte [esp + 0x1a3], al
mov al, byte [esi + 0x14]
mov byte [esp + 0x1a4], al
mov al, byte [esi + 0x15]
mov byte [esp + 0x1a5], al
mov al, byte [esi + 0x16]
mov byte [esp + 0x1a6], al
mov al, byte [esi + 0x17]
mov byte [esp + 0x1a7], al
mov al, byte [esi + 0x18]
mov byte [esp + 0x1a8], al
mov al, byte [esi + 0x19]
mov byte [esp + 0x1a9], al
mov al, byte [esi + 0x1a]
mov byte [esp + 0x1aa], al
mov al, byte [esi + 0x1b]
mov byte [esp + 0x1ab], al
mov al, byte [esi + 0x1c]
mov byte [esp + 0x1ac], al
mov al, byte [esi + 0x1d]
mov byte [esp + 0x1ad], al
mov al, byte [esi + 0x1e]
mov byte [esp + 0x1ae], al
mov al, byte [esi + 0x1f]
mov byte [esp + 0x1af], al
lea eax, [esp + 0x60]
push 0x130
push 0xff
push eax
call fcn.005cced0
add esp, 0xc
push 1
call fcn.00581be0
add esp, 4
test eax, eax
je 0x6511d1
mov esi, eax
add eax, 0x120
mov dword [esp + 0x14], eax
cmp dword [esi + 0x120], 0xfff
ja 0x651289
mov eax, 0xc0ffee
xor eax, dword [esi + 0x118]
or eax, dword [esi + 0x11c]
jne 0x651289
cmp dword [esi + 0x128], edi
jne 0x651289
mov ecx, dword [esi + 0x110]
mov eax, dword [esi + 0x114]
mov edx, dword [ebp + 8]
mov dword [esp + 0x24], edx
lea edx, [esi + 0xfc]
mov dword [esp + 0x10], edx
mov ebx, 0x20
mov dword [esp + 0x28], 0
mov edi, dword [ebp + 0xc]
mov edx, 0x10000
cmp edi, edx
cmovb edx, edi
mov dword [esp + 0x20], edx
neg ecx
mov ecx, 0x10000
sbb ecx, eax
jb 0x65134f
test byte [esp + 0x28], 1
mov dword [esp + 0x1c], edi
jne 0x650ed0
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x1d0], xmm0
movdqa xmmword [esp + 0x1c0], xmm0
movdqa xmmword [esp + 0x1b0], xmm0
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [0x8072c0]
push esi
lea eax, [esp + 0x1b4]
push eax
mov edi, dword [esp + 0x18]
push edi
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [0x8072c0]
push esi
lea eax, [esp + 0x1c4]
push eax
push edi
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [0x8072c0]
push esi
lea eax, [esp + 0x1d4]
push eax
push edi
call ecx
add esp, 0xc
xor eax, eax
mov cl, byte [esp + eax + 0x190]
xor byte [esp + eax + 0x1b0], cl
inc eax
cmp ebx, eax
jne 0x650e59
push 1
call fcn.00581ca0
add esp, 4
bt eax, 0x19
jae 0x6513e4
not eax
test eax, 0x12000000
mov edi, dword [esp + 0x1c]
jne 0x651367
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.00403290
add esp, 0xc
mov eax, 0x401cd0
mov ecx, 0x401140
mov dword [esi + 0xf4], ecx
mov dword [esi + 0xf8], eax
lea eax, [esp + 0x1d0]
movdqu xmm0, xmmword [eax]
mov eax, dword [esp + 0x10]
movdqu xmmword [eax], xmm0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp edi, 0x10
jb 0x650f86
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, 0x2000
cmp ecx, eax
mov edi, 0x2000
cmovb edi, ecx
mov eax, edi
and eax, 0x3ff0
cmp dword [esi + 0xf8], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
je 0x651301
cmp eax, 0x10
jne 0x651188
pxor xmm0, xmm0
movdqu xmmword [edx], xmm0
shr edi, 4
mov ecx, dword [esi + 0xf8]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [0x8072c0]
push dword [esp + 0x10]
push esi
push edi
mov eax, dword [esp + 0x18]
push eax
push eax
call ecx
add esp, 0x14
mov eax, dword [esi + 0x108]
bswap eax
add eax, edi
dec eax
bswap eax
mov dword [esi + 0x108], eax
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
add edx, eax
mov ecx, dword [esp + 0x18]
sub ecx, eax
cmp ecx, 0xf
ja 0x650ee9
mov eax, dword [esi + 0xf4]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x108]
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x651121
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x1d0], xmm0
movdqa xmmword [esp + 0x1c0], xmm0
movdqa xmmword [esp + 0x1b0], xmm0
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
mov ecx, dword [esp + 8]
call dword [0x8072c0]
push esi
lea eax, [esp + 0x1b4]
push eax
mov edi, dword [esp + 0x18]
push edi
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [0x8072c0]
push esi
lea eax, [esp + 0x1c4]
push eax
push edi
call ecx
add esp, 0xc
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
call dword [0x8072c0]
push esi
lea eax, [esp + 0x1d4]
push eax
push edi
call ecx
add esp, 0xc
test byte [esp + 0x28], 1
jne 0x65105d
xor eax, eax
mov cl, byte [esp + eax + 0x190]
xor byte [esp + eax + 0x1b0], cl
inc eax
cmp ebx, eax
jne 0x65104a
push 1
call fcn.00581ca0
add esp, 4
bt eax, 0x19
jae 0x651397
not eax
test eax, 0x12000000
jne 0x65137f
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.00403290
add esp, 0xc
mov eax, 0x401cd0
mov ecx, 0x401140
mov dword [esi + 0xf4], ecx
mov dword [esi + 0xf8], eax
lea eax, [esp + 0x1d0]
movdqu xmm0, xmmword [eax]
mov eax, dword [esp + 0x10]
movdqu xmmword [eax], xmm0
mov ecx, dword [esi + 0x110]
mov eax, dword [esi + 0x114]
add ecx, 1
adc eax, 0
mov dword [esi + 0x110], ecx
mov dword [esi + 0x114], eax
mov edx, dword [esp + 0x14]
inc dword [edx]
mov edi, dword [esp + 0x20]
add dword [esp + 0x24], edi
xor ebx, ebx
mov dl, 1
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x1c]
sub edx, edi
mov edi, edx
jne 0x650d84
lea eax, [esp + 0x60]
cmp esi, eax
je 0x651354
mov ecx, dword [esp + 0x1e8]
xor ecx, ebp
call fcn.005c9f16
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0xc], edx
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x1b0], xmm0
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
mov ecx, dword [esp + 8]
call dword [0x8072c0]
push esi
lea eax, [esp + 0x1b4]
push eax
push dword [esp + 0x18]
call ecx
add esp, 0xc
mov eax, dword [esp + 0x18]
cmp eax, 8
jne 0x6511ba
movq xmm0, qword [esp + 0x1b0]
mov eax, dword [esp + 0xc]
movq qword [eax], xmm0
mov eax, dword [esi + 0xf4]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x108]
jmp 0x650fa2
cmp eax, 0x20
jne 0x65119b
pxor xmm0, xmm0
movdqu xmmword [edx + 0x10], xmm0
jmp 0x650f25
test eax, eax
je 0x650f29
push dword [esp + 8]
push 0
push dword [esp + 0x14]
call fcn.005cced0
add esp, 0xc
jmp 0x650f29
push eax
lea eax, [esp + 0x1b4]
push eax
push dword [esp + 0x14]
call fcn.005cc950
add esp, 0xc
jmp 0x651173
push 0x130
call fcn.00565ef0
add esp, 4
test eax, eax
je 0x651435
mov esi, eax
push 0x4c2a00
push eax
push 1
call fcn.004ef320
add esp, 0xc
test eax, eax
je 0x651435
xor eax, eax
mov dword [esi + 0x124], eax
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x1b0]
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
pxor xmm0, xmm0
lea eax, [esp + 0x30]
movdqa xmmword [eax + 0x20], xmm0
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
push 0x30
push ebx
call fcn.004ef860
add esp, 8
xor eax, eax
push eax
lea eax, [esp + 0x34]
push eax
push ebx
push esi
call fcn.004c2660
add esp, 0x10
test eax, eax
je 0x65134f
lea eax, [esi + 0x120]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esi + 0x120], eax
mov dword [esi + 0x11c], eax
mov dword [esi + 0x118], 0xc0ffee
mov dword [esi + 0x128], edi
jmp 0x650d34
pcmpeqd xmm0, xmm0
lea eax, [esp + 0x1b0]
movdqa xmmword [eax + 0x20], xmm0
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
mov ebx, 0x30
push ebx
push eax
call fcn.004ef860
add esp, 8
mov ecx, esi
lea edx, [esp + 0x1b0]
push ebx
call fcn.004c2860
add esp, 4
test eax, eax
je 0x65134f
xor eax, eax
mov dword [esi + 0x114], eax
mov dword [esi + 0x110], 1
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
mov dword [esi + 0x11c], eax
mov dword [esi + 0x118], 0xc0ffee
mov dword [esi + 0x128], edi
xor ecx, ecx
inc ecx
jmp 0x650d63
test eax, eax
je 0x650f6d
xor edi, edi
mov ecx, dword [esi + 0xf4]
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
mov eax, dword [esp + 0xc]
add eax, edi
mov dword [esp + 0x2c], eax
call dword [0x8072c0]
push esi
push dword [esp + 0x30]
push dword [esp + 0x18]
call ecx
add esp, 0xc
add edi, 0x10
cmp edi, dword [esp + 8]
jae 0x650f6d
jmp 0x65130b
call fcn.005de1d9
push 0x118
push esi
call fcn.00565f90
add esp, 8
jmp 0x65110b
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.00402f80
jmp 0x650ea4
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.00402f80
jmp 0x651091
bt eax, 9
jae 0x6513bf
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.00404020
add esp, 0xc
xor eax, eax
mov ecx, 0x4040d0
jmp 0x65109e
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.0064a290
add esp, 0xc
mov eax, 0x64ae20
mov ecx, 0x64a1a0
jmp 0x65109e
mov edi, dword [esp + 0x1c]
bt eax, 9
jae 0x651410
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.00404020
add esp, 0xc
xor eax, eax
mov ecx, 0x4040d0
jmp 0x650eb1
push esi
push 0x100
lea eax, [esp + 0x1b8]
push eax
call fcn.0064a290
add esp, 0xc
mov eax, 0x64ae20
mov ecx, 0x64a1a0
jmp 0x650eb1
lea esi, [esp + 0x60]
jmp 0x651200