Function at 0x4338d6
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, 0x28
cmp dword [ebp + 8], 0
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x1c], ebx
je 0x433ca5
mov eax, 0x5211c0
mov dword [ebx + 0x3cc], 0x10
mov esi, eax
mov dword [ebx + 0x3c8], 0x20
lea edi, [ebx + 0x3d4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [ebx + 0x3cc]
push eax
lea eax, [ebx + 0x3f4]
push eax
call fcn.004db0a0
mov eax, dword [ebx + 0x3c8]
add esp, 0xc
cmp eax, 0x10
je 0x433957
cmp eax, 0x18
je 0x433945
mov dword [ebx + 0x3d0], 0xe
jmp 0x433979
cmp dword [ebx + 0x3cc], 0x20
push 0xe
pop eax
push 0xc
pop ecx
cmovne eax, ecx
jmp 0x433973
mov ecx, dword [ebx + 0x3cc]
cmp ecx, 0x10
jne 0x433967
push 0xa
pop eax
jmp 0x433973
push 0xe
pop eax
push 0xc
cmp ecx, 0x18
pop edx
cmove eax, edx
mov dword [ebx + 0x3d0], eax
mov eax, dword [ebx + 0x3cc]
xor esi, esi
cdq
and edx, 3
lea edi, [edx + eax]
sar edi, 2
mov dword [ebp - 8], edi
cmp dword [ebx + 0x3d0], esi
jl 0x4339b4
lea edx, [ebx + 8]
test edi, edi
jle 0x4339a8
mov ecx, edi
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
inc esi
add edx, 0x20
cmp esi, dword [ebx + 0x3d0]
jle 0x433999
xor edx, edx
cmp dword [ebx + 0x3d0], edx
jl 0x4339df
lea esi, [ebx + 0x1e8]
test edi, edi
jle 0x4339d3
mov ecx, edi
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
inc edx
add esi, 0x20
cmp edx, dword [ebx + 0x3d0]
jle 0x4339c4
mov eax, dword [ebx + 0x3c8]
mov ecx, dword [ebx + 0x3d0]
cdq
inc ecx
and edx, 3
imul ecx, edi
lea esi, [edx + eax]
sar esi, 2
lea edx, [ebx + 0x414]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x18], esi
test esi, esi
jle 0x433a3d
mov ecx, dword [ebp + 8]
mov edi, esi
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
shl eax, 0x18
mov dword [edx], eax
movzx eax, byte [ecx - 3]
shl eax, 0x10
or dword [edx], eax
movzx eax, byte [ecx - 2]
shl eax, 8
or dword [edx], eax
movzx eax, byte [ecx - 1]
or dword [edx], eax
lea edx, [edx + 4]
dec edi
jne 0x433a0e
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ebp + 8], eax
test esi, esi
jle 0x433a94
lea edx, [ebx + 0x414]
mov dword [ebp - 0xc], edx
cmp eax, ecx
jge 0x433c19
cdq
idiv edi
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx]
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
mov esi, dword [ebp - 0x18]
sub ecx, eax
lea ecx, [edx + ecx*8]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
add edx, 4
mov dword [ebx + ecx*4 + 0x1e8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
inc eax
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], edx
cmp eax, esi
jl 0x433a4f
cmp eax, ecx
jge 0x433c19
mov dword [ebp - 0xc], 0x511b80
mov edx, dword [ebx + esi*4 + 0x410]
mov eax, edx
sar eax, 0x10
and eax, 0xff
movsx ecx, byte [eax + 0x514ca0]
mov eax, dword [ebp - 0xc]
movsx eax, byte [eax]
xor ecx, eax
mov eax, edx
sar eax, 8
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x514ca0]
xor ecx, eax
movzx eax, dl
sar edx, 0x18
shl ecx, 8
and edx, 0xff
movzx eax, byte [eax + 0x514ca0]
xor ecx, eax
movzx eax, byte [edx + 0x514ca0]
shl ecx, 8
xor ecx, eax
lea eax, [ebx + 0x414]
xor dword [eax], ecx
inc dword [ebp - 0xc]
cmp esi, 8
je 0x433b2f
cmp esi, 1
jle 0x433bb5
lea ecx, [ebx + 0x418]
lea edx, [esi - 1]
mov eax, dword [ecx - 4]
xor dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x433b1f
jmp 0x433baf
push 3
lea ecx, [ebx + 0x418]
pop edx
mov eax, dword [ecx - 4]
xor dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x433b38
mov edx, dword [ebx + 0x420]
mov eax, edx
sar eax, 0x18
and eax, 0xff
push 3
movsx ecx, byte [eax + 0x514ca0]
mov eax, edx
sar eax, 0x10
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x514ca0]
xor ecx, eax
mov eax, edx
sar eax, 8
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x514ca0]
xor ecx, eax
movzx eax, dl
shl ecx, 8
pop edx
movzx eax, byte [eax + 0x514ca0]
xor ecx, eax
xor dword [ebx + 0x424], ecx
lea ecx, [ebx + 0x428]
mov eax, dword [ecx - 4]
xor dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x433ba4
lea eax, [ebx + 0x414]
and dword [ebp - 0x14], 0
test esi, esi
jle 0x433c0d
mov ecx, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jge 0x433c19
cdq
idiv edi
mov ecx, dword [ecx]
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
mov esi, dword [ebp - 0x18]
sub ecx, eax
mov eax, dword [ebp - 0x10]
lea ecx, [edx + ecx*8]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax]
inc edx
mov dword [ebx + ecx*4 + 0x1e8], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add ecx, 4
inc eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp + 8], eax
cmp edx, esi
jl 0x433bc5
jmp 0x433c10
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jl 0x433aa3
xor esi, esi
inc esi
cmp dword [ebx + 0x3d0], esi
jle 0x433c98
lea eax, [ebx + 0x208]
mov dword [ebp + 8], eax
test edi, edi
jle 0x433c89
mov ebx, edi
mov dword [ebp - 0x18], eax
mov edi, eax
mov edx, dword [edi]
mov ecx, edx
sar ecx, 0x18
mov eax, edx
sar eax, 0x10
and ecx, 0xff
and eax, 0xff
mov ecx, dword [ecx*4 + 0x5127a0]
xor ecx, dword [eax*4 + 0x5123a0]
mov eax, edx
sar eax, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x511fa0]
movzx eax, dl
xor ecx, dword [eax*4 + 0x511ba0]
mov dword [edi], ecx
lea edi, [edi + 4]
dec ebx
jne 0x433c38
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 8]
mov eax, dword [ebp + 8]
inc esi
add eax, 0x20
mov dword [ebp + 8], eax
cmp esi, dword [ebx + 0x3d0]
jl 0x433c2d
pop edi
pop esi
mov byte [ebx + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp + 8]
mov dword [ebp + 8], str.Empty_key
push eax
lea ecx, [ebp - 0x28]
call fcn.004d6f40
push 0x53d6fc
lea eax, [ebp - 0x28]
push eax
call fcn.004dfb9b
int3