Function at 0x100d72f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x150
push ebx
push ebp
mov ebp, dword [esp + 0x15c]
test ebp, ebp
mov ebx, ecx
mov dword [esp + 0x14], ebx
je 0x100d7850
push edi
mov edi, dword [esp + 0x164]
test edi, edi
jbe 0x100d784f
push esi
mov edi, edi
mov eax, dword [ebx + 0x24]
test eax, eax
jne 0x100d77f2
cmp edi, 0x40
jb 0x100d77f2
lea edi, [ebx + 0x28]
mov ecx, 0x10
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
xor esi, esi
lea eax, [ebx + 0x29]
xor ecx, ecx
mov ch, byte [eax - 1]
movzx edx, byte [eax + 1]
add esi, 4
add eax, 0x10
mov cl, byte [eax - 0x10]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax - 0xe]
shl ecx, 8
or ecx, edx
mov dword [esp + esi*4 + 0x10], ecx
xor ecx, ecx
mov ch, byte [eax - 0xd]
movzx edx, byte [eax - 0xb]
mov cl, byte [eax - 0xc]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax - 0xa]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax - 7]
mov dword [esp + esi*4 + 0x14], ecx
xor ecx, ecx
mov ch, byte [eax - 9]
mov cl, byte [eax - 8]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax - 6]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax - 3]
mov dword [esp + esi*4 + 0x18], ecx
xor ecx, ecx
mov ch, byte [eax - 5]
mov cl, byte [eax - 4]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax - 2]
shl ecx, 8
or ecx, edx
cmp esi, 0x10
mov dword [esp + esi*4 + 0x1c], ecx
jb 0x100d7345
mov eax, dword [ebx + 0x10]
mov edi, dword [ebx + 0x14]
mov esi, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x14], 0x10
jmp 0x100d73f0
mov ebx, dword [eax - 0x20]
xor ebx, dword [eax + 0x14]
mov ebp, dword [eax - 0x18]
xor ebx, ebp
xor ebx, dword [eax]
mov ebp, dword [eax - 0x1c]
xor ebp, dword [eax + 0x18]
rol ebx, 1
xor ebp, dword [eax + 4]
mov dword [eax + 0x20], ebx
mov dword [esp + 0x18], ebx
mov ebx, dword [eax - 0x14]
xor ebp, ebx
mov ebx, dword [eax + 0x1c]
xor ebx, dword [eax - 0x10]
rol ebp, 1
xor ebx, dword [eax + 8]
mov dword [eax + 0x24], ebp
xor ebx, dword [eax - 0x18]
add eax, 0x10
rol ebx, 1
mov dword [eax + 0x18], ebx
mov ebx, dword [eax - 0x1c]
xor ebx, dword [eax - 4]
xor ebx, dword [esp + 0x18]
xor ebx, dword [eax - 0x24]
rol ebx, 1
sub dword [esp + 0x14], 1
mov dword [eax + 0x1c], ebx
jne 0x100d73f0
mov ebp, dword [esp + 0x10]
xor eax, eax
lea esp, [esp]
rol ebp, 5
mov ebx, edx
xor ebx, esi
and ebx, edi
xor ebx, edx
add ebp, ebx
add ebp, dword [esp + eax*4 + 0x20]
add eax, 1
lea ecx, [ecx + ebp + 0x5a827999]
rol edi, 0x1e
mov ebp, esi
xor ebp, edi
and ebp, dword [esp + 0x10]
mov ebx, ecx
xor ebp, esi
rol ebx, 5
add ebx, ebp
add ebx, dword [esp + eax*4 + 0x20]
add eax, 1
lea edx, [edx + ebx + 0x5a827999]
mov ebx, dword [esp + 0x10]
rol ebx, 0x1e
mov ebp, edi
xor ebp, ebx
and ebp, ecx
xor ebp, edi
mov dword [esp + 0x14], edx
rol edx, 5
add edx, ebp
add edx, dword [esp + eax*4 + 0x20]
add eax, 1
rol ecx, 0x1e
lea esi, [esi + edx + 0x5a827999]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], esi
rol esi, 5
mov ebp, ecx
xor ebp, ebx
and ebp, edx
xor ebp, ebx
add esi, ebp
add esi, dword [esp + eax*4 + 0x20]
add eax, 1
rol edx, 0x1e
mov dword [esp + 0x10], ebx
lea edi, [edi + esi + 0x5a827999]
mov esi, dword [esp + 0x18]
mov ebp, ecx
xor ebp, edx
and ebp, esi
xor ebp, ecx
mov ebx, edi
rol ebx, 5
add ebx, ebp
add ebx, dword [esp + eax*4 + 0x20]
mov ebp, dword [esp + 0x10]
add eax, 1
rol esi, 0x1e
cmp eax, 0x14
lea ebp, [ebx + ebp + 0x5a827999]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], esi
jb 0x100d7450
cmp eax, 0x28
jae 0x100d75dd
rol ebp, 5
add eax, 1
mov ebx, edx
xor ebx, esi
xor ebx, edi
add ebp, ebx
add ebp, dword [esp + eax*4 + 0x1c]
rol edi, 0x1e
lea ecx, [ecx + ebp + 0x6ed9eba1]
mov dword [esp + 0x14], edi
mov ebp, esi
xor ebp, edi
mov edi, dword [esp + 0x10]
xor ebp, edi
mov ebx, ecx
rol ebx, 5
add ebx, ebp
add ebx, dword [esp + eax*4 + 0x20]
add eax, 1
lea edx, [edx + ebx + 0x6ed9eba1]
rol edi, 0x1e
mov ebp, ecx
xor ebp, dword [esp + 0x14]
mov ebx, edx
xor ebp, edi
rol ebx, 5
add ebx, ebp
add ebx, dword [esp + eax*4 + 0x20]
add eax, 1
lea esi, [esi + ebx + 0x6ed9eba1]
rol ecx, 0x1e
mov ebp, ecx
xor ebp, edx
xor ebp, edi
mov ebx, esi
rol ebx, 5
add ebx, ebp
add ebx, dword [esp + eax*4 + 0x20]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x14]
add eax, 1
lea edi, [edi + ebx + 0x6ed9eba1]
rol edx, 0x1e
mov ebp, ecx
xor ebp, edx
xor ebp, esi
mov ebx, edi
rol ebx, 5
add ebx, ebp
add ebx, dword [esp + eax*4 + 0x20]
mov ebp, dword [esp + 0x10]
add eax, 1
lea ebp, [ebx + ebp + 0x6ed9eba1]
rol esi, 0x1e
cmp eax, 0x28
mov dword [esp + 0x10], ebp
jb 0x100d7522
mov dword [esp + 0x18], esi
cmp eax, 0x3c
jae 0x100d76cf
mov ebx, esi
or ebx, edi
and ebx, edx
and esi, edi
or ebx, esi
add ebx, dword [esp + eax*4 + 0x20]
rol ebp, 5
add ebx, ecx
lea ecx, [ebx + ebp - 0x70e44324]
add eax, 1
rol edi, 0x1e
mov ebx, edi
or ebx, dword [esp + 0x10]
mov ebp, edi
and ebx, dword [esp + 0x18]
and ebp, dword [esp + 0x10]
add eax, 1
or ebx, ebp
add ebx, dword [esp + eax*4 + 0x1c]
mov esi, ecx
add ebx, edx
rol esi, 5
lea edx, [ebx + esi - 0x70e44324]
mov ebx, dword [esp + 0x10]
rol ebx, 0x1e
mov esi, ecx
or esi, ebx
and esi, edi
mov ebp, ecx
and ebp, ebx
or esi, ebp
add esi, dword [esp + eax*4 + 0x20]
add eax, 1
add esi, dword [esp + 0x18]
mov dword [esp + 0x14], edx
rol edx, 5
lea edx, [esi + edx - 0x70e44324]
rol ecx, 0x1e
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], edx
mov esi, edx
mov edx, dword [esp + 0x14]
mov ebp, ecx
or ebp, edx
and ebp, ebx
mov ebx, ecx
and ebx, edx
or ebp, ebx
add ebp, dword [esp + eax*4 + 0x20]
rol esi, 5
add ebp, edi
lea esi, [esi + ebp - 0x70e44324]
add eax, 1
rol edx, 0x1e
mov dword [esp + 0x14], esi
mov edi, esi
mov esi, dword [esp + 0x18]
mov ebx, edx
or ebx, esi
and ebx, ecx
mov ebp, edx
and ebp, esi
or ebx, ebp
add ebx, dword [esp + eax*4 + 0x20]
rol edi, 5
add ebx, dword [esp + 0x10]
add eax, 1
lea ebp, [ebx + edi - 0x70e44324]
mov edi, dword [esp + 0x14]
rol esi, 0x1e
cmp eax, 0x3c
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], esi
jb 0x100d75e6
cmp eax, 0x50
mov ebx, dword [esp + 0x1c]
jae 0x100d779b
lea esp, [esp]
rol ebp, 5
add eax, 1
mov ebx, edx
xor ebx, esi
xor ebx, edi
add ebx, dword [esp + eax*4 + 0x1c]
add eax, 1
add ebx, ecx
lea ecx, [ebx + ebp - 0x359d3e2a]
rol edi, 0x1e
mov dword [esp + 0x14], edi
mov ebp, esi
xor ebp, edi
mov edi, dword [esp + 0x10]
xor ebp, edi
add ebp, dword [esp + eax*4 + 0x1c]
mov ebx, ecx
add ebp, edx
rol ebx, 5
lea edx, [ebx + ebp - 0x359d3e2a]
rol edi, 0x1e
mov ebp, ecx
xor ebp, dword [esp + 0x14]
add eax, 1
xor ebp, edi
add ebp, dword [esp + eax*4 + 0x1c]
mov ebx, edx
add ebp, esi
rol ebx, 5
lea esi, [ebx + ebp - 0x359d3e2a]
rol ecx, 0x1e
mov ebp, ecx
xor ebp, edx
xor ebp, edi
add ebp, dword [esp + eax*4 + 0x20]
mov ebx, esi
add ebp, dword [esp + 0x14]
rol ebx, 5
add eax, 1
mov dword [esp + 0x10], edi
lea edi, [ebx + ebp - 0x359d3e2a]
rol edx, 0x1e
mov ebp, ecx
xor ebp, edx
xor ebp, esi
add ebp, dword [esp + eax*4 + 0x20]
mov ebx, edi
add ebp, dword [esp + 0x10]
rol ebx, 5
add eax, 1
mov dword [esp + 0x18], esi
lea ebp, [ebx + ebp - 0x359d3e2a]
rol esi, 0x1e
cmp eax, 0x50
mov dword [esp + 0x10], ebp
jb 0x100d76e0
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x10]
add eax, ebp
mov ebp, dword [esp + 0x164]
mov dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x14]
add eax, edi
mov edi, dword [esp + 0x168]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x18]
add eax, esi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x1c]
add eax, edx
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x20]
add eax, ecx
add dword [ebx + 8], 0x200
mov dword [ebx + 0x20], eax
adc dword [ebx + 0xc], 0
add ebp, 0x40
sub edi, 0x40
mov dword [esp + 0x164], ebp
mov dword [esp + 0x168], edi
jmp 0x100d7846
mov esi, 0x40
sub esi, eax
cmp edi, esi
jae 0x100d77ff
mov esi, edi
push esi
mov ecx, eax
lea edx, [ecx + ebx + 0x28]
push ebp
push edx
call sub.MSVCR80.dll_memcpy
add dword [ebx + 0x24], esi
mov eax, dword [ebx + 0x24]
add ebp, esi
sub edi, esi
add esp, 0xc
cmp eax, 0x40
mov dword [esp + 0x164], ebp
mov dword [esp + 0x168], edi
jne 0x100d7846
mov ecx, ebx
call fcn.100d6e40
add dword [ebx + 8], 0x200
mov eax, 0
mov dword [ebx + 0x24], eax
adc dword [ebx + 0xc], eax
test edi, edi
ja 0x100d7320
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x150
ret 8