Function at 0x653220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xe0
call fcn.006d13f0
mov eax, dword [0x7c0ab4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x28]
shr esi, 3
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0x94], eax
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0xbc], 2
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x98], edi
cmp esi, 0x14
je 0x6532b6
cmp esi, 0x1c
je 0x6532b6
cmp esi, 0x20
jne 0x653334
test edi, edi
jne 0x6532f1
cmp esi, 0x14
jne 0x6532ce
call fcn.0060f500
mov edi, eax
mov dword [ebp - 0x98], edi
jmp 0x6532fc
cmp esi, 0x1c
jne 0x6532e2
call fcn.0060f510
mov edi, eax
mov dword [ebp - 0x98], edi
jmp 0x6532fc
call fcn.0060f520
mov edi, eax
mov dword [ebp - 0x98], edi
jmp 0x6532fc
push edi
call fcn.005da290
add esp, 4
mov esi, eax
mov eax, 0x200
cmp dword [ebp + 0xc], eax
cmovae eax, dword [ebp + 0xc]
add eax, 0x3f
and eax, 0xffffffc0
mov dword [ebp - 0xb0], eax
test ebx, ebx
je 0x65335b
mov eax, dword [ebp + 0x1c]
cmp eax, esi
jae 0x653347
push 0x55
push 0x74d828
push 0x6e
push 0x7d
push 0xa
call fcn.005e34c0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0856
mov esp, ebp
pop ebp
ret
cmova eax, esi
push eax
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.006d2cf0
add esp, 0xc
call fcn.00632bc0
mov dword [ebp - 0xa4], eax
test eax, eax
je 0x653a06
call fcn.005f7300
mov ebx, eax
mov dword [ebp - 0x88], ebx
test ebx, ebx
je 0x653a06
push ebx
call fcn.005f73f0
push ebx
call fcn.005f7190
push ebx
mov dword [ebp - 0xcc], eax
call fcn.005f7190
push ebx
mov dword [ebp - 0xa0], eax
call fcn.005f7190
push ebx
mov dword [ebp - 0xb4], eax
call fcn.005f7190
push ebx
mov dword [ebp - 0x9c], eax
call fcn.005f7190
push ebx
mov dword [ebp - 0xd0], eax
call fcn.005f7190
push ebx
mov dword [ebp - 0xc8], eax
call fcn.005f7190
push ebx
mov dword [ebp - 0x90], eax
call fcn.005f7190
mov ebx, eax
add esp, 0x24
mov dword [ebp - 0x8c], ebx
test ebx, ebx
je 0x653a06
mov eax, dword [ebp - 0xb0]
dec eax
push eax
call fcn.005f6c60
push eax
push ebx
call fcn.00624110
add esp, 0xc
test eax, eax
je 0x653a06
nop word [eax + eax]
push dword [ebp - 0xa8]
xor ebx, ebx
cmp dword [ebp - 0xac], ebx
push 0
push dword [ebp - 0x94]
sete bl
call fcn.006362b0
inc dword [ebp - 0xa8]
add esp, 0xc
test eax, eax
je 0x653a06
cmp dword [ebp - 0xac], 0
jne 0x653472
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.005db960
add esp, 8
test eax, eax
jle 0x653a06
jmp 0x65347c
mov dword [ebp - 0xac], 0
push esi
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.006d2cf0
push esi
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.006d2cf0
lea eax, [esi - 1]
add esp, 0x18
test eax, eax
js 0x6534b4
add byte [ebp + eax - 0x64], 1
jne 0x6534b4
sub eax, 1
jns 0x6534a8
push 0
push edi
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.00618df0
add esp, 0x18
test eax, eax
je 0x653a06
push 0
push edi
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.00618df0
add esp, 0x18
test eax, eax
je 0x653a06
xor ecx, ecx
test esi, esi
jle 0x653574
cmp esi, 0x40
jb 0x653563
mov eax, esi
and eax, 0x8000003f
jns 0x65350c
dec eax
or eax, 0xffffffc0
inc eax
mov edx, esi
sub edx, eax
movups xmm0, xmmword [ebp + ecx - 0x24]
movups xmm1, xmmword [ebp + ecx - 0x44]
pxor xmm1, xmm0
movups xmmword [ebp + ecx - 0x24], xmm1
movups xmm0, xmmword [ebp + ecx - 0x14]
movups xmm1, xmmword [ebp + ecx - 0x34]
pxor xmm1, xmm0
movups xmmword [ebp + ecx - 0x14], xmm1
movups xmm0, xmmword [ebp + ecx - 4]
movups xmm1, xmmword [ebp + ecx - 0x24]
pxor xmm1, xmm0
movups xmmword [ebp + ecx - 4], xmm1
movups xmm0, xmmword [ebp + ecx + 0xc]
movups xmm1, xmmword [ebp + ecx - 0x14]
pxor xmm1, xmm0
movups xmmword [ebp + ecx + 0xc], xmm1
add ecx, 0x40
cmp ecx, edx
jl 0x653510
cmp ecx, esi
jge 0x653574
mov al, byte [ebp + ecx - 0x44]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, esi
jl 0x653567
push dword [ebp - 0x9c]
or byte [ebp - 0x24], 0x80
lea eax, [ebp - 0x24]
or byte [ebp + esi - 0x25], 1
push esi
push eax
call fcn.005f60e0
add esp, 0xc
test eax, eax
je 0x653a06
push dword [ebp - 0x94]
push ebx
push dword [ebp - 0x88]
push 0x40
push dword [ebp - 0x9c]
call fcn.006367d0
add esp, 0x14
test eax, eax
jg 0x6535c4
je 0x653420
jmp 0x653a06
mov ebx, dword [ebp - 0x94]
push 0
push 2
push ebx
call fcn.006362b0
add esp, 0xc
test eax, eax
je 0x653a06
push 0
push 3
push ebx
call fcn.006362b0
add esp, 0xc
test eax, eax
je 0x653a06
mov ecx, dword [ebp - 0xb0]
mov eax, 0xcccccccd
mov ebx, dword [ebp - 0xcc]
xor edi, edi
mov dword [ebp - 0xb8], edi
lea ecx, [ecx - 1]
mul ecx
mov eax, edx
shr eax, 7
mov dword [ebp - 0xc4], eax
nop dword [eax]
test edi, edi
je 0x65363d
push edi
push 0
push dword [ebp - 0x94]
call fcn.006362b0
add esp, 0xc
test eax, eax
je 0x653a06
push 0
push dword [ebp - 0xb4]
call fcn.005f6ba0
xor edi, edi
add esp, 8
cmp dword [ebp - 0xc4], edi
jl 0x6536ef
nop dword [eax + eax]
lea eax, [esi - 1]
test eax, eax
js 0x653673
add byte [ebp + eax - 0x64], 1
jne 0x653673
sub eax, 1
jns 0x653667
push 0
push dword [ebp - 0x98]
lea eax, [ebp - 0x24]
push 0
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.00618df0
add esp, 0x18
test eax, eax
je 0x653a06
push ebx
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.005f60e0
add esp, 0xc
test eax, eax
je 0x653a06
lea eax, [esi*8]
imul eax, edi
push eax
push ebx
push ebx
call fcn.00624110
add esp, 0xc
test eax, eax
je 0x653a06
mov eax, dword [ebp - 0xb4]
push ebx
push eax
push eax
call fcn.005f74e0
add esp, 0xc
test eax, eax
je 0x653a06
inc edi
cmp edi, dword [ebp - 0xc4]
jle 0x653660
mov eax, dword [ebp - 0xb0]
mov edi, dword [ebp - 0xb4]
dec eax
push eax
push edi
call fcn.005f6800
add esp, 8
test eax, eax
je 0x653a06
push edi
mov edi, dword [ebp - 0xd0]
push edi
call fcn.005f6550
add esp, 8
test eax, eax
je 0x653a06
push dword [ebp - 0x8c]
push edi
push edi
call fcn.005f74e0
add esp, 0xc
test eax, eax
je 0x653a06
push dword [ebp - 0x9c]
push ebx
call fcn.00624270
add esp, 8
test eax, eax
je 0x653a06
push dword [ebp - 0x88]
push ebx
push edi
push dword [ebp - 0xc8]
push 0
call fcn.00633560
add esp, 0x14
test eax, eax
je 0x653a06
call fcn.005f6c60
push eax
push dword [ebp - 0xc8]
push ebx
call fcn.005f7570
add esp, 0xc
test eax, eax
je 0x653a06
push ebx
push edi
mov edi, dword [ebp - 0x90]
push edi
call fcn.005f7570
add esp, 0xc
test eax, eax
je 0x653a06
push dword [ebp - 0x8c]
push edi
call fcn.005f6360
add esp, 8
test eax, eax
js 0x6537e7
mov edi, dword [ebp - 0x94]
push edi
push 1
push dword [ebp - 0x88]
push 0x40
push dword [ebp - 0x90]
call fcn.006367d0
add esp, 0x14
test eax, eax
jg 0x65380b
jne 0x653a06
mov edi, dword [ebp - 0xb8]
inc edi
mov dword [ebp - 0xb8], edi
cmp edi, 0x1000
jl 0x653620
mov edi, dword [ebp - 0x98]
jmp 0x653420
push 1
push 2
push edi
call fcn.006362b0
add esp, 0xc
test eax, eax
je 0x653a06
call fcn.005f6c60
push eax
push dword [ebp - 0x90]
push dword [ebp - 0x8c]
call fcn.005f7570
add esp, 0xc
test eax, eax
je 0x653a06
push dword [ebp - 0x88]
push dword [ebp - 0x9c]
push dword [ebp - 0x8c]
push 0
push ebx
call fcn.00633560
add esp, 0x14
test eax, eax
je 0x653a06
push 2
push dword [ebp - 0x8c]
call fcn.005f6ba0
add esp, 8
test eax, eax
je 0x653a06
push dword [ebp - 0x88]
push dword [ebp - 0x90]
push dword [ebp - 0xa4]
call fcn.00632c40
add esp, 0xc
test eax, eax
je 0x653a06
push dword [ebp - 0xa4]
push dword [ebp - 0x88]
push dword [ebp - 0x90]
push ebx
push dword [ebp - 0x8c]
push dword [ebp - 0xa0]
call fcn.006341d0
add esp, 0x18
test eax, eax
je 0x653a06
push dword [ebp - 0xa0]
call fcn.005f6780
add esp, 4
test eax, eax
je 0x653936
call fcn.005f6c60
push eax
mov eax, dword [ebp - 0x8c]
push eax
push eax
call fcn.005f74e0
add esp, 0xc
test eax, eax
je 0x653a06
push dword [ebp - 0xa4]
inc dword [ebp - 0xbc]
push dword [ebp - 0x88]
push dword [ebp - 0x90]
push ebx
push dword [ebp - 0x8c]
push dword [ebp - 0xa0]
call fcn.006341d0
add esp, 0x18
test eax, eax
jne 0x6538d0
jmp 0x653a06
push 1
push 3
push edi
call fcn.006362b0
add esp, 0xc
test eax, eax
je 0x653a06
mov dword [ebp - 0xc0], 1
nop word [eax + eax]
mov ebx, dword [ebp - 0xd4]
push dword [ebx + 8]
call fcn.005f6670
push dword [ebx + 0xc]
call fcn.005f6670
push dword [ebx + 0x10]
call fcn.005f6670
push dword [ebp - 0x90]
call fcn.005f65b0
push dword [ebp - 0x9c]
mov dword [ebx + 8], eax
call fcn.005f65b0
push dword [ebp - 0xa0]
mov dword [ebx + 0xc], eax
call fcn.005f65b0
add esp, 0x18
mov dword [ebx + 0x10], eax
cmp dword [ebx + 8], 0
je 0x6539fc
cmp dword [ebx + 0xc], 0
je 0x6539fc
test eax, eax
je 0x6539fc
mov ecx, dword [ebp - 0xd8]
test ecx, ecx
je 0x6539cd
mov eax, dword [ebp - 0xb8]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xdc]
test ecx, ecx
je 0x6539df
mov eax, dword [ebp - 0xbc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x653a06
push esi
lea ecx, [ebp - 0x84]
push ecx
push eax
call fcn.006d2cf0
add esp, 0xc
jmp 0x653a06
mov dword [ebp - 0xc0], 0
mov esi, dword [ebp - 0x88]
push esi
call fcn.005f7090
push esi
call fcn.005f7100
push dword [ebp - 0xa4]
call fcn.00632b70
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp - 0xc0]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.006d0856
mov esp, ebp
pop ebp
ret