Function at 0x436d54
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 0x437123
mov eax, 0x525ba0
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.004de9a0
mov eax, dword [ebx + 0x3c8]
add esp, 0xc
cmp eax, 0x10
je 0x436dd5
cmp eax, 0x18
je 0x436dc3
mov dword [ebx + 0x3d0], 0xe
jmp 0x436df7
cmp dword [ebx + 0x3cc], 0x20
push 0xe
pop eax
push 0xc
pop ecx
cmovne eax, ecx
jmp 0x436df1
mov ecx, dword [ebx + 0x3cc]
cmp ecx, 0x10
jne 0x436de5
push 0xa
pop eax
jmp 0x436df1
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 0x436e32
lea edx, [ebx + 8]
test edi, edi
jle 0x436e26
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 0x436e17
xor edx, edx
cmp dword [ebx + 0x3d0], edx
jl 0x436e5d
lea esi, [ebx + 0x1e8]
test edi, edi
jle 0x436e51
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 0x436e42
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 0x436ebb
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 0x436e8c
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ebp + 8], eax
test esi, esi
jle 0x436f12
lea edx, [ebx + 0x414]
mov dword [ebp - 0xc], edx
cmp eax, ecx
jge 0x437097
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 0x436ecd
cmp eax, ecx
jge 0x437097
mov dword [ebp - 0xc], 0x515ac0
mov edx, dword [ebx + esi*4 + 0x410]
mov eax, edx
sar eax, 0x10
and eax, 0xff
movsx ecx, byte [eax + 0x518be0]
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 + 0x518be0]
xor ecx, eax
movzx eax, dl
sar edx, 0x18
shl ecx, 8
and edx, 0xff
movzx eax, byte [eax + 0x518be0]
xor ecx, eax
movzx eax, byte [edx + 0x518be0]
shl ecx, 8
xor ecx, eax
lea eax, [ebx + 0x414]
xor dword [eax], ecx
inc dword [ebp - 0xc]
cmp esi, 8
je 0x436fad
cmp esi, 1
jle 0x437033
lea ecx, [ebx + 0x418]
lea edx, [esi - 1]
mov eax, dword [ecx - 4]
xor dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x436f9d
jmp 0x43702d
push 3
lea ecx, [ebx + 0x418]
pop edx
mov eax, dword [ecx - 4]
xor dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x436fb6
mov edx, dword [ebx + 0x420]
mov eax, edx
sar eax, 0x18
and eax, 0xff
push 3
movsx ecx, byte [eax + 0x518be0]
mov eax, edx
sar eax, 0x10
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x518be0]
xor ecx, eax
mov eax, edx
sar eax, 8
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x518be0]
xor ecx, eax
movzx eax, dl
shl ecx, 8
pop edx
movzx eax, byte [eax + 0x518be0]
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 0x437022
lea eax, [ebx + 0x414]
and dword [ebp - 0x14], 0
test esi, esi
jle 0x43708b
mov ecx, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jge 0x437097
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 0x437043
jmp 0x43708e
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jl 0x436f21
xor esi, esi
inc esi
cmp dword [ebx + 0x3d0], esi
jle 0x437116
lea eax, [ebx + 0x208]
mov dword [ebp + 8], eax
test edi, edi
jle 0x437107
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 + 0x5166e0]
xor ecx, dword [eax*4 + 0x5162e0]
mov eax, edx
sar eax, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x515ee0]
movzx eax, dl
xor ecx, dword [eax*4 + 0x515ae0]
mov dword [edi], ecx
lea edi, [edi + 4]
dec ebx
jne 0x4370b6
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 0x4370ab
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.004da840
push 0x542d14
lea eax, [ebp - 0x28]
push eax
call fcn.004e349b
int3