Function at 0x438570
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
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 0x438adc
push ebx
push ebp
push esi
nop
mov eax, dword [eax + 0x18]
mov ebx, ecx
mov ebp, dword [ebx]
lea ecx, [ecx + eax*4]
dec ebp
mov dword [esp + 0x34], ecx
test ebp, ebp
jle 0x438abb
mov eax, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x28], eax
xor esi, esi
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 8]
add edx, edi
mov edi, dword [esp + 0x3c]
mov ecx, dword [edi]
mov eax, dword [ecx + 0xc]
imul eax, edx
sub edx, dword [edi + 0x10]
add eax, dword [ecx]
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x14], eax
mov eax, dword [edi + 4]
imul edx, dword [eax + 0xc]
add edx, dword [eax]
sub ebp, 1
mov dword [edi + 0x18], edx
mov dword [esp + 0x2c], ebp
js 0x4389ae
nop dword [eax]
mov eax, dword [ebx + 4]
add ebx, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], ebx
mov eax, dword [ebx]
mov dword [esp + 0x28], eax
cdq
and edx, 0xff
lea ebp, [edx + eax]
mov eax, ecx
cdq
and edx, 0xff
sar ebp, 8
lea ebx, [edx + eax]
sar ebx, 8
mov dword [esp + 0x10], ebx
cmp ebp, ebx
jne 0x43863c
mov edx, dword [esp + 0x28]
mov eax, edx
sub eax, ecx
imul eax, dword [esp + 0x14]
add esi, eax
jmp 0x43899d
movzx eax, cl
mov ecx, 0x100
sub ecx, eax
imul ecx, dword [esp + 0x14]
lea eax, [esi + ecx]
cdq
and edx, 0xff
lea ecx, [edx + eax]
sar ecx, 8
test ecx, ecx
jle 0x438759
mov eax, dword [edi]
mov esi, dword [edi + 8]
mov edx, dword [eax + 0x10]
mov eax, dword [edi + 0x14]
imul edx, ebx
add edx, eax
mov eax, dword [edi + 4]
mov dword [esp + 0x18], edx
mov edx, dword [edx]
cmp ecx, 0xff
jge 0x43868a
imul esi, ecx
sar esi, 8
mov ecx, ebx
sub ecx, dword [edi + 0xc]
imul ecx, dword [eax + 0x10]
mov eax, dword [edi + 0x18]
mov edi, dword [ecx + eax]
mov ebx, edi
shr ebx, 8
mov ecx, 0x100
and ebx, 0xff00ff
and edi, 0xff00ff
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
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
mov edi, dword [esp + 0x3c]
xor edx, eax
mov eax, ebx
shr eax, 8
and edx, 0xff00ff
and eax, 0xff00ff
shl ebx, 8
sub ecx, eax
mov eax, dword [esp + 0x18]
shl ecx, 8
or ecx, ebx
mov ebx, dword [esp + 0x10]
xor edx, ecx
mov dword [eax], edx
mov edx, dword [esp + 0x14]
test edx, edx
jle 0x43898d
inc ebx
sub ebp, ebx
test ebp, ebp
jle 0x43898d
mov eax, dword [edi]
mov ecx, dword [edi + 8]
imul ecx, edx
mov esi, dword [eax + 0x10]
mov eax, esi
imul eax, ebx
sub ebx, dword [edi + 0xc]
sar ecx, 8
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], ecx
add eax, dword [edi + 0x14]
cmp ecx, 0xfe
jge 0x43888e
nop dword [eax]
mov ecx, dword [edi + 4]
mov esi, ebx
inc ebx
dec ebp
mov dword [esp + 0x10], ebx
mov edx, dword [ecx + 0x10]
mov ecx, dword [edi + 0x18]
imul edx, esi
mov esi, dword [edx + ecx]
mov ebx, esi
shr ebx, 8
mov edx, 0x100
and ebx, 0xff00ff
and esi, 0xff00ff
imul ebx, dword [esp + 0x18]
imul esi, dword [esp + 0x18]
shr ebx, 8
and ebx, 0xff00ff
shr esi, 8
mov ecx, ebx
and esi, 0xff00ff
shr ecx, 0x10
sub edx, ecx
mov ecx, dword [eax]
mov edi, ecx
shr ecx, 8
and ecx, 0xff00ff
and edi, 0xff00ff
imul ecx, edx
imul edi, edx
shr ecx, 8
and ecx, 0xff00ff
shr edi, 8
add ebx, ecx
and edi, 0xff00ff
add edi, esi
mov ecx, ebx
shr ecx, 8
mov esi, 0x100
and ecx, 0xff00ff
mov edx, edi
sub esi, ecx
shr edx, 8
shl esi, 8
mov ecx, ebx
shl ecx, 8
and edx, 0xff00ff
or esi, ecx
mov ecx, 0x100
sub ecx, edx
mov edx, 0x100
or ecx, edi
mov edi, dword [esp + 0x3c]
xor esi, ecx
mov ecx, ebx
shr ecx, 8
and esi, 0xff00ff
and ecx, 0xff00ff
shl ebx, 8
sub edx, ecx
shl edx, 8
or edx, ebx
mov ebx, dword [esp + 0x10]
xor esi, edx
mov dword [eax], esi
add eax, dword [esp + 0x24]
test ebp, ebp
jg 0x4387a0
jmp 0x43898d
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 0x10]
mov ecx, edx
imul ecx, ebx
mov dword [esp + 0x10], edx
add ecx, dword [edi + 0x18]
mov dword [esp + 0x18], ecx
cmp esi, edx
jne 0x4388d0
mov esi, dword [edi + 4]
cmp dword [esi + 8], 1
jne 0x4388d0
mov esi, dword [edi]
cmp dword [esi + 8], 1
jne 0x4388d0
imul edx, ebp
push edx
push ecx
push eax
call fcn.00514850
add esp, 0xc
jmp 0x43898d
mov esi, dword [ecx]
mov edx, 0x100
mov ebx, esi
dec ebp
shr ebx, 8
and esi, 0xff00ff
and ebx, 0xff00ff
mov ecx, ebx
shr ecx, 0x10
sub edx, ecx
mov ecx, dword [eax]
mov edi, ecx
shr ecx, 8
and ecx, 0xff00ff
and edi, 0xff00ff
imul ecx, edx
imul edi, edx
shr ecx, 8
and ecx, 0xff00ff
shr edi, 8
add ebx, ecx
and edi, 0xff00ff
add edi, esi
mov ecx, ebx
shr ecx, 8
mov esi, 0x100
and ecx, 0xff00ff
mov edx, edi
sub esi, ecx
shr edx, 8
shl esi, 8
mov ecx, ebx
shl ecx, 8
and edx, 0xff00ff
or esi, ecx
mov ecx, 0x100
sub ecx, edx
mov edx, 0x100
or ecx, edi
xor esi, ecx
mov ecx, ebx
shr ecx, 8
and esi, 0xff00ff
and ecx, 0xff00ff
shl ebx, 8
sub edx, ecx
mov ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x10]
shl edx, 8
or edx, ebx
mov dword [esp + 0x18], ecx
xor esi, edx
mov dword [eax], esi
add eax, dword [esp + 0x24]
test ebp, ebp
jg 0x4388d0
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x3c]
movzx esi, dl
imul esi, dword [esp + 0x14]
sub dword [esp + 0x2c], 1
mov ecx, edx
mov ebx, dword [esp + 0x30]
jns 0x4385f0
mov eax, esi
cdq
and edx, 0xff
lea ebx, [edx + eax]
sar ebx, 8
test ebx, ebx
jle 0x438abb
mov eax, ecx
mov esi, dword [edi + 8]
mov ecx, dword [edi]
cdq
and edx, 0xff
add edx, eax
mov eax, dword [edi + 0x14]
mov ebp, dword [ecx + 0x10]
mov ecx, dword [edi + 0xc]
sar edx, 8
imul ebp, edx
sub edx, ecx
mov ecx, 0x100
add ebp, eax
mov eax, dword [edi + 4]
imul edx, dword [eax + 0x10]
mov eax, dword [edi + 0x18]
mov edi, dword [edx + eax]
mov edx, dword [ebp]
cmp ebx, 0xff
jge 0x438a0b
imul esi, ebx
sar esi, 8
mov ebx, edi
and edi, 0xff00ff
shr ebx, 8
and ebx, 0xff00ff
imul edi, esi
imul ebx, esi
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
xor edx, ecx
mov dword [ebp], 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 + 0x34]
jl 0x438590
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x28
ret 4