Function at 0x53ca70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0xc]
mov eax, 0x8b
mov ebx, dword [ecx + 0x14]
lea edx, [ebx - 8]
cmp edx, 8
jbe 0x53caa0
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, ebx
and edi, 7
mov dword [esp + 0x2c], edi
jne 0x53ca91
mov eax, dword [esp + 0x80]
mov edx, ebx
mov esi, dword [eax + 0x38]
mov eax, 0xc8
test esi, 8
cmove edx, dword [esp + 0x90]
cmp edx, dword [esp + 0x88]
ja 0x53ca91
mov eax, dword [esp + 0x90]
xor edx, edx
div ebx
test edx, edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x50], edx
je 0x53cc92
cmp ebx, dword [esp + 0x90]
mov eax, 0x8b
jae 0x53ca91
test esi, 4
je 0x53ca91
mov byte [esp + 0x5b], 0
mov byte [esp + 0x5a], 1
mov eax, dword [ecx + 0x24]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x53ccc8
mov edi, dword [esp + 0x80]
and esi, 8
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x8c]
lea ebp, [edi + 0x40]
add edi, 0x200
mov ecx, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x84]
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 0x10], edi
mov dword [esp + 8], esi
call eax
mov eax, dword [esp + 0x80]
mov edx, edi
mov ecx, dword [esp + 0x84]
imul edx, ebx
mov eax, dword [eax + 0x38]
add ecx, edx
test al, 8
cmovne ecx, dword [esp + 0x84]
test al, 4
mov dword [esp + 0x84], ecx
je 0x53cc8b
cmp byte [esp + 0x5a], 0
je 0x53cc8b
add dword [esp + 0x8c], edx
mov dword [esp + 0x34], 0
mov esi, dword [esp + 0x84]
sub esi, ebx
cmp byte [esp + 0x5b], 0
jne 0x53ce5d
mov edx, dword [esp + 0x54]
test edx, edx
je 0x53ce9b
mov edx, dword [esp + 0x50]
lea ecx, [esi + ebx]
xor eax, eax
mov dword [esp + 0x38], ebx
mov edi, edx
mov dword [esp + 0x2c], edx
lea esi, [esi]
mov ebx, dword [esp + 0x8c]
movzx edx, byte [ebx + eax]
movzx ebx, byte [esi + eax]
mov byte [ecx + eax], bl
xor dl, byte [ebp + eax]
mov byte [esi + eax], dl
add eax, 1
cmp eax, dword [esp + 0x2c]
jne 0x53cbf0
mov ebx, dword [esp + 0x38]
lea edx, [ebp + eax]
mov dword [esp + 0x2c], eax
cmp ebx, eax
jbe 0x53cc42
mov ecx, dword [esp + 0x2c]
mov eax, edi
sub edx, edi
mov edi, ebx
lea esi, [esi]
movzx ebx, byte [edx + eax]
add eax, 1
cmp edi, eax
mov byte [esi + ecx], bl
mov ecx, eax
ja 0x53cc30
mov ebx, edi
mov eax, dword [esp + 0x30]
mov dword [esp + 8], esi
mov dword [esp + 4], esi
mov dword [esp], eax
mov eax, dword [esp + 0x40]
call eax
mov edi, dword [esp + 0x34]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], ebp
cmp edi, eax
cmovae eax, edi
mov dword [esp + 0x34], eax
call sym._memcpy
mov eax, dword [esp + 0x34]
test eax, eax
je 0x53cc8b
mov eax, dword [esp + 0x34]
add eax, 0x10
mov dword [esp], eax
call dbg.__gcry_burn_stack
xor eax, eax
jmp 0x53ca91
cmp ebx, dword [esp + 0x90]
mov eax, esi
setb byte [esp + 0x5a]
movzx edx, byte [esp + 0x5a]
shr eax, 2
and al, dl
mov byte [esp + 0x5b], al
je 0x53ccbe
sub dword [esp + 0x3c], 1
mov byte [esp + 0x5a], al
jmp 0x53cb12
mov byte [esp + 0x5b], 1
jmp 0x53cb12
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x3c]
add eax, 0x40
test ecx, ecx
mov edi, eax
mov dword [esp + 0x5c], eax
je 0x53ce66
mov eax, dword [esp + 0x80]
mov esi, edi
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x44], ebx
add eax, 0x200
mov dword [esp + 0x48], eax
lea eax, [ebx - 4]
shr eax, 2
lea eax, [eax*4 + 4]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x8c]
mov edi, eax
mov eax, ebx
and eax, 3
mov dword [esp + 0x4c], eax
lea esi, [esi]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x84]
mov ebp, esi
mov edx, edi
add eax, edi
add edx, 4
add ebp, 4
mov ecx, dword [edx - 4]
xor ecx, dword [ebp - 4]
add ebx, 4
cmp eax, edx
mov dword [ebx - 4], ecx
jne 0x53cd41
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x84]
add esi, ebx
add edx, ebx
mov ebx, ecx
add ebx, edx
test ecx, ecx
je 0x53cd89
add eax, 1
add esi, 1
movzx ecx, byte [eax - 1]
xor cl, byte [esi - 1]
add edx, 1
cmp edx, ebx
mov byte [edx - 1], cl
jne 0x53cd72
mov eax, dword [esp + 0x84]
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
call eax
mov esi, dword [esp + 0x34]
cmp esi, eax
cmovae eax, esi
mov esi, dword [esp + 0x80]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x44]
mov ebp, dword [esi + 0x38]
mov esi, dword [esp + 0x84]
add edi, eax
add eax, dword [esp + 0x84]
test ebp, 8
cmovne eax, dword [esp + 0x84]
add dword [esp + 0x30], 1
mov ebx, dword [esp + 0x30]
cmp dword [esp + 0x3c], ebx
je 0x53cdf9
mov dword [esp + 0x84], eax
jmp 0x53cd30
mov edi, eax
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
imul eax, ebx
add dword [esp + 0x8c], eax
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x84], eax
je 0x53ce31
mov esi, dword [esp + 0x84]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], esi
call sym._memcpy
and ebp, 4
je 0x53cc74
cmp byte [esp + 0x5a], 0
je 0x53cc74
mov eax, dword [esp + 0x48]
mov ebp, dword [esp + 0x5c]
mov dword [esp + 0x84], edi
mov dword [esp + 0x30], eax
jmp 0x53cbba
mov dword [esp + 0x50], ebx
jmp 0x53cbda
and esi, 4
je 0x53cc8b
cmp byte [esp + 0x5a], 0
je 0x53cc8b
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x84]
mov dword [esp + 0x34], 0
add eax, 0x200
mov dword [esp + 0x48], eax
jmp 0x53ce45
mov edx, ebp
xor edi, edi
jmp 0x53cc22