Function at 0x5026f0
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 0x502724
cmp esi, 0x1c
je 0x502724
cmp esi, 0x20
je 0x502724
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x50275a
cmp esi, 0x14
jne 0x50273d
call fcn.00493f40
mov edi, eax
mov dword [ebp + 0x14], edi
jmp 0x502765
cmp esi, 0x1c
jne 0x50274e
call fcn.00493f50
mov edi, eax
mov dword [ebp + 0x14], edi
jmp 0x502765
call fcn.00493f60
mov edi, eax
mov dword [ebp + 0x14], edi
jmp 0x502765
push edi
call fcn.0044e5c0
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 0x5027ba
mov eax, dword [ebp + 0x1c]
cmp eax, esi
jae 0x5027a6
push 0x55
push 0x5c5bc8
push 0x6e
push 0x7d
push 0xa
call fcn.004575d0
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.0053f3e0
add esp, 0xc
call fcn.004fbaf0
mov dword [ebp - 0x14], eax
test eax, eax
je 0x502d8f
call fcn.004ca130
mov dword [ebp + 0x10], eax
test eax, eax
je 0x502d91
push eax
call fcn.004ca220
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.004c9fd0
push ebx
mov dword [ebp - 0x54], eax
call fcn.004c9fd0
push ebx
mov dword [ebp - 0x10], eax
call fcn.004c9fd0
push ebx
mov dword [ebp - 0x20], eax
call fcn.004c9fd0
push ebx
mov dword [ebp - 0xc], eax
call fcn.004c9fd0
push ebx
mov dword [ebp - 0x58], eax
call fcn.004c9fd0
push ebx
mov dword [ebp - 0x30], eax
call fcn.004c9fd0
push ebx
mov dword [ebp - 8], eax
call fcn.004c9fd0
mov ebx, eax
add esp, 0x24
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x502889
mov eax, dword [ebp - 0x1c]
dec eax
push eax
call fcn.004a1500
push eax
push ebx
call fcn.004a1ce0
add esp, 0xc
test eax, eax
je 0x502889
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.005295d0
inc dword [ebp - 0x18]
add esp, 0xc
test eax, eax
je 0x502889
cmp dword [ebp + 0x18], 0
jne 0x50289e
lea eax, [ebp - 0xb8]
push esi
push eax
call fcn.0044c960
add esp, 8
test eax, eax
jg 0x5028a5
xor ebx, ebx
push dword [ebp + 0x10]
call fcn.004c9ed0
mov eax, dword [ebp + 0x10]
add esp, 4
jmp 0x502d91
mov dword [ebp + 0x18], 0
push esi
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0053f3e0
push esi
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0053f3e0
lea eax, [esi - 1]
add esp, 0x18
test eax, eax
js 0x5028e3
add byte [ebp + eax - 0x98], 1
jne 0x5028e3
sub eax, 1
jns 0x5028d4
push 0
push edi
push 0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xb8]
push esi
push eax
call fcn.00462490
add esp, 0x18
test eax, eax
je 0x502889
push 0
push edi
push 0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x98]
push esi
push eax
call fcn.00462490
add esp, 0x18
test eax, eax
je 0x502889
xor ecx, ecx
test esi, esi
jle 0x5029a4
cmp esi, 0x40
jb 0x502993
mov eax, esi
and eax, 0x8000003f
jns 0x50293a
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 0x502940
cmp ecx, esi
jge 0x5029a4
mov al, byte [ebp + ecx - 0x78]
xor byte [ebp + ecx - 0x50], al
inc ecx
cmp ecx, esi
jl 0x502997
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.004a0890
add esp, 0xc
test eax, eax
je 0x502889
push dword [ebp + 0x2c]
push ebx
push dword [ebp + 0x10]
push 0x40
push dword [ebp - 0xc]
call fcn.00529ab0
add esp, 0x14
test eax, eax
jg 0x5029e8
je 0x502850
jmp 0x502889
mov ebx, dword [ebp + 0x2c]
push 0
push 2
push ebx
call fcn.005295d0
add esp, 0xc
test eax, eax
je 0x502889
push 0
push 3
push ebx
call fcn.005295d0
add esp, 0xc
test eax, eax
je 0x502889
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 0x502a4c
push edi
push 0
push dword [ebp + 0x2c]
call fcn.005295d0
add esp, 0xc
test eax, eax
je 0x502889
push dword [ebp - 0x20]
call fcn.004a1550
xor edi, edi
add esp, 4
cmp dword [ebp - 0x2c], edi
jl 0x502af5
lea eax, [esi - 1]
test eax, eax
js 0x502a7f
nop dword [eax]
add byte [ebp + eax - 0x98], 1
jne 0x502a7f
sub eax, 1
jns 0x502a70
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x50]
push 0
push eax
lea eax, [ebp - 0x98]
push esi
push eax
call fcn.00462490
add esp, 0x18
test eax, eax
je 0x502889
push ebx
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.004a0890
add esp, 0xc
test eax, eax
je 0x502889
lea eax, [esi*8]
imul eax, edi
push eax
push ebx
push ebx
call fcn.004a1ce0
add esp, 0xc
test eax, eax
je 0x502889
mov eax, dword [ebp - 0x20]
push ebx
push eax
push eax
call fcn.004d0710
add esp, 0xc
test eax, eax
je 0x502889
inc edi
cmp edi, dword [ebp - 0x2c]
jle 0x502a62
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
dec eax
push eax
push edi
call fcn.004a10b0
add esp, 8
test eax, eax
je 0x502889
push edi
mov edi, dword [ebp - 0x58]
push edi
call fcn.004a0e10
add esp, 8
test eax, eax
je 0x502889
push dword [ebp - 4]
push edi
push edi
call fcn.004d0710
add esp, 0xc
test eax, eax
je 0x502889
push dword [ebp - 0xc]
push ebx
call fcn.004a1e10
add esp, 8
test eax, eax
je 0x502889
push dword [ebp + 0x10]
push ebx
push edi
push dword [ebp - 0x30]
push 0
call fcn.004fb580
add esp, 0x14
test eax, eax
je 0x502889
call fcn.004a1500
push eax
push dword [ebp - 0x30]
push ebx
call fcn.004d07a0
add esp, 0xc
test eax, eax
je 0x502889
push ebx
push edi
mov edi, dword [ebp - 8]
push edi
call fcn.004d07a0
add esp, 0xc
test eax, eax
je 0x502889
push dword [ebp - 4]
push edi
call fcn.004a0a80
add esp, 8
test eax, eax
js 0x502bc6
mov edi, dword [ebp + 0x2c]
push edi
push 1
push dword [ebp + 0x10]
push 0x40
push dword [ebp - 8]
call fcn.00529ab0
add esp, 0x14
test eax, eax
jg 0x502be1
jne 0x502889
mov edi, dword [ebp - 0x24]
inc edi
mov dword [ebp - 0x24], edi
cmp edi, 0x1000
jl 0x502a32
mov edi, dword [ebp + 0x14]
jmp 0x502850
push 1
push 2
push edi
call fcn.005295d0
add esp, 0xc
test eax, eax
je 0x502889
call fcn.004a1500
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004d07a0
add esp, 0xc
test eax, eax
je 0x502889
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push dword [ebp - 4]
push 0
push ebx
call fcn.004fb580
add esp, 0x14
test eax, eax
je 0x502889
push 2
push dword [ebp - 4]
call fcn.004a1440
add esp, 8
test eax, eax
je 0x502889
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp - 0x14]
call fcn.004fbb70
add esp, 0xc
test eax, eax
je 0x502889
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp - 8]
push ebx
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.004fa0f0
add esp, 0x18
test eax, eax
je 0x502889
nop dword [eax]
push dword [ebp - 0x10]
call fcn.004a1030
add esp, 4
test eax, eax
je 0x502cce
call fcn.004a1500
push eax
mov eax, dword [ebp - 4]
push eax
push eax
call fcn.004d0710
add esp, 0xc
test eax, eax
je 0x502889
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.004fa0f0
add esp, 0x18
test eax, eax
jne 0x502c80
jmp 0x502889
push 1
push 3
push edi
call fcn.005295d0
add esp, 0xc
test eax, eax
je 0x502889
mov ebx, 1
nop dword [eax + eax]
mov edi, dword [ebp + 8]
push dword [edi + 8]
call fcn.004a0f30
push dword [edi + 0xc]
call fcn.004a0f30
push dword [edi + 0x10]
call fcn.004a0f30
push dword [ebp - 8]
call fcn.004a0e70
push dword [ebp - 0xc]
mov dword [edi + 8], eax
call fcn.004a0e70
push dword [ebp - 0x10]
mov dword [edi + 0xc], eax
call fcn.004a0e70
add esp, 0x18
mov dword [edi + 0x10], eax
cmp dword [edi + 8], 0
je 0x502889
cmp dword [edi + 0xc], 0
je 0x502889
test eax, eax
je 0x502889
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x502d57
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x502d63
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x50288b
push esi
lea ecx, [ebp - 0xb8]
push ecx
push eax
call fcn.0053f3e0
add esp, 0xc
push dword [ebp + 0x10]
call fcn.004c9ed0
mov eax, dword [ebp + 0x10]
add esp, 4
jmp 0x502d91
xor eax, eax
push eax
call fcn.004c9f40
push dword [ebp - 0x14]
call fcn.004fbaa0
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret