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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ecx, edx
mov eax, edi
sub ecx, edi
mov esi, 0x10
mov bl, byte [ecx + eax]
xor byte [eax], bl
inc eax
dec esi
jne 0x87662a
add edx, 0x10
mov dword [ebp - 0xc], 9
mov dword [ebp - 8], edx
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + edi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x7fac38]
mov byte [eax + edi - 1], dl
jl 0x876642
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + 0x7fae64]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + edi]
mov byte [ebp + eax - 0x3d], dl
jl 0x876659
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov eax, edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x30]
mov dword [eax + 8], ecx
xor ecx, ecx
mov dword [eax + 0xc], edx
mov eax, edi
lea ebx, [ebp - 0x2c]
lea edx, [ebp + ecx - 0x2c]
sub eax, ebx
mov dword [ebp - 4], edx
mov esi, 0xfffffffe
mov dword [ebp - 0x10], eax
jmp 0x8766a4
mov eax, dword [ebp - 0x10]
mov dl, byte [eax + edx]
test dl, dl
mov byte [ebp - 0x14], dl
je 0x8766df
mov eax, dword [ebp - 0x14]
xor edx, edx
and eax, 0xff
mov ebx, 0xff
mov dl, byte [eax + 0x7faa38]
mov eax, edx
xor edx, edx
mov dl, byte [0x7faa3a]
add eax, edx
cdq
idiv ebx
xor eax, eax
mov al, byte [edx + 0x7fab38]
mov dword [ebp + 0xc], eax
jmp 0x8766e6
mov dword [ebp + 0xc], 0
lea eax, [esi - 1]
and eax, 3
add eax, ecx
mov al, byte [eax + edi]
test al, al
mov byte [ebp - 0x18], al
je 0x876727
mov edx, dword [ebp - 0x18]
xor eax, eax
and edx, 0xff
mov ebx, 0xff
mov al, byte [edx + 0x7faa38]
xor edx, edx
mov dl, byte [0x7faa3b]
add eax, edx
cdq
idiv ebx
mov eax, edx
xor edx, edx
mov dl, byte [eax + 0x7fab38]
jmp 0x876729
xor edx, edx
lea eax, [esi + 1]
and esi, 3
mov ebx, eax
add esi, ecx
and ebx, 3
add ebx, ecx
mov dword [ebp - 0x1c], ebx
mov bl, byte [esi + edi]
mov esi, dword [ebp - 0x1c]
xor bl, byte [esi + edi]
mov esi, eax
xor bl, dl
mov dl, byte [ebp + 0xc]
xor bl, dl
mov edx, dword [ebp - 4]
lea eax, [esi + 2]
mov byte [edx], bl
inc edx
cmp eax, 4
mov dword [ebp - 4], edx
jl 0x8766a1
add ecx, 4
cmp ecx, 0x10
jl 0x876689
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov ecx, edi
mov dword [ecx], edx
mov edx, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 8]
xor eax, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax + edi]
xor bl, dl
mov byte [eax + edi], bl
inc eax
cmp eax, 0x10
jl 0x87678c
mov eax, dword [ebp - 0xc]
add ecx, 0x10
dec eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
jne 0x876640
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + edi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x7fac38]
mov byte [eax + edi - 1], dl
jl 0x8767b2
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + 0x7fae64]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + edi]
mov byte [ebp + eax - 0x3d], dl
jl 0x8767c9
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov eax, edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0xc], edx
xor eax, eax
mov dl, byte [ecx + eax + 0xa0]
mov bl, byte [eax + edi]
xor bl, dl
mov byte [eax + edi], bl
inc eax
cmp eax, 0x10
jl 0x8767fc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret