Function at 0x6d6d4d70
Capabilities:
Encrypt data using aes
Inspect section memory permissions
Reference aes constants
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x88]
test eax, eax
je 0x6d6d5184
test ecx, ecx
je 0x6d6d51bc
test edx, edx
je 0x6d6d51a0
mov esi, dword [ecx + 4]
mov ebx, dword [ecx]
lea ebp, [edx + 0xf0]
mov edi, dword [edx + 0x1e0]
mov eax, dword [ecx + 8]
mov dword [esp + 0x58], ebp
bswap esi
xor esi, dword [edx + 0xf4]
bswap ebx
xor ebx, dword [edx + 0xf0]
sar edi, 1
bswap eax
mov dword [esp + 0x5c], edi
xor eax, dword [edx + 0xf8]
mov dword [esp + 0x54], edi
mov dword [esp + 0x1c], esi
mov esi, dword [ecx + 0xc]
mov ecx, ebx
bswap esi
xor esi, dword [edx + 0xfc]
jmp 0x6d6d4ea9
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
mov esi, dword [esi*4 + 0x6d7706c0]
xor esi, dword [edx*4 + 0x6d76dac0]
mov edx, dword [esp + 0x4c]
xor esi, dword [ebp + 0xc]
mov ecx, dword [ebx*4 + 0x6d7706c0]
mov ebx, dword [esp + 0x20]
xor ecx, dword [eax*4 + 0x6d76dac0]
mov eax, dword [esp + 0x24]
xor ecx, dword [esp + 0x28]
xor ecx, dword [ebx*4 + 0x6d76e2c0]
mov ebx, dword [esp + 0x2c]
xor ecx, dword [eax*4 + 0x6d76dec0]
mov eax, dword [ebx*4 + 0x6d7706c0]
mov ebx, dword [esp + 0x38]
xor eax, dword [ebx*4 + 0x6d76dac0]
mov ebx, dword [esp + 0x30]
xor eax, dword [ebp + 4]
xor eax, dword [ebx*4 + 0x6d76e2c0]
mov ebx, dword [esp + 0x34]
xor eax, dword [ebx*4 + 0x6d76dec0]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax*4 + 0x6d7706c0]
xor eax, dword [ebx*4 + 0x6d76dac0]
mov ebx, dword [esp + 0x40]
xor eax, dword [ebp + 8]
xor eax, dword [ebx*4 + 0x6d76e2c0]
mov ebx, dword [esp + 0x44]
xor eax, dword [ebx*4 + 0x6d76dec0]
xor esi, dword [edx*4 + 0x6d76e2c0]
xor esi, dword [edi*4 + 0x6d76dec0]
mov edi, dword [esp + 0x1c]
mov edx, ecx
add ebp, 0x20
shr edx, 0x18
mov edx, dword [edx*4 + 0x6d7706c0]
mov ebx, edi
shr edi, 0x18
movzx ebx, bl
xor edx, dword [ebx*4 + 0x6d76dac0]
mov ebx, esi
shr ebx, 0x10
xor edx, dword [ebp - 0x10]
movzx ebx, bl
xor edx, dword [ebx*4 + 0x6d76e2c0]
movzx ebx, ah
xor edx, dword [ebx*4 + 0x6d76dec0]
mov ebx, dword [edi*4 + 0x6d7706c0]
mov dword [esp + 0x20], edx
movzx edx, al
xor ebx, dword [edx*4 + 0x6d76dac0]
mov edx, ecx
shr edx, 0x10
xor ebx, dword [ebp - 0xc]
movzx edi, dl
mov edx, esi
xor ebx, dword [edi*4 + 0x6d76e2c0]
movzx edi, dh
mov edx, eax
shr edx, 0x18
xor ebx, dword [edi*4 + 0x6d76dec0]
shr eax, 0x10
mov dword [esp + 0x24], edx
mov edx, esi
shr esi, 0x18
movzx edi, dl
mov edx, dword [esp + 0x24]
mov esi, dword [esi*4 + 0x6d7706c0]
movzx eax, al
mov edx, dword [edx*4 + 0x6d7706c0]
xor edx, dword [edi*4 + 0x6d76dac0]
xor edx, dword [ebp - 8]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x1c]
shr edx, 0x10
movzx edi, dl
mov edx, dword [esp + 0x24]
xor edx, dword [edi*4 + 0x6d76e2c0]
movzx edi, ch
movzx ecx, cl
xor esi, dword [ecx*4 + 0x6d76dac0]
mov ecx, dword [esp + 0x1c]
xor esi, dword [ebp - 4]
xor edx, dword [edi*4 + 0x6d76dec0]
xor esi, dword [eax*4 + 0x6d76e2c0]
movzx edi, ch
mov ecx, dword [edi*4 + 0x6d76dec0]
mov edi, dword [esp + 0x20]
xor ecx, esi
mov esi, edi
mov eax, ecx
shr esi, 0x18
shr eax, 0x10
mov dword [esp + 0x1c], esi
movzx esi, al
movzx eax, dh
mov dword [esp + 0x20], esi
movzx esi, bl
mov dword [esp + 0x24], eax
mov dword [esp + 0x50], esi
mov eax, dword [ebp]
mov esi, ebx
shr esi, 0x18
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], eax
mov eax, edi
shr eax, 0x10
movzx esi, al
movzx eax, ch
mov dword [esp + 0x34], eax
mov eax, edx
mov dword [esp + 0x30], esi
shr eax, 0x18
movzx esi, dl
mov dword [esp + 0x3c], eax
mov eax, ebx
mov dword [esp + 0x38], esi
shr eax, 0x10
movzx esi, al
mov eax, edi
mov dword [esp + 0x40], esi
movzx esi, cl
shr ecx, 0x18
shr edx, 0x10
sub dword [esp + 0x54], 1
movzx edi, ah
movzx edx, dl
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], edx
mov esi, ecx
movzx edi, bh
movzx edx, al
jne 0x6d6d4df4
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x24]
mov esi, edx
mov ebp, dword [esp + 0x5c]
movzx edx, byte [eax*4 + 0x6d7702c0]
mov ebx, dword [ebx*4 + 0x6d7702c0]
mov eax, dword [esp + 0x1c]
shl ebp, 5
add ebp, dword [esp + 0x58]
and ebx, 0xff00
or ebx, edx
mov edx, dword [esp + 0x28]
mov eax, dword [eax*4 + 0x6d7702c0]
xor edx, ebx
mov ebx, dword [esp + 0x20]
and eax, 0xff000000
mov ebx, dword [ebx*4 + 0x6d7702c0]
and ebx, 0xff0000
or eax, ebx
mov ebx, dword [esp + 0x38]
xor eax, edx
mov edx, dword [esp + 0x84]
bswap eax
mov dword [edx], eax
mov eax, dword [esp + 0x34]
movzx edx, byte [ebx*4 + 0x6d7702c0]
mov ebx, dword [esp + 0x2c]
mov eax, dword [eax*4 + 0x6d7702c0]
and eax, 0xff00
or eax, edx
mov edx, dword [ebx*4 + 0x6d7702c0]
mov ebx, dword [esp + 0x30]
xor eax, dword [ebp + 4]
mov ebx, dword [ebx*4 + 0x6d7702c0]
and edx, 0xff000000
and ebx, 0xff0000
or edx, ebx
mov ebx, dword [esp + 0x48]
xor edx, eax
mov eax, dword [esp + 0x84]
bswap edx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov eax, dword [edx*4 + 0x6d7702c0]
movzx edx, byte [ebx*4 + 0x6d7702c0]
mov ebx, dword [esp + 0x3c]
and eax, 0xff00
or eax, edx
mov edx, dword [ebx*4 + 0x6d7702c0]
mov ebx, dword [esp + 0x40]
xor eax, dword [ebp + 8]
mov ebx, dword [ebx*4 + 0x6d7702c0]
and edx, 0xff000000
and ebx, 0xff0000
or edx, ebx
mov ebx, dword [edi*4 + 0x6d7702c0]
movzx edi, byte [esi*4 + 0x6d7702c0]
xor edx, eax
mov esi, dword [ecx*4 + 0x6d7702c0]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x4c]
bswap edx
and ebx, 0xff00
mov dword [eax + 8], edx
or ebx, edi
xor ebx, dword [ebp + 0xc]
mov ebp, dword [ecx*4 + 0x6d7702c0]
and esi, 0xff000000
mov edx, dword [esp + 0x84]
xor eax, eax
and ebp, 0xff0000
or esi, ebp
xor ebx, esi
bswap ebx
mov dword [edx + 0xc], ebx
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x1d7
mov dword [esp + 4], str.src_ciphers_aes_aes.c
mov dword [esp], 0x6d76c936
call fcn.6d6dcc80
mov dword [esp + 8], 0x1d9
mov dword [esp + 4], str.src_ciphers_aes_aes.c
mov dword [esp], str.skey___NULL
call fcn.6d6dcc80
mov dword [esp + 8], 0x1d8
mov dword [esp + 4], str.src_ciphers_aes_aes.c
mov dword [esp], 0x6d76c941
call fcn.6d6dcc80
nop
lea esi, [esi]
sub esp, 0x1c
mov edx, dword [esp + 0x20]
test edx, edx
je 0x6d6d522c
mov ecx, dword [edx]
mov eax, 3
cmp ecx, 0xf
jle 0x6d6d5209
cmp ecx, 0x17
jle 0x6d6d5210
cmp ecx, 0x1f
jle 0x6d6d5220
mov dword [edx], 0x20
xor eax, eax
add esp, 0x1c
ret
mov dword [edx], 0x10
xor eax, eax
add esp, 0x1c
ret
mov dword [edx], 0x18
xor eax, eax
add esp, 0x1c
ret
mov dword [esp + 8], 0x2d2
mov dword [esp + 4], str.src_ciphers_aes_aes.c
mov dword [esp], str.keysize___NULL
call fcn.6d6dcc80
nop
lea esi, [esi]