Function at 0x100079fe
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]
cmp dword [eax + 0x3cc], 0x10
jne 0x10007a28
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.100070d3
jmp 0x10007d98
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x3cc]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 4
jne 0x10007a4c
mov dword [ebp - 0x34], 0
jmp 0x10007a59
xor ecx, ecx
cmp dword [ebp - 0x28], 6
setne cl
inc ecx
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
shl eax, 5
mov ecx, dword [eax + 0x10013b64]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
shl edx, 5
mov eax, dword [edx + 0x10013b6c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
shl ecx, 5
mov edx, dword [ecx + 0x10013b74]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x30]
add eax, 0x454
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 0
jmp 0x10007aa9
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x28]
jge 0x10007b52
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax]
shl ecx, 0x18
mov edx, dword [ebp - 4]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx]
shl edx, 0x10
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
or ecx, edx
mov edx, dword [ebp - 4]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx]
shl edx, 8
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
or ecx, edx
mov edx, dword [ebp - 4]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
or edx, eax
mov eax, dword [ebp - 0x2c]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
mov eax, dword [eax]
xor eax, dword [edx + ecx*4 + 0x1e8]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
jmp 0x10007aa0
mov dword [ebp - 8], 1
jmp 0x10007b64
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0x3d0]
jge 0x10007c6a
mov dword [ebp - 0x1c], 0
jmp 0x10007b88
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x28]
jge 0x10007c42
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + ecx*4 + 0x454]
sar ecx, 0x18
and ecx, 0xff
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0xc]
cdq
idiv dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + edx*4 + 0x454]
sar edx, 0x10
and edx, 0xff
mov ecx, dword [ecx*4 + 0x10011b38]
xor ecx, dword [edx*4 + 0x10011f38]
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
cdq
idiv dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + edx*4 + 0x454]
sar edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x10012338]
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
cdq
idiv dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + edx*4 + 0x454]
and edx, 0xff
xor ecx, dword [edx*4 + 0x10012738]
mov eax, dword [ebp - 8]
shl eax, 5
mov edx, dword [ebp - 0x30]
lea eax, [edx + eax + 0x1e8]
mov edx, dword [ebp - 0x1c]
xor ecx, dword [eax + edx*4]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
mov dword [edx + eax*4 + 0x434], ecx
jmp 0x10007b7f
mov eax, dword [ebp - 0x28]
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.1000a270
add esp, 0xc
jmp 0x10007b5b
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
jmp 0x10007c83
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x28]
jge 0x10007d98
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x3d0]
shl eax, 5
mov ecx, dword [ebp - 0x30]
lea edx, [ecx + eax + 0x1e8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + edx*4 + 0x454]
sar ecx, 0x18
and ecx, 0xff
movsx edx, byte [ecx + 0x10010a38]
mov eax, dword [ebp - 0x24]
sar eax, 0x18
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x20]
mov byte [ecx], dl
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0xc]
cdq
idiv dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + edx*4 + 0x454]
sar ecx, 0x10
and ecx, 0xff
movsx edx, byte [ecx + 0x10010a38]
mov eax, dword [ebp - 0x24]
sar eax, 0x10
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x20]
mov byte [ecx], dl
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
cdq
idiv dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + edx*4 + 0x454]
sar ecx, 8
and ecx, 0xff
movsx edx, byte [ecx + 0x10010a38]
mov eax, dword [ebp - 0x24]
sar eax, 8
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x20]
mov byte [ecx], dl
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
cdq
idiv dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + edx*4 + 0x454]
and ecx, 0xff
movsx edx, byte [ecx + 0x10010a38]
xor edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x20]
mov byte [eax], dl
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
jmp 0x10007c7a
mov esp, ebp
pop ebp
ret 8