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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
test eax, eax
push ebx
mov ebx, ecx
jne 0x43bf53
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], str.Empty_key
call fcn.0044e324
push 0x4b2ca8
lea ecx, [esp + 0xc]
push ecx
call fcn.0044dda9
mov eax, dword [esp + 0x20]
cmp eax, 0x10
je 0x43bf8b
cmp eax, 0x18
je 0x43bf8b
cmp eax, 0x20
je 0x43bf8b
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], str.Incorrect_key_length
call fcn.0044e324
push 0x4b2ca8
lea eax, [esp + 0xc]
push eax
call fcn.0044dda9
mov ecx, dword [esp + 0x24]
cmp ecx, 0x10
je 0x43bfc3
cmp ecx, 0x18
je 0x43bfc3
cmp ecx, 0x20
je 0x43bfc3
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], str.Incorrect_block_length
call fcn.0044e324
push 0x4b2ca8
lea edx, [esp + 0xc]
push edx
call fcn.0044dda9
mov dword [ebx + 0x3cc], ecx
mov edx, ecx
shr ecx, 2
mov dword [ebx + 0x3c8], eax
mov eax, dword [esp + 0x1c]
push ebp
push esi
push edi
mov esi, eax
lea edi, [ebx + 0x3d4]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x3cc]
mov esi, eax
mov eax, ecx
shr ecx, 2
lea edi, [ebx + 0x3f4]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x3c8]
cmp eax, 0x10
je 0x43c03e
cmp eax, 0x18
je 0x43c024
mov dword [ebx + 0x3d0], 0xe
jmp 0x43c064
mov eax, dword [ebx + 0x3cc]
xor ecx, ecx
cmp eax, 0x20
sete cl
lea ecx, [ecx + ecx + 0xc]
mov dword [ebx + 0x3d0], ecx
jmp 0x43c064
mov eax, dword [ebx + 0x3cc]
cmp eax, 0x10
jne 0x43c050
mov eax, 0xa
jmp 0x43c05e
xor edx, edx
cmp eax, 0x18
setne dl
lea edx, [edx + edx + 0xc]
mov eax, edx
mov dword [ebx + 0x3d0], eax
mov eax, dword [ebx + 0x3cc]
cdq
and edx, 3
add eax, edx
mov ebp, eax
mov eax, dword [ebx + 0x3d0]
sar ebp, 2
xor edx, edx
test eax, eax
mov dword [esp + 0x30], ebp
jl 0x43c0a2
lea esi, [ebx + 8]
test ebp, ebp
jle 0x43c094
mov ecx, ebp
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x3d0]
inc edx
add esi, 0x20
cmp edx, eax
jle 0x43c088
mov eax, dword [ebx + 0x3d0]
xor edx, edx
test eax, eax
jl 0x43c0ce
lea esi, [ebx + 0x1e8]
test ebp, ebp
jle 0x43c0c0
mov ecx, ebp
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x3d0]
inc edx
add esi, 0x20
cmp edx, eax
jle 0x43c0b4
mov eax, dword [ebx + 0x3d0]
inc eax
imul eax, ebp
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x3c8]
cdq
and edx, 3
add eax, edx
mov edi, eax
mov eax, dword [esp + 0x24]
sar edi, 2
test edi, edi
lea esi, [ebx + 0x414]
jle 0x43c12a
mov ecx, edi
lea ecx, [ecx]
movzx edx, byte [eax]
shl edx, 0x18
mov dword [esi], edx
movzx edx, byte [eax + 1]
inc eax
shl edx, 0x10
or dword [esi], edx
xor edx, edx
mov dh, byte [eax + 1]
inc eax
add esi, 4
or dword [esi - 4], edx
movzx edx, byte [eax + 1]
or dword [esi - 4], edx
inc eax
inc eax
dec ecx
jne 0x43c100
xor ecx, ecx
test edi, edi
mov dword [esp + 0x2c], ecx
jle 0x43c180
lea esi, [ebx + 0x414]
mov dword [esp + 0x24], esi
mov edi, edi
cmp ecx, dword [esp + 0x28]
jge 0x43c17c
mov eax, ecx
cdq
idiv ebp
mov esi, dword [esi]
lea ebp, [edx + eax*8]
mov dword [ebx + ebp*4 + 8], esi
mov esi, dword [ebx + 0x3d0]
mov ebp, dword [esp + 0x30]
sub esi, eax
lea eax, [edx + esi*8]
mov esi, dword [esp + 0x24]
mov edx, dword [esi]
inc ecx
add esi, 4
cmp ecx, edi
mov dword [ebx + eax*4 + 0x1e8], edx
mov dword [esp + 0x24], esi
jl 0x43c140
mov dword [esp + 0x2c], ecx
cmp ecx, dword [esp + 0x28]
jge 0x43c301
mov dword [esp + 0x10], 0x49e5f8
mov eax, dword [ebx + edi*4 + 0x410]
mov esi, dword [esp + 0x10]
movsx esi, byte [esi]
mov edx, eax
shr edx, 0x10
movzx edx, dl
movsx edx, byte [edx + 0x49b3f8]
xor edx, esi
movzx esi, ah
movzx esi, byte [esi + 0x49b3f8]
shl edx, 8
xor edx, esi
mov esi, dword [ebx + 0x414]
mov dword [esp + 0x24], eax
and eax, 0xff
movzx eax, byte [eax + 0x49b3f8]
shl edx, 8
xor edx, eax
mov eax, dword [esp + 0x24]
shr eax, 0x18
movzx eax, byte [eax + 0x49b3f8]
shl edx, 8
xor edx, eax
xor esi, edx
mov edx, dword [esp + 0x10]
inc edx
cmp edi, 8
mov dword [ebx + 0x414], esi
mov dword [esp + 0x10], edx
je 0x43c226
cmp edi, 1
jle 0x43c29f
lea eax, [ebx + 0x418]
lea edx, [edi - 1]
mov esi, dword [eax - 4]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x43c216
jmp 0x43c29f
lea eax, [ebx + 0x418]
mov edx, 3
mov esi, dword [eax - 4]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x43c231
mov eax, dword [ebx + 0x420]
mov edx, eax
shr edx, 0x18
movsx edx, byte [edx + 0x49b3f8]
mov dword [esp + 0x24], eax
movzx esi, byte [esp + 0x26]
movzx esi, byte [esi + 0x49b3f8]
shl edx, 8
xor edx, esi
movzx esi, ah
movzx esi, byte [esi + 0x49b3f8]
shl edx, 8
and eax, 0xff
movzx eax, byte [eax + 0x49b3f8]
xor edx, esi
shl edx, 8
xor edx, eax
xor dword [ebx + 0x424], edx
lea eax, [ebx + 0x428]
mov edx, 3
mov esi, dword [eax - 4]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x43c294
test edi, edi
mov dword [esp + 0x24], 0
jle 0x43c2f7
lea esi, [ebx + 0x414]
cmp ecx, dword [esp + 0x28]
jge 0x43c301
mov eax, ecx
cdq
idiv ebp
mov ebp, dword [esi]
add esi, 4
lea ecx, [edx + eax*8]
mov dword [ebx + ecx*4 + 8], ebp
mov ecx, dword [ebx + 0x3d0]
mov ebp, dword [esp + 0x30]
sub ecx, eax
mov eax, dword [esi - 4]
lea edx, [edx + ecx*8]
mov ecx, dword [esp + 0x2c]
mov dword [ebx + edx*4 + 0x1e8], eax
mov eax, dword [esp + 0x24]
inc eax
inc ecx
cmp eax, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
jl 0x43c2b1
cmp ecx, dword [esp + 0x28]
jl 0x43c192
mov ecx, dword [ebx + 0x3d0]
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x2c], eax
jle 0x43c380
lea ecx, [ebx + 0x208]
mov dword [esp + 0x30], ecx
mov edi, edi
test ebp, ebp
jle 0x43c362
mov edx, ebp
mov eax, dword [ecx]
mov esi, eax
shr esi, 0x18
mov esi, dword [esi*4 + 0x49d5f8]
mov dword [esp + 0x24], eax
movzx edi, byte [esp + 0x26]
xor esi, dword [edi*4 + 0x49d9f8]
movzx edi, ah
xor esi, dword [edi*4 + 0x49ddf8]
and eax, 0xff
xor esi, dword [eax*4 + 0x49e1f8]
mov dword [ecx], esi
add ecx, 4
dec edx
jne 0x43c326
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [ebx + 0x3d0]
inc eax
add ecx, 0x20
cmp eax, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
jl 0x43c320
pop edi
pop esi
pop ebp
mov byte [ebx + 4], 1
pop ebx
add esp, 0x10
ret 0x10