Function at 0x53f3c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x7c]
mov edx, dword [ebx + 0xc]
mov eax, dword [edx + 0x14]
lea ecx, [eax - 8]
mov dword [esp + 0x28], eax
mov eax, 0x8b
cmp ecx, 8
jbe 0x53f3f0
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [esp + 0x28], 7
jne 0x53f3e6
mov edi, dword [esp + 0x80]
cmp dword [esp + 0x78], edi
mov eax, 0xc8
jb 0x53f3e6
mov eax, dword [edx + 0x24]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x53f4cd
cmp dword [esp + 0x28], eax
jbe 0x53f6ef
cmp dword [esp + 0x80], eax
mov edi, eax
mov esi, dword [esp + 0x28]
cmovbe edi, dword [esp + 0x80]
sub esi, eax
lea esi, [ebx + esi + 0x60]
cmp edi, 3
mov dword [esp + 0x2c], edi
jbe 0x53f713
lea eax, [edi - 4]
mov edi, dword [esp + 0x74]
mov edx, esi
mov ecx, ebp
mov dword [esp + 0x38], esi
shr eax, 2
lea eax, [eax*4 + 4]
mov dword [esp + 0x30], eax
add edi, eax
mov eax, dword [esp + 0x74]
add ecx, 4
add edx, 4
mov esi, dword [ecx - 4]
xor esi, dword [edx - 4]
add eax, 4
cmp eax, edi
mov dword [eax - 4], esi
jne 0x53f470
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x38]
lea edx, [ebp + eax]
add esi, eax
mov eax, dword [esp + 0x2c]
and eax, 3
test eax, eax
lea ecx, [edi + eax]
je 0x53f4b9
add edx, 1
add esi, 1
movzx eax, byte [edx - 1]
xor al, byte [esi - 1]
add edi, 1
cmp edi, ecx
mov byte [edi - 1], al
jne 0x53f4a2
mov eax, dword [esp + 0x2c]
sub dword [ebx + 0x70], eax
add dword [esp + 0x74], eax
sub dword [esp + 0x80], eax
add ebp, eax
xor edx, edx
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x28]
div edi
test eax, eax
mov esi, eax
je 0x53f51b
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x53f51b
lea edx, [ebx + 0x50]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 4], edx
lea edx, [ebx + 0x200]
imul esi, edi
mov dword [esp + 8], ecx
mov dword [esp], edx
call eax
add dword [esp + 0x74], esi
sub dword [esp + 0x80], esi
add ebp, esi
mov eax, dword [esp + 0x80]
test eax, eax
je 0x53f674
lea eax, [ebx + 0x50]
lea edi, [esp + 0x40]
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], eax
lea eax, [ebx + 0x200]
mov dword [esp + 0x38], eax
mov esi, esi
lea edi, [edi]
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
call eax
mov esi, dword [esp + 0x30]
cmp esi, eax
cmovae eax, esi
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
jmp 0x53f584
test dl, dl
jne 0x53f597
sub eax, 1
movzx esi, byte [ebx + eax + 0x50]
test eax, eax
lea edx, [esi + 1]
mov byte [ebx + eax + 0x50], dl
jg 0x53f580
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x80], eax
cmovbe eax, dword [esp + 0x80]
cmp eax, 3
mov dword [esp + 0x2c], eax
jbe 0x53f67b
sub eax, 4
mov esi, dword [esp + 0x74]
xor edx, edx
shr eax, 2
lea eax, [eax*4 + 4]
lea esi, [esi]
mov ecx, dword [ebp + edx]
xor ecx, dword [edi + edx]
mov dword [esi + edx], ecx
add edx, 4
cmp eax, edx
jne 0x53f5d0
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x2c]
lea esi, [ebp + eax]
add edx, eax
add eax, edi
and ecx, 3
je 0x53f61b
add ecx, edx
mov dword [esp + 0x70], ebx
mov ebx, ecx
nop
add esi, 1
add eax, 1
movzx ecx, byte [esi - 1]
xor cl, byte [eax - 1]
add edx, 1
cmp ebx, edx
mov byte [edx - 1], cl
jne 0x53f600
mov ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x2c]
add dword [esp + 0x74], eax
add ebp, eax
sub dword [esp + 0x80], eax
jne 0x53f550
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x2c]
test eax, eax
mov dword [ebx + 0x70], eax
jne 0x53f68c
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
test eax, eax
je 0x53f674
add eax, 0x10
mov dword [esp], eax
call dbg.__gcry_burn_stack
xor eax, eax
jmp 0x53f3e6
mov esi, ebp
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x2c]
mov eax, edi
jmp 0x53f5f6
mov esi, dword [esp + 0x2c]
add edi, esi
cmp eax, 4
lea edx, [ebx + esi + 0x60]
jae 0x53f6b4
test eax, eax
je 0x53f641
movzx ecx, byte [edi]
test al, 2
mov byte [edx], cl
je 0x53f641
movzx ecx, word [edi + eax - 2]
mov word [edx + eax - 2], cx
jmp 0x53f641
mov ecx, dword [edi]
mov dword [edx], ecx
mov ecx, dword [eax + edi - 4]
mov dword [edx + eax - 4], ecx
lea ecx, [edx + 4]
and ecx, 0xfffffffc
sub edx, ecx
add eax, edx
sub edi, edx
and eax, 0xfffffffc
cmp eax, 4
jb 0x53f641
and eax, 0xfffffffc
xor edx, edx
mov ebx, dword [edi + edx]
mov dword [ecx + edx], ebx
add edx, 4
cmp edx, eax
jb 0x53f6dd
jmp 0x53f641
mov dword [esp + 0xc], str._gcry_cipher_ctr_encrypt
mov dword [esp + 8], 0x3a
mov dword [esp + 4], str.cipher_ctr.c
mov dword [esp], str.c__unused___blocksize
call dbg._gcry_assert_failed
mov edx, ebp
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x2c]
jmp 0x53f49b