Function at 0x421ca0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
movzx ecx, byte [eax + 4]
test ecx, ecx
jne 0x421cb9
jmp 0x42203a
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x3cc], 0x10
jne 0x421cda
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.004211a0
jmp 0x42203a
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x3cc]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jne 0x421cfe
mov dword [ebp - 0x34], 0
jmp 0x421d0d
xor eax, eax
cmp dword [ebp - 4], 6
setne al
add eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
shl edx, 5
mov eax, dword [edx + 0x65fc48]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
shl ecx, 5
mov edx, dword [ecx + 0x65fc50]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x10]
shl eax, 5
mov ecx, dword [eax + 0x65fc58]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x30]
add edx, 0x454
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], 0
jmp 0x421d5e
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jge 0x421dfa
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
shl eax, 0x18
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 0x10
mov edx, dword [ebp - 0x14]
or ecx, dword [edx]
mov eax, dword [ebp - 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
shl eax, 8
mov ecx, dword [ebp - 0x14]
or eax, dword [ecx]
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x2c]
or eax, dword [ecx]
mov edx, dword [ebp - 0x2c]
mov dword [edx], eax
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0x14]
add ecx, 4
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x30]
mov edx, dword [edx]
xor edx, dword [ecx + eax*4 + 8]
mov eax, dword [ebp - 0x2c]
mov dword [eax], edx
jmp 0x421d55
mov dword [ebp - 0x28], 1
jmp 0x421e0c
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
cmp eax, dword [edx + 0x3d0]
jge 0x421f0f
mov dword [ebp - 0xc], 0
jmp 0x421e30
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 4]
jge 0x421ee7
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx + eax*4 + 0x454]
sar ecx, 0x18
and ecx, 0xff
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + edx*4 + 0x454]
sar edx, 0x10
and edx, 0xff
mov ecx, dword [ecx*4 + 0x65cc20]
xor ecx, dword [edx*4 + 0x65d020]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x18]
cdq
idiv dword [ebp - 4]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + edx*4 + 0x454]
sar edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x65d420]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
cdq
idiv dword [ebp - 4]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + edx*4 + 0x454]
and edx, 0xff
xor ecx, dword [edx*4 + 0x65d820]
mov eax, dword [ebp - 0x28]
shl eax, 5
mov edx, dword [ebp - 0x30]
lea eax, [edx + eax + 8]
mov edx, dword [ebp - 0xc]
xor ecx, dword [eax + edx*4]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x30]
mov dword [edx + eax*4 + 0x434], ecx
jmp 0x421e27
mov eax, dword [ebp - 4]
shl eax, 2
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x434
push ecx
mov edx, dword [ebp - 0x30]
add edx, 0x454
push edx
call fcn.0061baa0
add esp, 0xc
jmp 0x421e03
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
jmp 0x421f28
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
jge 0x42203a
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x3d0]
shl eax, 5
mov ecx, dword [ebp - 0x30]
lea edx, [ecx + eax + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + edx*4 + 0x454]
sar ecx, 0x18
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
mov eax, dword [ebp - 0x20]
sar eax, 0x18
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x24]
mov byte [ecx], dl
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + edx*4 + 0x454]
sar ecx, 0x10
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
mov eax, dword [ebp - 0x20]
sar eax, 0x10
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x24]
mov byte [ecx], dl
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x18]
cdq
idiv dword [ebp - 4]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + edx*4 + 0x454]
sar ecx, 8
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
mov eax, dword [ebp - 0x20]
sar eax, 8
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x24]
mov byte [ecx], dl
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
cdq
idiv dword [ebp - 4]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + edx*4 + 0x454]
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
xor edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x24]
mov byte [eax], dl
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
jmp 0x421f1f
mov esp, ebp
pop ebp
ret 8