Function at 0x4de370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], 0
push edi
push eax
call fcn.0045e1b0
mov eax, dword [ebp + 0x14]
test eax, eax
mov ecx, dword [ebp + 0x10]
cmove eax, ecx
push ecx
mov dword [ebp + 0x14], eax
call fcn.00454d00
mov edi, eax
add esp, 8
test edi, edi
js 0x4de614
mov eax, dword [ebp + 0x1c]
cmp eax, 0xffffffff
jne 0x4de405
mov dword [ebp + 0x1c], edi
push ebx
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x10]
call fcn.00488320
dec eax
and eax, 7
push esi
mov dword [ebp - 0x10], eax
call fcn.004623d0
mov edx, dword [ebp - 0x10]
mov ebx, eax
mov ecx, edx
mov eax, 0xff
shl eax, cl
add esp, 8
mov ecx, dword [ebp + 0x18]
test byte [ecx], al
je 0x4de440
push 0x76
push 0x558120
push 0x85
push 0x95
push 4
call fcn.0045bdb0
add esp, 0x14
jmp 0x4de612
cmp eax, 0xfffffffe
jne 0x4de40f
mov dword [ebp + 0x1c], eax
jmp 0x4de3b3
jge 0x4de3b3
push 0x6f
push 0x558120
push 0x88
push 0x95
push 4
call fcn.0045bdb0
add esp, 0x14
lea eax, [ebp - 0x34]
push eax
call fcn.0045df50
mov eax, dword [ebp - 0xc]
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret
test edx, edx
jne 0x4de449
inc ecx
dec ebx
mov dword [ebp + 0x18], ecx
mov eax, dword [ebp + 0x1c]
add eax, 2
add eax, edi
cmp ebx, eax
jge 0x4de472
push 0x7e
push 0x558120
push 0x6d
push 0x95
push 4
call fcn.0045bdb0
add esp, 0x14
jmp 0x4de612
cmp byte [ebx + ecx - 1], 0xbc
je 0x4de49c
push 0x82
push 0x558120
push 0x86
push 0x95
push 4
call fcn.0045bdb0
add esp, 0x14
jmp 0x4de612
sub ebx, edi
dec ebx
push 0x87
push 0x558120
push ebx
lea esi, [ebx + ecx]
mov dword [ebp - 0x14], esi
call fcn.0045e910
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x4de4df
push 0x89
push 0x558120
push 0x41
push 0x95
push 4
call fcn.0045bdb0
add esp, 0x14
jmp 0x4de612
push dword [ebp + 0x14]
push edi
push esi
push ebx
push eax
call fcn.004d4660
add esp, 0x14
test eax, eax
js 0x4de606
xor ecx, ecx
mov dword [ebp + 0x14], ecx
test ebx, ebx
jle 0x4de5ac
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 0x18]
cmp ebx, 0x20
jb 0x4de58d
lea eax, [esi - 1]
mov dword [ebp + 0x14], ecx
add eax, ebx
cmp edx, eax
ja 0x4de527
lea eax, [edx - 1]
add eax, ebx
cmp eax, esi
jae 0x4de58d
mov eax, ebx
and eax, 0x8000001f
jns 0x4de535
dec eax
or eax, 0xffffffe0
inc eax
mov dword [ebp - 8], ebx
mov ecx, esi
sub dword [ebp - 8], eax
sub ecx, edx
mov dword [ebp - 0x18], ecx
mov eax, edx
lea ecx, [esi + 0x10]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x1c]
movdqu xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movdqu xmm1, xmmword [esi + eax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x20], xmm1
movdqu xmm1, xmmword [edx + ecx]
add ecx, 0x20
movdqu xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax - 0x10], xmm1
cmp ecx, dword [ebp - 8]
jl 0x4de553
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 0x18]
mov dword [ebp + 0x14], ecx
cmp ecx, ebx
jge 0x4de5ac
add ecx, edx
sub esi, edx
mov edx, ebx
sub edx, dword [ebp + 0x14]
lea ebx, [ebx]
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
dec edx
jne 0x4de5a0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4de5c8
mov ecx, 8
mov edx, 0xff
sub ecx, eax
mov eax, dword [ebp - 4]
sar edx, cl
and byte [eax], dl
jmp 0x4de5cb
mov eax, dword [ebp - 4]
xor esi, esi
cmp byte [eax], 0
jne 0x4de5e0
lea ecx, [ebx - 1]
cmp esi, ecx
jge 0x4de5e0
inc esi
cmp byte [esi + eax], 0
je 0x4de5d5
mov al, byte [esi + eax]
inc esi
cmp al, 1
je 0x4de628
push 0x94
push 0x558120
push 0x87
push 0x95
push 4
call fcn.0045bdb0
add esp, 0x14
mov ebx, dword [ebp - 4]
push ebx
call fcn.0045e890
add esp, 4
pop esi
pop ebx
lea eax, [ebp - 0x34]
push eax
call fcn.0045df50
mov eax, dword [ebp - 0xc]
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
js 0x4de648
mov eax, ebx
sub eax, esi
cmp eax, ecx
je 0x4de648
push 0x98
push 0x558120
push 0x88
jmp 0x4de5f7
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push eax
call fcn.0045dd90
add esp, 0xc
test eax, eax
je 0x4de606
push 8
lea eax, [ebp - 0x34]
push 0x558114
push eax
call fcn.0045df40
add esp, 0xc
test eax, eax
je 0x4de606
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
call fcn.0045df40
add esp, 0xc
test eax, eax
je 0x4de606
sub ebx, esi
je 0x4de6ae
push ebx
mov ebx, dword [ebp - 4]
lea eax, [esi + ebx]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0045df40
add esp, 0xc
test eax, eax
je 0x4de609
jmp 0x4de6b1
mov ebx, dword [ebp - 4]
push 0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0045dce0
add esp, 0xc
test eax, eax
je 0x4de609
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x74]
sub edi, 4
jb 0x4de6e7
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4de6ec
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4de6d6
cmp edi, 0xfffffffc
je 0x4de740
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4de719
cmp edi, 0xfffffffd
je 0x4de740
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4de719
cmp edi, 0xfffffffe
je 0x4de740
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4de719
cmp edi, 0xffffffff
je 0x4de740
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x4de740
push 0xa6
push 0x558120
push 0x68
push 0x95
push 4
call fcn.0045bdb0
add esp, 0x14
mov dword [ebp - 0xc], 0
jmp 0x4de609
mov dword [ebp - 0xc], 1
jmp 0x4de609