Function at 0x442720
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, ecx
push edi
xor edi, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov ecx, dword [eax]
cmp dword [eax + 0x10], edi
jle 0x442c5a
push ebx
push ebp
push esi
nop
mov eax, dword [eax + 0x18]
mov ebx, ecx
mov esi, dword [ebx]
lea ecx, [ecx + eax*4]
dec esi
mov dword [esp + 0x38], ecx
test esi, esi
jle 0x442c39
mov eax, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x28], eax
xor ebp, ebp
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 8]
add edx, edi
mov edi, dword [esp + 0x40]
mov ecx, dword [edi + 0x48]
mov dword [edi + 0x60], edx
mov eax, dword [ecx + 0xc]
imul eax, edx
add eax, dword [ecx]
sub esi, 1
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x64], eax
mov dword [esp + 0x2c], esi
js 0x442b16
mov eax, dword [ebx + 4]
add ebx, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], ebx
mov eax, dword [ebx]
mov dword [esp + 0x28], eax
cdq
and edx, 0xff
lea esi, [edx + eax]
mov eax, ecx
cdq
and edx, 0xff
sar esi, 8
lea ebx, [edx + eax]
sar ebx, 8
mov dword [esp + 0x18], ebx
cmp esi, ebx
jne 0x4427de
mov edx, dword [esp + 0x28]
mov eax, edx
sub eax, ecx
imul eax, dword [esp + 0x14]
add ebp, eax
jmp 0x442b05
movzx eax, cl
mov ecx, 0x100
sub ecx, eax
imul ecx, dword [esp + 0x14]
lea eax, [ecx + ebp]
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov dword [esp + 0x24], eax
test eax, eax
jle 0x442909
mov ecx, edi
push 1
push ebx
cmp eax, 0xff
jl 0x442839
lea eax, [esp + 0x18]
push eax
call fcn.00431f80
mov eax, dword [edi + 0x48]
mov ebp, dword [eax + 0x10]
movzx eax, byte [esp + 0x10]
imul ebp, ebx
mov ebx, eax
shl ebx, 0x10
or ebx, eax
imul ebx, dword [edi + 0x50]
jmp 0x442866
lea eax, [esp + 0x19]
push eax
call fcn.00431f80
mov eax, dword [edi + 0x48]
mov ecx, dword [edi + 0x50]
imul ecx, dword [esp + 0x24]
mov ebp, dword [eax + 0x10]
movzx eax, byte [esp + 0x11]
imul ebp, ebx
mov ebx, eax
shl ebx, 0x10
shr ecx, 8
or ebx, eax
imul ebx, ecx
add ebp, dword [edi + 0x64]
mov ecx, 0x100
shr ebx, 8
mov edx, 0x100
and ebx, 0xff00ff
mov eax, ebx
shr eax, 0x10
sub ecx, eax
mov eax, dword [ebp]
mov edi, eax
shr eax, 8
and eax, 0xff00ff
and edi, 0xff00ff
imul eax, ecx
imul edi, ecx
shr eax, 8
and eax, 0xff00ff
shr edi, 8
and edi, 0xff00ff
add edi, ebx
add ebx, eax
mov eax, ebx
mov ecx, edi
shr eax, 8
and eax, 0xff00ff
shr ecx, 8
sub edx, eax
and ecx, 0xff00ff
mov eax, ebx
shl edx, 8
shl eax, 8
or edx, eax
mov eax, 0x100
sub eax, ecx
mov ecx, 0x100
or eax, edi
mov edi, dword [esp + 0x40]
xor edx, eax
mov eax, ebx
shr eax, 8
and edx, 0xff00ff
and eax, 0xff00ff
shl ebx, 8
sub ecx, eax
shl ecx, 8
or ecx, ebx
mov ebx, dword [esp + 0x18]
xor edx, ecx
mov dword [ebp], edx
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x442af7
inc ebx
sub esi, ebx
mov dword [esp + 0x18], ebx
test esi, esi
jle 0x442af7
cmp esi, dword [edi + 0x6c]
jle 0x442940
mov dword [edi + 0x6c], esi
push dword [edi + 0x68]
call fcn.0051723e
push esi
call fcn.00517259
add esp, 8
mov dword [edi + 0x68], eax
mov ebx, dword [edi + 0x68]
mov ecx, edi
push esi
push dword [esp + 0x1c]
push ebx
call fcn.00431f80
mov eax, dword [edi + 0x48]
mov ecx, dword [edi + 0x50]
imul ecx, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov ebp, eax
imul ebp, dword [esp + 0x18]
mov dword [esp + 0x24], eax
sar ecx, 8
mov dword [esp + 0x30], ecx
add ebp, dword [edi + 0x64]
cmp ecx, 0xfe
jge 0x442a44
nop
movzx eax, byte [ebx]
mov edx, 0x100
inc ebx
dec esi
mov dword [esp + 0x18], ebx
mov ebx, eax
shl ebx, 0x10
or ebx, eax
imul ebx, ecx
mov ecx, 0x100
shr ebx, 8
and ebx, 0xff00ff
mov eax, ebx
shr eax, 0x10
sub ecx, eax
mov eax, dword [ebp]
mov edi, eax
shr eax, 8
and eax, 0xff00ff
and edi, 0xff00ff
imul eax, ecx
imul edi, ecx
shr eax, 8
and eax, 0xff00ff
shr edi, 8
and edi, 0xff00ff
add edi, ebx
add ebx, eax
mov eax, ebx
mov ecx, edi
shr eax, 8
and eax, 0xff00ff
shr ecx, 8
sub edx, eax
and ecx, 0xff00ff
shl edx, 8
mov eax, ebx
shl eax, 8
or edx, eax
mov eax, 0x100
sub eax, ecx
mov ecx, 0x100
or eax, edi
xor edx, eax
mov eax, ebx
shr eax, 8
and edx, 0xff00ff
and eax, 0xff00ff
shl ebx, 8
sub ecx, eax
shl ecx, 8
or ecx, ebx
mov ebx, dword [esp + 0x18]
xor edx, ecx
mov ecx, dword [esp + 0x30]
mov dword [ebp], edx
add ebp, dword [esp + 0x24]
test esi, esi
jg 0x442980
jmp 0x442af3
movzx eax, byte [ebx]
mov ecx, 0x100
inc ebx
mov edx, 0x100
mov dword [esp + 0x18], ebx
dec esi
mov ebx, eax
shl ebx, 0x10
or ebx, eax
mov eax, ebx
shr eax, 0x10
sub ecx, eax
mov eax, dword [ebp]
mov edi, eax
shr eax, 8
and eax, 0xff00ff
and edi, 0xff00ff
imul eax, ecx
imul edi, ecx
shr eax, 8
and eax, 0xff00ff
shr edi, 8
and edi, 0xff00ff
add edi, ebx
add ebx, eax
mov eax, ebx
mov ecx, edi
shr eax, 8
and eax, 0xff00ff
shr ecx, 8
sub edx, eax
and ecx, 0xff00ff
shl edx, 8
mov eax, ebx
shl eax, 8
or edx, eax
mov eax, 0x100
sub eax, ecx
mov ecx, 0x100
or eax, edi
xor edx, eax
mov eax, ebx
shr eax, 8
and edx, 0xff00ff
and eax, 0xff00ff
shl ebx, 8
sub ecx, eax
shl ecx, 8
or ecx, ebx
mov ebx, dword [esp + 0x18]
xor edx, ecx
mov dword [ebp], edx
add ebp, dword [esp + 0x24]
test esi, esi
jg 0x442a44
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x40]
movzx ebp, dl
imul ebp, ecx
sub dword [esp + 0x2c], 1
mov ecx, edx
mov ebx, dword [esp + 0x34]
jns 0x442792
mov eax, ebp
cdq
and edx, 0xff
lea esi, [edx + eax]
sar esi, 8
test esi, esi
jle 0x442c39
mov eax, ecx
mov ecx, edi
cdq
and edx, 0xff
push 1
lea ebp, [edx + eax]
sar ebp, 8
push ebp
cmp esi, 0xff
jl 0x442b75
lea eax, [esp + 0x1a]
push eax
call fcn.00431f80
mov eax, dword [edi + 0x48]
mov ebx, dword [eax + 0x10]
movzx eax, byte [esp + 0x12]
imul ebx, ebp
add ebx, dword [edi + 0x64]
mov edi, eax
shl edi, 0x10
or edi, eax
mov eax, dword [esp + 0x40]
imul edi, dword [eax + 0x50]
jmp 0x442ba3
lea eax, [esp + 0x1b]
push eax
call fcn.00431f80
mov eax, dword [edi + 0x48]
mov ecx, dword [edi + 0x50]
imul ecx, esi
mov ebx, dword [eax + 0x10]
movzx eax, byte [esp + 0x13]
imul ebx, ebp
shr ecx, 8
add ebx, dword [edi + 0x64]
mov edi, eax
shl edi, 0x10
or edi, eax
imul edi, ecx
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 [esp + 0x20]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
mov edi, eax
cmp eax, dword [ecx + 0x10]
mov eax, ecx
mov ecx, dword [esp + 0x38]
jl 0x442740
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x2c
ret 4