Function at 0x1027ad70
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov eax, dword [ecx + 4]
mov ebx, edx
sub eax, dword [ecx]
test eax, 0xfffffffc
je 0x1027b30a
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cmp eax, 0x10
jne 0x1027b30a
cmp byte [0x104ccaa1], 0
jne 0x1027adb0
call fcn.102effd0
mov edi, dword [0x104c6480]
call fcn.1027a500
mov edx, eax
xor esi, esi
mov dword [ebp - 0x2c], edx
xor ecx, ecx
mov eax, dword [edx]
mov edx, dword [edx + 4]
sub edx, eax
sar edx, 2
test edx, edx
je 0x1027adde
shr edi, 2
or esi, dword [eax + ecx*4]
add ecx, edi
cmp ecx, edx
jb 0x1027add5
and esi, dword [eax + 0x18c]
cmp dword [ebp + 8], 0
mov dword [ebp - 0x34], esi
je 0x1027b303
lea eax, [ebx + 2]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
sub ebx, eax
lea edx, [eax + 8]
lea eax, [ebx - 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x30], eax
nop dword [eax + eax]
mov eax, dword [edx - 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
bswap eax
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx]
mov ecx, dword [ecx]
xor ecx, eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
bswap eax
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
xor ecx, eax
mov eax, dword [edx]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
bswap eax
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
xor edx, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
bswap eax
mov ecx, dword [ebx]
xor dword [ebp - 0x10], esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ecx + 0xc]
xor ebx, eax
mov eax, dword [ebp - 0x2c]
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov eax, dword [eax]
mov ecx, dword [eax + ecx*4]
ror ecx, 8
mov dword [ebp - 4], ecx
mov ecx, edx
shr ecx, 8
mov edi, dword [ebp - 4]
movzx ecx, cl
mov ecx, dword [eax + ecx*4]
ror ecx, 0x10
xor edi, ecx
mov ecx, dword [ebp - 0xc]
movzx ecx, cl
mov ecx, dword [eax + ecx*4]
rol ecx, 8
xor edi, ecx
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
xor edi, dword [eax + ecx*4]
mov dword [ebp - 4], edi
mov ecx, edi
mov edi, dword [esi]
xor ecx, dword [edi + 0x10]
mov dword [ebp - 4], ecx
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov edi, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
movzx ecx, cl
ror edi, 0x10
mov ecx, dword [eax + ecx*4]
ror ecx, 8
xor edi, ecx
movzx ecx, dl
mov ecx, dword [eax + ecx*4]
rol ecx, 8
xor edi, ecx
mov ecx, dword [ebp - 0xc]
shr ecx, 0x18
xor edi, dword [eax + ecx*4]
mov ecx, dword [esi]
xor edi, dword [ecx + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], edi
shr ecx, 0x10
movzx ecx, cl
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + ecx*4]
ror ecx, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 8]
shr ecx, 8
movzx ecx, cl
mov ecx, dword [eax + ecx*4]
ror ecx, 0x10
xor esi, ecx
movzx ecx, bl
shr ebx, 0x18
mov ecx, dword [eax + ecx*4]
rol ecx, 8
xor esi, ecx
mov ecx, edx
shr ecx, 0x18
shr edx, 0x10
xor esi, dword [eax + ecx*4]
mov dword [ebp - 8], esi
mov ecx, esi
mov esi, dword [edi]
mov edi, dword [edi + 4]
sub edi, esi
sar edi, 2
xor ecx, dword [esi + 0x18]
mov dword [ebp - 8], ecx
movzx ecx, dl
mov edx, dword [eax + ecx*4]
mov ecx, dword [ebp - 0xc]
shr ecx, 8
movzx ecx, cl
ror edx, 8
mov ecx, dword [eax + ecx*4]
ror ecx, 0x10
xor edx, ecx
mov ecx, dword [ebp - 0x10]
movzx ecx, cl
mov ecx, dword [eax + ecx*4]
rol ecx, 8
xor edx, ecx
xor edx, dword [eax + ebx*4]
xor edx, dword [esi + 0x1c]
mov dword [ebp - 0x10], edx
cmp edi, 8
jbe 0x1027b180
add edi, 0xfffffff7
lea ecx, [esi + 0x28]
shr edi, 3
mov dword [ebp - 0xc], ecx
inc edi
nop
mov ecx, dword [ebp - 8]
shr ecx, 8
movzx edx, cl
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [eax + edx*4 + 0x800]
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0xc]
xor edx, dword [eax + ecx*4 + 0x400]
mov ecx, dword [ebp - 4]
shr ecx, 0x18
xor edx, dword [eax + ecx*4]
movzx ecx, bl
xor edx, dword [eax + ecx*4 + 0xc00]
mov ecx, dword [ebp - 0xc]
xor edx, dword [ecx - 8]
mov ecx, dword [ebp - 0x10]
shr ecx, 8
mov dword [ebp - 0x24], edx
movzx edx, cl
mov ecx, dword [ebp - 4]
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [eax + edx*4 + 0x800]
xor edx, dword [eax + ecx*4 + 0x400]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [eax + ecx*4]
mov ecx, dword [ebp - 8]
movzx ecx, cl
xor edx, dword [eax + ecx*4 + 0xc00]
mov ecx, dword [ebp - 0xc]
xor edx, dword [ecx - 4]
mov ecx, dword [ebp - 4]
shr ecx, 8
mov dword [ebp - 0x14], edx
movzx edx, cl
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
shr ebx, 8
mov edx, dword [eax + edx*4 + 0x800]
xor edx, dword [eax + ecx*4 + 0x400]
mov ecx, dword [ebp - 8]
shr ecx, 0x18
xor edx, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x10]
movzx ecx, cl
xor edx, dword [eax + ecx*4 + 0xc00]
xor edx, dword [esi]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
movzx ecx, cl
mov dword [ebp - 0x18], edx
movzx edx, bl
mov ebx, dword [eax + edx*4 + 0x800]
xor ebx, dword [eax + ecx*4 + 0x400]
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
xor ebx, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor ebx, dword [eax + ecx*4 + 0xc00]
mov ecx, dword [ebp - 0x18]
xor ebx, dword [esi + 4]
mov esi, dword [ebp - 0x24]
shr ecx, 8
movzx edx, cl
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [eax + edx*4 + 0x800]
xor edx, dword [eax + ecx*4 + 0x400]
mov ecx, esi
shr ecx, 0x18
xor edx, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x14]
movzx ecx, cl
xor edx, dword [eax + ecx*4 + 0xc00]
mov ecx, dword [ebp - 0xc]
xor edx, dword [ecx + 8]
mov ecx, ebx
shr ecx, 8
mov dword [ebp - 4], edx
movzx edx, cl
mov ecx, esi
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [eax + edx*4 + 0x800]
xor edx, dword [eax + ecx*4 + 0x400]
mov ecx, dword [ebp - 0x14]
shr ecx, 0x18
xor edx, dword [eax + ecx*4]
mov ecx, dword [ebp - 0x18]
movzx ecx, cl
xor edx, dword [eax + ecx*4 + 0xc00]
mov ecx, dword [ebp - 0xc]
xor edx, dword [ecx + 0xc]
mov ecx, esi
shr ecx, 8
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x20], edx
movzx edx, cl
mov ecx, dword [ebp - 0x14]
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [eax + edx*4 + 0x800]
xor edx, dword [eax + ecx*4 + 0x400]
mov ecx, dword [ebp - 0x18]
shr ecx, 0x18
xor edx, dword [eax + ecx*4]
movzx ecx, bl
shr ebx, 0x18
xor edx, dword [eax + ecx*4 + 0xc00]
xor edx, dword [esi + 0x10]
mov ecx, dword [ebp - 0x14]
shr ecx, 8
mov dword [ebp - 8], edx
movzx edx, cl
mov ecx, dword [ebp - 0x18]
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [eax + edx*4 + 0x800]
xor edx, dword [eax + ecx*4 + 0x400]
mov ecx, dword [ebp - 0x24]
xor edx, dword [eax + ebx*4]
movzx ecx, cl
xor edx, dword [eax + ecx*4 + 0xc00]
xor edx, dword [esi + 0x14]
add esi, 0x20
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], esi
sub edi, 1
jne 0x1027af90
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x30]
shr ecx, 0x18
mov eax, dword [esi]
mov edi, dword [ebp - 0x28]
movzx ecx, byte [ecx + 0x10463fc0]
xor cl, byte [eax]
mov eax, dword [ebp - 0x1c]
mov byte [eax + ebx], cl
mov eax, edx
shr eax, 0x10
mov ecx, dword [esi]
movzx eax, al
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
movzx eax, byte [eax + 0x10463fc0]
xor al, byte [ecx + 1]
mov byte [edi - 1], al
mov eax, ebx
mov ecx, dword [esi]
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x10463fc0]
xor al, byte [ecx + 2]
mov byte [edi], al
mov ecx, dword [esi]
movzx eax, dl
movzx eax, byte [eax + 0x10463fc0]
xor al, byte [ecx + 3]
mov ecx, edx
mov byte [edi + 1], al
mov eax, dword [esi]
shr ecx, 0x18
movzx ecx, byte [ecx + 0x10463fc0]
xor cl, byte [eax + 4]
mov eax, dword [ebp - 4]
shr eax, 0x10
movzx eax, al
mov byte [edi + 2], cl
mov ecx, dword [esi]
movzx eax, byte [eax + 0x10463fc0]
xor al, byte [ecx + 5]
mov byte [edi + 3], al
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi]
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x10463fc0]
xor al, byte [ecx + 6]
mov byte [edi + 4], al
mov ecx, dword [esi]
movzx eax, bl
movzx eax, byte [eax + 0x10463fc0]
xor al, byte [ecx + 7]
mov ecx, ebx
mov byte [edi + 5], al
mov eax, dword [esi]
shr ecx, 0x18
movzx ecx, byte [ecx + 0x10463fc0]
xor cl, byte [eax + 8]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov byte [edi + 6], cl
mov ecx, dword [esi]
movzx eax, byte [eax + 0x10463fc0]
xor al, byte [ecx + 9]
mov byte [edi + 7], al
mov eax, dword [ebp - 4]
mov ecx, dword [esi]
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x10463fc0]
xor al, byte [ecx + 0xa]
mov byte [edi + 8], al
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi]
movzx eax, al
movzx eax, byte [eax + 0x10463fc0]
xor al, byte [ecx + 0xb]
mov ecx, dword [ebp - 0x10]
mov byte [edi + 9], al
mov eax, dword [esi]
shr ecx, 0x18
shr ebx, 0x10
shr edx, 8
movzx ecx, byte [ecx + 0x10463fc0]
xor cl, byte [eax + 0xc]
mov byte [edi + 0xa], cl
mov ecx, dword [esi]
movzx eax, bl
movzx eax, byte [eax + 0x10463fc0]
xor al, byte [ecx + 0xd]
mov byte [edi + 0xb], al
mov ecx, dword [esi]
movzx eax, dl
mov edx, dword [ebp - 0x1c]
add edx, 0x10
mov dword [ebp - 0x1c], edx
movzx eax, byte [eax + 0x10463fc0]
xor al, byte [ecx + 0xe]
mov byte [edi + 0xc], al
mov eax, dword [ebp - 4]
mov ecx, dword [esi]
mov esi, dword [ebp - 0x34]
movzx eax, al
movzx eax, byte [eax + 0x10463fc0]
xor al, byte [ecx + 0xf]
mov byte [edi + 0xd], al
add edi, 0x10
sub dword [ebp + 8], 1
mov dword [ebp - 0x28], edi
jne 0x1027ae10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x196
push str.d:oxdcpcfcoreext_botanplatformswin_x86_botan_all.cpp
push str.Botan::_anonymous_namespace::aes_decrypt_n
mov edx, str.Key_was_set
mov ecx, str.DK.size____MD.size____16
call fcn.102efab0
int3