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

Disassembly:
call 0x9086c1
lea esp, [esp + 0x1c]
push esi
mov edx, 0xaf0c8338
jmp 0x90875e
mov dword [esp + 0x18], eax
clc
sub esp, 4
lea esp, [esp + 4]
popal
movzx edx, byte [ecx]
jmp 0x908742
lea esp, [esp + 1]
push ecx
pushal
lea esi, reloc.WINMM.dll_midiStreamOut
jmp 0x908704
shl edx, 8
movzx esi, byte [eax + 1]
mov bl, dh
btc edi, esi
jmp 0x908774
pop ecx
rcr si, cl
sub esp, 0x16
mov bl, byte [esp + 0x14]
lea esp, [esp + 2]
jmp 0x908728
push edi
mov edi, dword [esp]
sub esp, 0xb
pop dx
lea edi, [edi*4]
jmp 0x90871a
xor edx, esi
mov esi, edx
mov bp, 0x9493
not ebp
jmp 0x9087be
mov di, word [esp]
bsf bp, bp
xor edx, esi
movzx esi, byte [eax + 3]
jmp 0x9087e5
cmp al, 0x91
xchg edx, eax
or eax, 0x1448f09c
stc
jmp 0x908816
cmp al, 0xa4
cmp dword [eax - reloc.WINMM.dll_midiStreamOut], esp
pushal
pop es
movzx esi, byte [eax + 2]
mov bp, cx
pushfd
shl edx, 8
jmp 0x908799
xchg si, di
mov dword [ecx], edx
mov bh, byte [esp]
call fcn.0093cdf1
out dx, eax
mul cl
and byte [ebp + 0x26], ch
cdq
ror byte [edi + edi*8], 0xd
sub edx, dword [ecx - reloc.WINMM.dll_midiStreamOut]
jo 0x9087fa
shl edx, 8
mov bl, 0x70
bsf edi, esp
xor edx, esi
jmp 0x9087cb
mov esp, 0xebd633fc
fisub dword [ebx + reloc.WINMM.dll_midiStreamOut]
ror dword [ebp*8 + reloc.WINMM.dll_midiStreamOut], 0x1a
adc ah, byte [ebx]
xor dh, byte [ebp - 0x17]
jl 0x9087b4
pop ss
sal byte [eax], 1
sbb dl, byte [edx]
and esi, dword [edx]
je 0x9087a8
jmp 0x993684
or byte [eax], al
call 0x847d1362
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
jmp 0x908820
or dword [esi + reloc.WINMM.dll_midiStreamOut], eax
mov ecx, 0x8b333031
inc ebp
or byte [edi], cl
mov dh, 0x10
mov eax, dword [ebp + 8]
movzx edx, byte [eax]
movzx esi, byte [eax + 1]
movzx edi, byte [eax + 5]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 2]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 3]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 4]
shl esi, 8
xor esi, edi
movzx edi, byte [eax + 6]
shl esi, 8
xor esi, edi
movzx edi, byte [eax + 7]
shl esi, 8
xor esi, edi
xor esi, dword [ecx + 4]
movzx edi, byte [eax + 8]
movzx ebx, byte [eax + 0xd]
mov dword [ebp - 0x14], esi
movzx esi, byte [eax + 9]
shl edi, 8
xor edi, esi
movzx esi, byte [eax + 0xa]
shl edi, 8
xor edi, esi
movzx esi, byte [eax + 0xb]
shl edi, 8
xor edi, esi
movzx esi, byte [eax + 0xc]
xor edi, dword [ecx + 8]
xor edx, dword [ecx]
shl esi, 8
xor esi, ebx
movzx ebx, byte [eax + 0xe]
movzx eax, byte [eax + 0xf]
shl esi, 8
xor esi, ebx
shl esi, 8
xor esi, eax
xor esi, dword [ecx + 0xc]
mov dword [ebp - 0xc], edi
shr edi, 8
mov ebx, esi
shr ebx, 0x10
mov eax, 0xff
and edi, eax
and ebx, eax
mov ebx, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
xor ebx, dword [edi*4 + reloc.WINMM.dll_midiStreamOut]
mov edi, edx
shr edi, 0x18
xor ebx, dword [edi*4 + reloc.WINMM.dll_midiStreamOut]
mov edi, dword [ebp - 0x14]
and edi, eax
xor ebx, dword [edi*4 + reloc.WINMM.dll_midiStreamOut]
mov dword [ebp - 8], esi
xor ebx, dword [ecx + 0x10]
shr esi, 8
mov edi, edx
shr edi, 0x10
and edi, eax
and esi, eax
mov dword [ebp - 4], edi
mov edi, dword [esi*4 + reloc.WINMM.dll_midiStreamOut]
mov esi, dword [ebp - 4]
xor edi, dword [esi*4 + reloc.WINMM.dll_midiStreamOut]
mov esi, dword [ebp - 0x14]
mov dword [ebp + 8], edx
mov dword [ebp - 0x10], ebx
shr esi, 0x18
xor edi, dword [esi*4 + reloc.WINMM.dll_midiStreamOut]
mov esi, dword [ebp - 0xc]
and esi, eax
xor edi, dword [esi*4 + reloc.WINMM.dll_midiStreamOut]
mov esi, dword [ebp - 0x14]
shr esi, 0x10
shr edx, 8
and esi, eax
and edx, eax
mov dword [ebp - 4], edx
mov edx, dword [esi*4 + reloc.WINMM.dll_midiStreamOut]
mov esi, dword [ebp - 4]
xor edx, dword [esi*4 + reloc.WINMM.dll_midiStreamOut]
mov esi, dword [ebp - 0xc]
shr esi, 0x18
xor edx, dword [esi*4 + reloc.WINMM.dll_midiStreamOut]
mov esi, dword [ebp - 8]
and esi, eax
xor edx, dword [esi*4 + reloc.WINMM.dll_midiStreamOut]
mov esi, dword [ebp - 0x14]
xor edx, dword [ecx + 0x18]
xor edi, dword [ecx + 0x14]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0xc]
shr edx, 0x10
shr esi, 8
and edx, eax
mov edx, dword [edx*4 + reloc.WINMM.dll_midiStreamOut]
and esi, eax
xor edx, dword [esi*4 + reloc.WINMM.dll_midiStreamOut]
mov esi, dword [ebp - 8]
shr esi, 0x18
xor edx, dword [esi*4 + reloc.WINMM.dll_midiStreamOut]
mov esi, dword [ebp + 8]
and esi, eax
xor edx, dword [esi*4 + reloc.WINMM.dll_midiStreamOut]
mov esi, dword [ebp - 0x18]
xor edx, dword [ecx + 0x1c]
sar esi, 1
add ecx, 0x20
dec esi
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], esi
je 0x908b9a
mov esi, dword [ebp - 4]
shr esi, 8
and esi, eax
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + reloc.WINMM.dll_midiStreamOut]
xor edx, dword [esi*4 + reloc.WINMM.dll_midiStreamOut]
mov esi, ebx
shr esi, 0x18
xor edx, dword [esi*4 + reloc.WINMM.dll_midiStreamOut]
mov esi, edi
and esi, eax
xor edx, dword [esi*4 + reloc.WINMM.dll_midiStreamOut]
mov esi, ebx
xor edx, dword [ecx]
shr esi, 0x10
mov dword [ebp + 8], edx
mov edx, dword [ebp - 8]
and esi, eax
shr edx, 8
and edx, eax
mov edx, dword [edx*4 + reloc.WINMM.dll_midiStreamOut]
xor edx, dword [esi*4 + reloc.WINMM.dll_midiStreamOut]
mov esi, edi
shr esi, 0x18
xor edx, dword [esi*4 + reloc.WINMM.dll_midiStreamOut]
mov esi, dword [ebp - 4]
shr ebx, 8
and ebx, eax
and esi, eax
xor edx, dword [esi*4 + reloc.WINMM.dll_midiStreamOut]
mov esi, edi
shr esi, 0x10
and esi, eax
mov esi, dword [esi*4 + reloc.WINMM.dll_midiStreamOut]
xor esi, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor esi, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
mov ebx, dword [ebp - 8]
and ebx, eax
xor esi, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
mov ebx, dword [ebp - 4]
shr edi, 8
shr ebx, 0x10
and edi, eax
xor esi, dword [ecx + 8]
and ebx, eax
mov dword [ebp - 0x18], edi
mov edi, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
mov ebx, dword [ebp - 0x18]
xor edi, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor edi, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
mov ebx, dword [ebp - 0x10]
xor edx, dword [ecx + 4]
and ebx, eax
xor edi, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
mov ebx, esi
xor edi, dword [ecx + 0xc]
shr ebx, 8
mov dword [ebp - 8], edi
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + reloc.WINMM.dll_midiStreamOut]
and ebx, eax
xor edi, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
mov ebx, dword [ebp + 8]
shr ebx, 0x18
xor edi, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
mov ebx, edx
and ebx, eax
xor edi, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
mov ebx, dword [ebp + 8]
xor edi, dword [ecx + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 8]
shr edi, 8
and edi, eax
mov edi, dword [edi*4 + reloc.WINMM.dll_midiStreamOut]
shr ebx, 0x10
and ebx, eax
xor edi, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
and esi, eax
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
mov ebx, dword [ebp + 8]
xor edi, dword [esi*4 + reloc.WINMM.dll_midiStreamOut]
mov esi, edx
shr esi, 0x10
and esi, eax
mov esi, dword [esi*4 + reloc.WINMM.dll_midiStreamOut]
shr ebx, 8
and ebx, eax
xor esi, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
xor esi, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
mov ebx, dword [ebp - 8]
xor edi, dword [ecx + 0x14]
and ebx, eax
xor esi, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
mov ebx, dword [ebp - 0x10]
xor esi, dword [ecx + 0x18]
shr edx, 8
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0xc]
shr esi, 0x10
and esi, eax
mov esi, dword [esi*4 + reloc.WINMM.dll_midiStreamOut]
and edx, eax
xor esi, dword [edx*4 + reloc.WINMM.dll_midiStreamOut]
mov edx, dword [ebp - 8]
shr edx, 0x18
xor esi, dword [edx*4 + reloc.WINMM.dll_midiStreamOut]
mov edx, dword [ebp + 8]
and edx, eax
xor esi, dword [edx*4 + reloc.WINMM.dll_midiStreamOut]
add ecx, 0x20
xor esi, dword [ecx - 4]
dec dword [ebp - 0x14]
mov dword [ebp - 8], esi
mov edx, esi
jne 0x9089bd
shr edx, 0x10
and edx, eax
mov esi, dword [edx*4 + reloc.WINMM.dll_midiStreamOut]
mov edx, dword [ebp - 4]
shr edx, 8
and edx, eax
mov edx, dword [edx*4 + reloc.WINMM.dll_midiStreamOut]
and edx, 0xff00
and esi, 0xff0000
xor esi, edx
mov edx, ebx
shr edx, 0x18
mov edx, dword [edx*4 + reloc.WINMM.dll_midiStreamOut]
and edx, 0xff000000
xor esi, edx
shr ebx, 0x10
mov edx, edi
and edx, eax
movzx edx, byte [edx*4 + 0x914d0c]
xor esi, edx
xor esi, dword [ecx]
and ebx, eax
mov dword [ebp + 8], esi
mov edx, esi
mov esi, dword [ebp + 0xc]
shr edx, 0x18
mov byte [esi], dl
mov edx, dword [ebp + 8]
shr edx, 0x10
mov byte [esi + 1], dl
mov edx, dword [ebp + 8]
shr edx, 8
mov byte [esi + 2], dl
mov dl, byte [ebp + 8]
mov byte [esi + 3], dl
mov edx, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
mov ebx, dword [ebp - 8]
shr ebx, 8
and ebx, eax
mov ebx, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
and ebx, 0xff00
and edx, 0xff0000
xor edx, ebx
mov ebx, edi
shr ebx, 0x18
mov ebx, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
and ebx, 0xff000000
xor edx, ebx
mov ebx, dword [ebp - 4]
and ebx, eax
movzx ebx, byte [ebx*4 + 0x914d0c]
xor edx, ebx
xor edx, dword [ecx + 4]
mov ebx, edx
shr ebx, 0x18
mov byte [esi + 4], bl
mov ebx, edx
shr ebx, 0x10
mov byte [esi + 5], bl
mov ebx, edx
shr ebx, 8
mov byte [esi + 6], bl
mov ebx, dword [ebp - 0x10]
mov byte [esi + 7], dl
shr ebx, 8
and ebx, eax
mov ebx, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
mov edx, edi
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + reloc.WINMM.dll_midiStreamOut]
and ebx, 0xff00
and edx, 0xff0000
xor edx, ebx
mov ebx, dword [ebp - 4]
shr ebx, 0x18
mov ebx, dword [ebx*4 + reloc.WINMM.dll_midiStreamOut]
and ebx, 0xff000000
xor edx, ebx
mov ebx, dword [ebp - 8]
and ebx, eax
movzx ebx, byte [ebx*4 + 0x914d0c]
xor edx, ebx
xor edx, dword [ecx + 8]
shr edi, 8
mov ebx, edx
shr ebx, 0x18
mov byte [esi + 8], bl
mov ebx, edx
mov byte [esi + 0xb], dl
and edi, eax
shr ebx, 0x10
mov byte [esi + 9], bl
mov ebx, edx
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, eax
shr ebx, 8
mov byte [esi + 0xa], bl
mov edi, dword [edi*4 + reloc.WINMM.dll_midiStreamOut]
mov edx, dword [edx*4 + reloc.WINMM.dll_midiStreamOut]
and edi, 0xff00
and edx, 0xff0000
xor edx, edi
mov edi, dword [ebp - 8]
shr edi, 0x18
mov edi, dword [edi*4 + reloc.WINMM.dll_midiStreamOut]
and edi, 0xff000000
xor edx, edi
mov edi, dword [ebp - 0x10]
and edi, eax
movzx eax, byte [edi*4 + 0x914d0c]
xor edx, eax
xor edx, dword [ecx + 0xc]
mov eax, edx
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, edx
shr eax, 8
mov byte [esi + 0xe], al
mov byte [esi + 0xf], dl
jmp 0x908d59
pop edi
pop esi
pop ebx
leave
ret 8
jmp 0x9086da
jmp 0x908d60
test dword [reloc.WINMM.dll_midiStreamOut], 0xab86bf69
or dh, ch
pop edi
jmp 0x9936d3
push 0xfb417763
call fcn.00916110
mov cl, 0xfb
or bh, cl
xlatb
outsd dx, dword [esi]
adc eax, 0x3dc3013
jge 0x99364a
fst st(4)
aam 0x76
or byte [eax], bl
clc
dec ebx
ficomp dword [edi + eax*4 - 0x5a]
mov edx, 0xdf861e6e
and byte [ebx + 0x1549a091], ah
inc ebp
sbb byte [ebx], al
mov eax, dword [reloc.WINMM.dll_midiStreamOut]
add al, 0x7c
dec ecx
pop ss
push edx
xor esi, dword [edx + reloc.WINMM.dll_midiStreamOut]
stc
dec ebp
int1
scasb al, byte es:[edi]
xchg esi, eax
lcall 0xf8f3, 0xe22bd37b
sub ecx, dword [ecx + reloc.WINMM.dll_midiStreamOut]
push 0xffffffffffffff9f
and eax, 0x34c42382
inc edi
les esi, [edi + eax*2]
jo 0x9936de
inc eax
lahf
movsb byte es:[edi], byte [esi]
nop
pushfd
invalid