Function at 0x5d657a10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, dword [esi + 4]
mov edi, dword [eax + 4]
cmp ebx, edi
jge 0x5d657a37
mov eax, ebx
mov ebx, edi
mov edi, eax
mov eax, esi
mov esi, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 8]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
test edi, edi
js 0x5d657ae0
cmp eax, ecx
je 0x5d657a82
mov eax, dword [ebp + 8]
cmp dword [eax], ebx
jl 0x5d657eb4
mov esi, dword [ebp - 0x30]
mov edx, ebx
lea eax, [edi*4]
sub edx, edi
mov dword [esp + 8], edx
lea edx, [esi + eax]
add eax, dword [ebp - 0x2c]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [0x5d69e0a8]
test edi, edi
je 0x5d657ab6
mov edx, dword [ebp + 0x10]
lea ecx, [edi*4]
mov eax, edi
mov edi, dword [ebp - 0x30]
neg eax
mov esi, dword [edx + 8]
add edi, ecx
add esi, ecx
add ecx, dword [ebp - 0x2c]
lea esi, [esi]
mov edx, dword [edi + eax*4]
xor edx, dword [esi + eax*4]
mov dword [ecx + eax*4], edx
add eax, 1
jne 0x5d657aa8
mov eax, dword [ebp - 0x2c]
test ebx, ebx
jg 0x5d657ac5
jmp 0x5d657acd
sub ebx, 1
je 0x5d657acd
mov edi, dword [eax + ebx*4 - 4]
test edi, edi
je 0x5d657ac0
mov eax, dword [ebp + 8]
mov dword [eax + 4], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edi
mov dword [ebp - 0x1c], 0
neg eax
mov dword [ebp - 0x34], eax
test ebx, ebx
js 0x5d657c60
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 8]
cmp ebx, eax
cmovge eax, ebx
mov dword [ebp - 0x40], eax
cmp dword [ecx], eax
jle 0x5d657f73
mov eax, edi
neg eax
shl eax, 2
mov dword [ebp - 0x3c], eax
cmp eax, 0x7f00
ja 0x5d657f4c
add eax, 0x1b
shr eax, 4
shl eax, 4
call fcn.5d69cc80
sub esp, eax
lea eax, [esp + 0x1b]
and eax, 0xfffffff0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x38]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
lea edx, [eax - 1]
mov dword [esi], edx
test eax, eax
je 0x5d657c20
mov edx, dword [ebp - 0x38]
cmp edx, ecx
je 0x5d657b80
cmp edi, 0xffffffff
je 0x5d657b80
mov dword [ebp - 0x44], ebx
mov esi, dword [ebp - 0x34]
mov eax, 1
lea esi, [esi]
mov ebx, dword [ecx + eax*4]
mov dword [edx + eax*4], ebx
add eax, 1
cmp esi, eax
jg 0x5d657b70
mov ebx, dword [ebp - 0x44]
mov ecx, dword [sym.msys_gmp_10.dll_I_gmpn_copyi_init]
cmp ebx, dword [ebp - 0x34]
jl 0x5d657cf0
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
add ebx, edi
mov esi, dword [ebp - 0x2c]
mov dword [esp + 8], ebx
add edx, eax
add esi, eax
mov dword [esp + 4], edx
mov dword [ebp - 0x30], edx
mov dword [esp], esi
call ecx
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
add ecx, eax
lea esi, [esi]
mov eax, dword [ecx + edi*4]
xor eax, dword [edx + edi*4]
mov dword [esi + edi*4], eax
add edi, 1
jne 0x5d657bc0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x5d657f66
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x40]
lea eax, [esi + edi*4]
mov edx, esi
mov dword [eax], 0
add dword [edx], 1
lea edx, [edx + 4]
jb 0x5d657bea
add edi, dword [eax]
mov ebx, dword [esi + edi*4 - 4]
mov eax, edi
test ebx, ebx
jne 0x5d657c0b
mov edx, esi
sub eax, 1
mov ecx, dword [edx + eax*4 - 4]
test ecx, ecx
je 0x5d657c00
neg eax
mov edi, dword [ebp + 8]
mov dword [edi + 4], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x44], edi
mov eax, 1
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x48], ebx
mov ebx, dword [ebp - 0x34]
jmp 0x5d657c4c
mov edx, dword [ecx + eax*4]
lea esi, [edx - 1]
mov dword [edi + eax*4], esi
add eax, 1
test edx, edx
jne 0x5d657e70
cmp ebx, eax
jne 0x5d657c38
mov edi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x48]
jmp 0x5d657b80
mov esi, ebx
sub eax, ebx
neg esi
shl eax, 2
mov dword [ebp - 0x3c], esi
cmp eax, 0x7f00
ja 0x5d657fa6
add eax, 0x1b
shr eax, 4
shl eax, 4
call fcn.5d69cc80
sub esp, eax
lea esi, [esp + 0x1b]
and esi, 0xfffffff0
mov eax, ebx
neg eax
shl eax, 2
mov dword [ebp - 0x38], eax
add eax, esi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
lea edx, [eax - 1]
mov dword [esi], edx
test eax, eax
jne 0x5d657d48
mov dword [ebp - 0x40], edi
mov eax, 1
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x44], ebx
mov ebx, dword [ebp - 0x3c]
jmp 0x5d657cdc
mov edx, dword [edi + eax*4]
lea ecx, [edx - 1]
mov dword [esi + eax*4], ecx
add eax, 1
test edx, edx
jne 0x5d657ec8
cmp ebx, eax
jne 0x5d657cc8
mov edi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x44]
jmp 0x5d657d70
mov edx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
lea edi, [ebx*4]
mov eax, dword [ebp - 0x2c]
add esi, edi
sub edx, ebx
add eax, edi
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [ebp - 0x34], eax
call ecx
test ebx, ebx
je 0x5d657bce
mov eax, dword [ebp - 0x34]
neg ebx
add edi, dword [ebp - 0x30]
lea esi, [esi]
lea esi, [esi]
mov edx, dword [edi + ebx*4]
xor edx, dword [esi + ebx*4]
mov dword [eax + ebx*4], edx
add ebx, 1
jne 0x5d657d30
jmp 0x5d657bce
mov edx, dword [ebp - 0x30]
cmp esi, edx
je 0x5d657d70
cmp ebx, 0xffffffff
je 0x5d657d70
mov dword [ebp - 0x30], ebx
mov ecx, dword [ebp - 0x3c]
mov eax, 1
nop
mov ebx, dword [edx + eax*4]
mov dword [esi + eax*4], ebx
add eax, 1
cmp ecx, eax
jg 0x5d657d60
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
mov eax, dword [ecx]
lea edx, [eax - 1]
mov dword [esi], edx
test eax, eax
jne 0x5d657dc0
mov dword [ebp - 0x30], edi
mov eax, 1
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], ebx
mov ebx, dword [ebp - 0x34]
jmp 0x5d657db4
mov edx, dword [ecx + eax*4]
lea esi, [edx - 1]
mov dword [edi + eax*4], esi
add eax, 1
test edx, edx
jne 0x5d657f0c
cmp ebx, eax
jne 0x5d657da0
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x3c]
jmp 0x5d657df0
mov edx, dword [ebp - 0x2c]
cmp ecx, edx
je 0x5d657df0
cmp edi, 0xffffffff
je 0x5d657df0
mov dword [ebp - 0x30], ebx
mov esi, dword [ebp - 0x34]
mov eax, 1
lea esi, [esi]
nop
mov ebx, dword [ecx + eax*4]
mov dword [edx + eax*4], ebx
add eax, 1
cmp esi, eax
jg 0x5d657de0
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x34]
cmp dword [eax], esi
jl 0x5d657fbc
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
mov ecx, ebx
mov dword [ebp - 0x38], edx
sub ecx, edi
add eax, esi
add esi, edx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [ebp - 0x30], eax
mov dword [esp], esi
call dword [0x5d69e0a8]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
lea esi, [esi]
mov ecx, dword [edi + ebx*4]
xor ecx, dword [eax + ebx*4]
mov dword [esi + ebx*4], ecx
add ebx, 1
jne 0x5d657e38
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x5d657f90
mov eax, dword [ebp - 0x34]
lea esi, [esi]
mov esi, dword [edx + eax*4 - 4]
test esi, esi
jne 0x5d657c0d
sub eax, 1
jne 0x5d657e58
jmp 0x5d657c0d
mov edi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x48]
cmp dword [ebp - 0x38], ecx
je 0x5d657b80
cmp dword [ebp - 0x34], eax
jle 0x5d657b80
lea edx, [eax*4]
lea eax, [ecx + edx]
add edx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x3c]
lea esi, [esi]
nop
mov esi, dword [eax]
add eax, 4
add edx, 4
mov dword [edx - 4], esi
cmp ecx, eax
jne 0x5d657ea0
jmp 0x5d657b80
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym.msys_gmp_10.dll_I_gmpz_realloc
mov dword [ebp - 0x2c], eax
jmp 0x5d657a5d
mov edi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x44]
cmp esi, dword [ebp - 0x30]
je 0x5d657d70
cmp dword [ebp - 0x3c], eax
jle 0x5d657d70
mov ecx, dword [ebp - 0x30]
lea edx, [eax*4]
add esi, edx
lea eax, [ecx + edx]
add ecx, dword [ebp - 0x38]
mov edx, ecx
lea esi, [esi]
mov ecx, dword [eax]
add eax, 4
add esi, 4
mov dword [esi - 4], ecx
cmp edx, eax
jne 0x5d657ef8
jmp 0x5d657d70
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x2c]
je 0x5d657df0
cmp dword [ebp - 0x34], eax
jle 0x5d657df0
mov esi, edi
shl eax, 2
neg esi
lea edx, [ecx + eax]
add eax, dword [ebp - 0x2c]
lea ecx, [ecx + esi*4]
lea esi, [esi]
mov esi, dword [edx]
add edx, 4
add eax, 4
mov dword [eax - 4], esi
cmp ecx, edx
jne 0x5d657f38
jmp 0x5d657df0
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call sym.msys_gmp_10.dll_I_gmp_tmp_reentrant_alloc
mov dword [ebp - 0x38], eax
jmp 0x5d657b3b
mov dword [esp], eax
call sym.msys_gmp_10.dll_I_gmp_tmp_reentrant_free
jmp 0x5d657bd9
add eax, 1
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym.msys_gmp_10.dll_I_gmpz_realloc
mov dword [ebp - 0x2c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x30], eax
jmp 0x5d657b0c
mov dword [esp], eax
mov dword [ebp - 0x2c], edx
call sym.msys_gmp_10.dll_I_gmp_tmp_reentrant_free
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
jmp 0x5d657e58
mov dword [esp + 4], eax
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call sym.msys_gmp_10.dll_I_gmp_tmp_reentrant_alloc
mov esi, eax
jmp 0x5d657c8e
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.msys_gmp_10.dll_I_gmpz_realloc
mov edx, eax
jmp 0x5d657e04