Function at 0x4de380
Capabilities:
Encode data using xor
Encrypt data using aes
Encrypt data using rc4 ksa
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 8], 0
jne 0x4de3ad
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp + 8], str.Empty_key
call fcn.004e5c18
push 0x55234c
lea ecx, [ebp - 0x20]
push ecx
call fcn.004e966f
push ebx
push edi
mov edi, 0x10
mov dword [esi + 0x3c8], edi
mov dword [esi + 0x3c4], edi
mov edx, dword [0x54c5bc]
mov dword [esi + 0x3d0], edx
mov eax, dword [0x54c5c0]
mov dword [esi + 0x3d4], eax
mov ecx, dword [0x54c5c4]
mov dword [esi + 0x3d8], ecx
mov edx, dword [0x54c5c8]
mov dword [esi + 0x3dc], edx
mov eax, dword [esi + 0x3c8]
push eax
lea ecx, [esi + 0x3f0]
push 0x54c5bc
push ecx
call fcn.004ebc70
mov eax, dword [esi + 0x3c4]
add esp, 0xc
cmp eax, edi
je 0x4de43d
cmp eax, 0x18
je 0x4de425
mov dword [esi + 0x3cc], 0xe
jmp 0x4de460
xor edx, edx
cmp dword [esi + 0x3c8], 0x20
sete dl
lea edx, [edx + edx + 0xc]
mov dword [esi + 0x3cc], edx
jmp 0x4de460
mov eax, dword [esi + 0x3c8]
cmp eax, edi
jne 0x4de44e
mov eax, 0xa
jmp 0x4de45a
xor ecx, ecx
cmp eax, 0x18
setne cl
lea eax, [ecx + ecx + 0xc]
mov dword [esi + 0x3cc], eax
mov eax, dword [esi + 0x3c8]
cdq
and edx, 3
add edx, eax
sar edx, 2
xor ebx, ebx
mov dword [ebp - 0xc], edx
cmp dword [esi + 0x3cc], ebx
jl 0x4de49e
lea edi, [esi + 4]
mov dword [ebp - 8], edi
test edx, edx
jle 0x4de48c
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
inc ebx
add edi, 0x20
mov dword [ebp - 8], edi
cmp ebx, dword [esi + 0x3cc]
jle 0x4de482
xor ebx, ebx
cmp dword [esi + 0x3cc], ebx
jl 0x4de4cd
lea edi, [esi + 0x1e4]
mov dword [ebp - 8], edi
test edx, edx
jle 0x4de4bb
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
inc ebx
add edi, 0x20
mov dword [ebp - 8], edi
cmp ebx, dword [esi + 0x3cc]
jle 0x4de4b1
mov eax, dword [esi + 0x3cc]
inc eax
imul eax, edx
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x3c4]
cdq
and edx, 3
lea edi, [edx + eax]
mov eax, dword [ebp + 8]
sar edi, 2
mov dword [ebp - 0x14], edi
lea ecx, [esi + 0x410]
test edi, edi
jle 0x4de529
mov edx, edi
lea esp, [esp]
movzx ebx, byte [eax]
shl ebx, 0x18
mov dword [ecx], ebx
movzx ebx, byte [eax + 1]
shl ebx, 0x10
or dword [ecx], ebx
movzx ebx, byte [eax + 2]
shl ebx, 8
or dword [ecx], ebx
movzx ebx, byte [eax + 3]
or dword [ecx], ebx
add eax, 4
add ecx, 4
dec edx
jne 0x4de500
xor ebx, ebx
mov dword [ebp + 8], ebx
test edi, edi
jle 0x4de580
lea eax, [esi + 0x410]
mov dword [ebp + 8], eax
jmp 0x4de540
cmp ebx, dword [ebp - 4]
jge 0x4de57d
mov eax, ebx
cdq
idiv dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
inc ebx
mov dword [ebp - 0x10], eax
lea eax, [edx + eax*8]
mov dword [esi + eax*4 + 4], ecx
mov eax, dword [esi + 0x3cc]
sub eax, dword [ebp - 0x10]
lea ecx, [edx + eax*8]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
add eax, 4
mov dword [esi + ecx*4 + 0x1e4], edx
mov dword [ebp + 8], eax
cmp ebx, edi
jl 0x4de540
mov dword [ebp + 8], ebx
cmp ebx, dword [ebp - 4]
jge 0x4de70a
mov dword [ebp - 8], 0x50a9e8
mov eax, dword [esi + edi*4 + 0x40c]
mov ecx, eax
sar ecx, 0x10
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
mov ecx, dword [ebp - 8]
movsx ecx, byte [ecx]
xor edx, ecx
inc dword [ebp - 8]
mov ecx, eax
sar ecx, 8
and ecx, 0xff
movzx ecx, byte [ecx + str.cw]
shl edx, 8
xor edx, ecx
mov ecx, eax
and ecx, 0xff
movzx ecx, byte [ecx + str.cw]
sar eax, 0x18
shl edx, 8
and eax, 0xff
movzx eax, byte [eax + str.cw]
xor edx, ecx
shl edx, 8
xor edx, eax
xor dword [esi + 0x410], edx
cmp edi, 8
je 0x4de620
cmp edi, 1
jle 0x4de6ae
lea eax, [esi + 0x414]
lea ecx, [edi - 1]
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
dec ecx
jne 0x4de610
jmp 0x4de6ae
lea eax, [esi + 0x414]
mov ecx, 3
jmp 0x4de630
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
dec ecx
jne 0x4de630
mov eax, dword [esi + 0x41c]
mov ecx, eax
sar ecx, 0x18
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
mov ecx, eax
sar ecx, 0x10
and ecx, 0xff
movzx ecx, byte [ecx + str.cw]
shl edx, 8
xor edx, ecx
mov ecx, eax
sar ecx, 8
and ecx, 0xff
movzx ecx, byte [ecx + str.cw]
shl edx, 8
and eax, 0xff
movzx eax, byte [eax + str.cw]
xor edx, ecx
shl edx, 8
xor edx, eax
xor dword [esi + 0x420], edx
lea eax, [esi + 0x424]
mov ecx, 3
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
dec ecx
jne 0x4de6a3
mov dword [ebp - 0x10], 0
test edi, edi
jle 0x4de701
lea ecx, [esi + 0x410]
nop
cmp ebx, dword [ebp - 4]
jge 0x4de70a
mov eax, ebx
cdq
idiv dword [ebp - 0xc]
mov ebx, dword [ecx]
add ecx, 4
lea edi, [edx + eax*8]
mov dword [esi + edi*4 + 4], ebx
mov edi, dword [esi + 0x3cc]
mov ebx, dword [ebp + 8]
sub edi, eax
lea eax, [edx + edi*8]
mov edx, dword [ecx - 4]
mov edi, dword [ebp - 0x14]
mov dword [esi + eax*4 + 0x1e4], edx
mov eax, dword [ebp - 0x10]
inc eax
inc ebx
mov dword [ebp - 0x10], eax
mov dword [ebp + 8], ebx
cmp eax, edi
jl 0x4de6c0
cmp ebx, dword [ebp - 4]
jl 0x4de590
mov eax, 1
mov dword [ebp + 8], eax
cmp dword [esi + 0x3cc], eax
jle 0x4de795
lea ecx, [esi + 0x204]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0xc]
test edx, edx
jle 0x4de77d
mov edi, edi
mov eax, dword [ecx]
mov edi, eax
sar edi, 0x18
and edi, 0xff
mov edi, dword [edi*4 + 0x5099e8]
mov ebx, eax
sar ebx, 0x10
and ebx, 0xff
xor edi, dword [ebx*4 + 0x509de8]
mov ebx, eax
sar ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x50a1e8]
and eax, 0xff
xor edi, dword [eax*4 + 0x50a5e8]
add ecx, 4
dec edx
mov dword [ecx - 4], edi
jne 0x4de730
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
inc eax
add ecx, 0x20
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], ecx
cmp eax, dword [esi + 0x3cc]
jl 0x4de727
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4