Function at 0x6ebd5c90
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, 0x5c
mov eax, dword [esp + 0x70]
test eax, eax
je 0x6ebd602a
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x6ebd6062
mov edx, dword [esp + 0x78]
test edx, edx
je 0x6ebd6046
mov edi, dword [esp + 0x78]
mov ebx, dword [eax]
mov esi, dword [eax + 4]
mov ebp, dword [eax + 8]
mov edx, dword [eax + 0xc]
bswap ebx
mov ecx, dword [edi + 0x1e0]
xor ebx, dword [edi]
bswap esi
xor esi, dword [edi + 4]
bswap ebp
bswap edx
xor ebp, dword [edi + 8]
xor edx, dword [edi + 0xc]
sar ecx, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], ecx
mov ecx, edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
jmp 0x6ebd5dbd
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
mov edx, dword [edx*4 + 0x6ec71be0]
xor edx, dword [ebx*4 + 0x6ec707e0]
mov ecx, dword [ecx*4 + 0x6ec71be0]
xor ecx, dword [edi*4 + 0x6ec707e0]
xor ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
xor ecx, dword [esi*4 + 0x6ec70fe0]
mov esi, dword [esp + 0x1c]
xor ecx, dword [esi*4 + 0x6ec70be0]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx*4 + 0x6ec71be0]
xor ecx, dword [edi*4 + 0x6ec707e0]
mov edi, dword [esp + 0x2c]
xor ecx, dword [esi + 4]
mov esi, dword [esp + 0x30]
xor ecx, dword [edi*4 + 0x6ec70fe0]
mov edi, dword [esp + 0x40]
xor ecx, dword [esi*4 + 0x6ec70be0]
mov esi, dword [esp + 0x10]
xor edx, dword [esi + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x38]
mov ecx, dword [ecx*4 + 0x6ec71be0]
xor ecx, dword [edi*4 + 0x6ec707e0]
xor ecx, dword [esi + 8]
xor ecx, dword [ebp*4 + 0x6ec70fe0]
mov ebp, dword [esp + 0x3c]
xor ecx, dword [ebp*4 + 0x6ec70be0]
mov ebx, dword [esp + 0x44]
xor edx, dword [ebx*4 + 0x6ec70fe0]
xor edx, dword [eax*4 + 0x6ec70be0]
mov ebp, ecx
mov ecx, esi
mov eax, dword [esp + 0x14]
movzx esi, dl
mov edi, eax
shr edi, 0x18
mov eax, dword [edi*4 + 0x6ec71be0]
xor eax, dword [esi*4 + 0x6ec707e0]
mov esi, dword [esp + 0x18]
xor eax, dword [ecx + 0x10]
mov ebx, esi
shr ebx, 0x10
movzx ecx, bl
mov ebx, ebp
xor eax, dword [ecx*4 + 0x6ec70fe0]
movzx edi, bh
movzx ecx, byte [esp + 0x14]
xor eax, dword [edi*4 + 0x6ec70be0]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, esi
shr eax, 0x18
mov ebx, dword [eax*4 + 0x6ec71be0]
mov eax, ebp
xor ebx, dword [ecx*4 + 0x6ec707e0]
shr eax, 0x10
xor ebx, dword [edi + 0x14]
movzx edi, dh
movzx ecx, al
mov eax, esi
xor ebx, dword [ecx*4 + 0x6ec70fe0]
mov ecx, ebp
xor ebx, dword [edi*4 + 0x6ec70be0]
mov edi, esi
movzx esi, al
mov eax, dword [esp + 0x10]
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x6ec71be0]
xor ecx, dword [esi*4 + 0x6ec707e0]
xor ecx, dword [eax + 0x18]
mov eax, edx
shr edx, 0x18
shr eax, 0x10
mov edx, dword [edx*4 + 0x6ec71be0]
movzx esi, al
mov eax, dword [esp + 0x14]
xor ecx, dword [esi*4 + 0x6ec70fe0]
movzx esi, ah
mov eax, ebp
movzx ebp, al
mov eax, dword [esp + 0x14]
xor ecx, dword [esi*4 + 0x6ec70be0]
xor edx, dword [ebp*4 + 0x6ec707e0]
mov ebp, dword [esp + 0x10]
shr eax, 0x10
xor edx, dword [ebp + 0x1c]
add ebp, 0x20
movzx esi, al
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x18]
mov eax, edi
xor edx, dword [esi*4 + 0x6ec70fe0]
movzx edi, ah
mov eax, ebx
xor edx, dword [edi*4 + 0x6ec70be0]
shr eax, 0x10
movzx edi, ch
shr ebp, 0x18
movzx esi, al
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x10]
movzx ebp, dl
mov dword [esp + 0x20], ebp
mov ebp, ebx
mov edi, dword [eax]
mov eax, ecx
shr ebp, 0x18
shr eax, 0x10
mov dword [esp + 0x28], ebp
movzx ebp, dh
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], edi
movzx edi, al
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x18]
mov eax, edi
movzx ebp, al
mov eax, ecx
shr eax, 0x18
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], eax
mov eax, edx
shr edx, 0x18
shr eax, 0x10
movzx ebp, al
mov eax, edi
movzx eax, ah
mov dword [esp + 0x3c], eax
movzx eax, bl
mov dword [esp + 0x40], eax
mov eax, edi
shr eax, 0x10
sub dword [esp + 0x48], 1
movzx edi, al
movzx eax, bh
movzx ebx, cl
mov dword [esp + 0x44], edi
jne 0x6ebd5d00
mov ecx, esi
mov esi, eax
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x4c]
mov eax, dword [eax*4 + 0x6ec6f7e0]
xor eax, dword [ecx*4 + 0x6ec6fbe0]
mov ecx, dword [esp + 0x1c]
xor eax, dword [esp + 0x24]
shl edi, 5
add edi, dword [esp + 0x78]
xor eax, dword [ecx*4 + 0x6ec6ffe0]
mov ecx, dword [esp + 0x20]
xor eax, dword [ecx*4 + str.cwko0]
mov ecx, dword [esp + 0x74]
bswap eax
mov dword [ecx], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov eax, dword [eax*4 + 0x6ec6f7e0]
xor eax, dword [ecx*4 + 0x6ec6fbe0]
mov ecx, dword [esp + 0x30]
xor eax, dword [edi + 4]
xor eax, dword [ecx*4 + 0x6ec6ffe0]
mov ecx, dword [esp + 0x34]
xor eax, dword [ecx*4 + str.cwko0]
mov ecx, dword [esp + 0x74]
bswap eax
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov eax, dword [eax*4 + 0x6ec6f7e0]
xor eax, dword [ebp*4 + 0x6ec6fbe0]
mov ebp, dword [esp + 0x3c]
xor eax, dword [edi + 8]
xor eax, dword [ebp*4 + 0x6ec6ffe0]
mov ebp, dword [esp + 0x74]
xor eax, dword [ecx*4 + str.cwko0]
bswap eax
mov dword [ebp + 8], eax
mov eax, dword [edx*4 + 0x6ec6f7e0]
mov edx, dword [esp + 0x44]
xor eax, dword [edx*4 + 0x6ec6fbe0]
xor eax, dword [edi + 0xc]
xor eax, dword [esi*4 + 0x6ec6ffe0]
xor eax, dword [ebx*4 + str.cwko0]
bswap eax
mov dword [ebp + 0xc], eax
add esp, 0x5c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x124
mov dword [esp + 4], str.src_ciphers_aes_aes.c
mov dword [esp], 0x6ec6da56
call fcn.6ebddf90
mov dword [esp + 8], 0x126
mov dword [esp + 4], str.src_ciphers_aes_aes.c
mov dword [esp], str.skey___NULL
call fcn.6ebddf90
mov dword [esp + 8], 0x125
mov dword [esp + 4], str.src_ciphers_aes_aes.c
mov dword [esp], 0x6ec6da61
call fcn.6ebddf90
nop