Function at 0x500ba0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov eax, ecx
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff8
sub esp, 0x20
movzx ebx, byte [eax + 0x104]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov byte [esp + 0xf], bl
test bl, bl
jne 0x500bce
movzx ebx, byte [eax + 0x105]
mov byte [esp + 0xf], bl
cmp byte [eax + 0xe0], 0
je 0x500d08
cmp byte [eax + 0x108], 0
je 0x500d08
fld qword [eax + 0xd0]
fdiv qword [eax + 0x110]
test edx, edx
jle 0x500cf8
mov ebx, dword [eax + 0x100]
lea edi, [ecx + edx*2]
fldz
mov dword [esp + 0x10], ebx
mov ebx, ecx
lea esi, [esi]
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x501000
movzx ecx, byte [eax + 0xe9]
add dword [eax + 0xfc], 1
fadd st(1)
test cl, cl
je 0x500c97
mov esi, dword [eax + 0xec]
mov dword [esp + 8], ecx
lea edx, [esi + 1]
movd xmm2, edx
mov dword [eax + 0xec], edx
movq qword [esp + 0x18], xmm2
fild qword [esp + 0x18]
fld dword [0x60da24]
fmul qword [eax + 0x110]
fild dword [esp + 8]
fmulp st(1)
fxch st(1)
fcompi st(1)
fstp st(0)
jb 0x500c97
movzx ecx, byte [eax + 0xe8]
test cl, cl
jne 0x501078
mov edx, dword [eax + 0xdc]
test edx, edx
je 0x500c8d
sub edx, 1
mov dword [eax + 0xdc], edx
mov dword [eax + 0xec], 0
fld1
fxch st(1)
movzx esi, byte [eax + 0x144]
fcomi st(1)
fstp st(1)
jae 0x500e50
mov edx, esi
cmp dl, 0xf
je 0x500fc0
cmp dl, 7
jne 0x500cd0
test byte [eax + 0x145], 1
jne 0x500fcd
lea esi, [esi]
mov ecx, 0xffff8000
mov word [ebx], cx
sub dword [esp + 0x10], 1
mov edx, dword [esp + 0x10]
add ebx, 2
mov dword [eax + 0x100], edx
cmp ebx, edi
jne 0x500c10
fstp st(0)
fstp st(0)
jmp 0x500cfa
fstp st(0)
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
test edx, edx
jle 0x500cfa
lea eax, [edx - 1]
cmp eax, 6
jbe 0x5011a2
movdqu xmm0, xmmword [0x60da30]
mov edi, edx
mov ebx, ecx
shr edi, 3
shl edi, 4
lea esi, [edi + ecx]
sub edi, 0x10
shr edi, 4
add edi, 1
and edi, 7
je 0x500d87
cmp edi, 1
je 0x500d7d
cmp edi, 2
je 0x500d77
cmp edi, 3
je 0x500d71
cmp edi, 4
je 0x500d6b
cmp edi, 5
je 0x500d65
cmp edi, 6
je 0x500d5f
movups xmmword [ecx], xmm0
lea ebx, [ecx + 0x10]
movups xmmword [ebx], xmm0
add ebx, 0x10
movups xmmword [ebx], xmm0
add ebx, 0x10
movups xmmword [ebx], xmm0
add ebx, 0x10
movups xmmword [ebx], xmm0
add ebx, 0x10
movups xmmword [ebx], xmm0
add ebx, 0x10
movups xmmword [ebx], xmm0
add ebx, 0x10
cmp esi, ebx
je 0x500dad
movups xmmword [ebx], xmm0
sub ebx, 0xffffff80
movups xmmword [ebx - 0x70], xmm0
movups xmmword [ebx - 0x60], xmm0
movups xmmword [ebx - 0x50], xmm0
movups xmmword [ebx - 0x40], xmm0
movups xmmword [ebx - 0x30], xmm0
movups xmmword [ebx - 0x20], xmm0
movups xmmword [ebx - 0x10], xmm0
cmp esi, ebx
jne 0x500d87
mov eax, edx
and eax, 0xfffffff8
test dl, 7
je 0x500cfa
mov edi, 0xffff8000
lea esi, [eax + 1]
lea ebx, [eax + eax]
mov word [ecx + eax*2], di
cmp esi, edx
jge 0x500cfa
mov edi, 0xffff8000
lea esi, [eax + 2]
mov word [ecx + ebx + 2], di
cmp edx, esi
jle 0x500cfa
mov edi, 0xffff8000
lea esi, [eax + 3]
mov word [ecx + ebx + 4], di
cmp edx, esi
jle 0x500cfa
mov edi, 0xffff8000
lea esi, [eax + 4]
mov word [ecx + ebx + 6], di
cmp edx, esi
jle 0x500cfa
mov edi, 0xffff8000
lea esi, [eax + 5]
mov word [ecx + ebx + 8], di
cmp esi, edx
jge 0x500cfa
mov edi, 0xffff8000
add eax, 6
mov word [ecx + ebx + 0xa], di
cmp edx, eax
jle 0x500cfa
mov edx, 0xffff8000
mov word [ecx + ebx + 0xc], dx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
xor ecx, ecx
lea esi, [esi]
fld1
add ecx, 1
fsub st(1), st(0)
fxch st(1)
fcomi st(1)
fstp st(1)
jae 0x500e58
mov dword [esp + 8], ecx
test ecx, ecx
je 0x500cac
mov edx, esi
cmp dl, 7
je 0x5010a0
cmp dl, 0xf
jne 0x500cd0
mov dword [esp + 4], 0
and ecx, 3
je 0x5011e4
cmp ecx, 1
je 0x500ef7
cmp ecx, 2
je 0x500ece
movzx esi, word [eax + 0x146]
mov dword [esp + 4], 1
mov ecx, esi
mov edx, esi
sar esi, 1
shr cx, 1
xor esi, edx
mov edx, ecx
or dh, 0x40
and esi, 1
cmove edx, ecx
mov word [eax + 0x146], dx
movzx esi, word [eax + 0x146]
mov ecx, esi
mov edx, esi
sar esi, 1
shr cx, 1
xor esi, edx
mov edx, ecx
or dh, 0x40
and esi, 1
cmove edx, ecx
add dword [esp + 4], 1
mov word [eax + 0x146], dx
movzx esi, word [eax + 0x146]
mov ecx, esi
mov edx, esi
sar esi, 1
shr cx, 1
xor esi, edx
mov edx, ecx
or dh, 0x40
and esi, 1
mov esi, dword [esp + 8]
cmove edx, ecx
add dword [esp + 4], 1
mov ecx, dword [esp + 4]
mov word [eax + 0x146], dx
cmp ecx, esi
je 0x500fc0
mov dword [esp + 8], edi
mov ecx, esi
mov dword [esp], ebx
mov ebx, dword [esp + 4]
movzx edx, word [eax + 0x146]
mov esi, edx
mov edi, edx
sar edx, 1
shr si, 1
xor edx, edi
mov edi, esi
or di, 0x4000
and edx, 1
cmove edi, esi
mov esi, edi
movzx edx, di
shr si, 1
sar edx, 1
xor edx, edi
mov edi, esi
or di, 0x4000
and edx, 1
cmove edi, esi
mov esi, edi
movzx edx, di
shr si, 1
sar edx, 1
xor edx, edi
mov edi, esi
or di, 0x4000
and edx, 1
cmove edi, esi
mov esi, edi
movzx edx, di
shr si, 1
sar edx, 1
xor edx, edi
mov edi, esi
or di, 0x4000
and edx, 1
cmove edi, esi
add ebx, 4
mov word [eax + 0x146], di
cmp ebx, ecx
jne 0x500f3d
mov ebx, dword [esp]
mov edi, dword [esp + 8]
lea esi, [esi]
test byte [eax + 0x146], 1
je 0x500cd0
mov ecx, dword [eax + 0xdc]
lea esi, [ecx - 1]
cmp esi, 0xe
ja 0x500cd0
cmp byte [esp + 0xf], 0
mov esi, 0xffff8000
je 0x500ff6
imul dx, cx, 0x1111
lea esi, [edx - 0x8000]
mov word [ebx], si
jmp 0x500cd8
jne 0x500cd8
cmp byte [eax + 0xe4], 0
jne 0x501040
movd xmm1, dword [eax + 0xd8]
movq qword [esp + 0x18], xmm1
fild qword [esp + 0x18]
fmul qword [eax + 0x110]
fdiv dword [0x60da28]
fstp qword [esp + 0x10]
cvttsd2si edx, qword [esp + 0x10]
mov dword [esp + 0x10], edx
jmp 0x500cd8
mov edx, dword [eax]
mov esi, 0xffff8000
mov word [ebx], si
mov ecx, dword [edx]
mov byte [eax + 0xe0], 0
mov dword [eax + 0x100], 0
and byte [ecx + 0xff26], 0xf7
mov esi, dword [eax + 0x100]
mov dword [esp + 0x10], esi
jmp 0x500cd8
cmp cl, 1
jne 0x500c8d
mov esi, dword [eax + 0xdc]
cmp esi, 0xe
ja 0x500c8d
add esi, 1
mov dword [eax + 0xdc], esi
jmp 0x500c8d
mov dword [esp + 4], 0
and ecx, 3
je 0x5011d6
cmp ecx, 1
je 0x5010eb
cmp ecx, 2
jne 0x5011a9
movzx edx, byte [eax + 0x145]
mov ecx, edx
shr cl, 1
mov byte [esp], cl
mov ecx, edx
shr cl, 1
mov esi, ecx
xor edx, esi
or esi, 0x40
and edx, 1
cmove esi, ecx
add dword [esp + 4], 1
mov edx, esi
mov byte [eax + 0x145], dl
movzx edx, byte [eax + 0x145]
mov ecx, edx
shr cl, 1
mov byte [esp], cl
mov ecx, edx
shr cl, 1
mov esi, ecx
xor edx, esi
or esi, 0x40
and edx, 1
cmove esi, ecx
add dword [esp + 4], 1
mov ecx, dword [esp + 4]
mov edx, esi
mov esi, dword [esp + 8]
mov byte [eax + 0x145], dl
cmp ecx, esi
je 0x500cbc
mov dword [esp], ebx
mov ebx, dword [esp + 4]
mov dword [esp + 4], edi
movzx edx, byte [eax + 0x145]
mov ecx, edx
shr cl, 1
mov edi, ecx
xor edi, edx
mov edx, ecx
or edx, 0x40
and edi, 1
cmove edx, ecx
mov ecx, edx
shr cl, 1
mov esi, ecx
xor esi, edx
mov edx, ecx
or edx, 0x40
and esi, 1
cmove edx, ecx
mov ecx, edx
shr cl, 1
mov edi, ecx
xor edi, edx
mov edx, ecx
or edx, 0x40
and edi, 1
cmove edx, ecx
mov ecx, edx
shr cl, 1
mov edi, ecx
xor edx, edi
or edi, 0x40
and edx, 1
mov edx, ecx
mov ecx, dword [esp + 8]
cmovne edx, edi
add ebx, 4
mov byte [eax + 0x145], dl
cmp ebx, ecx
jne 0x501132
mov ebx, dword [esp]
mov edi, dword [esp + 4]
jmp 0x500cbc
xor eax, eax
jmp 0x500dbb
movzx edx, byte [eax + 0x145]
mov dword [esp + 4], 1
mov ecx, edx
shr cl, 1
mov esi, ecx
xor esi, edx
mov edx, ecx
or edx, 0x40
and esi, 1
cmove edx, ecx
mov byte [eax + 0x145], dl
jmp 0x5010bf
mov dword [esp], ebx
xor ebx, ebx
mov dword [esp + 4], edi
jmp 0x501132
mov dword [esp], ebx
mov ecx, dword [esp + 8]
xor ebx, ebx
mov dword [esp + 8], edi
jmp 0x500f3d