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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569800
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5bf500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
test esi, esi
jne 0x4e3c15
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4e3b7b
call dword [sym.imp.KERNEL32.dll_DebugBreak]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x70], esp
push 9
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.Empty_key
mov byte [ecx], 0
call fcn.004027f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.004e37c0
mov esi, eax
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 1
call fcn.0051fa77
mov byte [ebp - 4], 2
lea eax, [esi + 0xc]
push 0xffffffffffffffff
push 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x34], vtable.encryptionerror.0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00402660
push 0x5bc210
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
call fcn.00524e20
mov eax, dword [ebp + 0x10]
cmp eax, 0x10
je 0x4e3c7d
cmp eax, 0x18
je 0x4e3c7d
cmp eax, 0x20
je 0x4e3c7d
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4e3c37
call dword [sym.imp.KERNEL32.dll_DebugBreak]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x70], esp
push str.Incorrect_key_length
call fcn.004025d0
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.004e37c0
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 5
call fcn.004e3a40
push 0x5bc210
lea eax, [ebp - 0x34]
push eax
call fcn.00524e20
mov dword [ebx + 0x3c8], eax
lea eax, [ebx + 0x3f4]
mov dword [ebx + 0x3cc], 0x10
movdqu xmm0, xmmword [ecx]
movdqu xmmword [ebx + 0x3d4], xmm0
push dword [ebx + 0x3cc]
push ecx
push eax
call fcn.005256b0
mov eax, dword [ebx + 0x3c8]
add esp, 0xc
cmp eax, 0x10
je 0x4e3cd9
cmp eax, 0x18
je 0x4e3ccb
mov dword [ebx + 0x3d0], 0xe
jmp 0x4e3cfe
xor eax, eax
cmp dword [ebx + 0x3cc], 0x20
sete al
jmp 0x4e3cf1
mov ecx, dword [ebx + 0x3cc]
cmp ecx, 0x10
jne 0x4e3ce9
lea eax, [ecx - 6]
jmp 0x4e3cf8
xor eax, eax
cmp ecx, 0x18
setne al
lea eax, [eax*2 + 0xc]
mov dword [ebx + 0x3d0], eax
mov eax, dword [ebx + 0x3cc]
cdq
and edx, 3
add eax, edx
xor edx, edx
sar eax, 2
mov dword [ebp - 0x64], eax
cmp dword [ebx + 0x3d0], edx
jl 0x4e3d41
lea edi, [ebx + 8]
mov esi, eax
mov dword [ebp - 0x5c], edi
test esi, esi
jle 0x4e3d2f
mov ecx, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x5c]
inc edx
add edi, 0x20
mov dword [ebp - 0x5c], edi
cmp edx, dword [ebx + 0x3d0]
jle 0x4e3d22
mov esi, dword [ebp + 8]
xor edx, edx
cmp dword [ebx + 0x3d0], edx
jl 0x4e3d76
mov esi, dword [ebp - 0x64]
lea edi, [ebx + 0x1e8]
mov dword [ebp - 0x5c], edi
test esi, esi
jle 0x4e3d64
mov ecx, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x5c]
inc edx
add edi, 0x20
mov dword [ebp - 0x5c], edi
cmp edx, dword [ebx + 0x3d0]
jle 0x4e3d57
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 0x3d0]
inc eax
imul eax, dword [ebp - 0x64]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx + 0x3c8]
cdq
and edx, 3
add edx, eax
lea eax, [ebx + 0x414]
sar edx, 2
mov ecx, eax
mov dword [ebp - 0x6c], edx
test edx, edx
jle 0x4e3dd7
mov edi, edx
movzx eax, byte [esi]
lea esi, [esi + 4]
shl eax, 0x18
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
movzx eax, byte [esi - 3]
shl eax, 0x10
or dword [ecx - 4], eax
movzx eax, byte [esi - 2]
shl eax, 8
or dword [ecx - 4], eax
movzx eax, byte [esi - 1]
or dword [ecx - 4], eax
dec edi
jne 0x4e3da4
lea eax, [ebx + 0x414]
xor edi, edi
test edx, edx
jle 0x4e3e1e
mov ecx, eax
mov dword [ebp - 0x60], eax
cmp edi, dword [ebp - 0x5c]
jge 0x4e3e1e
mov eax, edi
mov ecx, dword [ecx]
cdq
inc edi
idiv dword [ebp - 0x64]
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
sub ecx, eax
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
lea ecx, [edx + ecx*8]
mov edx, dword [ebp - 0x6c]
mov dword [ebx + ecx*4 + 0x1e8], eax
mov ecx, dword [ebp - 0x60]
add ecx, 4
mov dword [ebp - 0x60], ecx
cmp edi, edx
jl 0x4e3de2
mov esi, dword [ebp - 0x5c]
cmp edi, esi
jge 0x4e3fc3
lea eax, [ebx + 0x410]
mov dword [ebp - 0x60], 0x589d90
lea eax, [eax + edx*4]
mov dword [ebp - 0x70], eax
lea esp, [esp]
mov edx, dword [eax]
mov eax, edx
sar eax, 0x10
and eax, 0xff
movsx ecx, byte [eax + 0x58b310]
mov eax, dword [ebp - 0x60]
inc dword [ebp - 0x60]
movsx eax, byte [eax]
xor ecx, eax
mov eax, edx
sar eax, 8
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x58b310]
xor ecx, eax
movzx eax, dl
sar edx, 0x18
shl ecx, 8
and edx, 0xff
movzx eax, byte [eax + 0x58b310]
xor ecx, eax
movzx eax, byte [edx + 0x58b310]
lea edx, [ebx + 0x414]
shl ecx, 8
xor ecx, eax
mov eax, dword [ebp - 0x6c]
xor dword [edx], ecx
cmp eax, 8
je 0x4e3ed1
cmp eax, 1
jle 0x4e3f65
lea ecx, [ebx + 0x418]
lea edx, [eax - 1]
lea ebx, [ebx]
mov eax, dword [ecx - 4]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
dec edx
jne 0x4e3ec0
jmp 0x4e3f5c
lea eax, [ebx + 0x418]
mov edx, 3
lea esp, [esp]
mov ecx, dword [eax - 4]
lea eax, [eax + 4]
xor dword [eax - 4], ecx
dec edx
jne 0x4e3ee0
mov edx, dword [ebx + 0x420]
mov eax, edx
sar eax, 0x18
and eax, 0xff
movsx ecx, byte [eax + 0x58b310]
mov eax, edx
sar eax, 0x10
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x58b310]
xor ecx, eax
mov eax, edx
sar eax, 8
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x58b310]
xor ecx, eax
movzx eax, dl
shl ecx, 8
mov edx, 3
movzx eax, byte [eax + 0x58b310]
xor ecx, eax
xor dword [ebx + 0x424], ecx
lea ecx, [ebx + 0x428]
nop
mov eax, dword [ecx - 4]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
dec edx
jne 0x4e3f50
mov eax, dword [ebp - 0x6c]
lea edx, [ebx + 0x414]
mov dword [ebp - 0x68], 0
test eax, eax
jle 0x4e3fb8
mov ecx, edx
mov dword [ebp - 0x74], edx
cmp edi, esi
jge 0x4e3fc3
mov eax, edi
mov ecx, dword [ecx]
cdq
inc edi
idiv dword [ebp - 0x64]
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
mov esi, dword [ebp - 0x5c]
sub ecx, eax
mov eax, dword [ebp - 0x74]
lea ecx, [edx + ecx*8]
mov edx, dword [ebp - 0x68]
mov eax, dword [eax]
inc edx
mov dword [ebx + ecx*4 + 0x1e8], eax
mov ecx, dword [ebp - 0x74]
add ecx, 4
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x74], ecx
cmp edx, dword [ebp - 0x6c]
jl 0x4e3f75
mov eax, dword [ebp - 0x70]
cmp edi, esi
jl 0x4e3e40
mov ecx, 1
mov dword [ebp - 0x68], ecx
cmp dword [ebx + 0x3d0], ecx
jle 0x4e404c
mov eax, dword [ebp - 0x64]
lea edx, [ebx + 0x208]
mov dword [ebp - 0x5c], edx
nop
test eax, eax
jle 0x4e403a
mov esi, edx
mov edi, eax
mov edx, dword [esi]
lea esi, [esi + 4]
mov ecx, edx
mov eax, edx
sar ecx, 0x18
sar eax, 0x10
and ecx, 0xff
and eax, 0xff
mov ecx, dword [ecx*4 + 0x58c010]
xor ecx, dword [eax*4 + 0x58a5b0]
mov eax, edx
sar eax, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x58b410]
movzx eax, dl
xor ecx, dword [eax*4 + 0x58af10]
mov dword [esi - 4], ecx
dec edi
jne 0x4e3fe8
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x5c]
inc ecx
add edx, 0x20
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x5c], edx
cmp ecx, dword [ebx + 0x3d0]
jl 0x4e3fe0
mov byte [ebx + 4], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051ece9
mov esp, ebp
pop ebp
ret 0x10