Function at 0x42f8b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, ecx
push edi
xor edi, edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
mov ecx, dword [eax]
cmp dword [eax + 0x10], edi
jle 0x42fdd6
push ebx
push esi
nop
mov eax, dword [eax + 0x18]
mov esi, ecx
lea ecx, [ecx + eax*4]
mov eax, dword [esi]
dec eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x42fdba
mov eax, dword [ebp - 0x1c]
add esi, 4
xor ebx, ebx
mov edx, dword [esi]
mov dword [ebp - 8], edx
mov edx, dword [eax + 8]
add edx, edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov eax, dword [ecx + 0xc]
imul eax, edx
sub edx, dword [edi + 0x10]
add eax, dword [ecx]
mov ecx, dword [ebp - 8]
mov dword [edi + 0x14], eax
mov eax, dword [edi + 4]
imul edx, dword [eax + 0xc]
add edx, dword [eax]
sub dword [ebp - 0x10], 1
mov dword [edi + 0x18], edx
js 0x42fcb3
mov eax, dword [esi + 4]
add esi, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x28], esi
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
cdq
and edx, 0xff
lea esi, [edx + eax]
mov eax, ecx
cdq
and edx, 0xff
sar esi, 8
mov dword [ebp - 4], esi
lea ecx, [edx + eax]
sar ecx, 8
cmp esi, ecx
jne 0x42f96e
mov ecx, dword [ebp - 0x20]
mov eax, ecx
sub eax, dword [ebp - 8]
imul eax, dword [ebp - 0xc]
add ebx, eax
jmp 0x42fca3
mov edx, dword [ebp - 8]
movzx eax, dl
mov edx, 0x100
sub edx, eax
imul edx, dword [ebp - 0xc]
lea eax, [ebx + edx]
cdq
and edx, 0xff
lea ebx, [edx + eax]
sar ebx, 8
mov dword [ebp - 8], ebx
test ebx, ebx
jle 0x42fa88
mov eax, dword [edi]
mov edx, ecx
sub edx, dword [edi + 0xc]
mov esi, dword [eax + 0x10]
mov eax, dword [edi + 4]
imul esi, ecx
imul edx, dword [eax + 0x10]
mov eax, dword [edi + 0x18]
add esi, dword [edi + 0x14]
mov dword [ebp - 0x14], esi
mov al, byte [edx + eax]
cmp ebx, 0xff
jl 0x42f9d2
movzx eax, al
mov ebx, eax
shl ebx, 0x10
or ebx, eax
imul ebx, dword [edi + 8]
jmp 0x42f9e9
mov ebx, dword [edi + 8]
imul ebx, dword [ebp - 8]
movzx edx, al
mov eax, edx
shl eax, 0x10
or eax, edx
sar ebx, 8
imul ebx, eax
shr ebx, 8
mov edx, 0x100
and ebx, 0xff00ff
mov eax, ebx
shr eax, 0x10
sub edx, eax
mov eax, dword [esi]
mov edi, eax
mov esi, 0x100
shr eax, 8
and edi, 0xff00ff
and eax, 0xff00ff
imul edi, edx
imul eax, edx
shr edi, 8
shr eax, 8
and edi, 0xff00ff
and eax, 0xff00ff
add edi, ebx
add ebx, eax
mov edx, edi
mov eax, ebx
shr edx, 8
shr eax, 8
and edx, 0xff00ff
and eax, 0xff00ff
sub esi, eax
mov eax, ebx
shl eax, 8
shl esi, 8
or esi, eax
mov eax, 0x100
sub eax, edx
mov edx, 0x100
or eax, edi
mov edi, dword [ebp + 8]
xor esi, eax
mov eax, ebx
shr eax, 8
and esi, 0xff00ff
and eax, 0xff00ff
shl ebx, 8
sub edx, eax
mov eax, dword [ebp - 0x14]
shl edx, 8
or edx, ebx
xor esi, edx
mov dword [eax], esi
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
test edx, edx
jle 0x42fc96
inc ecx
sub esi, ecx
mov dword [ebp - 4], esi
test esi, esi
jle 0x42fc96
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
mov ebx, eax
mov dword [ebp - 0x14], eax
mov eax, dword [edi + 8]
imul ebx, ecx
sub ecx, dword [edi + 0xc]
imul eax, edx
add ebx, dword [edi + 0x14]
mov dword [ebp - 8], ebx
sar eax, 8
mov dword [ebp - 0x24], eax
cmp eax, 0xfe
jge 0x42fba7
nop
mov eax, dword [edi + 4]
mov esi, ecx
inc ecx
mov edx, dword [eax + 0x10]
mov eax, dword [edi + 0x18]
imul edx, esi
mov esi, 0x100
movzx eax, byte [edx + eax]
mov edx, 0x100
mov ebx, eax
shl ebx, 0x10
or ebx, eax
imul ebx, dword [ebp - 0x24]
shr ebx, 8
and ebx, 0xff00ff
mov eax, ebx
shr eax, 0x10
sub edx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov edi, eax
shr eax, 8
and edi, 0xff00ff
and eax, 0xff00ff
imul edi, edx
imul eax, edx
shr edi, 8
shr eax, 8
and edi, 0xff00ff
and eax, 0xff00ff
add edi, ebx
add ebx, eax
mov edx, edi
mov eax, ebx
shr edx, 8
shr eax, 8
and edx, 0xff00ff
and eax, 0xff00ff
sub esi, eax
mov eax, ebx
shl eax, 8
shl esi, 8
or esi, eax
mov eax, 0x100
sub eax, edx
mov edx, 0x100
or eax, edi
mov edi, dword [ebp + 8]
xor esi, eax
mov eax, ebx
shr eax, 8
and esi, 0xff00ff
and eax, 0xff00ff
shl ebx, 8
sub edx, eax
mov eax, dword [ebp - 8]
shl edx, 8
or edx, ebx
xor esi, edx
mov dword [eax], esi
add eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
test eax, eax
jg 0x42fad0
jmp 0x42fc96
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x10]
mov edx, eax
imul edx, ecx
mov dword [ebp - 0x24], eax
add edx, dword [edi + 0x18]
mov dword [ebp - 8], edx
cmp dword [ebp - 0x14], eax
jne 0x42fbe4
mov ecx, dword [edi + 4]
cmp dword [ecx + 8], 1
jne 0x42fbe4
mov ecx, dword [edi]
cmp dword [ecx + 8], 1
jne 0x42fbe4
imul eax, esi
push eax
push edx
push ebx
call fcn.004ac3c0
add esp, 0xc
jmp 0x42fc96
movzx eax, byte [edx]
mov ecx, 0x100
mov edi, eax
mov edx, 0x100
shl edi, 0x10
or edi, eax
mov eax, edi
shr eax, 0x10
sub ecx, eax
mov eax, dword [ebx]
mov esi, eax
shr eax, 8
and eax, 0xff00ff
and esi, 0xff00ff
imul eax, ecx
imul esi, ecx
shr eax, 8
and eax, 0xff00ff
shr esi, 8
and esi, 0xff00ff
add esi, edi
add edi, eax
mov eax, edi
mov ecx, esi
shr eax, 8
and eax, 0xff00ff
shr ecx, 8
sub edx, eax
and ecx, 0xff00ff
shl edx, 8
mov eax, edi
shl eax, 8
or edx, eax
mov eax, 0x100
sub eax, ecx
mov ecx, 0x100
or eax, esi
xor edx, eax
mov eax, edi
shr eax, 8
and edx, 0xff00ff
and eax, 0xff00ff
shl edi, 8
sub ecx, eax
mov eax, dword [ebp - 4]
shl ecx, 8
dec eax
or ecx, edi
mov dword [ebp - 4], eax
xor edx, ecx
mov dword [ebx], edx
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x24]
add ebx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
test eax, eax
jg 0x42fbe4
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
movzx ebx, cl
imul ebx, dword [ebp - 0xc]
sub dword [ebp - 0x10], 1
mov esi, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
jns 0x42f927
mov eax, ebx
cdq
and edx, 0xff
lea esi, [edx + eax]
sar esi, 8
test esi, esi
jle 0x42fdba
mov eax, ecx
mov ecx, dword [edi]
cdq
and edx, 0xff
add edx, eax
mov eax, dword [edi + 4]
mov ebx, dword [ecx + 0x10]
sar edx, 8
imul ebx, edx
sub edx, dword [edi + 0xc]
imul edx, dword [eax + 0x10]
mov eax, dword [edi + 0x18]
add ebx, dword [edi + 0x14]
mov al, byte [edx + eax]
cmp esi, 0xff
jl 0x42fd0e
movzx eax, al
mov edi, eax
shl edi, 0x10
or edi, eax
mov eax, dword [ebp + 8]
imul edi, dword [eax + 8]
jmp 0x42fd24
mov edi, dword [edi + 8]
movzx ecx, al
imul edi, esi
mov eax, ecx
shl eax, 0x10
or eax, ecx
sar edi, 8
imul edi, eax
shr edi, 8
mov ecx, 0x100
and edi, 0xff00ff
mov edx, 0x100
mov eax, edi
shr eax, 0x10
sub ecx, eax
mov eax, dword [ebx]
mov esi, eax
shr eax, 8
and eax, 0xff00ff
and esi, 0xff00ff
imul eax, ecx
imul esi, ecx
shr eax, 8
and eax, 0xff00ff
shr esi, 8
and esi, 0xff00ff
add esi, edi
add edi, eax
mov eax, edi
mov ecx, esi
shr eax, 8
and eax, 0xff00ff
shr ecx, 8
sub edx, eax
and ecx, 0xff00ff
mov eax, edi
shl edx, 8
shl eax, 8
or edx, eax
mov eax, 0x100
sub eax, ecx
mov ecx, 0x100
or eax, esi
xor edx, eax
mov eax, edi
shr eax, 8
and edx, 0xff00ff
and eax, 0xff00ff
shl edi, 8
sub ecx, eax
shl ecx, 8
or ecx, edi
xor edx, ecx
mov dword [ebx], edx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
mov edi, eax
cmp eax, dword [ecx + 0x10]
mov eax, ecx
mov ecx, dword [ebp - 0x2c]
jl 0x42f8d0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4