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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx edx, byte [eax + 2]
push ebx
movzx ebx, byte [eax + 3]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
shl ebx, 8
or ebx, edx
movzx edx, byte [eax + 1]
shl ebx, 8
or ebx, edx
movzx edx, byte [eax]
push edi
movzx edi, byte [eax + 6]
shl ebx, 8
or ebx, edx
movzx edx, byte [eax + 7]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 5]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 4]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 0xa]
mov dword [ebp - 0x24], ebx
xor ebx, dword [ecx]
mov dword [ebp - 0x20], edx
add ecx, 4
mov dword [ebp - 0x24], ebx
xor edx, dword [ecx]
add ecx, 4
mov dword [ebp - 0x20], edx
movzx edx, byte [eax + 0xb]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 9]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 8]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 0xe]
mov dword [ebp - 0x1c], edx
xor edx, dword [ecx]
add ecx, 4
mov dword [ebp - 0x1c], edx
movzx edx, byte [eax + 0xf]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 0xd]
movzx eax, byte [eax + 0xc]
shl edx, 8
or edx, edi
shl edx, 8
or edx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov dword [ebp - 0x18], edx
xor edx, dword [ecx]
sar edi, 1
add ecx, 4
dec edi
mov dword [ebp + 8], edi
mov eax, 0xff
test edi, edi
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
jle 0x2703ede6
shr edi, 0x10
and edi, eax
shr edx, 8
and edx, eax
mov edx, dword [edx*4 + 0x2709e4e0]
xor edx, dword [edi*4 + 0x2709e8e0]
mov edi, dword [ebp - 0x20]
shr edi, 0x18
xor edx, dword [edi*4 + 0x2709ece0]
mov edi, ebx
and edi, eax
xor edx, dword [edi*4 + 0x2709e0e0]
mov edi, ebx
xor edx, dword [ecx]
shr edi, 8
and edi, eax
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x18]
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x2709e8e0]
xor edx, dword [edi*4 + 0x2709e4e0]
mov edi, dword [ebp - 0x1c]
shr edi, 0x18
xor edx, dword [edi*4 + 0x2709ece0]
mov edi, dword [ebp - 0x20]
and edi, eax
xor edx, dword [edi*4 + 0x2709e0e0]
mov edi, dword [ebp - 0x20]
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x2709e4e0]
shr ebx, 0x10
and ebx, eax
xor edi, dword [ebx*4 + 0x2709e8e0]
mov ebx, dword [ebp - 0x18]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x2709ece0]
mov ebx, dword [ebp - 0x1c]
and ebx, eax
xor edi, dword [ebx*4 + 0x2709e0e0]
mov ebx, dword [ebp - 0x20]
add ecx, 4
xor edx, dword [ecx]
add ecx, 4
shr ebx, 0x10
mov dword [ebp - 0x10], edx
xor edi, dword [ecx]
and ebx, eax
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x1c]
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x2709e4e0]
xor edi, dword [ebx*4 + 0x2709e8e0]
mov ebx, dword [ebp - 0x24]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x2709ece0]
mov ebx, dword [ebp - 0x18]
and ebx, eax
xor edi, dword [ebx*4 + 0x2709e0e0]
mov ebx, dword [ebp - 0xc]
add ecx, 4
xor edi, dword [ecx]
shr ebx, 0x10
mov dword [ebp - 8], edi
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x2709e4e0]
and ebx, eax
xor edi, dword [ebx*4 + 0x2709e8e0]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x2709ece0]
mov ebx, dword [ebp - 0x14]
and ebx, eax
xor edi, dword [ebx*4 + 0x2709e0e0]
add ecx, 4
xor edi, dword [ecx]
add ecx, 4
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x2709e8e0]
shr ebx, 8
and ebx, eax
xor edi, dword [ebx*4 + 0x2709e4e0]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x2709ece0]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + 0x2709e0e0]
mov ebx, dword [ebp - 0x14]
xor edi, dword [ecx]
shr ebx, 0x10
mov dword [ebp - 0x20], edi
mov edi, edx
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + 0x2709e4e0]
and ebx, eax
xor edi, dword [ebx*4 + 0x2709e8e0]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x2709ece0]
mov ebx, dword [ebp - 0xc]
and ebx, eax
xor edi, dword [ebx*4 + 0x2709e0e0]
add ecx, 4
xor edi, dword [ecx]
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0xc]
shr edi, 8
shr edx, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x2709e4e0]
and edx, eax
xor edi, dword [edx*4 + 0x2709e8e0]
mov edx, dword [ebp - 0x14]
shr edx, 0x18
xor edi, dword [edx*4 + 0x2709ece0]
mov edx, dword [ebp - 8]
and edx, eax
xor edi, dword [edx*4 + 0x2709e0e0]
add ecx, 4
xor edi, dword [ecx]
add ecx, 4
dec dword [ebp + 8]
cmp dword [ebp + 8], 0
mov edx, edi
jmp 0x2703ebe8
shr edx, 8
and edx, eax
mov edx, dword [edx*4 + 0x2709e4e0]
shr edi, 0x10
and edi, eax
xor edx, dword [edi*4 + 0x2709e8e0]
mov edi, dword [ebp - 0x20]
shr edi, 0x18
xor edx, dword [edi*4 + 0x2709ece0]
mov edi, ebx
and edi, eax
xor edx, dword [edi*4 + 0x2709e0e0]
mov edi, ebx
xor edx, dword [ecx]
shr edi, 8
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x18]
shr edx, 0x10
and edx, eax
and edi, eax
mov dword [ebp + 8], edi
mov edi, dword [edx*4 + 0x2709e8e0]
mov edx, dword [ebp + 8]
xor edi, dword [edx*4 + 0x2709e4e0]
mov edx, dword [ebp - 0x1c]
shr edx, 0x18
xor edi, dword [edx*4 + 0x2709ece0]
mov edx, dword [ebp - 0x20]
and edx, eax
xor edi, dword [edx*4 + 0x2709e0e0]
mov edx, dword [ebp - 0x20]
shr edx, 8
and edx, eax
mov edx, dword [edx*4 + 0x2709e4e0]
shr ebx, 0x10
and ebx, eax
xor edx, dword [ebx*4 + 0x2709e8e0]
mov ebx, dword [ebp - 0x18]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x2709ece0]
mov ebx, dword [ebp - 0x1c]
and ebx, eax
xor edx, dword [ebx*4 + 0x2709e0e0]
mov ebx, dword [ebp - 0x20]
add ecx, 4
xor edi, dword [ecx]
add ecx, 4
shr ebx, 0x10
mov dword [ebp - 0x10], edi
xor edx, dword [ecx]
and ebx, eax
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x1c]
shr edx, 8
and edx, eax
mov edx, dword [edx*4 + 0x2709e4e0]
xor edx, dword [ebx*4 + 0x2709e8e0]
mov ebx, dword [ebp - 0x24]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x2709ece0]
mov ebx, dword [ebp - 0x18]
and ebx, eax
xor edx, dword [ebx*4 + 0x2709e0e0]
add ecx, 4
xor edx, dword [ecx]
mov ebx, edi
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0xc]
shr ebx, 0x18
movzx ebx, byte [ebx + 0x2709dfe0]
shr edx, 0x10
and edx, eax
movzx edx, byte [edx + 0x2709dfe0]
shl ebx, 8
xor edx, ebx
mov ebx, dword [ebp - 8]
shr ebx, 8
add ecx, 4
shl edx, 8
and ebx, eax
movzx ebx, byte [ebx + 0x2709dfe0]
xor edx, ebx
mov ebx, dword [ebp - 0x14]
and ebx, eax
movzx ebx, byte [ebx + 0x2709dfe0]
shl edx, 8
xor edx, ebx
xor edx, dword [ecx]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
movzx ebx, byte [ebx + 0x2709dfe0]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 8]
shl ebx, 8
shr edx, 0x10
and edx, eax
movzx edx, byte [edx + 0x2709dfe0]
xor edx, ebx
mov ebx, dword [ebp - 0x14]
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + 0x2709dfe0]
shl edx, 8
xor edx, ebx
mov ebx, edi
and ebx, eax
movzx ebx, byte [ebx + 0x2709dfe0]
shl edx, 8
xor edx, ebx
mov ebx, dword [ebp - 8]
shr ebx, 0x18
movzx ebx, byte [ebx + 0x2709dfe0]
add ecx, 4
xor edx, dword [ecx]
shl ebx, 8
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x14]
shr edx, 0x10
and edx, eax
movzx edx, byte [edx + 0x2709dfe0]
xor edx, ebx
mov ebx, edi
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + 0x2709dfe0]
shl edx, 8
xor edx, ebx
mov ebx, dword [ebp - 0xc]
and ebx, eax
movzx ebx, byte [ebx + 0x2709dfe0]
shr edi, 0x10
and edi, eax
shl edx, 8
xor edx, ebx
movzx ebx, byte [edi + 0x2709dfe0]
mov edi, dword [ebp - 0x14]
shr edi, 0x18
movzx edi, byte [edi + 0x2709dfe0]
shl edi, 8
xor ebx, edi
mov edi, dword [ebp - 0xc]
shr edi, 8
and edi, eax
movzx edi, byte [edi + 0x2709dfe0]
shl ebx, 8
xor ebx, edi
mov edi, dword [ebp - 8]
add ecx, 4
xor edx, dword [ecx]
and edi, eax
movzx eax, byte [edi + 0x2709dfe0]
shl ebx, 8
xor ebx, eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edx
xor ebx, dword [ecx + 4]
mov ecx, eax
shr ecx, 8
mov byte [esi + 1], cl
mov dword [ebp - 0x18], ebx
mov byte [esi], al
mov ecx, eax
shr eax, 0x18
mov byte [esi + 3], al
mov eax, dword [ebp - 0x20]
shr ecx, 0x10
mov byte [esi + 2], cl
mov ecx, eax
mov byte [esi + 4], al
shr ecx, 8
mov byte [esi + 5], cl
mov ecx, eax
shr eax, 0x18
mov byte [esi + 7], al
mov eax, edx
shr eax, 8
mov byte [esi + 9], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 0xa], al
mov eax, ebx
shr eax, 8
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xe], al
mov byte [esi + 8], dl
mov byte [esi + 0xc], bl
lea eax, [ebp - 0x24]
shr ecx, 0x10
shr edx, 0x18
push 0x20
shr ebx, 0x18
push eax
mov byte [esi + 6], cl
mov byte [esi + 0xb], dl
mov byte [esi + 0xf], bl
call fcn.270419d8
pop ecx
pop ecx
pop edi
xor eax, eax
pop ebx
leave
ret