Function at 0x4f3b00
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x20
call fcn.0052c8c0
mov edx, dword [esp + 0x30]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x28]
mov eax, dword [esi + 0x170]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x174]
mov dword [esp + 0x18], eax
mov eax, edx
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x4f3dff
jb 0x4f3b45
cmp eax, 0xffffffe0
ja 0x4f3dff
cmp dword [esi + 0x16c], 0
push ebx
mov dword [esi + 0x38], eax
lea ebx, [esi + 0x40]
lea eax, [esi + 0x60]
mov dword [esi + 0x3c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], ebx
je 0x4f3b7d
push eax
push ebx
call fcn.004f48f0
mov edx, dword [esp + 0x40]
add esp, 8
mov dword [esi + 0x16c], 0
jmp 0x4f3b85
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], ebx
movzx ecx, byte [esi + 0xc]
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xf]
shl ecx, 8
push ebp
mov ebp, dword [esi + 0x168]
or ecx, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], ebp
push edi
mov edi, dword [esp + 0x38]
test ebp, ebp
je 0x4f3c17
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x3c]
test edx, edx
je 0x4f3bfc
mov cl, byte [esi + ebp + 0x10]
lea eax, [esi + 0x40]
xor cl, byte [edi]
dec edx
mov byte [ebx], cl
inc edi
xor byte [eax + ebp], cl
inc ebx
inc ebp
mov dword [esp + 0x18], eax
and ebp, 0xf
mov dword [esp + 0x40], edx
mov dword [esp + 0x1c], ebp
jne 0x4f3bc4
mov ecx, eax
lea eax, [esi + 0x60]
push eax
push ecx
call fcn.004f48f0
add esp, 8
jmp 0x4f3c1b
mov ecx, dword [esp + 0x18]
test ebp, ebp
jne 0x4f3def
lea eax, [esi + 0x60]
push eax
push ecx
call fcn.004f48f0
add esp, 8
jmp 0x4f3c1b
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
cmp ecx, 0xc00
jb 0x4f3ce0
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
mov dword [esp + 0x18], edx
nop dword [eax]
mov ebp, 0xc0
push dword [esp + 0x24]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
inc ecx
mov eax, ecx
mov byte [esi + 0xf], cl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [edi]
xor eax, dword [esi + 0x10]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
add ebx, 0x10
mov dword [esp + 0x10], ecx
sub ebp, 1
jne 0x4f3c45
mov ebp, dword [esp + 0x14]
lea eax, [ebx - 0xc00]
push 0xc00
push eax
push dword [esp + 0x28]
push ebp
call fcn.004f46c0
mov ecx, dword [esp + 0x50]
add esp, 0x10
sub ecx, 0xc00
sub dword [esp + 0x18], 1
mov dword [esp + 0x40], ecx
jne 0x4f3c40
mov ebp, dword [esp + 0x1c]
mov edx, ecx
and edx, 0xfffffff0
mov dword [esp + 0x2c], edx
je 0x4f3d92
cmp ecx, 0x10
jb 0x4f3d78
mov ebp, dword [esp + 0x40]
lea eax, [esi + 0x10]
shr ecx, 4
mov dword [esp + 0x18], ecx
push dword [esp + 0x24]
push eax
push esi
call dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
inc ecx
sub ebp, 0x10
mov eax, ecx
mov byte [esi + 0xf], cl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [edi]
xor eax, dword [esi + 0x10]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [esp + 0x18], 1
lea eax, [esi + 0x10]
mov dword [esp + 0x10], ecx
jne 0x4f3d06
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x40], ebp
mov ebp, dword [esp + 0x1c]
push edx
mov eax, ebx
sub eax, edx
push eax
push dword [esp + 0x28]
push dword [esp + 0x20]
call fcn.004f46c0
mov ecx, dword [esp + 0x50]
add esp, 0x10
test ecx, ecx
je 0x4f3def
push dword [esp + 0x24]
lea eax, [esi + 0x10]
push eax
push esi
call dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov edx, dword [esp + 0x40]
inc ecx
mov eax, ecx
mov byte [esi + 0xf], cl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ecx
shr eax, 8
sub edi, ebx
mov byte [esi + 0xe], al
lea esi, [ebx + ebp]
nop
mov eax, dword [esp + 0x14]
lea esi, [esi + 1]
mov cl, byte [eax + ebp - 0x30]
xor cl, byte [edi + esi - 1]
mov byte [esi - 1], cl
xor byte [eax + ebp], cl
inc ebp
sub edx, 1
jne 0x4f3dd0
mov esi, dword [esp + 0x34]
pop edi
mov dword [esi + 0x168], ebp
xor eax, eax
pop ebp
pop ebx
pop esi
add esp, 0x20
ret
or eax, 0xffffffff
pop esi
add esp, 0x20
ret