Function at 0x4fb6c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov eax, edx
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
push esi
push edi
test eax, eax
je 0x4fb837
test byte [ebp + 0xc], 8
jne 0x4fb837
mov edi, dword [ebp + 8]
mov eax, 0xd
mov ebx, dword [ebx + 0xc]
mov dword [esp + 0x14], ebx
lea esi, [edi - 1]
test esi, esi
js 0x4fb719
mov edi, edx
movzx edx, byte [esi + edi]
lea ecx, [eax*8]
xor edx, ecx
xor eax, edx
sub esi, 1
jns 0x4fb702
mov edi, dword [ebp + 8]
xor edx, edx
div dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
mov ebx, dword [eax + edx*4]
test ebx, ebx
je 0x4fb789
mov eax, dword [ebx + 0x14]
inc eax
cmp edi, eax
jne 0x4fb783
mov edx, dword [esp + 0x10]
lea ecx, [ebx + 0x28]
mov esi, edi
sub esi, 4
jb 0x4fb751
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4fb756
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4fb740
cmp esi, 0xfffffffc
je 0x4fb7b1
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4fb783
cmp esi, 0xfffffffd
je 0x4fb7b1
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4fb783
cmp esi, 0xfffffffe
je 0x4fb7b1
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4fb783
cmp esi, 0xffffffff
je 0x4fb7b1
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x4fb7b1
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4fb728
xor esi, esi
xor eax, eax
mov dword [esp + 0x14], eax
xor eax, eax
mov ecx, dword [esp + 0xc]
add ecx, 0x24
mov dword [ecx], eax
test esi, esi
je 0x4fb7a5
lea eax, [esi + 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
or dword [eax + 4], 1
jmp 0x4fb91e
mov eax, dword [ebx + 0x10]
lea ecx, [edi + 0x29]
sub eax, ecx
mov dword [esp + 0x1c], eax
add eax, 0x16
cdq
mov esi, eax
mov dword [esp + 0x18], edx
call fcn.004cbab0
test eax, eax
je 0x4fb7e1
xor esi, esi
mov dword [esp + 0x14], 0
mov eax, 7
jmp 0x4fb793
mov ecx, dword [esp + 0x18]
mov eax, esi
or eax, ecx
je 0x4fb7f9
push ecx
push esi
call fcn.0043a970
add esp, 8
mov esi, eax
jmp 0x4fb7fb
xor esi, esi
test esi, esi
je 0x4fb7d2
push dword [esp + 0x1c]
lea eax, [edi + 0x29]
add eax, ebx
push eax
lea eax, [esi + 0xc]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x20]
lea edx, [edi + 0x29]
mov eax, esi
add esp, 0xc
sub eax, edx
mov edx, ebx
add eax, 0xc
push eax
call fcn.004f7700
add esp, 4
add eax, dword [esp + 0x1c]
jmp 0x4fb78d
push dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
lea esi, [ebx + 0x24]
mov dword [esp + 0x1c], esi
call fcn.004f81c0
mov ecx, dword [ebx + 0xc]
add esp, 4
mov dword [esi], eax
mov ebx, dword [ecx + 0x10]
test ebx, ebx
je 0x4fb8a0
lea edi, [ebx + 0x28]
mov esi, edi
mov dword [esp + 0x10], edi
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4fb864
sub esi, edx
mov edx, ebx
push 0
call fcn.004f7700
mov ebx, dword [ebx + 0x10]
lea edx, [edi + 1]
sub ebx, esi
add edx, esi
sub ebx, 0x29
mov dword [esp + 0x20], edx
add esp, 4
mov dword [esp + 0x14], ebx
test edi, edi
je 0x4fb8b4
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4fb895
sub edi, ecx
jmp 0x4fb8b6
xor edx, edx
mov dword [esp + 0x10], 0
xor eax, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
xor edi, edi
test edx, edx
je 0x4fb9a4
mov ecx, dword [esp + 0x18]
xor esi, esi
cmp dword [ecx], esi
jne 0x4fb911
call fcn.004cbab0
test eax, eax
je 0x4fb8dd
mov ecx, dword [esp + 0x18]
mov dword [ecx], 7
jmp 0x4fb90d
push 0
push 0xc
call fcn.0043a970
mov esi, eax
add esp, 8
test esi, esi
jne 0x4fb8fb
mov ecx, dword [esp + 0x18]
mov dword [ecx], 7
jmp 0x4fb90d
mov ecx, dword [esp + 0x18]
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov edx, dword [esp + 0x1c]
test esi, esi
je 0x4fb9a4
mov eax, dword [ebp + 0x10]
mov dword [esi], edx
test esi, esi
je 0x4fb9a4
mov dword [eax + 0x40], 0
lea ebx, [eax + 0x3c]
test edi, edi
je 0x4fb95e
cmp edi, dword [ebx + 8]
jbe 0x4fb948
push edi
mov edx, ebx
call fcn.004ef670
add esp, 4
test eax, eax
jne 0x4fb95e
mov eax, dword [ebx]
add eax, dword [ebx + 4]
push edi
push dword [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [ebx + 4], edi
mov ebx, dword [ebp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [ebx + 0xc], esi
lea edx, [ebx + 0x48]
mov ecx, dword [esi]
call fcn.0050e440
test byte [ebp + 0xc], 2
mov edx, ebx
movzx eax, al
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 4]
mov esi, dword [esp + 0xc]
mov ecx, esi
mov dword [ebx + 0x28], eax
je 0x4fb99d
or dword [ebx + 4], 2
call fcn.004fa690
jmp 0x4fb9ab
call fcn.004fa410
jmp 0x4fb9ab
mov ebx, dword [ebp + 0x10]
mov esi, dword [esp + 0xc]
test byte [ebx + 4], 2
je 0x4fb9bf
mov dword [ebx + 0x18], 0x4fa980
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov ecx, 0x4fabb0
mov edx, 0x4faa00
pop edi
pop esi
cmp dword [eax + 0x30], 1
cmove ecx, edx
mov dword [ebx + 0x18], ecx
pop ebx
mov esp, ebp
pop ebp
ret