Function at 0x4b83b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x204
call fcn.00525ec0
mov eax, dword [0x5af1b4]
xor eax, esp
mov dword [esp + 0x200], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], 1
test edx, edx
jne 0x4b841c
push 0x121
push str..cryptoevpevp_lib.c
push 0x9f
push 6
mov ecx, 0xa2
call fcn.00460970
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.00511c1b
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 8]
mov dword [esp + 0x20], eax
test eax, eax
jl 0x4b84d5
mov edi, dword [ebp + 0x1c]
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov ebx, ecx
mov dword [esp + 0x10], edi
test esi, esi
je 0x4b849d
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4b84a0
mov eax, esi
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b8490
sub eax, edi
mov edi, dword [esp + 0x10]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
push edx
push ecx
lea edx, [esp + 0x30]
push edx
xor edx, edx
mov ecx, esi
call fcn.0046c360
add esp, 0xc
test eax, eax
jne 0x4b84ec
lea edi, [esp + 0x44]
call fcn.00474260
lea edi, [esp + 0x5c]
call fcn.00474260
lea edi, [esp + 0x2c]
call fcn.00474260
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.00511c1b
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x1c], 0
jne 0x4b8534
lea edi, [esp + 0x44]
call fcn.00474260
lea edi, [esp + 0x5c]
call fcn.00474260
lea edi, [esp + 0x2c]
call fcn.00474260
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.00511c1b
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
cmp edi, eax
jle 0x4b853e
mov edi, eax
mov eax, dword [esp + 0x18]
mov edx, eax
mov ecx, eax
shr ecx, 0x18
shr edx, 0x10
mov byte [esp + 0x14], cl
mov byte [esp + 0x15], dl
mov ecx, eax
lea edx, [esp + 0x28]
mov byte [esp + 0x17], al
push edx
lea eax, [esp + 0xfc]
shr ecx, 8
push eax
mov byte [esp + 0x1e], cl
call fcn.0046c690
add esp, 8
test eax, eax
je 0x4b84ba
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x104]
push eax
call dword [esp + 0x11c]
add esp, 0xc
test eax, eax
je 0x4b86f8
push 4
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x104]
push edx
call dword [esp + 0x11c]
add esp, 0xc
test eax, eax
je 0x4b86f8
push 0
lea eax, [esp + 0x1cc]
push eax
lea ecx, [esp + 0x100]
push ecx
call fcn.0046c5a0
add esp, 0xc
test eax, eax
je 0x4b86f8
lea esi, [esp + 0xf8]
call fcn.0046c740
push edi
lea edx, [esp + 0x1cc]
push edx
push ebx
call fcn.005165f0
mov ecx, 1
add esp, 0xc
cmp dword [ebp + 0x18], ecx
mov dword [esp + 0x1c], ecx
jle 0x4b86b2
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xfc]
push ecx
call fcn.0046c690
add esp, 8
test eax, eax
je 0x4b84ba
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x1cc]
push eax
lea ecx, [esp + 0x104]
push ecx
call dword [esp + 0x11c]
add esp, 0xc
test eax, eax
je 0x4b86cf
push 0
lea edx, [esp + 0x1cc]
push edx
lea eax, [esp + 0x100]
push eax
call fcn.0046c5a0
add esp, 0xc
test eax, eax
je 0x4b86cf
lea esi, [esp + 0xf8]
call fcn.0046c740
test edi, edi
jle 0x4b869b
lea ecx, [esp + 0x1c8]
mov eax, ebx
sub ecx, ebx
mov esi, edi
nop
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
sub esi, 1
jne 0x4b8690
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, dword [ebp + 0x18]
mov dword [esp + 0x1c], eax
jl 0x4b8614
mov ecx, 1
mov eax, dword [esp + 0x10]
add dword [esp + 0x18], ecx
sub eax, edi
add ebx, edi
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4b8530
jmp 0x4b84f2
lea edi, [esp + 0x44]
call fcn.00474260
lea edi, [esp + 0x5c]
call fcn.00474260
lea edi, [esp + 0x2c]
call fcn.00474260
push 0xd0
push 0
lea eax, [esp + 0x30]
push eax
jmp 0x4b871f
lea edi, [esp + 0x44]
call fcn.00474260
lea edi, [esp + 0x5c]
call fcn.00474260
lea edi, [esp + 0x2c]
call fcn.00474260
push 0xd0
push 0
lea ecx, [esp + 0x30]
push ecx
call fcn.00516180
add esp, 0xc
lea edi, [esp + 0x114]
call fcn.00474260
lea edi, [esp + 0x12c]
call fcn.00474260
lea edi, [esp + 0xfc]
call fcn.00474260
mov ecx, dword [esp + 0x20c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00511c1b
mov esp, ebp
pop ebp
ret