Function at 0x475ff0
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.004bfc47
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.004c05a0
xor eax, eax
add esp, 0x10
xor edx, edx
cmp dword [esi + 0x14], eax
jbe 0x47606d
lea ebx, [ebx]
mov ecx, dword [esi + 0x18]
cmp byte [ecx + eax], 0
je 0x476057
lea esp, [esp]
inc eax
cmp byte [ecx + eax], 0
jne 0x476050
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 0x476040
xor edx, edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], edx
cmp dword [esi + 0xc], edx
jbe 0x47621b
push ebp
push edi
mov eax, dword [esi + 0x18]
cmp byte [edx + eax], 0
je 0x4760cb
mov eax, dword [esi + 0x14]
cmp edx, dword [esi + 0xc]
jae 0x4760c7
xor ecx, ecx
test eax, eax
jbe 0x4760bd
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 0x4760a0
mov ecx, dword [esi + 0x18]
inc edx
cmp byte [edx + ecx], 0
jne 0x476092
mov dword [esp + 0x14], edx
cmp edx, dword [esi + 0xc]
je 0x476219
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 0x47610a
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 0x476161
mov ebp, ecx
sub ebp, eax
mov dword [esp + 0x18], ebp
jmp 0x476126
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 0x476122
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [esi + 0x14], eax
jbe 0x476207
mov edi, dword [esi + 0xc]
cmp eax, dword [esp + 0x10]
je 0x4761f9
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 0x4761f1
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 0x4761b3
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 0x476173
inc dword [esp + 0x10]
inc edx
mov dword [esp + 0x14], edx
cmp edx, dword [esi + 0xc]
jb 0x476086
pop edi
pop ebp
mov edx, dword [esi + 0xc]
imul edx, dword [esi + 0x14]
xor eax, eax
test edx, edx
jbe 0x476245
jmp 0x476230
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 0x476230
push ebx
call fcn.004c061a
add esp, 4
pop esi
pop ebx
add esp, 0x20
ret