Function at 0x652acda0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x74
push ebx
mov ebx, dword [esp + 0x80]
mov ecx, ebx
push ebp
mov ebp, dword [0x652b33dc]
push esi
push edi
call ebp
cmp eax, 2
jl 0x652ad374
mov ecx, ebx
call dword [0x652b33d8]
cmp eax, 2
jl 0x652ad374
push ebx
lea ecx, [esp + 0x58]
call dword [0x652b3254]
mov esi, dword [0x652b3a6c]
mov ecx, ebx
call esi
cmp eax, 3
je 0x652ad273
mov ecx, ebx
call esi
cmp eax, 0x18
je 0x652ad273
mov ecx, ebx
call esi
cmp eax, 8
jne 0x652ad0b7
lea ecx, [esp + 0x54]
call esi
mov ecx, ebx
mov edi, eax
call dword [0x652b33d8]
cdq
mov ecx, ebx
sub eax, edx
mov esi, eax
sar esi, 1
call ebp
cdq
lea ecx, [esp + 0x64]
push edi
sub eax, edx
sar eax, 1
push esi
push eax
call dword [0x652b33e4]
mov ecx, ebx
call dword [0x652b3abc]
sub esp, 8
lea ecx, [esp + 0x6c]
fstp qword [esp]
call dword [0x652b36f8]
lea ecx, [esp + 0x54]
call dword [0x652b313c]
mov esi, dword [0x652b3138]
lea ecx, [esp + 0x54]
mov ebp, eax
mov dword [esp + 0x30], ebp
call esi
mov ebx, eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x48], ebx
lea eax, [ebx + ebx]
mov dword [esp + 0x50], eax
call dword [0x652b3140]
mov edi, eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x2c], edi
call esi
mov edx, dword [0x652b33dc]
lea ecx, [esp + 0x64]
mov dword [esp + 0x24], eax
call edx
mov esi, eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x4c], esi
call dword [0x652b33d8]
mov dword [esp + 0x28], eax
test eax, eax
je 0x652ad084
mov edx, dword [esp + 0x24]
lea ecx, [ebx + ebx]
mov dword [esp + 0x18], esi
test esi, esi
je 0x652ad06b
mov ecx, 3
lea eax, [ebp + 2]
sub ecx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], ecx
lea esi, [edi + 2]
mov ecx, 2
mov dword [esp + 0x1c], esi
sub ecx, ebx
lea edi, [ebp + 2]
or ebp, 0xffffffff
mov dword [esp + 0x38], ecx
mov eax, 1
add edi, ebx
sub eax, ebx
mov dword [esp + 0x20], edi
sub ebp, ebx
mov dword [esp + 0x3c], eax
mov ecx, 0xfffffffe
mov dword [esp + 0x40], ebp
sub ecx, ebx
mov dword [esp + 0x44], ecx
nop dword [eax]
mov cl, byte [ecx + edi]
mov al, byte [eax + edi]
mov ch, cl
mov dl, byte [edi - 2]
xor ch, al
and cl, al
mov byte [esp + 0x13], ch
mov byte [esp + 0x12], cl
mov dh, dl
xor dh, byte [edi + 1]
and dl, byte [edi + 1]
movzx ecx, ch
shr ecx, 1
movzx ebx, dh
shr ebx, 1
movzx eax, dl
add ebx, eax
shr dh, 1
movzx eax, byte [esp + 0x12]
add dh, dl
add ecx, eax
shr ebx, 1
mov al, byte [esp + 0x13]
shr ecx, 1
xor bl, cl
shr al, 1
add al, byte [esp + 0x12]
and bl, 0x7f
and dh, al
mov eax, dword [esp + 0x14]
add bl, dh
mov byte [esi - 2], bl
movzx ecx, byte [edi + ebp]
movzx eax, byte [eax]
shl ax, 8
or cx, ax
mov eax, dword [esp + 0x34]
movzx esi, cx
movzx ecx, byte [eax + edi]
mov eax, dword [esp + 0x38]
shl cx, 8
movzx eax, byte [eax + edi]
or cx, ax
movzx eax, byte [edi - 1]
movzx ebp, cx
movzx ecx, byte [edi]
shl cx, 8
or cx, ax
movzx eax, byte [edi + 2]
movzx edx, cx
movzx ecx, byte [edi + 3]
shl cx, 8
or cx, ax
movzx edi, cx
mov ebx, edi
and edi, edx
xor ebx, edx
mov edx, ebp
xor edx, esi
mov eax, ebx
mov ecx, edx
shr eax, 1
shr ecx, 1
and eax, 0x7bef
and ecx, 0x7bef
shr edx, 1
and ebp, esi
shr ebx, 1
add ecx, ebp
add eax, edi
shr ecx, 1
and edx, 0x7bef
shr eax, 1
and ebx, 0x7bef
xor ecx, eax
add edx, ebp
add ebx, edi
and ecx, 0x7bef
and edx, ebx
add ecx, edx
movzx eax, cx
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
add dword [esp + 0x14], 6
add edi, 6
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov byte [esi - 1], al
shr eax, 8
mov byte [esi], al
add esi, 3
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
test eax, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], edi
jne 0x652acf20
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x24]
dec eax
add edi, edx
add ebp, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebp
test eax, eax
jne 0x652acec1
mov ecx, dword [esp + 0x88]
lea eax, [esp + 0x64]
push eax
call dword [0x652b36fc]
mov esi, dword [0x652b3a70]
lea ecx, [esp + 0x64]
call esi
lea ecx, [esp + 0x54]
call esi
mov eax, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
mov ecx, ebx
call esi
cmp eax, 6
je 0x652ad0f3
mov ecx, ebx
call esi
cmp eax, 4
je 0x652ad0f3
push 0
push 6
lea eax, [esp + 0x6c]
mov ecx, ebx
push eax
call dword [0x652b33cc]
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x58]
call dword [0x652b344c]
lea ecx, [esp + 0x64]
call dword [0x652b3a70]
lea ecx, [esp + 0x54]
call esi
mov ecx, ebx
mov edi, eax
call dword [0x652b33d8]
cdq
mov ecx, ebx
sub eax, edx
mov esi, eax
sar esi, 1
call ebp
cdq
lea ecx, [esp + 0x74]
push edi
sub eax, edx
sar eax, 1
push esi
push eax
call dword [0x652b33e4]
mov ecx, ebx
call dword [0x652b3abc]
sub esp, 8
lea ecx, [esp + 0x7c]
fstp qword [esp]
call dword [0x652b36f8]
lea ecx, [esp + 0x54]
call dword [0x652b313c]
mov esi, dword [0x652b3138]
lea ecx, [esp + 0x54]
mov ebx, eax
mov dword [esp + 0x24], ebx
call esi
sar eax, 2
lea ecx, [esp + 0x74]
mov dword [esp + 0x14], eax
call dword [0x652b3140]
mov ebp, eax
lea ecx, [esp + 0x74]
mov dword [esp + 0x28], ebp
call esi
mov edx, dword [0x652b33dc]
lea ecx, [esp + 0x74]
mov edi, eax
sar edi, 2
call edx
mov esi, eax
lea ecx, [esp + 0x74]
mov dword [esp + 0x50], esi
call dword [0x652b33d8]
mov ecx, eax
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x652ad240
lea eax, [edi*4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
mov edi, ebx
mov ebx, ebp
mov ebp, esi
test esi, esi
je 0x652ad218
nop dword [eax]
mov edx, dword [edi + eax*4 + 4]
lea ebx, [ebx + 4]
mov eax, dword [edi + eax*4]
lea edi, [edi + 8]
mov ecx, dword [edi - 4]
mov esi, edx
xor esi, eax
and edx, eax
mov eax, dword [edi - 8]
xor eax, ecx
shr esi, 1
and ecx, dword [edi - 8]
and esi, 0x7f7f7f7f
shr eax, 1
add esi, edx
and eax, 0x7f7f7f7f
add ecx, eax
mov eax, ecx
and ecx, esi
xor eax, esi
shr eax, 1
and eax, 0x7f7f7f7f
add eax, ecx
mov dword [ebx - 4], eax
mov eax, dword [esp + 0x14]
sub ebp, 1
jne 0x652ad1c0
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
lea edi, [eax*8]
mov ebx, dword [esp + 0x24]
dec ecx
add ebp, edx
mov dword [esp + 0x2c], ecx
add ebx, edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebx
test ecx, ecx
jne 0x652ad1b3
mov ecx, dword [esp + 0x88]
lea eax, [esp + 0x74]
push eax
call dword [0x652b36fc]
mov edi, dword [0x652b3a70]
lea ecx, [esp + 0x74]
call edi
lea ecx, [esp + 0x54]
call edi
mov eax, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
lea ecx, [esp + 0x54]
call esi
mov ecx, ebx
mov edi, eax
call dword [0x652b33d8]
cdq
mov ecx, ebx
sub eax, edx
mov esi, eax
sar esi, 1
call ebp
cdq
lea ecx, [esp + 0x64]
push edi
sub eax, edx
sar eax, 1
push esi
push eax
call dword [0x652b33e4]
mov ecx, ebx
call dword [0x652b3abc]
sub esp, 8
lea ecx, [esp + 0x6c]
fstp qword [esp]
call dword [0x652b36f8]
lea ecx, [esp + 0x54]
call dword [0x652b313c]
mov esi, dword [0x652b3138]
lea ecx, [esp + 0x54]
mov dword [esp + 0x14], eax
call esi
lea ecx, [esp + 0x64]
mov ebx, eax
call dword [0x652b3140]
mov edi, eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x2c], edi
call esi
lea ecx, [esp + 0x64]
mov dword [esp + 0x50], eax
call ebp
lea ecx, [esp + 0x64]
mov dword [esp + 0x30], eax
call dword [0x652b33d8]
mov ebp, eax
test ebp, ebp
je 0x652ad084
mov eax, dword [esp + 0x14]
lea edx, [ebx + ebx]
mov ecx, dword [esp + 0x30]
mov esi, edi
mov edi, ecx
test ecx, ecx
je 0x652ad358
lea edx, [eax + 1]
movzx eax, byte [ebx + edx - 1]
lea esi, [esi + 1]
movzx ecx, byte [edx + ebx]
lea edx, [edx + 2]
add ecx, eax
movzx eax, byte [edx - 3]
add ecx, eax
movzx eax, byte [edx - 2]
add eax, 2
add eax, ecx
shr eax, 2
mov byte [esi - 1], al
sub edi, 1
jne 0x652ad322
mov eax, dword [esp + 0x14]
lea edx, [ebx + ebx]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
add eax, edx
add edi, dword [esp + 0x50]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x14], eax
sub ebp, 1
jne 0x652ad317
jmp 0x652ad084
mov ecx, dword [esp + 0x88]
call dword [0x652b3e38]
mov eax, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret