Function at 0xd8a970
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x280
mov ebx, dword [0xfcda167c]
mov edi, dword [0xfcda1678]
mov eax, edi
or eax, ebx
jne 0xd8aa2b
mov dword [esp + 0x50], 0xb72a891a
mov dword [esp + 0x54], 0xb326b558
mov dword [esp + 0x58], 0xbf6cb124
mov dword [esp + 0x5c], 0xbb2ebd50
mov dword [esp + 0x60], 0xa7a6b92c
mov dword [esp + 0x64], 0
mov eax, 0x71f6e55e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x71f6e50e]
lea edx, [eax - 0x71f6e500]
and edx, ecx
or ecx, eax
lea esi, [edx + edx]
not esi
add esi, edx
and esi, ecx
mov ecx, esi
and ecx, 0x29
xor esi, 0x29
lea ecx, [esi + ecx*2]
inc cl
mov byte [esp + eax - 0x71f6e50e], cl
inc eax
cmp eax, 0x71f6e576
jne 0xd8a9d0
lea eax, [esp + 0x50]
push eax
call fcn.00d8a610
add esp, 4
mov edi, eax
mov dword [0xfcda167c], edx
mov dword [0xfcda1678], eax
or eax, edx
je 0xd8ab23
mov ebx, edx
lea eax, [esp + 0x150]
push 0x40
push eax
push ebx
push edi
call fcn.00d8a450
add esp, 0x10
test eax, eax
js 0xd8ab23
mov eax, dword [esp + 0x18c]
mov ecx, eax
sar ecx, 0x1f
add eax, edi
adc ecx, ebx
add eax, 0x18
adc ecx, 0
lea edx, [esp + 0x190]
push 0xf0
push edx
push ecx
push eax
call fcn.00d8a450
add esp, 0x10
xor esi, esi
test eax, eax
js 0xd8ab25
cmp dword [esp + 0x204], 0
je 0xd8ab25
mov eax, dword [esp + 0x200]
mov ebp, 0
test eax, eax
je 0xd8ab27
add eax, edi
mov ecx, ebx
adc ecx, 0
lea edx, [esp + 0x28]
push 0x28
push edx
push ecx
push eax
call fcn.00d8a450
add esp, 0x10
test eax, eax
js 0xd8ab23
mov esi, dword [esp + 0x3c]
mov eax, 0xffffffff
cmp esi, 0x40000000
jae 0xd8aad4
lea eax, [esi*4]
push eax
call fcn.00d581b0
add esp, 4
mov edx, esi
and edx, 0xfffffffb
mov ecx, esi
and ecx, 4
or esi, 4
imul esi, ecx
xor ecx, 4
imul ecx, edx
add esi, ecx
mov edx, dword [esp + 0x44]
add edx, edi
mov ecx, ebx
adc ecx, 0
push esi
mov dword [esp + 8], eax
push eax
push ecx
push edx
call fcn.00d8a450
add esp, 0x10
test eax, eax
js 0xd8ab36
mov eax, dword [esp + 0x3c]
test eax, eax
jns 0xd8ab3f
mov eax, 0xffffffff
jmp 0xd8ab41
xor esi, esi
xor ebp, ebp
mov eax, esi
mov edx, ebp
add esp, 0x280
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
xor ebp, ebp
jmp 0xd8ad96
add eax, eax
push eax
call fcn.00d581b0
add esp, 4
mov esi, dword [esp + 0x40]
add esi, esi
mov ecx, dword [esp + 0x4c]
add ecx, edi
mov edx, ebx
adc edx, 0
push esi
mov dword [esp + 4], eax
push eax
push edx
push ecx
call fcn.00d8a450
add esp, 0x10
test eax, eax
js 0xd8ad87
mov esi, dword [esp + 0x40]
mov eax, 0xffffffff
cmp esi, 0x40000000
jae 0xd8ab8b
lea eax, [esi*4]
push eax
call fcn.00d581b0
add esp, 4
mov edx, esi
and edx, 0xfffffffb
mov ecx, esi
and ecx, 4
or esi, 4
imul esi, ecx
xor ecx, 4
imul ecx, edx
add esi, ecx
mov edx, dword [esp + 0x48]
add edx, edi
mov ecx, ebx
adc ecx, 0
push esi
mov dword [esp + 0x14], eax
push eax
push ecx
push edx
call fcn.00d8a450
add esp, 0x10
test eax, eax
js 0xd8ad75
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
cmp esi, eax
jb 0xd8abdd
mov esi, eax
test esi, esi
je 0xd8ad75
xor ebp, ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], esi
jmp 0xd8ac20
mov eax, 0x36c0b43e
mov ebp, dword [esp + 0xc]
cmp eax, dword [esp + 0x294]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
je 0xd8ada7
inc ebp
cmp ebp, esi
je 0xd8ad75
mov eax, dword [esp + 0x10]
mov eax, dword [eax + ebp*4]
add eax, edi
mov ecx, ebx
adc ecx, 0
push 0x100
lea edx, [esp + 0x54]
push edx
push ecx
push eax
call fcn.00d8a450
add esp, 0x10
test eax, eax
jns 0xd8ac4d
cmp eax, 0x8000000d
jne 0xd8ac17
mov dword [esp + 0xc], ebp
mov ecx, 0xffffffff
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, eax
cmp byte [esp + ecx + 0x51], 0
lea ecx, [ecx + 1]
lea eax, [eax + 1]
jne 0xd8ac60
mov dword [esp + 8], edx
mov dword [esp + 0x14], 0x7e7e78cf
mov byte [esp + 0x18], 0
mov edx, 0x50eb5a15
mov esi, 0xaf14a5ea
nop
nop
nop
nop
nop
nop
movzx ebp, byte [esp + esi + 0x50eb5a2a]
mov eax, esi
and eax, ebp
mov edi, eax
and edi, 2
mov ebx, eax
or eax, 2
imul eax, edi
xor edi, 2
and ebx, 0xfffffffd
imul ebx, edi
add eax, ebx
mov edi, eax
not edi
and edi, esi
and eax, edx
sub eax, edi
mov edi, ebp
not edi
and edi, eax
not eax
and eax, ebp
sub edi, eax
lea ebx, [edi + edi]
and ebx, 0x26
xor edi, 0x9498c26c
inc edi
mov eax, edi
sub eax, ebx
and edi, 1
or eax, 1
add eax, edi
mov byte [esp + esi + 0x50eb5a2a], al
dec edx
inc esi
cmp edx, 0x50eb5a10
jne 0xd8ac90
test ecx, ecx
je 0xd8abf5
mov edx, dword [esp + 0x14]
mov edi, 0x36c0b43e
lea esi, [esp + 0x50]
cmp ecx, 4
mov ebp, dword [esp + 0xc]
jb 0xd8ad4b
mov eax, dword [esp + 8]
and eax, 0xfffffffc
nop
nop
nop
nop
nop
nop
nop
movsx ebx, byte [esi]
xor ebx, edi
imul ebx, edx
movsx edi, byte [esi + 1]
xor edi, ebx
imul edi, edx
movsx ebx, byte [esi + 2]
xor ebx, edi
imul ebx, edx
movsx edi, byte [esi + 3]
add esi, 4
xor edi, ebx
imul edi, edx
add eax, 0xfffffffc
jne 0xd8ad20
mov eax, edi
test cl, 3
mov ebx, dword [esp + 8]
je 0xd8abfe
and ebx, 3
xor ecx, ecx
nop
movsx eax, byte [esi + ecx]
xor eax, edi
imul eax, edx
inc ecx
mov edi, eax
cmp ebx, ecx
jne 0xd8ad60
jmp 0xd8abfe
xor esi, esi
xor ebp, ebp
push dword [esp + 0x10]
call fcn.00d581c0
add esp, 4
jmp 0xd8ad8b
xor esi, esi
xor ebp, ebp
push dword [esp]
call fcn.00d581c0
add esp, 4
push dword [esp + 4]
call fcn.00d581c0
add esp, 4
jmp 0xd8ab27
mov eax, dword [esp]
movzx eax, word [eax + ebp*2]
mov ecx, dword [esp + 4]
mov eax, dword [ecx + eax*4]
mov ecx, edi
and ecx, eax
mov ebp, ecx
shr ebp, 0x1f
add ecx, ecx
xor edi, eax
add edi, ecx
adc ebp, ebx
mov esi, edi
jmp 0xd8ad79