Function at 0x462f80
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.004df63a
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.004e0730
xor eax, eax
add esp, 0x10
xor edx, edx
cmp dword [esi + 0x14], eax
jbe 0x462ffd
lea ebx, [ebx]
mov ecx, dword [esi + 0x18]
cmp byte [ecx + eax], 0
je 0x462fe7
lea esp, [esp]
inc eax
cmp byte [ecx + eax], 0
jne 0x462fe0
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 0x462fd0
xor edx, edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], edx
cmp dword [esi + 0xc], edx
jbe 0x4631ab
push ebp
push edi
mov eax, dword [esi + 0x18]
cmp byte [edx + eax], 0
je 0x46305b
mov eax, dword [esi + 0x14]
cmp edx, dword [esi + 0xc]
jae 0x463057
xor ecx, ecx
test eax, eax
jbe 0x46304d
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 0x463030
mov ecx, dword [esi + 0x18]
inc edx
cmp byte [edx + ecx], 0
jne 0x463022
mov dword [esp + 0x14], edx
cmp edx, dword [esi + 0xc]
je 0x4631a9
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 0x46309a
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 0x4630f1
mov ebp, ecx
sub ebp, eax
mov dword [esp + 0x18], ebp
jmp 0x4630b6
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 0x4630b2
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [esi + 0x14], eax
jbe 0x463197
mov edi, dword [esi + 0xc]
cmp eax, dword [esp + 0x10]
je 0x463189
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 0x463181
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 0x463143
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 0x463103
inc dword [esp + 0x10]
inc edx
mov dword [esp + 0x14], edx
cmp edx, dword [esi + 0xc]
jb 0x463016
pop edi
pop ebp
mov edx, dword [esi + 0xc]
imul edx, dword [esi + 0x14]
xor eax, eax
test edx, edx
jbe 0x4631d5
jmp 0x4631c0
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 0x4631c0
push ebx
call fcn.004e07e4
add esp, 4
pop esi
pop ebx
add esp, 0x20
ret