Function at 0x4c6200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, edx
push esi
mov edx, ecx
mov ecx, dword [ebp + 0x10]
push edi
xor edi, edi
test ecx, ecx
cmove ecx, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 0
mov dword [ebp + 0x10], ecx
test eax, eax
jne 0x4c6254
push 0x139
push str.cryptoevpevp_lib.c
push 0x9f
mov edx, 0xa2
lea ecx, [edi + 6]
call fcn.004144f0
mov eax, dword [ebp - 0x18]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
test eax, eax
js 0x4c64c8
mov esi, dword [ebp + 0x14]
cmp esi, 0xffffffff
jne 0x4c6281
mov esi, eax
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx + 4]
lea edx, [eax - 1]
mov dword [ebp - 0x14], edx
test eax, eax
jne 0x4c62b5
jmp 0x4c62ca
cmp esi, 0xfffffffe
jne 0x4c6288
jmp 0x4c626c
jge 0x4c626c
push 0xdb
push str.crypto_rsa_rsa_pss.c
push 0x88
mov edx, 0x94
mov ecx, 4
call fcn.004144f0
mov eax, dword [ebp - 0x18]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx]
mov ecx, dword [ecx + edx*4]
call fcn.0041da60
mov ecx, dword [ebp - 0x14]
shl ecx, 5
add eax, ecx
mov ecx, dword [ebp - 0x10]
dec eax
and eax, 7
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 4]
lea edx, [eax - 1]
mov dword [ebp - 0x14], edx
test eax, eax
je 0x4c62f0
mov ecx, dword [ecx]
mov ecx, dword [ecx + edx*4]
call fcn.0041da60
mov ecx, dword [ebp - 0x14]
shl ecx, 5
add eax, ecx
add eax, 7
cdq
and edx, 7
lea ecx, [edx + eax]
sar ecx, 3
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x10], edi
jne 0x4c6310
mov byte [ebx], 0
inc ebx
dec ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
lea eax, [edx + 2]
cmp ecx, eax
jge 0x4c632b
push 0xe7
push str.crypto_rsa_rsa_pss.c
push 0x6e
jmp 0x4c6299
mov ebx, ecx
sub ebx, edx
cmp esi, 0xfffffffe
jne 0x4c6366
lea esi, [ebx - 2]
test esi, esi
jle 0x4c638f
push 0xf2
mov edx, str.crypto_rsa_rsa_pss.c
mov ecx, esi
call fcn.0042e6b0
mov edi, eax
add esp, 4
test edi, edi
jne 0x4c637e
push 0xf5
push str.crypto_rsa_rsa_pss.c
push 0x41
jmp 0x4c6299
lea eax, [ebx - 2]
cmp esi, eax
jle 0x4c6337
push 0xee
push str.crypto_rsa_rsa_pss.c
push 0x6e
jmp 0x4c6299
mov edx, esi
mov ecx, edi
call fcn.00412f00
test eax, eax
jle 0x4c6496
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
lea ecx, [ebx - 1]
xorps xmm0, xmm0
add eax, ecx
push 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0xc], eax
movq qword [ebp - 0x30], xmm0
movq qword [ebp - 0x28], xmm0
movq qword [ebp - 0x20], xmm0
call fcn.00424050
add esp, 4
test eax, eax
je 0x4c6496
push 8
lea eax, [ebp - 0x30]
push 0x5619b4
push eax
call dword [ebp - 0x1c]
add esp, 0xc
test eax, eax
je 0x4c6496
push dword [ebp - 8]
lea eax, [ebp - 0x30]
push dword [ebp + 8]
push eax
call dword [ebp - 0x1c]
add esp, 0xc
test eax, eax
je 0x4c6496
test esi, esi
je 0x4c640d
push esi
lea eax, [ebp - 0x30]
push edi
push eax
call dword [ebp - 0x1c]
add esp, 0xc
test eax, eax
je 0x4c6496
mov edx, dword [ebp - 0xc]
push 0
lea ecx, [ebp - 0x30]
call fcn.004242a0
add esp, 4
test eax, eax
je 0x4c6496
lea ecx, [ebp - 0x30]
call fcn.00424520
push dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push dword [ebp - 8]
lea edx, [ebx - 1]
push dword [ebp - 0xc]
call fcn.0049e030
add esp, 0xc
test eax, eax
jne 0x4c6496
mov edx, dword [ebp - 4]
sub ebx, esi
xor byte [ebx + edx - 2], 1
lea ecx, [ebx + edx]
dec ecx
test esi, esi
jle 0x4c6470
xor edx, edx
test esi, esi
jle 0x4c646d
lea esp, [esp]
mov al, byte [edx + edi]
xor byte [ecx], al
inc edx
lea ecx, [ecx + 1]
cmp edx, esi
jl 0x4c6460
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4c6487
mov ecx, 8
sub ecx, eax
mov eax, 0xff
sar eax, cl
and byte [edx], al
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 1
mov byte [eax + edx - 1], 0xbc
test edi, edi
je 0x4c64c8
mov eax, dword [0x59fb4c]
test eax, eax
je 0x4c64ab
push 0
push edi
call eax
add esp, 8
push edi
call dword [0x594128]
mov ecx, dword [0x59fb4c]
add esp, 4
test ecx, ecx
je 0x4c64c8
push 1
push 0
call ecx
add esp, 8
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret