Function at 0x53e060
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0xc]
mov eax, 0x8b
mov ebx, dword [ecx + 0x14]
lea edx, [ebx - 8]
cmp edx, 8
jbe 0x53e090
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
test bl, 7
jne 0x53e07e
mov esi, dword [esp + 0x80]
cmp dword [esp + 0x78], esi
mov eax, 0xc8
jb 0x53e07e
mov eax, dword [esp + 0x70]
mov edx, dword [eax + 0x70]
cmp esi, edx
jbe 0x53e3df
mov eax, dword [ecx + 0x24]
test edx, edx
mov dword [esp + 0x34], eax
jne 0x53e180
lea eax, [ebx + ebx]
cmp dword [esp + 0x80], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], eax
jb 0x53e13a
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x53e473
mov eax, dword [esp + 0x80]
xor edx, edx
div ebx
mov esi, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x70]
add eax, 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
add eax, 0x200
mov dword [esp], eax
call ecx
mov eax, esi
imul eax, ebx
add dword [esp + 0x74], eax
add dword [esp + 0x7c], eax
sub dword [esp + 0x80], eax
cmp dword [esp + 0x80], ebx
jae 0x53e31f
mov ecx, dword [esp + 0x80]
test ecx, ecx
jne 0x53e239
mov edx, dword [esp + 0x2c]
xor eax, eax
test edx, edx
je 0x53e07e
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
add edx, 0x10
mov dword [esp], edx
call dbg.__gcry_burn_stack
mov eax, dword [esp + 0x30]
jmp 0x53e07e
mov esi, dword [esp + 0x70]
mov eax, ebx
sub dword [esp + 0x80], edx
sub eax, edx
cmp edx, 3
lea eax, [esi + eax + 0x40]
jbe 0x53e580
lea ebp, [edx - 4]
mov dword [esp + 0x2c], ebx
xor edx, edx
mov ebx, dword [esp + 0x74]
mov edi, ebp
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x7c]
shr edi, 2
lea esi, [edi*4 + 4]
lea esi, [esi]
mov ecx, dword [ebp + edx]
xor ecx, dword [eax + edx]
mov dword [eax + edx], ecx
mov dword [ebx + edx], ecx
add edx, 4
cmp edx, esi
jne 0x53e1c0
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x74]
add eax, edx
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x2c]
add ecx, edx
add esi, edx
lea edx, [edi*4]
sub ebp, edx
mov edx, ebp
test edx, edx
lea edi, [ecx + edx]
je 0x53e21a
lea esi, [esi]
add ecx, 1
add eax, 1
movzx edx, byte [ecx - 1]
xor dl, byte [eax - 1]
add esi, 1
cmp ecx, edi
mov byte [eax - 1], dl
mov byte [esi - 1], dl
jne 0x53e200
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x70]
add dword [esp + 0x74], eax
add dword [esp + 0x7c], eax
mov eax, dword [esp + 0x70]
mov dword [eax + 0x70], 0
jmp 0x53e0c5
mov eax, dword [esp + 0x70]
mov dword [esp + 8], ebx
lea esi, [eax + 0x40]
add eax, 0x60
mov dword [esp], eax
mov dword [esp + 4], esi
call sym._memcpy
mov eax, dword [esp + 0x70]
mov dword [esp + 8], esi
mov dword [esp + 4], esi
add eax, 0x200
mov dword [esp], eax
mov eax, dword [esp + 0x34]
call eax
mov edi, dword [esp + 0x2c]
cmp edi, eax
cmovae eax, edi
sub ebx, dword [esp + 0x80]
cmp dword [esp + 0x80], 3
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x70]
mov dword [eax + 0x70], ebx
jbe 0x53e577
mov eax, dword [esp + 0x80]
mov ebx, dword [esp + 0x74]
mov ecx, esi
mov ebp, dword [esp + 0x7c]
sub eax, 4
shr eax, 2
lea edi, [eax*4 + 4]
mov eax, dword [esp + 0x7c]
add eax, edi
lea esi, [esi]
add ecx, 4
add ebp, 4
mov edx, dword [ebp - 4]
xor edx, dword [ecx - 4]
add ebx, 4
cmp ebp, eax
mov dword [ecx - 4], edx
mov dword [ebx - 4], edx
jne 0x53e2c0
add dword [esp + 0x74], edi
add esi, edi
and dword [esp + 0x80], 3
je 0x53e156
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x74]
add ecx, eax
lea esi, [esi]
add eax, 1
add esi, 1
movzx edx, byte [eax - 1]
xor dl, byte [esi - 1]
add ebx, 1
cmp eax, ecx
mov byte [esi - 1], dl
mov byte [ebx - 1], dl
jne 0x53e300
jmp 0x53e156
mov eax, dword [esp + 0x70]
mov dword [esp + 8], ebx
lea esi, [eax + 0x40]
add eax, 0x60
mov dword [esp], eax
mov dword [esp + 4], esi
call sym._memcpy
mov eax, dword [esp + 0x70]
mov dword [esp + 8], esi
mov dword [esp + 4], esi
add eax, 0x200
mov dword [esp], eax
mov eax, dword [esp + 0x34]
call eax
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x7c]
cmp edi, eax
cmovae eax, edi
mov edi, dword [esp + 0x74]
mov dword [esp + 0x2c], eax
lea eax, [ebx - 4]
shr eax, 2
lea ebp, [eax*4 + 4]
lea eax, [esi + ebp]
nop
lea esi, [esi]
add esi, 4
add ecx, 4
mov edx, dword [ecx - 4]
xor edx, dword [esi - 4]
add edi, 4
cmp esi, eax
mov dword [esi - 4], edx
mov dword [edi - 4], edx
jne 0x53e380
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x74]
mov edx, ebx
and edx, 3
add ecx, ebp
add esi, ebp
test edx, edx
lea edi, [ecx + edx]
je 0x53e3cb
add ecx, 1
add eax, 1
movzx edx, byte [ecx - 1]
xor dl, byte [eax - 1]
add esi, 1
cmp ecx, edi
mov byte [eax - 1], dl
mov byte [esi - 1], dl
jne 0x53e3b1
add dword [esp + 0x74], ebx
add dword [esp + 0x7c], ebx
sub dword [esp + 0x80], ebx
jmp 0x53e147
sub ebx, edx
cmp esi, 3
lea ecx, [eax + ebx + 0x40]
jbe 0x53e58d
mov eax, esi
mov ebp, dword [esp + 0x7c]
mov esi, dword [esp + 0x74]
sub eax, 4
mov ebx, ecx
shr eax, 2
lea edi, [eax*4 + 4]
mov eax, dword [esp + 0x7c]
add eax, edi
lea esi, [esi]
add ebx, 4
add ebp, 4
mov edx, dword [ebp - 4]
xor edx, dword [ebx - 4]
add esi, 4
cmp ebp, eax
mov dword [ebx - 4], edx
mov dword [esi - 4], edx
jne 0x53e410
mov edx, dword [esp + 0x80]
add dword [esp + 0x74], edi
add ecx, edi
and edx, 3
test edx, edx
lea ebx, [eax + edx]
mov esi, dword [esp + 0x74]
je 0x53e45e
add eax, 1
add ecx, 1
movzx edx, byte [eax - 1]
xor dl, byte [ecx - 1]
add esi, 1
cmp eax, ebx
mov byte [ecx - 1], dl
mov byte [esi - 1], dl
jne 0x53e444
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x80]
sub dword [eax + 0x70], esi
xor eax, eax
jmp 0x53e07e
mov eax, dword [esp + 0x70]
sub dword [esp + 0x80], ebx
mov dword [esp + 0x3c], ebx
lea esi, [eax + 0x40]
add eax, 0x200
mov dword [esp + 0x44], eax
lea eax, [ebx - 4]
mov dword [esp + 0x4c], esi
shr eax, 2
lea eax, [eax*4 + 4]
mov dword [esp + 0x30], eax
add eax, esi
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x40], eax
mov eax, ebx
mov ebx, dword [esp + 0x74]
and eax, 3
mov dword [esp + 0x48], eax
lea esi, [esi]
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
mov dword [esp + 8], ebp
mov dword [esp + 4], ebp
mov dword [esp], eax
mov eax, dword [esp + 0x34]
call eax
mov edi, dword [esp + 0x2c]
mov ecx, ebp
mov edx, ebx
mov ebp, esi
cmp edi, eax
cmovae eax, edi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
lea edi, [ebx + eax]
add ecx, 4
add ebp, 4
mov eax, dword [ebp - 4]
xor eax, dword [ecx - 4]
add edx, 4
cmp edx, edi
mov dword [ecx - 4], eax
mov dword [edx - 4], eax
jne 0x53e4f3
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
lea edx, [esi + eax]
mov eax, dword [esp + 0x48]
test eax, eax
lea ebp, [edx + eax]
je 0x53e53c
add edx, 1
add ecx, 1
movzx eax, byte [edx - 1]
xor al, byte [ecx - 1]
add edi, 1
cmp edx, ebp
mov byte [ecx - 1], al
mov byte [edi - 1], al
jne 0x53e522
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x80]
add ebx, edi
add esi, edi
sub eax, edi
mov edi, dword [esp + 0x38]
cmp edi, dword [esp + 0x80]
ja 0x53e566
mov dword [esp + 0x80], eax
jmp 0x53e4c0
mov dword [esp + 0x74], ebx
mov dword [esp + 0x7c], esi
mov ebx, dword [esp + 0x3c]
jmp 0x53e13a
mov eax, dword [esp + 0x7c]
jmp 0x53e2ed
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x74]
jmp 0x53e1f5
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
jmp 0x53e439