Function at 0x4de2b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55982b
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x5a9008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp + 0x10]
lea esi, [edi + 0xe688]
mov edx, 0x8000
mov dword [esi + 4], 0
cmp eax, edx
mov dword [esi], 0
cmova eax, edx
push eax
push dword [ebp + 0xc]
push dword [edi + 0xe694]
call fcn.004f2d40
add esp, 0xc
cmp dword [edi + 0xe664], 0
jne 0x4de32a
push 0x40004
call fcn.004efd04
add esp, 4
mov dword [edi + 0xe664], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
test al, al
jns 0x4de352
mov ecx, esi
call fcn.004e6b00
mov dword [ebp + 8], eax
test eax, eax
jne 0x4de34f
push eax
mov ecx, edi
call fcn.004df360
mov eax, dword [ebp + 8]
jmp 0x4de35b
dec eax
jmp 0x4de358
mov eax, dword [edi + 0xe6d4]
mov dword [ebp + 8], eax
cmp eax, dword [edi + 0xe69c]
ja 0x4de3d5
cmp eax, dword [edi + 0xe6c4]
ja 0x4de3d5
lfence
mov dword [edi + 0xe6d4], eax
mov eax, dword [edi + 0xe69c]
push 0x38
mov dword [ebp - 0x20], eax
call fcn.004ef5e0
mov ecx, eax
mov dword [ebp - 0x10], eax
add esp, 4
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], 0
test ecx, ecx
je 0x4de3aa
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x10], 0
jmp 0x4de3af
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
cmp edx, dword [ebp - 0x20]
jne 0x4de567
cmp edx, 0x2000
jbe 0x4de3ea
push 0x38
push ecx
call fcn.004ef82c
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push ecx
lea ecx, [edi + 0xe698]
lfence
call fcn.004e1fe0
push 0x38
call fcn.004ef5e0
mov edx, eax
mov dword [ebp - 0x14], eax
add esp, 4
mov dword [ebp + 0xc], edx
mov dword [ebp - 4], 1
test edx, edx
je 0x4de426
mov dword [edx + 0x34], 0
mov dword [edx + 0x10], 0
jmp 0x4de42b
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [edi + 0xe69c]
mov eax, dword [edi + 0xe698]
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [edi + 0xe69c]
mov ecx, dword [ebp - 0x10]
dec eax
mov dword [ecx + 0xc], eax
inc dword [edi + 0xe6c4]
mov ecx, dword [edi + 0xe6c4]
cmp ecx, dword [edi + 0xe6c8]
jbe 0x4de531
mov eax, dword [edi + 0xe6cc]
test eax, eax
je 0x4de479
cmp ecx, eax
ja 0x4de9dd
lfence
mov ecx, dword [edi + 0xe6c8]
mov eax, ecx
shr eax, 2
add eax, 0x20
add eax, ecx
mov dword [ebp + 0xc], eax
cmp dword [edi + 0xe6c4], eax
jbe 0x4de4a3
lfence
mov eax, dword [edi + 0xe6c4]
mov dword [ebp + 0xc], eax
shl eax, 2
cmp byte [edi + 0xe6d0], 0
push eax
je 0x4de54a
call fcn.004f5d7a
mov edx, eax
add esp, 4
mov dword [ebp - 0x28], edx
test edx, edx
je 0x4de9fd
cmp dword [edi + 0xe6c0], 0
je 0x4de522
lfence
mov ecx, dword [edi + 0xe6c8]
mov eax, dword [edi + 0xe6c0]
shl ecx, 2
push ecx
push eax
push edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
call fcn.004f2d40
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov edx, eax
test eax, eax
je 0x4de516
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4de516
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4de505
mov edx, dword [edi + 0xe6c0]
push edx
call fcn.004f5d5f
mov edx, dword [ebp - 0x28]
add esp, 4
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xe6c0], edx
mov dword [edi + 0xe6c8], eax
lfence
mov ecx, dword [edi + 0xe6c4]
mov eax, dword [edi + 0xe6c0]
mov dword [eax + ecx*4 - 4], 0
jmp 0x4de579
lfence
push dword [edi + 0xe6c0]
call fcn.004fd8fe
mov edx, eax
add esp, 8
test edx, edx
je 0x4dea02
jmp 0x4de522
lfence
mov eax, dword [edi + 0xe698]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x14], eax
mov dword [ecx + 0xc], edx
mov edx, dword [edi + 0xe6b0]
xor eax, eax
mov dword [ebp + 0xc], eax
test edx, edx
je 0x4de5d4
xor esi, esi
nop word [eax + eax]
mov edx, dword [edi + 0xe6ac]
mov eax, esi
sub eax, dword [ebp + 0xc]
mov ecx, dword [edx + esi*4]
mov dword [edx + eax*4], ecx
mov eax, dword [edi + 0xe6ac]
mov ecx, dword [ebp + 0xc]
lea edx, [eax + esi*4]
cmp dword [edx], 0
lea eax, [ecx + 1]
cmovne eax, ecx
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4de5c3
mov dword [edx], 0
mov edx, dword [edi + 0xe6b0]
inc esi
cmp esi, edx
jb 0x4de590
lea esi, [edi + 0xe688]
test eax, eax
jne 0x4de601
cmp edx, 0x2000
jbe 0x4de5ea
push 0x38
push dword [ebp - 0x10]
jmp 0x4de3cd
lea ecx, [edi + 0xe6ac]
push ecx
call fcn.004e1fe0
mov edx, dword [edi + 0xe6b0]
mov eax, 1
mov ecx, dword [ebp - 0x10]
sub edx, eax
mov eax, dword [edi + 0xe6ac]
mov dword [eax + edx*4], ecx
mov ecx, esi
call fcn.004e6b00
test byte [ebp - 0x18], 0x40
mov dword [ebp + 0xc], eax
je 0x4de627
add eax, 0x102
mov dword [ebp + 0xc], eax
mov ecx, dword [edi + 0x7c]
mov edx, dword [ebp - 0x10]
add ecx, eax
and ecx, dword [edi + 0xe6dc]
test byte [ebp - 0x18], 0x20
mov dword [edx], ecx
je 0x4de65e
mov ecx, esi
call fcn.004e6b00
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [edi + 0xe6c0]
mov dword [ecx + esi*4], eax
lea esi, [edi + 0xe688]
jmp 0x4de67c
mov ecx, dword [ebp + 8]
cmp ecx, dword [edi + 0xe6c4]
jae 0x4de677
lfence
mov eax, dword [edi + 0xe6c0]
mov eax, dword [eax + ecx*4]
jmp 0x4de679
xor eax, eax
mov dword [edx + 4], eax
mov eax, dword [edi + 0x80]
mov ecx, dword [edi + 0x7c]
cmp eax, ecx
je 0x4de69a
sub eax, ecx
and eax, dword [edi + 0xe6dc]
cmp eax, dword [ebp + 0xc]
ja 0x4de69a
mov al, 1
jmp 0x4de69c
xor al, al
test byte [ebp - 0x18], 0x10
mov byte [edx + 8], al
lea eax, [edx + 0x14]
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
mov dword [edx + 0x1c], 0
mov dword [edx + 0x20], 0
mov dword [edx + 0x28], 0
mov dword [edx + 0x2c], 0
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 4]
mov dword [edx + 0x24], eax
je 0x4de770
mov esi, dword [esi]
mov ecx, dword [edi + 0xe694]
mov edx, dword [edi + 0xe68c]
movzx eax, byte [ecx + esi + 1]
mov dword [ebp + 0xc], eax
movzx eax, byte [ecx + esi]
shl eax, 8
or dword [ebp + 0xc], eax
movzx eax, byte [ecx + esi + 2]
mov ecx, 8
shl dword [ebp + 0xc], 8
sub ecx, edx
or dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
shr eax, cl
lea ecx, [edx + 7]
shr eax, 9
mov dword [ebp + 0xc], eax
mov eax, ecx
mov edx, dword [ebp + 0xc]
shr eax, 3
add eax, esi
lea esi, [edi + 0xe688]
and ecx, 7
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edi, 1
mov ecx, 7
mov dword [ebp - 0x18], ecx
mov eax, edi
and eax, edx
test al, 0x7f
je 0x4de75f
mov ecx, esi
call fcn.004e6b00
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x18]
add dword [ebp - 0x1c], 4
rol edi, 1
sub ecx, 1
mov dword [ebp - 0x18], ecx
jne 0x4de745
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
cmp dword [ebp + 8], eax
jne 0x4de9bc
mov ecx, esi
lfence
call fcn.004e6b00
mov esi, eax
mov dword [ebp + 0xc], esi
cmp esi, 0x10000
jae 0x4de3d5
test esi, esi
je 0x4de3d5
mov ecx, dword [edi + 0xe688]
add ecx, esi
cmp ecx, dword [ebp + 0x10]
ja 0x4de3d5
lfence
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x30], 0
call fcn.004c8480
mov dword [ebp - 4], 2
test esi, esi
mov esi, dword [ebp - 0x40]
mov dword [ebp + 0x10], 0
je 0x4de866
lfence
lea edx, [edi + 0xe688]
nop word [eax + eax]
mov ecx, dword [edx]
lea eax, [ecx + 3]
cmp eax, 0x8000
jae 0x4de972
add ecx, dword [edi + 0xe694]
movzx eax, byte [ecx]
movzx edx, byte [ecx + 1]
shl eax, 8
or edx, eax
movzx eax, byte [ecx + 2]
shl edx, 8
mov ecx, 8
sub ecx, dword [edi + 0xe68c]
or edx, eax
mov eax, dword [ebp + 0x10]
shr edx, cl
shr edx, 8
mov byte [esi + eax], dl
lea edx, [edi + 0xe688]
mov ecx, dword [edx + 4]
add ecx, 8
mov eax, ecx
and ecx, 7
shr eax, 3
add dword [edx], eax
mov eax, dword [ebp + 0x10]
inc eax
mov dword [edx + 4], ecx
mov dword [ebp + 0x10], eax
cmp eax, dword [ebp + 0xc]
jb 0x4de800
mov edi, dword [ebp + 0xc]
mov eax, 1
xor cl, cl
lea edx, [edi - 1]
cmp edi, eax
jbe 0x4de8ec
cmp edx, 0x20
jb 0x4de8e4
and edx, 0x1f
mov ecx, edi
sub ecx, edx
xorps xmm1, xmm1
xorps xmm2, xmm2
nop dword [eax]
movups xmm0, xmmword [esi + eax]
pxor xmm1, xmm0
movups xmm0, xmmword [esi + eax + 0x10]
add eax, 0x20
pxor xmm2, xmm0
cmp eax, ecx
jb 0x4de890
pxor xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
pxor xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
pxor xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 2
pxor xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 1
pxor xmm1, xmm0
movd ecx, xmm1
cmp eax, edi
jae 0x4de8ec
xor cl, byte [esi + eax]
inc eax
cmp eax, edi
jb 0x4de8e4
cmp cl, byte [esi]
jne 0x4de923
push edi
mov edx, esi
mov ecx, 0xffffffff
call fcn.004e32c0
add esp, 4
xor edx, edx
not eax
xor ecx, ecx
cmp dword [ecx + 0x5aabac], eax
jne 0x4de91a
cmp dword [ecx + 0x5aaba8], edi
je 0x4de9a7
add ecx, 0xc
inc edx
cmp ecx, 0x48
jb 0x4de906
mov edi, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x30], 0
je 0x4de94b
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x4de94b
mov eax, esi
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4de940
push esi
call fcn.004f5d5f
mov ecx, dword [ebp - 0x10]
add esp, 4
mov eax, dword [edi + 0x10]
mov dword [ecx + 0x10], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4de3d5
cmp byte [ebp - 0x30], 0
je 0x4de999
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x4de999
mov eax, esi
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x4de990
push esi
call fcn.004f5d5f
add esp, 4
jmp 0x4de3d5
mov edi, dword [ebp - 0x14]
lea eax, [edx + edx*2]
mov eax, dword [eax*4 + 0x5aabb0]
mov dword [edi + 0x10], eax
jmp 0x4de926
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edi + 0x10]
mov dword [ecx + 0x10], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
lfence
push dword [edi + 0xe6cc]
push 0x57ddc0
push 0x5aa7f8
call fcn.004d3010
add esp, 0xc
call fcn.004d2f70
call fcn.004d2f70
call fcn.004d2f70
int3