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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 4]
test ecx, ecx
jne 0x100b694f
push 0x100d05c0
lea ecx, [ebp - 0x44]
call fcn.1001a7fc
push 0x100cd00c
lea edx, [ebp - 0x44]
push edx
call fcn.100210d8
mov eax, dword [ebp - 8]
cmp dword [eax + 0x3cc], 0x10
jne 0x100b6970
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 8]
call fcn.100ba350
jmp 0x100b6d23
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3cc]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 4
jne 0x100b6994
mov dword [ebp - 0x2c], 0
jmp 0x100b69b0
cmp dword [ebp - 0xc], 6
jne 0x100b69a3
mov dword [ebp - 0x28], 1
jmp 0x100b69aa
mov dword [ebp - 0x28], 2
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
shl eax, 5
mov ecx, 8
shl ecx, 0
lea edx, [eax + ecx + 0x100c8fe0]
mov eax, 4
imul ecx, eax, 0
mov edx, dword [edx + ecx]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x24]
shl eax, 5
mov ecx, 8
shl ecx, 1
lea edx, [eax + ecx + 0x100c8fe0]
mov eax, 4
imul ecx, eax, 0
mov edx, dword [edx + ecx]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x24]
shl eax, 5
mov ecx, 8
imul edx, ecx, 3
lea eax, [eax + edx + 0x100c8fe0]
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [eax + edx]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 8]
add ecx, 0x454
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
jmp 0x100b6a3c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jge 0x100b6ae3
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
shl edx, 0x18
mov eax, dword [ebp - 0x14]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
shl eax, 0x10
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 + 8]
movzx edx, byte [ecx]
shl edx, 8
mov eax, dword [ebp - 0x14]
or edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], edx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
mov eax, dword [ebp - 0x18]
or edx, dword [eax]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], edx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov ecx, 0x20
imul edx, ecx, 0
mov eax, dword [ebp - 8]
lea ecx, [eax + edx + 8]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [edx]
xor edx, dword [ecx + eax*4]
mov eax, dword [ebp - 0x18]
mov dword [eax], edx
jmp 0x100b6a33
mov dword [ebp - 0x1c], 1
jmp 0x100b6af5
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [edx + 0x3d0]
jge 0x100b6bf8
mov dword [ebp - 4], 0
jmp 0x100b6b19
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0xc]
jge 0x100b6bd0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + eax*4 + 0x454]
sar ecx, 0x18
and ecx, 0xff
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x30]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov edx, dword [eax + edx*4 + 0x454]
sar edx, 0x10
and edx, 0xff
mov ecx, dword [ecx*4 + 0x100c9940]
xor ecx, dword [edx*4 + 0x100c83e0]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x34]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov edx, dword [eax + edx*4 + 0x454]
sar edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x100c8be0]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x38]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov edx, dword [eax + edx*4 + 0x454]
and edx, 0xff
xor ecx, dword [edx*4 + 0x100c7fe0]
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov edx, dword [ebp - 8]
lea eax, [edx + eax + 8]
mov edx, dword [ebp - 4]
xor ecx, dword [eax + edx*4]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + eax*4 + 0x434], ecx
jmp 0x100b6b10
mov eax, dword [ebp - 0xc]
shl eax, 2
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x434
push ecx
mov edx, dword [ebp - 8]
add edx, 0x454
push edx
call fcn.10019d10
add esp, 0xc
jmp 0x100b6aec
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
jmp 0x100b6c11
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0xc]
jge 0x100b6d23
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x3d0]
shl eax, 5
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx*4 + 0x454]
sar ecx, 0x18
and ecx, 0xff
movsx edx, byte [ecx + 0x100c9440]
mov eax, dword [ebp - 0x20]
sar eax, 0x18
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov byte [ecx], dl
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x30]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx*4 + 0x454]
sar ecx, 0x10
and ecx, 0xff
movsx edx, byte [ecx + 0x100c9440]
mov eax, dword [ebp - 0x20]
sar eax, 0x10
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov byte [ecx], dl
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x34]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx*4 + 0x454]
sar ecx, 8
and ecx, 0xff
movsx edx, byte [ecx + 0x100c9440]
mov eax, dword [ebp - 0x20]
sar eax, 8
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov byte [ecx], dl
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x38]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx*4 + 0x454]
and ecx, 0xff
movsx edx, byte [ecx + 0x100c9440]
xor edx, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x10]
mov byte [eax], dl
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x100b6c08
mov esp, ebp
pop ebp
ret 8