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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x103f990c
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x104c5878]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], edx
mov edi, ecx
cmp edx, 4
jb 0x1027b771
mov ebx, edx
lea esi, [edx + 0x20]
shr ebx, 2
push ecx
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], ebx
lea eax, [ebx + 6]
mov dword [ebp - 0x2c], eax
call fcn.1030c0d0
mov dword [ebp - 4], 0
push ecx
push esi
lea ecx, [ebp - 0x4c]
call fcn.1030c0d0
mov byte [ebp - 4], 1
xor edx, edx
test ebx, ebx
je 0x1027b3b6
nop dword [eax]
mov eax, dword [edi + edx*4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
bswap eax
mov ecx, dword [ebp - 0x40]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, ebx
jne 0x1027b3a0
lea edi, [ebx + 6]
mov dword [ebp - 0x18], ebx
lea eax, [edi*4 + 4]
mov dword [ebp - 0x24], eax
cmp ebx, eax
jae 0x1027b503
xor edx, edx
lea eax, [ebx*4 + 0xc]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 0x40]
mov ecx, dword [edi + eax - 0x10]
mov eax, ecx
shr eax, 0x10
movzx eax, al
movzx esi, byte [eax + str.cw]
mov eax, ecx
shr eax, 8
movzx eax, al
shl esi, 8
movzx eax, byte [eax + str.cw]
or esi, eax
movzx eax, cl
shl esi, 8
shr ecx, 0x18
movzx eax, byte [eax + str.cw]
or esi, eax
movzx eax, byte [ecx + str.cw]
shl esi, 8
or esi, eax
mov eax, edx
xor edx, edx
div ebx
xor esi, dword [eax*4 + 0x10472a30]
mov eax, dword [ebp - 0x1c]
xor esi, dword [edi + eax]
mov eax, dword [ebp - 0x14]
mov dword [edi + eax - 0xc], esi
mov eax, 1
mov edi, dword [ebp - 0x18]
cmp ebx, eax
je 0x1027b4d8
mov edx, dword [ebp - 0x40]
lea esi, [eax + edi]
mov ecx, eax
sub ecx, ebx
add ecx, edi
mov ecx, dword [edx + ecx*4]
mov dword [edx + esi*4], ecx
cmp ebx, 8
jne 0x1027b4c5
cmp eax, 4
jne 0x1027b4c5
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x14]
lea esi, [ecx + edx]
mov ebx, dword [ecx + edx]
mov ecx, ebx
shr ecx, 0x18
movzx edx, byte [ecx + str.cw]
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
movzx ecx, bl
mov ebx, dword [ebp - 0x30]
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
xor dword [esi + 4], edx
jmp 0x1027b4cf
mov edx, dword [ebp - 0x40]
mov ecx, dword [edx + esi*4 - 4]
xor dword [edx + esi*4], ecx
inc eax
cmp eax, ebx
jne 0x1027b452
mov edx, dword [ebp - 0x20]
lea ecx, [ebx*4]
mov eax, dword [ebp - 0x14]
add edi, ebx
add dword [ebp - 0x1c], ecx
add edx, ebx
add eax, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], eax
cmp edi, dword [ebp - 0x24]
jb 0x1027b3e0
mov edi, dword [ebp - 0x2c]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x104cc18c]
mov byte [ebp - 0xd], 0
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x104cd3c8]
cmp eax, dword [ecx + 4]
jle 0x1027b561
push 0x104cd3c8
call fcn.103b6558
add esp, 4
cmp dword [0x104cd3c8], 0xffffffff
jne 0x1027b561
mov byte [ebp - 4], 2
push ecx
call fcn.1027a5a0
push 0x104298b0
call fcn.103b6c91
add esp, 4
mov byte [ebp - 4], 1
push 0x104cd3c8
call fcn.103b650e
add esp, 4
mov ebx, dword [ebp - 0x24]
xor esi, esi
test ebx, ebx
je 0x1027b5b1
mov edx, edi
shl edx, 4
nop
mov eax, dword [ebp - 0x40]
lea edx, [edx - 0x10]
mov ecx, dword [edx + eax + 0x10]
mov eax, dword [ebp - 0x4c]
mov dword [eax + esi*4], ecx
mov eax, dword [ebp - 0x40]
mov ecx, dword [edx + eax + 0x14]
mov eax, dword [ebp - 0x4c]
mov dword [eax + esi*4 + 4], ecx
mov eax, dword [ebp - 0x40]
mov ecx, dword [edx + eax + 0x18]
mov eax, dword [ebp - 0x4c]
mov dword [eax + esi*4 + 8], ecx
mov eax, dword [ebp - 0x40]
mov ecx, dword [edx + eax + 0x1c]
mov eax, dword [ebp - 0x4c]
mov dword [eax + esi*4 + 0xc], ecx
add esi, 4
cmp esi, ebx
jne 0x1027b570
mov ebx, dword [ebp - 0x28]
mov edi, 4
add ebx, 0x18
mov dword [ebp - 0x24], ebx
cmp ebx, edi
je 0x1027b62b
mov eax, dword [ebp - 0x4c]
mov ebx, dword [eax + edi*4]
lea esi, [eax + edi*4]
mov edx, dword [0x104cd374]
mov eax, ebx
shr eax, 8
inc edi
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov ecx, dword [edx + ecx*4 + 0x800]
movzx eax, byte [eax + str.cw]
xor ecx, dword [edx + eax*4 + 0x400]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
xor ecx, dword [edx + eax*4]
movzx eax, bl
mov ebx, dword [ebp - 0x28]
add ebx, 0x18
movzx eax, byte [eax + str.cw]
xor ecx, dword [edx + eax*4 + 0xc00]
mov dword [esi], ecx
cmp edi, ebx
jne 0x1027b5c3
mov esi, dword [ebp + 0x10]
mov ecx, esi
push esi
push 0x10
call fcn.1031c900
mov edi, dword [ebp + 0x14]
mov ecx, edi
push edi
push 0x10
call fcn.1031c900
mov ebx, dword [ebp - 0x2c]
xor edx, edx
shl ebx, 4
nop dword [eax]
mov eax, dword [ebp - 0x40]
mov ecx, dword [esi]
mov eax, dword [ebx + eax]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
bswap eax
mov dword [ecx + edx], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [edi]
mov eax, dword [edx + eax]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
bswap eax
mov dword [ecx + edx], eax
lea ebx, [ebx + 4]
add edx, 4
cmp edx, 0x10
jne 0x1027b650
mov esi, dword [ebp + 8]
mov ecx, esi
mov ebx, dword [ebp - 0x24]
push esi
push ebx
call fcn.1031c3a0
mov edi, dword [ebp + 0xc]
mov ecx, edi
push edi
push ebx
call fcn.1031c3a0
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x1027b6ba
shl eax, 2
push eax
push dword [ebp - 0x40]
push ecx
call fcn.103ce790
add esp, 0xc
mov eax, dword [edi + 4]
mov ecx, dword [edi]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x1027b6d8
shl eax, 2
push eax
push dword [ebp - 0x4c]
push ecx
call fcn.103ce790
add esp, 0xc
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x4c]
test edx, edx
je 0x1027b71a
mov eax, dword [ebp - 0x44]
sub eax, edx
sar eax, 2
test eax, eax
je 0x1027b6fc
mov ecx, edx
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x1027b6f1
push edx
call fcn.103b6396
add esp, 4
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x1027b75f
mov eax, dword [ebp - 0x38]
sub eax, edx
sar eax, 2
test eax, eax
je 0x1027b741
mov ecx, edx
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x1027b736
push edx
call fcn.103b6396
add esp, 4
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1f4
push str.d:oxdcpcfcoreext_botanplatformswin_x86_botan_all.cpp
push str.Botan::_anonymous_namespace::aes_key_schedule
mov edx, str.aes_key_length_has_valid_size
mov ecx, str.length___4
call fcn.102efab0
int3