Function at 0x4f9300
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
sub esp, 0x94
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
mov ebp, dword [esp + 0xac]
push eax
push ecx
mov ecx, dword [esp + 0xcc]
lea eax, [esp + 0x50]
push edx
mov edx, dword [esp + 0xcc]
push eax
push ecx
push edx
push ebx
push ebp
call fcn.00547180
add esp, 0x20
test eax, eax
je 0x4f9356
pop ebp
mov eax, 1
pop ebx
add esp, 0x94
ret
mov edx, dword [ebp + 8]
mov ebp, dword [esp + 0x4c]
sub ebp, dword [esp + 0x54]
mov ebx, dword [ebx + 8]
mov eax, dword [esp + 0x5c]
push esi
push edi
mov edi, dword [esp + 0x6c]
sub edi, eax
lea ebp, [ebx + ebp*2]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edx
lea ebp, [edi + edi]
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x68]
sub edx, ebp
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x58]
imul edx, ebx
mov ebp, dword [esp + 0x54]
sub esi, ecx
imul ecx, dword [esp + 0x28]
lea edx, [edx + ebp*2]
mov ebp, dword [esp + 0xac]
lea ecx, [ecx + eax*2]
mov dword [esp + 0x30], edi
add edx, dword [ebp + 4]
mov ebp, dword [esp + 0xb4]
mov dword [esp + 0x40], ebx
add ecx, dword [ebp + 4]
cmp byte [esp + 0x50], 0
je 0x4f9614
and al, 1
mov ebp, edi
mov byte [esp + 0x13], al
je 0x4f93d8
lea ebp, [edi - 1]
mov ebx, ebp
and ebx, 7
mov al, bl
sar ebp, 3
and al, 1
mov dword [esp + 0x20], ebp
sar ebx, 1
test esi, esi
mov byte [esp + 0x12], al
mov dword [esp + 0x14], ebx
jle 0x4f9744
mov dword [esp + 0x18], esi
mov al, byte [esp + 0x13]
test al, al
je 0x4f9449
mov si, word [edx]
mov di, word [ecx]
mov eax, esi
mov ebp, esi
xor eax, edi
and ebp, edi
shr eax, 1
and eax, 0x7bef
add ecx, 2
add eax, ebp
and eax, 0xffff8410
add ax, 0x3df0
sar ax, 5
and eax, 0xfbff
add eax, 0x200
xor eax, 0x3ef
sub esi, eax
add esi, edi
or esi, eax
add edx, 2
mov word [ecx - 2], si
mov ebp, dword [esp + 0x20]
test ebp, ebp
jle 0x4f9554
mov esi, dword [ecx]
mov edi, dword [edx]
mov eax, esi
mov ebx, esi
xor eax, edi
and ebx, edi
shr eax, 1
and eax, 0x7bef7bef
add ecx, 0x10
add eax, ebx
add edx, 0x10
and eax, 0x84108410
add eax, 0x3df7bdf0
sar eax, 5
and eax, 0xfbff7bff
add eax, 0x2004200
xor eax, 0x3ef7bef
sub esi, eax
add esi, edi
or esi, eax
mov dword [ecx - 0x10], esi
mov esi, dword [ecx - 0xc]
mov edi, dword [edx - 0xc]
mov eax, esi
xor eax, edi
mov ebx, esi
shr eax, 1
and eax, 0x7bef7bef
and ebx, edi
add eax, ebx
and eax, 0x84108410
add eax, 0x3df7bdf0
sar eax, 5
and eax, 0xfbff7bff
add eax, 0x2004200
xor eax, 0x3ef7bef
sub esi, eax
add esi, edi
or esi, eax
mov dword [ecx - 0xc], esi
mov esi, dword [edx - 8]
mov edi, dword [ecx - 8]
mov eax, esi
xor eax, edi
mov ebx, esi
shr eax, 1
and eax, 0x7bef7bef
and ebx, edi
add eax, ebx
and eax, 0x84108410
add eax, 0x3df7bdf0
sar eax, 5
and eax, 0xfbff7bff
add eax, 0x2004200
xor eax, 0x3ef7bef
sub esi, eax
add esi, edi
or esi, eax
mov dword [ecx - 8], esi
mov esi, dword [edx - 4]
mov edi, dword [ecx - 4]
mov eax, esi
xor eax, edi
mov ebx, esi
shr eax, 1
and eax, 0x7bef7bef
and ebx, edi
add eax, ebx
and eax, 0x84108410
add eax, 0x3df7bdf0
sar eax, 5
and eax, 0xfbff7bff
add eax, 0x2004200
xor eax, 0x3ef7bef
sub esi, eax
add esi, edi
or esi, eax
dec ebp
mov dword [ecx - 4], esi
jne 0x4f9455
mov ebx, dword [esp + 0x14]
test ebx, ebx
jle 0x4f95a1
mov ebp, ebx
mov esi, dword [edx]
mov edi, dword [ecx]
mov eax, esi
mov ebx, esi
xor eax, edi
and ebx, edi
shr eax, 1
and eax, 0x7bef7bef
add ecx, 4
add eax, ebx
add edx, 4
and eax, 0x84108410
add eax, 0x3df7bdf0
sar eax, 5
and eax, 0xfbff7bff
add eax, 0x2004200
xor eax, 0x3ef7bef
sub esi, eax
add esi, edi
or esi, eax
dec ebp
mov dword [ecx - 4], esi
jne 0x4f955a
mov ebx, dword [esp + 0x14]
mov al, byte [esp + 0x12]
test al, al
je 0x4f95ec
mov si, word [ecx]
mov di, word [edx]
mov eax, esi
mov ebp, esi
xor eax, edi
and ebp, edi
shr eax, 1
and eax, 0x7bef
add ecx, 2
add eax, ebp
and eax, 0xffff8410
add ax, 0x3df0
sar ax, 5
and eax, 0xfbff
add eax, 0x200
xor eax, 0x3ef
sub esi, eax
add esi, edi
or esi, eax
add edx, 2
mov word [ecx - 2], si
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
add ecx, edi
add edx, esi
dec eax
mov dword [esp + 0x18], eax
jne 0x4f93fe
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x94
ret
mov eax, dword [esp + 0x90]
mov ebp, dword [esp + 0x84]
add eax, eax
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x4c], eax
mov eax, ebx
mov dword [esp + 0x44], ebp
imul eax, dword [esp + 0xa0]
mov ebp, dword [esp + 0x98]
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0x9c]
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x94]
test esi, esi
jle 0x4f9744
mov dword [esp + 0x20], esi
jmp 0x4f967f
mov ebp, dword [esp + 0x18]
add ebp, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
js 0x4f9695
mov esi, dword [esp + 0x2c]
add edx, ebx
sub ebp, esi
mov dword [esp + 0x18], ebp
mov esi, dword [esp + 0x34]
mov dword [esp + 0x48], edx
test edi, edi
mov dword [esp + 0x14], esi
jle 0x4f9729
mov ebx, ecx
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x44]
add eax, esi
mov dword [esp + 0x14], eax
js 0x4f96cc
mov esi, dword [esp + 0x3c]
add edx, 2
sub eax, esi
mov dword [esp + 0x14], eax
mov si, word [edx]
mov di, word [ebx]
mov eax, esi
mov ebp, esi
xor eax, edi
and ebp, edi
shr eax, 1
and eax, 0x7bef
add ebx, 2
add eax, ebp
and eax, 0xffff8410
add ax, 0x3df0
sar ax, 5
and eax, 0xfbff
add eax, 0x200
xor eax, 0x3ef
sub esi, eax
add esi, edi
mov edi, dword [esp + 0x4c]
or esi, eax
mov eax, dword [esp + 0x1c]
mov word [ebx - 2], si
add edx, edi
dec eax
mov dword [esp + 0x1c], eax
jne 0x4f96af
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
add edx, eax
add ecx, ebp
dec esi
mov dword [esp + 0x20], esi
jne 0x4f967b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x94
ret