Function at 0x4c7e00
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x38
call fcn.00525ec0
push esi
push edi
mov edi, dword [esp + 0x50]
mov eax, dword [edi + 0x24]
mov dword [esp + 0x34], 0
test eax, eax
jne 0x4c7e58
cmp dword [edi + 0x28], eax
jne 0x4c7e58
mov eax, dword [edi + 0x20]
push eax
lea ecx, [edi + 0x14]
push ecx
call fcn.0046ea40
add esp, 8
test eax, eax
jne 0x4c7e5c
push 0x106
push str..crypto_bn_bn_ctx.c
push 0x6d
push 3
mov ecx, 0x81
call fcn.00460970
add esp, 0x10
inc dword [edi + 0x24]
jmp 0x4c7e5c
inc eax
mov dword [edi + 0x24], eax
mov esi, edi
call fcn.0046e9f0
mov dword [esp + 0x18], eax
test eax, eax
je 0x4c81e1
call fcn.0046e9f0
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4c81e1
push ebx
call fcn.0046e9f0
mov ebx, eax
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x4c81e0
push ebp
call fcn.0046e9f0
mov ebp, eax
mov dword [esp + 0x28], ebp
test ebp, ebp
je 0x4c81df
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
push edx
push ebx
mov ecx, esi
call fcn.004c7880
add esp, 8
test eax, eax
je 0x4c81df
cmp dword [ebx + 4], 0
je 0x4c81df
push esi
push ebp
call fcn.00465410
add esp, 8
test eax, eax
je 0x4c81df
mov edx, ebx
call fcn.00465110
mov edx, ebp
mov dword [esp + 0x10], eax
call fcn.00465110
mov esi, dword [esi + 4]
cmp esi, dword [ebx + 8]
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], esi
jle 0x4c7f0d
push esi
mov edi, ebx
call fcn.004653a0
add esp, 4
mov eax, dword [ebx + 4]
cmp eax, esi
mov ebp, dword [ebx]
mov dword [esp + 0x2c], ebp
jge 0x4c7f26
mov ecx, esi
lea edi, [ebp + eax*4]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x20]
mov dword [ebx + 4], esi
cmp esi, dword [edi + 8]
jle 0x4c7f3b
push esi
call fcn.004653a0
add esp, 4
cmp esi, 1
mov edx, dword [esp + 0x20]
mov edi, dword [edx]
mov dword [esp + 0x14], edi
mov dword [edi], 1
jle 0x4c7f5a
add edi, 4
lea ecx, [esi - 1]
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x24]
mov dword [edx + 4], esi
cmp esi, dword [edi + 8]
jle 0x4c7f6f
push esi
call fcn.004653a0
add esp, 4
mov edx, dword [esp + 0x24]
mov edi, dword [edx]
mov dword [esp + 0x34], edi
test esi, esi
jle 0x4c7f83
mov ecx, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
mov dword [edx + 4], esi
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
cmp dword [esp + 0x10], 0
je 0x4c805e
jmp 0x4c7fa0
mov eax, dword [ebp]
test al, 1
jne 0x4c805e
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
mov ebx, eax
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov esi, edx
and esi, 1
neg esi
and eax, esi
xor edx, eax
mov eax, dword [esp + 0x1c]
dec eax
xor edi, edi
test eax, eax
jle 0x4c803c
mov eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x40], ebp
mov ebp, 0xfffffffc
sub ebp, eax
lea ecx, [eax + 4]
mov dword [esp + 0x44], ebp
lea esp, [esp]
mov eax, dword [esp + 0x40]
mov eax, dword [eax + ecx]
mov ebp, eax
shl ebp, 0x1f
shr ebx, 1
or ebp, ebx
mov ebx, dword [esp + 0x2c]
mov dword [ebx + edi*4], ebp
mov ebp, dword [esp + 0x44]
mov ebx, eax
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
add eax, ecx
mov eax, dword [eax + ebp + 4]
and eax, esi
xor eax, dword [ecx]
shr edx, 1
mov ebp, eax
shl ebp, 0x1f
or ebp, edx
mov edx, eax
mov eax, dword [esp + 0x1c]
mov dword [ecx - 4], ebp
inc edi
dec eax
add ecx, 4
cmp edi, eax
jl 0x4c7ff0
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
shr ebx, 1
shr edx, 1
sub dword [esp + 0x10], 1
mov dword [ebp + edi*4], ebx
mov ebx, dword [esp + 0x18]
mov dword [ecx + edi*4], edx
jne 0x4c7fa0
mov eax, dword [esp + 0x10]
cmp eax, 0x20
jg 0x4c8071
cmp dword [ebp], 1
je 0x4c819d
mov ecx, dword [esp + 0x38]
cmp eax, ecx
jge 0x4c80bf
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x38], eax
mov eax, ebx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [eax]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], eax
mov eax, dword [ecx]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x34], eax
test esi, esi
jle 0x4c80f2
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
sub edx, ebp
sub edi, ebp
mov eax, ebp
sub ecx, ebp
mov ebx, dword [eax + edx]
xor dword [eax], ebx
mov ebx, dword [eax + edi]
xor dword [eax + ecx], ebx
add eax, 4
sub esi, 1
jne 0x4c80d7
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x38]
jne 0x4c7f90
dec eax
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
mov ecx, dword [ebp + eax*4]
test ecx, ecx
jne 0x4c811f
test eax, eax
je 0x4c811f
mov ecx, dword [ebp + eax*4 - 4]
dec eax
test ecx, ecx
je 0x4c8112
test ecx, 0xffff0000
je 0x4c8165
test ecx, 0xff000000
je 0x4c814a
shr ecx, 0x18
movzx ecx, byte [ecx + 0x574528]
add ecx, 0x18
shl eax, 5
add eax, ecx
mov dword [esp + 0x10], eax
jmp 0x4c7f90
shr ecx, 0x10
movzx ecx, byte [ecx + 0x574528]
add ecx, 0x10
shl eax, 5
add eax, ecx
mov dword [esp + 0x10], eax
jmp 0x4c7f90
test ecx, 0xff00
je 0x4c8188
shr ecx, 8
movzx ecx, byte [ecx + 0x574528]
add ecx, 8
shl eax, 5
add eax, ecx
mov dword [esp + 0x10], eax
jmp 0x4c7f90
movzx ecx, byte [ecx + 0x574528]
shl eax, 5
add eax, ecx
mov dword [esp + 0x10], eax
jmp 0x4c7f90
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 4]
test eax, eax
jle 0x4c81c1
mov ecx, dword [edx]
lea ecx, [ecx + eax*4 - 4]
mov edi, edi
mov esi, dword [ecx]
sub ecx, 4
test esi, esi
jne 0x4c81be
dec eax
test eax, eax
jg 0x4c81b0
mov dword [edx + 4], eax
push edx
mov edx, dword [esp + 0x50]
push edx
call fcn.00465410
mov edi, dword [esp + 0x60]
add esp, 8
test eax, eax
je 0x4c81df
mov dword [esp + 0x3c], 1
pop ebp
pop ebx
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4c81f6
dec eax
mov dword [edi + 0x24], eax
mov eax, dword [esp + 0x34]
pop edi
pop esi
add esp, 0x38
ret
dec dword [edi + 0x18]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
mov esi, dword [ecx + eax*4]
mov eax, dword [edi + 0x20]
cmp esi, eax
jae 0x4c823d
mov ecx, dword [edi + 0xc]
sub eax, esi
mov edx, eax
lea eax, [ecx - 1]
sub ecx, edx
and eax, 0xf
mov dword [edi + 0xc], ecx
test edx, edx
je 0x4c823d
nop
dec edx
test eax, eax
jne 0x4c8238
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + 0x140]
mov eax, 0xf
mov dword [edi + 4], ecx
jmp 0x4c8239
dec eax
test edx, edx
jne 0x4c8220
mov eax, dword [esp + 0x34]
mov dword [edi + 0x20], esi
mov dword [edi + 0x28], 0
pop edi
pop esi
add esp, 0x38
ret