Function at 0x437c20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0x10]
shl ecx, 4
add ecx, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], ecx
cmp eax, ecx
je 0x437ea5
push ebx
push ebp
push esi
push edi
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov ebp, dword [eax]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0xc]
add ecx, edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], ecx
cmp edx, ecx
jge 0x437e90
mov ebx, dword [esp + 0x38]
mov eax, edx
mov edi, dword [ebx]
mov ecx, dword [ebx + 4]
sub eax, dword [ebx + 0x10]
mov esi, dword [edi + 0xc]
imul esi, edx
cdq
add esi, dword [edi]
mov dword [ebx + 0x14], esi
idiv dword [ecx + 0x18]
mov eax, dword [esp + 0x20]
imul edx, dword [ecx + 0xc]
mov dword [esp + 0x10], eax
add edx, dword [ecx]
mov dword [ebx + 0x18], edx
mov eax, dword [edi + 0x10]
mov ecx, eax
imul ecx, ebp
sub ebp, dword [ebx + 0xc]
mov dword [esp + 0x14], eax
add ecx, esi
cmp dword [ebx + 8], 0xfe
jge 0x437da8
mov esi, dword [ebx + 4]
mov eax, ebp
cdq
inc ebp
mov edi, dword [ebx + 8]
mov dword [esp + 0x24], ebp
idiv dword [esi + 0x14]
mov esi, dword [esi + 0x10]
mov eax, dword [ebx + 0x18]
imul esi, edx
mov edx, 0x100
mov esi, dword [esi + eax]
mov ebp, esi
shr ebp, 8
and esi, 0xff00ff
and ebp, 0xff00ff
imul esi, edi
imul ebp, edi
shr esi, 8
shr ebp, 8
and esi, 0xff00ff
and ebp, 0xff00ff
mov eax, ebp
shr eax, 0x10
sub edx, eax
mov eax, dword [ecx]
mov ebx, eax
shr eax, 8
and eax, 0xff00ff
and ebx, 0xff00ff
imul eax, edx
imul ebx, edx
shr eax, 8
and eax, 0xff00ff
shr ebx, 8
add ebp, eax
and ebx, 0xff00ff
add ebx, esi
mov eax, ebp
shr eax, 8
mov esi, 0x100
and eax, 0xff00ff
mov edx, ebx
sub esi, eax
shr edx, 8
shl esi, 8
mov eax, ebp
shl eax, 8
and edx, 0xff00ff
or esi, eax
mov eax, 0x100
sub eax, edx
mov edx, 0x100
or eax, ebx
mov ebx, dword [esp + 0x38]
xor esi, eax
mov eax, ebp
shr eax, 8
and esi, 0xff00ff
and eax, 0xff00ff
shl ebp, 8
sub edx, eax
mov eax, dword [esp + 0x10]
shl edx, 8
dec eax
or edx, ebp
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x24]
xor esi, edx
mov dword [ecx], esi
add ecx, dword [esp + 0x14]
test eax, eax
jg 0x437cb3
jmp 0x437e75
mov esi, dword [ebx + 4]
mov eax, ebp
cdq
inc ebp
idiv dword [esi + 0x14]
mov esi, dword [esi + 0x10]
mov eax, dword [ebx + 0x18]
imul esi, edx
mov edx, 0x100
mov esi, dword [esi + eax]
mov ebx, esi
shr ebx, 8
and esi, 0xff00ff
and ebx, 0xff00ff
mov eax, ebx
shr eax, 0x10
sub edx, eax
mov eax, dword [ecx]
mov edi, eax
shr eax, 8
and eax, 0xff00ff
and edi, 0xff00ff
imul eax, edx
imul edi, edx
shr eax, 8
and eax, 0xff00ff
shr edi, 8
add ebx, eax
and edi, 0xff00ff
add edi, esi
mov eax, ebx
shr eax, 8
mov esi, 0x100
and eax, 0xff00ff
mov edx, edi
sub esi, eax
shr edx, 8
shl esi, 8
mov eax, ebx
shl eax, 8
and edx, 0xff00ff
or esi, eax
mov eax, 0x100
sub eax, edx
mov edx, 0x100
or eax, edi
xor esi, eax
mov eax, ebx
shr eax, 8
and esi, 0xff00ff
and eax, 0xff00ff
shl ebx, 8
sub edx, eax
mov eax, dword [esp + 0x10]
shl edx, 8
dec eax
or edx, ebx
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x38]
xor esi, edx
mov dword [ecx], esi
add ecx, dword [esp + 0x14]
test eax, eax
jg 0x437da8
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x2c]
inc edx
mov dword [esp + 0x18], edx
cmp edx, dword [esp + 0x28]
jl 0x437c67
mov eax, dword [esp + 0x1c]
add eax, 0x10
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x30]
jne 0x437c42
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4