Function at 0x4f9100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x74
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov ecx, dword [0x742040]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
test esi, esi
cmove esi, edx
mov dword [ebp - 0x78], esi
pxor xmm0, xmm0
movdqu xmmword [ebp - 0x60], xmm0
mov ecx, dword [edx + 4]
mov dword [ebp - 0x70], ecx
cmp eax, 0xffffffff
jne 0x4f9501
mov dword [ebp - 0x7c], ecx
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edi, dword [eax + 4]
test edi, edi
jle 0x4f94f2
mov edx, dword [eax]
mov eax, edi
cmp dword [edx + eax*4 - 4], 0
je 0x4f94d2
lea ecx, [eax - 1]
shl ecx, 5
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x64], edx
mov eax, dword [edx + eax*4 - 4]
xor edx, edx
test eax, eax
setne dl
mov esi, eax
shr esi, 0x10
cmp eax, 0x10000
cmovb esi, eax
mov eax, 0
setae al
shl eax, 4
mov dword [ebp - 0x68], eax
mov ecx, esi
shr ecx, 8
xor eax, eax
cmp esi, 0x100
cmovb ecx, esi
setae al
mov dword [ebp - 0x74], eax
mov esi, ecx
shr esi, 4
xor eax, eax
cmp ecx, 0x10
cmovb esi, ecx
setae al
mov dword [ebp - 0x80], eax
mov ecx, esi
shr ecx, 2
xor eax, eax
cmp esi, 4
cmovb ecx, esi
setae al
add edx, dword [ebp - 0x6c]
add edx, dword [ebp - 0x68]
mov esi, dword [ebp - 0x74]
lea edx, [edx + esi*8]
mov esi, dword [ebp - 0x80]
lea edx, [edx + esi*4]
cmp ecx, 2
lea eax, [edx + eax*2]
sbb eax, 0xffffffff
dec eax
and eax, 7
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x4f95d6
test edi, edi
mov ecx, dword [ebp - 0x64]
jle 0x4f94ea
cmp dword [ecx + edi*4 - 4], 0
je 0x4f94bd
lea esi, [edi - 1]
shl esi, 5
mov eax, dword [ecx + edi*4 - 4]
xor edx, edx
test eax, eax
setne dl
mov ecx, eax
shr ecx, 0x10
cmp eax, 0x10000
cmovb ecx, eax
mov eax, 0
setae al
shl eax, 4
mov dword [ebp - 0x64], eax
mov edi, ecx
shr edi, 8
xor eax, eax
cmp ecx, 0x100
cmovb edi, ecx
setae al
mov dword [ebp - 0x68], eax
mov eax, edi
shr eax, 4
xor ecx, ecx
cmp edi, 0x10
cmovb eax, edi
setae cl
mov dword [ebp - 0x74], ecx
mov edi, eax
shr edi, 2
xor ecx, ecx
cmp eax, 4
cmovb edi, eax
setae cl
or edx, esi
add edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x68]
lea eax, [edx + eax*8]
mov edx, dword [ebp - 0x74]
lea eax, [eax + edx*4]
lea eax, [eax + ecx*2]
cmp edi, 2
mov edi, eax
sbb edi, 0xffffffff
add edi, 7
shr edi, 3
movzx edx, byte [ebx]
mov ecx, dword [ebp - 0x6c]
shr edx, cl
test edx, edx
mov esi, dword [ebp - 0x70]
jne 0x4f9529
xor edx, edx
test ecx, ecx
sete dl
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edx
sub edi, edx
lea eax, [esi + 2]
cmp edi, eax
jb 0x4f9545
mov edx, esi
mov esi, dword [ebp - 0x7c]
test esi, esi
sets cl
add eax, esi
cmp edi, eax
setae al
or al, cl
je 0x4f9545
add ebx, dword [ebp - 0x64]
cmp byte [ebx + edi - 1], 0xbc
jne 0x4f9537
mov eax, edx
not eax
add edi, eax
push edi
mov esi, edx
call fcn.004f73e0
add esp, 4
test eax, eax
je 0x4f955d
mov ecx, esi
mov esi, eax
lea eax, [ebx + edi]
push dword [ebp - 0x78]
push ecx
mov dword [ebp - 0x78], eax
push eax
push edi
push esi
call fcn.0049ca60
add esp, 0x14
test eax, eax
je 0x4f95a0
test edi, edi
je 0x4f933c
xor eax, eax
mov cl, byte [ebx + eax]
xor byte [esi + eax], cl
inc eax
cmp edi, eax
jne 0x4f9331
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x4f9350
mov cl, 8
sub cl, al
mov eax, 0xff
shr eax, cl
and byte [esi], al
neg dword [ebp - 0x64]
lea eax, [edi - 1]
xor ebx, ebx
mov edx, ebx
mov cl, byte [esi + ebx]
inc ebx
cmp edx, eax
jae 0x4f9366
test cl, cl
je 0x4f9358
cmp cl, 1
jne 0x4f9577
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
mov eax, dword [ebp + 0x10]
js 0x4f938e
mov edx, dword [ebp - 0x68]
add edx, dword [ebp - 0x64]
not ecx
add ecx, edx
sub ecx, dword [ebp - 0x70]
cmp ecx, ebx
jne 0x4f9566
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x20], xmm0
movdqu xmmword [ebp - 0x30], xmm0
movdqu xmmword [ebp - 0x40], xmm0
movdqu xmmword [ebp - 0x50], xmm0
test eax, eax
je 0x4f93d6
push dword [eax + 0x1c]
call fcn.004f73e0
add esp, 4
mov dword [ebp - 0x64], eax
test eax, eax
je 0x4f95a0
push 0
call fcn.004f7480
add esp, 4
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
sub edi, ebx
mov ecx, dword [eax + 0xc]
call dword [0x73c768]
lea eax, [ebp - 0x60]
push eax
call ecx
add esp, 4
lea eax, [ebp - 0x60]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
call dword [0x73c768]
push 8
push 0x6d33c7
lea eax, [ebp - 0x60]
push eax
call ecx
add esp, 0xc
lea eax, [ebp - 0x60]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
call dword [0x73c768]
push dword [ebp - 0x70]
push dword [ebp + 0xc]
lea eax, [ebp - 0x60]
push eax
call ecx
add esp, 0xc
mov eax, esi
add eax, ebx
mov dword [ebp - 0x64], eax
lea ebx, [ebp - 0x60]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x10]
call dword [0x73c768]
push edi
push dword [ebp - 0x64]
mov edi, ebx
push ebx
call ecx
add esp, 0xc
mov eax, dword [ebx]
mov ecx, dword [eax + 0x14]
call dword [0x73c768]
lea ebx, [ebp - 0x50]
push ebx
push edi
call ecx
add esp, 8
mov eax, dword [edi]
push dword [eax + 0x1c]
push dword [edi + 4]
call fcn.004f74c0
mov eax, dword [ebp - 0x70]
add esp, 8
xor edi, edi
inc edi
test eax, eax
je 0x4f948a
push eax
push dword [ebp - 0x78]
push ebx
call fcn.0054265d
add esp, 0xc
test eax, eax
jne 0x4f9588
push esi
call fcn.004f7480
add esp, 4
push dword [ebp - 0x5c]
call fcn.004f7480
add esp, 4
mov eax, dword [ebp - 0x54]
test eax, eax
jne 0x4f95a7
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005412b6
mov eax, edi
add esp, 0x74
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [edi - 1]
cmp edi, 1
mov edi, eax
jg 0x4f920b
xor edi, edi
jmp 0x4f929d
lea ecx, [eax - 1]
cmp eax, 1
mov eax, ecx
jg 0x4f9158
mov dword [ebp - 0x64], edx
xor eax, eax
jmp 0x4f91e9
jne 0x4f9216
jmp 0x4f94cb
je 0x4f95bd
mov edx, dword [eax]
mov eax, edi
jmp 0x4f9163
cmp eax, 0xfffffffe
jne 0x4f9510
mov ecx, 0xfffffffe
jmp 0x4f913d
mov ecx, eax
jge 0x4f913d
push 0xe9
push 0x6d3387
push 0x8a
jmp 0x4f9551
push 0xf0
push 0x6d3387
push 0x7a
jmp 0x4f9551
push 0xfe
push 0x6d3387
push 0x7f
jmp 0x4f9551
push 0xfa
push 0x6d3387
push 0x71
push 0
push 4
call fcn.006325a0
add esp, 0x14
xor edi, edi
xor esi, esi
jmp 0x4f948a
push 0x11f
push 0x6d3387
push 0x8a
jmp 0x4f9594
push 0x119
push 0x6d3387
push 0x8b
jmp 0x4f9594
push 0x12b
push 0x6d3387
push 0x69
push 0
push 4
call fcn.006325a0
add esp, 0x14
xor edi, edi
jmp 0x4f948a
mov ecx, dword [eax]
mov esi, dword [ebp - 0x58]
call dword [0x73c768]
push esi
call ecx
add esp, 4
jmp 0x4f94a9
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax + 0x14]
xor edi, edi
mov dword [ebp - 0x6c], 7
test ecx, ecx
je 0x4f929d
call dword [0x73c768]
push dword [ebp + 8]
call ecx
add esp, 4
mov edi, eax
jmp 0x4f929d