Function at 0x442120
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x38
mov eax, ecx
push edi
xor edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov ecx, dword [eax]
cmp dword [eax + 0x10], edi
jle 0x442775
push ebx
push ebp
push esi
nop
mov eax, dword [eax + 0x18]
mov esi, ecx
mov ebp, dword [esi]
lea ecx, [ecx + eax*4]
dec ebp
mov dword [esp + 0x44], ecx
test ebp, ebp
jle 0x442754
mov eax, dword [esi + 4]
add esi, 4
mov dword [esp + 0x28], eax
xor ebx, ebx
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 8]
add edx, edi
mov edi, dword [esp + 0x4c]
mov ecx, dword [edi + 0x48]
mov dword [edi + 0x60], edx
mov eax, dword [ecx + 0xc]
imul eax, edx
add eax, dword [ecx]
sub ebp, 1
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x64], eax
mov dword [esp + 0x2c], ebp
js 0x4425bd
mov eax, dword [esi + 4]
add esi, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], esi
mov eax, dword [esi]
mov dword [esp + 0x28], eax
cdq
and edx, 0xff
lea esi, [edx + eax]
mov eax, ecx
cdq
and edx, 0xff
sar esi, 8
lea ebp, [edx + eax]
sar ebp, 8
mov dword [esp + 0x14], ebp
cmp esi, ebp
jne 0x4421de
mov edx, dword [esp + 0x28]
mov eax, edx
sub eax, ecx
imul eax, dword [esp + 0x10]
add ebx, eax
jmp 0x4425ac
movzx eax, cl
mov ecx, 0x100
sub ecx, eax
imul ecx, dword [esp + 0x10]
lea eax, [ebx + ecx]
cdq
and edx, 0xff
lea ebx, [edx + eax]
sar ebx, 8
test ebx, ebx
jle 0x442387
mov ecx, edi
push 1
push ebp
cmp ebx, 0xff
jl 0x44229e
lea eax, [esp + 0x38]
push eax
call fcn.00431e90
mov eax, dword [edi + 0x48]
mov edx, 0x100
mov ebx, dword [eax + 0x10]
mov eax, dword [esp + 0x30]
imul ebx, ebp
mov ebp, eax
shr ebp, 8
and eax, 0xff00ff
and ebp, 0xff00ff
add ebx, dword [edi + 0x64]
mov edi, dword [edi + 0x50]
imul ebp, edi
mov dword [esp + 0x24], ebx
imul eax, edi
shr ebp, 8
and ebp, 0xff00ff
mov ecx, ebp
shr eax, 8
shr ecx, 0x10
and eax, 0xff00ff
sub edx, ecx
mov ecx, dword [ebx]
mov ebx, ecx
shr ecx, 8
and ebx, 0xff00ff
and ecx, 0xff00ff
imul ebx, edx
imul ecx, edx
shr ebx, 8
shr ecx, 8
and ebx, 0xff00ff
and ecx, 0xff00ff
add ebx, eax
add ebp, ecx
jmp 0x442327
lea eax, [esp + 0x3c]
push eax
call fcn.00431e90
mov eax, dword [edi + 0x48]
mov ecx, 0x100
mov edx, dword [eax + 0x10]
imul edx, ebp
add edx, dword [edi + 0x64]
mov edi, dword [edi + 0x50]
imul edi, ebx
mov ebx, dword [esp + 0x34]
mov ebp, ebx
shr ebp, 8
and ebx, 0xff00ff
and ebp, 0xff00ff
mov dword [esp + 0x24], edx
mov edx, dword [edx]
shr edi, 8
imul ebp, edi
imul ebx, edi
shr ebp, 8
and ebp, 0xff00ff
shr ebx, 8
mov eax, ebp
and ebx, 0xff00ff
shr eax, 0x10
sub ecx, eax
mov eax, edx
shr edx, 8
and eax, 0xff00ff
and edx, 0xff00ff
imul eax, ecx
imul edx, ecx
shr eax, 8
shr edx, 8
and eax, 0xff00ff
and edx, 0xff00ff
add ebx, eax
add ebp, edx
mov eax, ebp
mov edi, dword [esp + 0x4c]
shr eax, 8
mov edx, 0x100
and eax, 0xff00ff
mov ecx, ebx
sub edx, eax
shr ecx, 8
mov eax, ebp
shl edx, 8
shl eax, 8
and ecx, 0xff00ff
or edx, eax
mov eax, 0x100
sub eax, ecx
mov ecx, 0x100
or eax, ebx
xor edx, eax
mov eax, ebp
shr eax, 8
and edx, 0xff00ff
and eax, 0xff00ff
shl ebp, 8
sub ecx, eax
mov eax, dword [esp + 0x24]
shl ecx, 8
or ecx, ebp
mov ebp, dword [esp + 0x14]
xor edx, ecx
mov dword [eax], edx
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x44259e
inc ebp
sub esi, ebp
mov dword [esp + 0x14], ebp
test esi, esi
jle 0x44259e
cmp esi, dword [edi + 0x6c]
jle 0x4423c5
mov dword [edi + 0x6c], esi
push dword [edi + 0x68]
call fcn.00518201
lea eax, [esi*4]
push eax
call fcn.0051821c
add esp, 8
mov dword [edi + 0x68], eax
mov ebx, dword [edi + 0x68]
mov ecx, edi
push esi
push ebp
push ebx
call fcn.00431e90
mov eax, dword [edi + 0x48]
mov ecx, dword [edi + 0x50]
imul ecx, dword [esp + 0x10]
mov eax, dword [eax + 0x10]
mov ebp, eax
imul ebp, dword [esp + 0x14]
mov dword [esp + 0x24], eax
sar ecx, 8
mov dword [esp + 0x20], ecx
add ebp, dword [edi + 0x64]
cmp ecx, 0xfe
jge 0x4424e0
mov edi, dword [ebx]
dec esi
mov edx, dword [ebp]
add ebx, 4
mov dword [esp + 0x14], ebx
mov ebx, edi
shr ebx, 8
and edi, 0xff00ff
imul edi, dword [esp + 0x20]
and ebx, 0xff00ff
imul ebx, ecx
mov ecx, 0x100
shr edi, 8
shr ebx, 8
and edi, 0xff00ff
and ebx, 0xff00ff
mov eax, ebx
shr eax, 0x10
sub ecx, eax
mov eax, edx
and eax, 0xff00ff
shr edx, 8
imul eax, ecx
and edx, 0xff00ff
imul edx, ecx
shr eax, 8
and eax, 0xff00ff
shr edx, 8
add edi, eax
and edx, 0xff00ff
add ebx, edx
mov ecx, edi
mov eax, ebx
shr ecx, 8
shr eax, 8
mov edx, 0x100
and eax, 0xff00ff
and ecx, 0xff00ff
sub edx, eax
mov eax, ebx
shl eax, 8
shl edx, 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 + 0x14]
xor edx, ecx
mov ecx, dword [esp + 0x20]
mov dword [ebp], edx
add ebp, dword [esp + 0x24]
test esi, esi
jg 0x442401
jmp 0x44259a
mov edx, dword [ebx]
mov ecx, 0x100
add ebx, 4
dec esi
mov dword [esp + 0x14], ebx
mov ebx, edx
shr ebx, 8
and edx, 0xff00ff
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
add ebx, eax
and edi, 0xff00ff
add edi, edx
mov eax, ebx
shr eax, 8
mov edx, 0x100
and eax, 0xff00ff
mov ecx, edi
sub edx, eax
shr ecx, 8
shl edx, 8
mov eax, ebx
shl eax, 8
and ecx, 0xff00ff
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 + 0x14]
xor edx, ecx
mov dword [ebp], edx
add ebp, dword [esp + 0x24]
test esi, esi
jg 0x4424e0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x4c]
movzx ebx, dl
imul ebx, ecx
sub dword [esp + 0x2c], 1
mov ecx, edx
mov esi, dword [esp + 0x38]
jns 0x442192
mov eax, ebx
cdq
and edx, 0xff
lea ebx, [edx + eax]
sar ebx, 8
test ebx, ebx
jle 0x442754
mov eax, ecx
mov ecx, edi
cdq
and edx, 0xff
push 1
lea esi, [edx + eax]
sar esi, 8
push esi
cmp ebx, 0xff
jl 0x442679
lea eax, [esp + 0x44]
push eax
call fcn.00431e90
mov eax, dword [edi + 0x48]
mov edx, 0x100
mov ecx, dword [edi + 0x50]
mov ebp, dword [eax + 0x10]
imul ebp, esi
add ebp, dword [edi + 0x64]
mov edi, dword [esp + 0x3c]
mov ebx, edi
shr ebx, 8
and edi, 0xff00ff
and ebx, 0xff00ff
imul edi, ecx
mov esi, dword [ebp]
imul ebx, ecx
shr edi, 8
and edi, 0xff00ff
shr ebx, 8
and ebx, 0xff00ff
mov eax, ebx
shr eax, 0x10
sub edx, eax
mov eax, esi
shr esi, 8
and eax, 0xff00ff
and esi, 0xff00ff
imul eax, edx
imul esi, edx
shr eax, 8
shr esi, 8
and eax, 0xff00ff
and esi, 0xff00ff
add edi, eax
add ebx, esi
jmp 0x4426ff
lea eax, [esp + 0x48]
push eax
call fcn.00431e90
mov eax, dword [edi + 0x48]
mov ecx, 0x100
mov ebp, dword [eax + 0x10]
imul ebp, esi
mov esi, dword [edi + 0x50]
imul esi, ebx
add ebp, dword [edi + 0x64]
mov edi, dword [esp + 0x40]
mov ebx, edi
shr ebx, 8
and edi, 0xff00ff
and ebx, 0xff00ff
shr esi, 8
mov edx, dword [ebp]
imul ebx, esi
imul edi, esi
shr ebx, 8
and ebx, 0xff00ff
shr edi, 8
mov eax, ebx
and edi, 0xff00ff
shr eax, 0x10
sub ecx, eax
mov eax, edx
shr edx, 8
and eax, 0xff00ff
and edx, 0xff00ff
imul eax, ecx
imul edx, ecx
shr eax, 8
shr edx, 8
and eax, 0xff00ff
and edx, 0xff00ff
add edi, eax
add ebx, edx
mov eax, ebx
mov edx, 0x100
shr eax, 8
mov ecx, edi
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
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
xor edx, ecx
mov dword [ebp], edx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
mov edi, eax
cmp eax, dword [ecx + 0x10]
mov eax, ecx
mov ecx, dword [esp + 0x44]
jl 0x442140
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x38
ret 4