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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
mov ecx, dword [ebp + 8]
mov bl, byte [eax + edi]
mov dl, byte [ecx + eax + 0xa0]
xor bl, dl
mov byte [eax + edi], bl
inc eax
cmp eax, 0x10
jl 0x86c65d
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + edi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x7fac78]
mov byte [eax + edi - 1], dl
jl 0x86c677
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + 0x7fadb4]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + edi]
mov byte [ebp + eax - 0x39], dl
jl 0x86c68e
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov eax, edi
push esi
mov dword [ebp - 0x14], 9
mov dword [eax], ecx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x2c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x90]
mov dword [ebp - 0x10], ecx
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 0x86c6d2
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov eax, edi
lea edx, [ebp - 0x38]
lea ecx, [ebp + ebx - 0x38]
sub eax, edx
mov dword [ebp - 8], ecx
mov esi, 0xfffffffe
mov dword [ebp - 0x18], eax
jmp 0x86c703
mov eax, dword [ebp - 0x18]
mov al, byte [eax + ecx]
test al, al
mov byte [ebp - 0x1c], al
je 0x86c73e
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
and eax, 0xff
xor edx, edx
mov dl, byte [0x7fa986]
mov cl, byte [eax + 0x7fa978]
mov eax, ecx
mov ecx, 0xff
add eax, edx
cdq
idiv ecx
xor eax, eax
mov al, byte [edx + 0x7faa78]
mov dword [ebp - 4], eax
jmp 0x86c745
mov dword [ebp - 4], 0
lea edx, [esi - 1]
and edx, 3
add edx, ebx
mov al, byte [edx + edi]
test al, al
mov byte [ebp - 0x20], al
je 0x86c788
mov eax, dword [ebp - 0x20]
xor ecx, ecx
and eax, 0xff
xor edx, edx
mov dl, byte [0x7fa983]
mov cl, byte [eax + 0x7fa978]
mov eax, ecx
mov ecx, 0xff
add eax, edx
cdq
idiv ecx
xor eax, eax
mov al, byte [edx + 0x7faa78]
mov dword [ebp + 0xc], eax
jmp 0x86c78f
mov dword [ebp + 0xc], 0
mov edx, esi
and edx, 3
add edx, ebx
mov al, byte [edx + edi]
test al, al
mov byte [ebp - 0x24], al
je 0x86c7ce
mov eax, dword [ebp - 0x24]
xor ecx, ecx
and eax, 0xff
xor edx, edx
mov dl, byte [0x7fa985]
mov cl, byte [eax + 0x7fa978]
mov eax, ecx
mov ecx, 0xff
add eax, edx
cdq
idiv ecx
xor ecx, ecx
mov cl, byte [edx + 0x7faa78]
jmp 0x86c7d0
xor ecx, ecx
inc esi
mov edx, esi
and edx, 3
add edx, ebx
mov al, byte [edx + edi]
test al, al
mov byte [ebp - 0x28], al
je 0x86c813
mov eax, dword [ebp - 0x28]
xor edx, edx
and eax, 0xff
mov ebx, 0xff
mov dl, byte [eax + 0x7fa978]
mov eax, edx
xor edx, edx
mov dl, byte [0x7fa981]
add eax, edx
cdq
idiv ebx
mov ebx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 0x7faa78]
jmp 0x86c815
xor eax, eax
mov dl, byte [ebp + 0xc]
xor al, cl
mov cl, byte [ebp - 4]
xor al, dl
xor al, cl
mov ecx, dword [ebp - 8]
mov byte [ecx], al
lea eax, [esi + 2]
inc ecx
cmp eax, 4
mov dword [ebp - 8], ecx
jl 0x86c700
add ebx, 4
cmp ebx, 0x10
mov dword [ebp - 0xc], ebx
jl 0x86c6e8
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov ecx, edi
mov dword [ecx], edx
mov edx, dword [ebp - 0x30]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + edi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x7fac78]
mov byte [eax + edi - 1], dl
jl 0x86c860
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + 0x7fadb4]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + edi]
mov byte [ebp + eax - 0x49], dl
jl 0x86c877
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov eax, edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x40]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x3c]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x10]
sub ecx, 0x10
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
jne 0x86c6d0
mov eax, dword [ebp + 8]
mov ecx, 0x10
sub eax, edi
pop esi
mov dl, byte [eax + edi]
mov bl, byte [edi]
xor bl, dl
mov byte [edi], bl
inc edi
dec ecx
jne 0x86c8c6
pop edi
pop ebx
mov esp, ebp
pop ebp
ret