Function at 0x438ec0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
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 0x4393ff
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 0x4393de
mov eax, dword [ebx + 4]
add ebx, 4
mov dword [esp + 0x24], eax
xor esi, esi
mov eax, dword [esp + 0x1c]
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 + 0x24]
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 + 0x28], ebp
js 0x4392d5
nop dword [eax]
mov eax, dword [ebx + 4]
add ebx, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], ebx
mov eax, dword [ebx]
mov dword [esp + 0x24], 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
cmp ebp, ebx
jne 0x438f88
mov edx, dword [esp + 0x24]
mov eax, edx
sub eax, ecx
imul eax, dword [esp + 0x10]
add esi, eax
jmp 0x4392c4
movzx eax, cl
mov ecx, 0x100
sub ecx, eax
imul ecx, dword [esp + 0x10]
lea eax, [esi + ecx]
cdq
and edx, 0xff
add edx, eax
sar edx, 8
test edx, edx
jle 0x4390a0
mov eax, dword [edi]
mov ecx, ebx
sub ecx, dword [edi + 0xc]
mov esi, dword [eax + 0x10]
mov eax, dword [edi + 0x14]
imul esi, ebx
add esi, eax
mov eax, dword [edi + 4]
mov dword [esp + 0x14], esi
imul ecx, dword [eax + 0x10]
mov eax, dword [edi + 0x18]
cmp edx, 0xff
jl 0x438feb
movzx eax, byte [ecx + eax]
mov edi, eax
shl edi, 0x10
or edi, eax
mov eax, dword [esp + 0x3c]
imul edi, dword [eax + 8]
jmp 0x439002
mov edi, dword [edi + 8]
movzx ecx, byte [ecx + eax]
imul edi, edx
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 [esi]
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
mov eax, dword [esp + 0x14]
shl ecx, 8
or ecx, edi
mov edi, dword [esp + 0x3c]
xor edx, ecx
mov dword [eax], edx
mov edx, dword [esp + 0x10]
test edx, edx
jle 0x4392b4
inc ebx
sub ebp, ebx
test ebp, ebp
jle 0x4392b4
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 + 0x14], esi
mov dword [esp + 0x20], ecx
add eax, dword [edi + 0x14]
cmp ecx, 0xfe
jge 0x4391bb
mov ecx, dword [edi + 4]
mov esi, ebx
inc ebx
dec ebp
mov dword [esp + 0x2c], ebx
mov edx, dword [ecx + 0x10]
mov ecx, dword [edi + 0x18]
imul edx, esi
mov esi, 0x100
movzx ecx, byte [edx + ecx]
mov edx, 0x100
mov ebx, ecx
shl ebx, 0x10
or ebx, ecx
imul ebx, dword [esp + 0x20]
shr ebx, 8
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
and edi, 0xff00ff
add edi, ebx
add ebx, ecx
mov ecx, ebx
mov edx, edi
shr ecx, 8
and ecx, 0xff00ff
shr edx, 8
sub esi, ecx
and edx, 0xff00ff
shl esi, 8
mov ecx, ebx
shl ecx, 8
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 + 0x2c]
xor esi, edx
mov dword [eax], esi
add eax, dword [esp + 0x14]
test ebp, ebp
jg 0x4390e4
jmp 0x4392b4
mov ecx, dword [edi + 4]
mov edx, dword [ecx + 0x10]
mov ecx, edx
imul ecx, ebx
mov dword [esp + 0x2c], edx
add ecx, dword [edi + 0x18]
mov dword [esp + 0x20], ecx
cmp esi, edx
jne 0x439200
mov esi, dword [edi + 4]
cmp dword [esi + 8], 1
jne 0x439200
mov esi, dword [edi]
cmp dword [esi + 8], 1
jne 0x439200
imul edx, ebp
push edx
push ecx
push eax
call fcn.005135c0
add esp, 0xc
jmp 0x4392b4
movzx ecx, byte [ecx]
mov edx, 0x100
mov ebx, ecx
mov esi, 0x100
shl ebx, 0x10
dec ebp
or ebx, ecx
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
and edi, 0xff00ff
add edi, ebx
add ebx, ecx
mov ecx, ebx
mov edx, edi
shr ecx, 8
and ecx, 0xff00ff
shr edx, 8
sub esi, ecx
and edx, 0xff00ff
shl esi, 8
mov ecx, ebx
shl ecx, 8
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 + 0x20]
add ecx, dword [esp + 0x2c]
shl edx, 8
or edx, ebx
mov dword [esp + 0x20], ecx
xor esi, edx
mov dword [eax], esi
add eax, dword [esp + 0x14]
test ebp, ebp
jg 0x439200
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x3c]
movzx esi, dl
imul esi, dword [esp + 0x10]
sub dword [esp + 0x28], 1
mov ecx, edx
mov ebx, dword [esp + 0x30]
jns 0x438f40
mov eax, esi
cdq
and edx, 0xff
lea esi, [edx + eax]
sar esi, 8
test esi, esi
jle 0x4393de
mov eax, ecx
mov ecx, dword [edi]
cdq
and edx, 0xff
add edx, eax
mov eax, dword [edi + 0x14]
mov ebx, dword [ecx + 0x10]
mov ecx, dword [edi + 4]
sar edx, 8
imul ebx, edx
sub edx, dword [edi + 0xc]
imul edx, dword [ecx + 0x10]
add ebx, eax
mov eax, dword [edi + 0x18]
cmp esi, 0xff
jl 0x439331
movzx eax, byte [edx + eax]
mov edi, eax
shl edi, 0x10
or edi, eax
mov eax, dword [esp + 0x3c]
imul edi, dword [eax + 8]
jmp 0x439348
mov edi, dword [edi + 8]
movzx ecx, byte [edx + eax]
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 [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 + 0x34]
jl 0x438ee0
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x28
ret 4