Function at 0x500ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
shr esi, 3
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], 2
cmp esi, 0x14
je 0x500f24
cmp esi, 0x1c
je 0x500f24
cmp esi, 0x20
je 0x500f24
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x500f5a
cmp esi, 0x14
jne 0x500f3d
call fcn.00492770
mov edi, eax
mov dword [ebp + 0x14], edi
jmp 0x500f65
cmp esi, 0x1c
jne 0x500f4e
call fcn.00492780
mov edi, eax
mov dword [ebp + 0x14], edi
jmp 0x500f65
call fcn.00492790
mov edi, eax
mov dword [ebp + 0x14], edi
jmp 0x500f65
push edi
call fcn.0044ce10
add esp, 4
mov esi, eax
mov ecx, 0x200
cmp dword [ebp + 0xc], ecx
cmovae ecx, dword [ebp + 0xc]
add ecx, 0x3f
and ecx, 0xffffffc0
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x500fba
mov eax, dword [ebp + 0x1c]
cmp eax, esi
jae 0x500fa6
push 0x55
push 0x5c2758
push 0x6e
push 0x7d
push 0xa
call fcn.00455e30
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmova eax, esi
push eax
push ecx
lea eax, [ebp - 0xb8]
push eax
call fcn.0053dc00
add esp, 0xc
call fcn.004fa2f0
mov dword [ebp - 0x14], eax
test eax, eax
je 0x50158f
call fcn.004c8950
mov dword [ebp + 0x10], eax
test eax, eax
je 0x501591
push eax
call fcn.004c8a40
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.004c87f0
push ebx
mov dword [ebp - 0x54], eax
call fcn.004c87f0
push ebx
mov dword [ebp - 0x10], eax
call fcn.004c87f0
push ebx
mov dword [ebp - 0x20], eax
call fcn.004c87f0
push ebx
mov dword [ebp - 0xc], eax
call fcn.004c87f0
push ebx
mov dword [ebp - 0x58], eax
call fcn.004c87f0
push ebx
mov dword [ebp - 0x30], eax
call fcn.004c87f0
push ebx
mov dword [ebp - 8], eax
call fcn.004c87f0
mov ebx, eax
add esp, 0x24
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x501089
mov eax, dword [ebp - 0x1c]
dec eax
push eax
call fcn.0049fd30
push eax
push ebx
call fcn.004a0510
add esp, 0xc
test eax, eax
je 0x501089
nop dword [eax]
push dword [ebp - 0x18]
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
push 0
push dword [ebp + 0x2c]
sete bl
call fcn.00527df0
inc dword [ebp - 0x18]
add esp, 0xc
test eax, eax
je 0x501089
cmp dword [ebp + 0x18], 0
jne 0x50109e
lea eax, [ebp - 0xb8]
push esi
push eax
call fcn.0044b1b0
add esp, 8
test eax, eax
jg 0x5010a5
xor ebx, ebx
push dword [ebp + 0x10]
call fcn.004c86f0
mov eax, dword [ebp + 0x10]
add esp, 4
jmp 0x501591
mov dword [ebp + 0x18], 0
push esi
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0053dc00
push esi
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0053dc00
lea eax, [esi - 1]
add esp, 0x18
test eax, eax
js 0x5010e3
add byte [ebp + eax - 0x98], 1
jne 0x5010e3
sub eax, 1
jns 0x5010d4
push 0
push edi
push 0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xb8]
push esi
push eax
call fcn.00460ce0
add esp, 0x18
test eax, eax
je 0x501089
push 0
push edi
push 0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x98]
push esi
push eax
call fcn.00460ce0
add esp, 0x18
test eax, eax
je 0x501089
xor ecx, ecx
test esi, esi
jle 0x5011a4
cmp esi, 0x40
jb 0x501193
mov eax, esi
and eax, 0x8000003f
jns 0x50113a
dec eax
or eax, 0xffffffc0
inc eax
mov edx, esi
sub edx, eax
nop
movups xmm0, xmmword [ebp + ecx - 0x50]
movups xmm1, xmmword [ebp + ecx - 0x78]
pxor xmm1, xmm0
movups xmmword [ebp + ecx - 0x50], xmm1
movups xmm0, xmmword [ebp + ecx - 0x40]
movups xmm1, xmmword [ebp + ecx - 0x68]
pxor xmm1, xmm0
movups xmmword [ebp + ecx - 0x40], xmm1
movups xmm0, xmmword [ebp + ecx - 0x30]
movups xmm1, xmmword [ebp + ecx - 0x58]
pxor xmm1, xmm0
movups xmmword [ebp + ecx - 0x30], xmm1
movups xmm0, xmmword [ebp + ecx - 0x20]
movups xmm1, xmmword [ebp + ecx - 0x48]
pxor xmm1, xmm0
movups xmmword [ebp + ecx - 0x20], xmm1
add ecx, 0x40
cmp ecx, edx
jl 0x501140
cmp ecx, esi
jge 0x5011a4
mov al, byte [ebp + ecx - 0x78]
xor byte [ebp + ecx - 0x50], al
inc ecx
cmp ecx, esi
jl 0x501197
push dword [ebp - 0xc]
or byte [ebp - 0x50], 0x80
lea eax, [ebp - 0x50]
or byte [ebp + esi - 0x51], 1
push esi
push eax
call fcn.0049f0c0
add esp, 0xc
test eax, eax
je 0x501089
push dword [ebp + 0x2c]
push ebx
push dword [ebp + 0x10]
push 0x40
push dword [ebp - 0xc]
call fcn.005282d0
add esp, 0x14
test eax, eax
jg 0x5011e8
je 0x501050
jmp 0x501089
mov ebx, dword [ebp + 0x2c]
push 0
push 2
push ebx
call fcn.00527df0
add esp, 0xc
test eax, eax
je 0x501089
push 0
push 3
push ebx
call fcn.00527df0
add esp, 0xc
test eax, eax
je 0x501089
mov ecx, dword [ebp - 0x1c]
mov eax, 0xcccccccd
mov ebx, dword [ebp - 0x54]
xor edi, edi
mov dword [ebp - 0x24], edi
lea ecx, [ecx - 1]
mul ecx
mov eax, edx
shr eax, 7
mov dword [ebp - 0x2c], eax
test edi, edi
je 0x50124c
push edi
push 0
push dword [ebp + 0x2c]
call fcn.00527df0
add esp, 0xc
test eax, eax
je 0x501089
push dword [ebp - 0x20]
call fcn.0049fd80
xor edi, edi
add esp, 4
cmp dword [ebp - 0x2c], edi
jl 0x5012f5
lea eax, [esi - 1]
test eax, eax
js 0x50127f
nop dword [eax]
add byte [ebp + eax - 0x98], 1
jne 0x50127f
sub eax, 1
jns 0x501270
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x50]
push 0
push eax
lea eax, [ebp - 0x98]
push esi
push eax
call fcn.00460ce0
add esp, 0x18
test eax, eax
je 0x501089
push ebx
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.0049f0c0
add esp, 0xc
test eax, eax
je 0x501089
lea eax, [esi*8]
imul eax, edi
push eax
push ebx
push ebx
call fcn.004a0510
add esp, 0xc
test eax, eax
je 0x501089
mov eax, dword [ebp - 0x20]
push ebx
push eax
push eax
call fcn.004cef20
add esp, 0xc
test eax, eax
je 0x501089
inc edi
cmp edi, dword [ebp - 0x2c]
jle 0x501262
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
dec eax
push eax
push edi
call fcn.0049f8e0
add esp, 8
test eax, eax
je 0x501089
push edi
mov edi, dword [ebp - 0x58]
push edi
call fcn.0049f640
add esp, 8
test eax, eax
je 0x501089
push dword [ebp - 4]
push edi
push edi
call fcn.004cef20
add esp, 0xc
test eax, eax
je 0x501089
push dword [ebp - 0xc]
push ebx
call fcn.004a0640
add esp, 8
test eax, eax
je 0x501089
push dword [ebp + 0x10]
push ebx
push edi
push dword [ebp - 0x30]
push 0
call fcn.004f9d80
add esp, 0x14
test eax, eax
je 0x501089
call fcn.0049fd30
push eax
push dword [ebp - 0x30]
push ebx
call fcn.004cefb0
add esp, 0xc
test eax, eax
je 0x501089
push ebx
push edi
mov edi, dword [ebp - 8]
push edi
call fcn.004cefb0
add esp, 0xc
test eax, eax
je 0x501089
push dword [ebp - 4]
push edi
call fcn.0049f2b0
add esp, 8
test eax, eax
js 0x5013c6
mov edi, dword [ebp + 0x2c]
push edi
push 1
push dword [ebp + 0x10]
push 0x40
push dword [ebp - 8]
call fcn.005282d0
add esp, 0x14
test eax, eax
jg 0x5013e1
jne 0x501089
mov edi, dword [ebp - 0x24]
inc edi
mov dword [ebp - 0x24], edi
cmp edi, 0x1000
jl 0x501232
mov edi, dword [ebp + 0x14]
jmp 0x501050
push 1
push 2
push edi
call fcn.00527df0
add esp, 0xc
test eax, eax
je 0x501089
call fcn.0049fd30
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004cefb0
add esp, 0xc
test eax, eax
je 0x501089
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push dword [ebp - 4]
push 0
push ebx
call fcn.004f9d80
add esp, 0x14
test eax, eax
je 0x501089
push 2
push dword [ebp - 4]
call fcn.0049fc70
add esp, 8
test eax, eax
je 0x501089
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp - 0x14]
call fcn.004fa370
add esp, 0xc
test eax, eax
je 0x501089
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp - 8]
push ebx
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.004f88f0
add esp, 0x18
test eax, eax
je 0x501089
nop dword [eax]
push dword [ebp - 0x10]
call fcn.0049f860
add esp, 4
test eax, eax
je 0x5014ce
call fcn.0049fd30
push eax
mov eax, dword [ebp - 4]
push eax
push eax
call fcn.004cef20
add esp, 0xc
test eax, eax
je 0x501089
push dword [ebp - 0x14]
inc dword [ebp - 0x28]
push dword [ebp + 0x10]
push dword [ebp - 8]
push ebx
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.004f88f0
add esp, 0x18
test eax, eax
jne 0x501480
jmp 0x501089
push 1
push 3
push edi
call fcn.00527df0
add esp, 0xc
test eax, eax
je 0x501089
mov ebx, 1
nop dword [eax + eax]
mov edi, dword [ebp + 8]
push dword [edi + 8]
call fcn.0049f760
push dword [edi + 0xc]
call fcn.0049f760
push dword [edi + 0x10]
call fcn.0049f760
push dword [ebp - 8]
call fcn.0049f6a0
push dword [ebp - 0xc]
mov dword [edi + 8], eax
call fcn.0049f6a0
push dword [ebp - 0x10]
mov dword [edi + 0xc], eax
call fcn.0049f6a0
add esp, 0x18
mov dword [edi + 0x10], eax
cmp dword [edi + 8], 0
je 0x501089
cmp dword [edi + 0xc], 0
je 0x501089
test eax, eax
je 0x501089
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x501557
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x501563
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x50108b
push esi
lea ecx, [ebp - 0xb8]
push ecx
push eax
call fcn.0053dc00
add esp, 0xc
push dword [ebp + 0x10]
call fcn.004c86f0
mov eax, dword [ebp + 0x10]
add esp, 4
jmp 0x501591
xor eax, eax
push eax
call fcn.004c8760
push dword [ebp - 0x14]
call fcn.004fa2a0
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret