Function at 0x41501d
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
mov ecx, dword [esi]
call fcn.004130b3
mov dword [esp + 0x2c], eax
mov ebx, dword [esi]
mov eax, dword [edi]
cmp eax, ebx
cmova ebx, eax
xor eax, eax
inc eax
test ebx, ebx
cmove ebx, eax
mov ecx, ebx
call fcn.004130b3
mov ecx, ebx
mov ebp, eax
call fcn.004130b3
mov dword [esp], eax
mov eax, dword [ebp]
mov esi, dword [edi]
mov ecx, edi
cmp eax, esi
cmovb esi, eax
lea edi, [esi*4]
push edi
push dword [ecx + 4]
push dword [ebp + 4]
call fcn.00472630
add esp, 0xc
mov eax, dword [ebp]
add edi, dword [ebp + 4]
mov dword [esp + 4], ebp
sub eax, esi
shl eax, 2
push eax
push edi
call fcn.00467c20
add esp, 8
mov ebp, dword [esp]
mov ecx, dword [esp + 0x48]
mov eax, dword [ebp]
mov esi, dword [ecx]
cmp eax, esi
cmovb esi, eax
lea edi, [esi*4]
push edi
push dword [ecx + 4]
push dword [ebp + 4]
call fcn.00472630
add esp, 0xc
mov eax, dword [ebp]
add edi, dword [ebp + 4]
sub eax, esi
shl eax, 2
push eax
push edi
call fcn.00467c20
add esp, 8
lea esi, [ebx + 1]
mov ecx, esi
call fcn.004130b3
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.004130b3
mov ecx, ebx
mov dword [esp + 0xc], eax
call fcn.004130b3
mov esi, ebx
shl ebx, 7
mov dword [esp + 0x24], eax
lea ecx, [ebx + 0x20]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 4]
shl esi, 6
dec ecx
shr ecx, 5
call fcn.004130b3
test esi, esi
mov edi, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
je 0x4151ce
xor eax, eax
mov dword [esp + 8], 0
inc eax
mov dword [esp + 0x10], eax
mov ebp, dword [esp]
push ebx
push ebp
call fcn.00413c0a
add esp, 8
mov esi, eax
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 4]
mov eax, dword [eax]
mov edi, dword [ecx]
xor esi, eax
and eax, 1
and edi, eax
and esi, edi
xor esi, eax
push esi
push ebp
push ebx
call fcn.0041324b
add esp, 0xc
mov eax, edi
mov ebp, ebx
neg eax
mov edx, dword [ebp]
mov ecx, dword [ebp + 4]
mov ebx, eax
and ebx, 1
push ebx
mov ebx, ebp
push eax
push eax
push dword [esp + 0xc]
push ebp
call fcn.00413aff
add esp, 0x14
xor eax, eax
inc eax
push eax
push ebx
push ebx
call fcn.004136d6
add esp, 0xc
mov ebp, dword [esp + 0x10]
lea eax, [ebp - 1]
push edi
mov edi, dword [esp + 0x24]
push eax
push edi
call fcn.004135b1
add esp, 0xc
push esi
push ebp
push edi
call fcn.004135b1
add esp, 0xc
mov eax, dword [esp + 8]
add ebp, 2
mov dword [esp + 0x10], ebp
inc eax
cmp eax, dword [esp + 0x18]
mov dword [esp + 8], eax
jb 0x415133
mov ecx, ebx
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp]
mov esi, dword [ecx]
mov eax, dword [ebx]
cmp eax, esi
cmovb esi, eax
lea edi, [esi*4]
push edi
push dword [ecx + 4]
push dword [ebx + 4]
call fcn.00472630
add esp, 0xc
mov eax, dword [ebx]
add edi, dword [ebx + 4]
sub eax, esi
shl eax, 2
push eax
push edi
call fcn.00467c20
add esp, 8
mov ebx, dword [esp + 0xc]
mov esi, dword [ebp]
mov eax, dword [ebx]
cmp eax, esi
cmovb esi, eax
lea edi, [esi*4]
push edi
push dword [ebp + 4]
push dword [ebx + 4]
call fcn.00472630
add esp, 0xc
mov eax, dword [ebx]
add edi, dword [ebx + 4]
sub eax, esi
shl eax, 2
push eax
push edi
call fcn.00467c20
add esp, 8
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 4]
mov eax, dword [eax]
test ecx, ecx
mov dword [esp + 0x28], eax
je 0x41537b
mov edx, dword [esp + 0x1c]
mov esi, ecx
dec esi
add edx, 0xfffffffe
mov ecx, dword [esp + 0x20]
mov eax, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edx
shr eax, 4
and eax, 0x7ffffff
cmp dword [ecx], eax
jbe 0x415297
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + eax*4]
mov ecx, edx
and ecx, 0x1e
mov esi, eax
shr esi, cl
and esi, 1
mov dword [esp + 8], esi
jmp 0x4152a6
mov ecx, edx
mov dword [esp + 8], 0
xor eax, eax
and ecx, 0x1e
mov ebp, dword [esp + 0x14]
or ecx, 1
shr eax, cl
and eax, 1
mov dword [esp + 0x10], eax
xor eax, eax
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
mov edi, dword [ecx]
and edi, 1
neg edi
push eax
push eax
xor esi, esi
push edi
push dword [esp + 0xc]
push ebp
call fcn.00413aff
add esp, 0x14
mov ebx, dword [esp + 0xc]
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
push esi
push esi
push edi
mov esi, dword [esp + 0x10]
push esi
push ebx
call fcn.00413aff
add esp, 0x14
xor eax, eax
inc eax
push eax
push ebp
push ebp
call fcn.004136d6
add esp, 0xc
mov edi, dword [esp + 8]
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
xor eax, eax
neg edi
push eax
push eax
push edi
push ebp
push ebx
call fcn.00413aff
add esp, 0x14
xor eax, eax
inc eax
push eax
push esi
push esi
call fcn.00414455
add esp, 0xc
mov edx, dword [esi]
mov ecx, dword [esi + 4]
xor eax, eax
push eax
push eax
push edi
mov ebp, dword [esp + 0xc]
push ebp
push esi
call fcn.00413aff
add esp, 0x14
mov edi, dword [esp + 0x10]
push edi
push ebp
mov ebp, esi
push esi
call fcn.0041324b
add esp, 0xc
push edi
push ebx
push dword [esp + 0x1c]
call fcn.0041324b
add esp, 0xc
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
xor dword [esp + 0x28], edi
add ecx, 0xfffffffe
dec esi
xor eax, eax
dec eax
mov edx, ecx
cmp esi, eax
jne 0x415265
push dword [esp + 0x44]
push ebp
call fcn.00413ccb
add esp, 8
mov ebx, eax
push dword [esp + 0x48]
mov esi, dword [esp + 4]
push esi
call fcn.00413ccb
add esp, 8
test eax, ebx
mov ebx, esi
jne 0x4153b8
push 0x6b4
push str..._mpint.c
push str.mp_cmp_eq_a__a_in___mp_cmp_eq_b__b_in_
call fcn.0047bdbf
add esp, 0xc
mov edi, dword [esp + 0x24]
xor eax, eax
inc eax
xor esi, esi
dec esi
mov edx, dword [edi]
mov ecx, dword [edi + 4]
push eax
push esi
push esi
mov ebp, dword [esp + 0x20]
push ebp
push ebx
call fcn.00413aff
add esp, 0x14
mov ebx, dword [esp + 0x28]
push ebx
push edi
push ebp
push ebp
call fcn.004131f9
add esp, 0x10
mov edx, dword [edi]
mov ecx, dword [edi + 4]
xor eax, eax
inc eax
push eax
push esi
push esi
mov esi, dword [esp + 0x18]
push esi
push dword [esp + 0x14]
call fcn.00413aff
add esp, 0x14
push ebx
push edi
push esi
push esi
call fcn.004131f9
add esp, 0x10
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x41544c
mov eax, dword [ebx]
mov esi, dword [ebp]
cmp eax, esi
cmovb esi, eax
lea edi, [esi*4]
push edi
push dword [ebp + 4]
push dword [ebx + 4]
call fcn.00472630
add esp, 0xc
mov eax, dword [ebx]
add edi, dword [ebx + 4]
sub eax, esi
shl eax, 2
push eax
push edi
call fcn.00467c20
add esp, 8
push dword [esp + 4]
call fcn.0041316c
add esp, 4
push dword [esp]
call fcn.0041316c
add esp, 4
push ebp
call fcn.0041316c
add esp, 4
push dword [esp + 0xc]
call fcn.0041316c
add esp, 4
push dword [esp + 0x24]
call fcn.0041316c
add esp, 4
push dword [esp + 0x20]
call fcn.0041316c
add esp, 4
mov eax, ebx
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret