Function at 0xd86b20
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
add ecx, esi
sub ecx, dword [esp + 0x48]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x20], ecx
cmp ecx, esi
jbe 0xd86efb
mov ebp, dword [esp + 0x4c]
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 0x10], 0
jmp 0xd86b88
add esi, ecx
dec esi
mov eax, dword [esp + 0x38]
inc esi
cmp esi, dword [esp + 0x20]
jae 0xd86efb
test ebp, ebp
je 0xd86be6
movzx ecx, byte [ebp]
mov byte [esp + 0x14], 0xf7
lea eax, [esp + 0x15]
mov dword [eax + 3], 0
mov dword [eax], 0
mov edx, 0xd0fa46cc
nop
nop
nop
nop
nop
movzx eax, byte [esp + edx + 0x2f05b948]
xor eax, edx
mov ebx, eax
and ebx, 3
xor eax, 0xeb1c9e03
lea ebx, [eax + ebx*2]
and eax, 1
xor ebx, 1
lea eax, [ebx + eax*2]
mov byte [esp + edx + 0x2f05b948], al
inc edx
cmp edx, 0xd0fa46d4
jne 0xd86bb0
cmp cl, byte [esp + 0x14]
je 0xd86bf1
movzx eax, byte [esi]
mov ecx, dword [esp + 0x44]
cmp al, byte [ecx]
jne 0xd86b79
cmp dword [esp + 0x48], 2
jb 0xd86c90
mov ecx, 1
jmp 0xd86c28
movzx eax, byte [esi + ecx]
mov edx, dword [esp + 0x44]
cmp al, byte [edx + ecx]
jne 0xd86b76
inc ecx
cmp ecx, dword [esp + 0x48]
je 0xd86c90
test ebp, ebp
je 0xd86c10
movzx edx, byte [ebp + ecx]
mov byte [esp + 0x14], 0x8d
lea eax, [esp + 0x15]
mov dword [eax + 3], 0
mov dword [eax], 0
mov eax, 0x5a7985cd
nop
nop
nop
nop
movzx ebx, byte [esp + eax - 0x5a7985b9]
xor ebx, eax
mov edi, ebx
and edi, 0x7e
xor ebx, 0xfe
lea ebx, [ebx + edi*2]
inc bl
mov byte [esp + eax - 0x5a7985b9], bl
inc eax
cmp eax, 0x5a7985d5
jne 0xd86c50
cmp dl, byte [esp + 0x14]
jne 0xd86c10
jmp 0xd86c21
mov eax, dword [esp]
mov ebx, eax
mov ecx, dword [esp + 4]
sub ebx, ecx
cmp eax, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
je 0xd86cad
mov edx, dword [esp]
jmp 0xd86ee3
mov ecx, ebx
sar ecx, 2
lea eax, [ecx + 1]
mov edi, ecx
shr edi, 1
add edi, ecx
cmp edi, eax
ja 0xd86cc1
mov edi, eax
mov eax, edi
and eax, 4
mov ecx, edi
or ecx, 4
imul ecx, eax
xor eax, 4
mov edx, edi
and edx, 0xfffffffb
imul edx, eax
add ecx, edx
push ecx
call fcn.00d581b0
add esp, 4
mov edx, eax
mov eax, dword [esp + 4]
test eax, eax
mov dword [esp + 8], edx
je 0xd86ec5
mov dword [esp + 0x10], edi
cmp edx, eax
mov eax, dword [esp]
mov dword [esp + 0xc], ebx
jbe 0xd86dc2
cmp eax, edx
jbe 0xd86dc2
test ebx, ebx
je 0xd86ead
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
add eax, edx
dec eax
mov ecx, dword [esp + 8]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0xd86d54
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0xd86d40
add eax, edx
add ecx, edx
add edx, dword [esp + 0xc]
mov edi, dword [esp + 4]
sub edi, dword [esp]
cmp edi, 0xfffffff8
ja 0xd86ead
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0xd86d70
jmp 0xd86ead
mov ecx, ebx
shr ecx, 2
mov edx, dword [esp + 4]
mov eax, edx
mov edi, dword [esp + 8]
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, ebx
and ecx, 3
mov eax, ebx
and eax, 0xfffffffc
add edx, eax
add eax, dword [esp + 8]
mov ebx, ecx
not ebx
or ebx, 1
add ebx, ecx
shr ecx, 1
mov dword [esp], edx
mov edi, eax
mov ebp, dword [esp]
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
mov ebp, dword [esp + 0x4c]
mov dword [esp], ebx
inc ebx
je 0xd86ead
mov edi, dword [esp + 0xc]
and edi, 2
add eax, edi
add edx, edi
mov dword [esp + 0x1c], ebx
and ebx, 7
je 0xd86e4e
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [edx + edi]
mov byte [eax + edi], cl
inc edi
cmp ebx, edi
jne 0xd86e30
add edx, edi
add eax, edi
mov ebx, dword [esp + 0x1c]
sub ebx, edi
cmp dword [esp], 7
jae 0xd86e58
jmp 0xd86ead
mov ebx, dword [esp + 0x1c]
cmp dword [esp], 7
jb 0xd86ead
xor edi, edi
nop
nop
nop
nop
nop
nop
movzx ecx, byte [edx + edi]
mov byte [eax + edi], cl
movzx ecx, byte [edx + edi + 1]
mov byte [eax + edi + 1], cl
movzx ecx, byte [edx + edi + 2]
mov byte [eax + edi + 2], cl
movzx ecx, byte [edx + edi + 3]
mov byte [eax + edi + 3], cl
movzx ecx, byte [edx + edi + 4]
mov byte [eax + edi + 4], cl
movzx ecx, byte [edx + edi + 5]
mov byte [eax + edi + 5], cl
movzx ecx, byte [edx + edi + 6]
mov byte [eax + edi + 6], cl
movzx ecx, byte [edx + edi + 7]
mov byte [eax + edi + 7], cl
add edi, 8
cmp ebx, edi
jne 0xd86e60
push dword [esp + 4]
call fcn.00d581c0
add esp, 4
mov ebx, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x38]
mov dword [eax], edx
lea ecx, [edx + edi*4]
add edx, ebx
mov dword [esp + 0x10], ecx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 8]
mov dword [ecx + ebx], esi
add edx, 4
mov dword [esp], edx
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x48]
add esi, ecx
dec esi
jmp 0xd86b7d
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret