Function at 0x4770c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
imul eax, dword [esi + 0x14]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c12f7
mov ebx, eax
mov eax, dword [esi + 0xc]
imul eax, dword [esi + 0x14]
add eax, eax
add eax, eax
push eax
push 0
push ebx
mov dword [esp + 0x2c], ebx
call fcn.004c1d50
xor eax, eax
add esp, 0x10
xor edx, edx
cmp dword [esi + 0x14], eax
jbe 0x47713d
lea ebx, [ebx]
mov ecx, dword [esi + 0x18]
cmp byte [ecx + eax], 0
je 0x477127
lea esp, [esp]
inc eax
cmp byte [ecx + eax], 0
jne 0x477120
mov ecx, dword [esi + 0xc]
imul ecx, edx
add ecx, eax
inc edx
mov dword [ebx + ecx*4], 1
inc eax
cmp edx, dword [esi + 0x14]
jb 0x477110
xor edx, edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], edx
cmp dword [esi + 0xc], edx
jbe 0x4772eb
push ebp
push edi
mov eax, dword [esi + 0x18]
cmp byte [edx + eax], 0
je 0x47719b
mov eax, dword [esi + 0x14]
cmp edx, dword [esi + 0xc]
jae 0x477197
xor ecx, ecx
test eax, eax
jbe 0x47718d
lea ecx, [ecx]
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 0x1c]
imul eax, ecx
add eax, edx
add eax, eax
add eax, eax
mov edi, dword [eax + edi]
xor dword [eax + ebx], edi
mov eax, dword [esi + 0x14]
inc ecx
cmp ecx, eax
jb 0x477170
mov ecx, dword [esi + 0x18]
inc edx
cmp byte [edx + ecx], 0
jne 0x477162
mov dword [esp + 0x14], edx
cmp edx, dword [esi + 0xc]
je 0x4772e9
mov eax, dword [esi + 0xc]
imul eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x1c]
add eax, eax
add eax, eax
add ecx, eax
mov edi, dword [ecx + edx*4]
add eax, ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
test edi, edi
je 0x4771da
mov eax, dword [esi + 4]
mov ebp, 0xffff
sub ebp, dword [eax + edi*4]
mov eax, dword [esi]
mov edi, dword [eax + ebp*4]
mov eax, dword [esp + 0x20]
cmp dword [esi + 0xc], 0
mov dword [esp + 0x1c], 0
jbe 0x477231
mov ebp, ecx
sub ebp, eax
mov dword [esp + 0x18], ebp
jmp 0x4771f6
mov ebp, dword [esp + 0x18]
mov ebp, dword [eax + ebp]
mov ecx, dword [esi + 4]
mov ebp, dword [ecx + ebp*4]
add ebp, dword [ecx + edi*4]
mov ecx, dword [esi]
mov ecx, dword [ecx + ebp*4]
mov ebp, dword [esp + 0x18]
mov dword [eax + ebp], ecx
mov ecx, dword [esi + 4]
mov ebp, dword [eax]
mov ebp, dword [ecx + ebp*4]
add ebp, dword [ecx + edi*4]
mov ecx, dword [esi]
mov ecx, dword [ecx + ebp*4]
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
inc ecx
add eax, 4
mov dword [esp + 0x1c], ecx
cmp ecx, dword [esi + 0xc]
jb 0x4771f2
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [esi + 0x14], eax
jbe 0x4772d7
mov edi, dword [esi + 0xc]
cmp eax, dword [esp + 0x10]
je 0x4772c9
mov ecx, dword [esi + 0xc]
imul ecx, eax
mov eax, dword [esi + 0x1c]
add ecx, ecx
add ecx, ecx
add eax, ecx
mov ebp, dword [eax + edx*4]
add ecx, ebx
xor ebx, ebx
test edi, edi
jbe 0x4772c1
mov edx, dword [esp + 0x28]
mov edi, eax
neg edi
add edx, edi
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x20]
add edi, edx
mov edx, ecx
mov dword [esp + 0x2c], edi
sub edx, eax
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x1c]
mov edi, dword [edi + eax]
mov edi, dword [ecx + edi*4]
add edi, dword [ecx + ebp*4]
mov ecx, dword [esi]
mov ecx, dword [ecx + edi*4]
xor dword [eax], ecx
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x2c]
mov edi, dword [edi + eax]
mov edi, dword [ecx + edi*4]
add edi, dword [ecx + ebp*4]
mov ecx, dword [esi]
mov ecx, dword [ecx + edi*4]
xor dword [edx + eax], ecx
mov edi, dword [esi + 0xc]
inc ebx
add eax, 4
cmp ebx, edi
jb 0x477283
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esi + 0x14]
jb 0x477243
inc dword [esp + 0x10]
inc edx
mov dword [esp + 0x14], edx
cmp edx, dword [esi + 0xc]
jb 0x477156
pop edi
pop ebp
mov edx, dword [esi + 0xc]
imul edx, dword [esi + 0x14]
xor eax, eax
test edx, edx
jbe 0x477315
jmp 0x477300
mov ecx, dword [esi + 0x1c]
mov edx, dword [ebx + eax*4]
mov dword [ecx + eax*4], edx
mov ecx, dword [esi + 0xc]
imul ecx, dword [esi + 0x14]
inc eax
cmp eax, ecx
jb 0x477300
push ebx
call fcn.004c1dca
add esp, 4
pop esi
pop ebx
add esp, 0x20
ret