Function at 0x1002b890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2070
call fcn.100c66e0
mov eax, dword [0x100ff900]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
mov eax, dword [esi + 0x178]
movzx eax, word [eax]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x206c], ebx
mov byte [ebp - 0x2059], 0
cmp eax, 1
je 0x1002bc2a
cmp eax, 3
je 0x1002bc2a
mov ecx, 0xfffe
cmp ax, cx
je 0x1002bc2a
cmp eax, 0x11
je 0x1002b9c5
cmp eax, 0x69
je 0x1002b9c5
cmp dword [esi + 0x118], 0
je 0x1002b9bb
mov edx, dword [esi + 0xe8]
mov eax, dword [esi + 0xe4]
mov ecx, dword [esi + 0x110]
push 0
push edx
push 1
push eax
call fcn.100726c0
test eax, eax
jne 0x1002bd02
push 0x54
push eax
lea ecx, [ebp - 0x2058]
push ecx
call fcn.100c6660
mov edx, dword [esi + 0xe4]
mov eax, dword [esi + 0xe8]
mov ecx, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x204c], edx
push 0
lea edx, [ebp - 0x2058]
mov dword [ebp - 0x2048], eax
mov eax, dword [esi + 0x118]
push edx
push eax
mov dword [ebp - 0x2058], 0x54
mov dword [ebp - 0x203c], edi
mov dword [ebp - 0x2038], ecx
call sub.MSACM32.dll_acmStreamPrepareHeader
mov edx, dword [esi + 0x118]
push 4
lea ecx, [ebp - 0x2058]
push ecx
push edx
call sub.MSACM32.dll_acmStreamConvert
mov eax, dword [ebp - 0x2034]
push 0
lea ecx, [ebp - 0x2058]
mov dword [ebx], eax
mov edx, dword [esi + 0x118]
push ecx
push edx
call sub.MSACM32.dll_acmStreamUnprepareHeader
jmp 0x1002bd00
mov eax, 0x42
jmp 0x1002bd02
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0x114]
mov ebx, dword [esi + 0xe8]
mov eax, ebx
mov dword [ebp - 0x2060], ecx
call fcn.100c7560
mov eax, esp
mov dword [ebp - 0x2068], eax
test eax, eax
jne 0x1002b9f6
lea eax, [esp + 0x2b]
jmp 0x1002bd02
mov ecx, dword [esi + 0x110]
push 0
push ebx
push 1
push eax
call fcn.100726c0
test eax, eax
jne 0x1002bd02
mov ebx, dword [esi + 0x20]
cmp dword [ebx + 0x100], 7
mov eax, dword [ebp - 0x2060]
jne 0x1002bb00
mov ecx, dword [ebx + 0x104]
add ebx, 0x104
cmp ecx, 1
je 0x1002bb11
cmp ecx, 2
je 0x1002bb37
cdq
idiv ecx
mov dword [ebp - 0x2064], 0
mov dword [ebp - 0x2060], eax
test ecx, ecx
jle 0x1002bc0b
mov dword [ebp - 0x2070], edi
mov eax, dword [esi + 0xe8]
mov edi, dword [ebx]
cdq
idiv edi
xor ecx, ecx
test eax, eax
jle 0x1002baab
jmp 0x1002ba80
mov edx, dword [ebp - 0x2068]
imul edi, ecx
add edi, dword [ebp - 0x2064]
inc ecx
mov ax, word [edx + edi*2]
mov word [ebp + ecx*2 - 0x2006], ax
mov eax, dword [esi + 0xe8]
mov edi, dword [ebx]
cdq
idiv edi
cmp ecx, eax
jl 0x1002ba80
mov ecx, dword [ebx]
mov edx, dword [esi + 0x14c]
mov eax, dword [ebp - 0x2060]
mov edi, dword [ebp - 0x2070]
push ecx
push edx
push eax
push 1
lea ecx, [ebp - 0x2004]
push edi
push ecx
call fcn.1002c3c0
mov eax, dword [ebp - 0x2064]
mov ebx, dword [esi + 0x20]
inc eax
add edi, 2
add ebx, 0x104
add esp, 0x18
mov dword [ebp - 0x2064], eax
mov dword [ebp - 0x2070], edi
cmp eax, dword [ebx]
jl 0x1002ba64
jmp 0x1002bc0b
mov ecx, dword [ebx + 0x104]
add ebx, 0x104
cmp ecx, 1
jne 0x1002bb32
mov edx, dword [esi + 0x14c]
mov ecx, dword [ebp - 0x2068]
push 1
push edx
push eax
push 1
push edi
push ecx
call fcn.1002c3c0
add esp, 0x18
jmp 0x1002bc0b
cmp ecx, 2
jne 0x1002bb56
mov edx, dword [esi + 0x14c]
mov ecx, dword [ebp - 0x2068]
push edx
push eax
push 1
push edi
push ecx
call fcn.1002c6e0
add esp, 0x14
jmp 0x1002bc0b
cdq
idiv ecx
mov dword [ebp - 0x2064], 0
mov dword [ebp - 0x2060], eax
test ecx, ecx
jle 0x1002bc0b
mov dword [ebp - 0x2070], edi
mov eax, dword [esi + 0xe8]
mov edi, dword [ebx]
cdq
idiv edi
xor ecx, ecx
test eax, eax
jle 0x1002bbbb
jmp 0x1002bb90
mov edx, dword [ebp - 0x2068]
imul edi, ecx
add edi, dword [ebp - 0x2064]
inc ecx
mov ax, word [edx + edi*2]
mov word [ebp + ecx*2 - 0x2006], ax
mov eax, dword [esi + 0xe8]
mov edi, dword [ebx]
cdq
idiv edi
cmp ecx, eax
jl 0x1002bb90
mov ecx, dword [ebx]
mov edx, dword [esi + 0x14c]
mov eax, dword [ebp - 0x2060]
mov edi, dword [ebp - 0x2070]
push ecx
push edx
push eax
push 1
lea ecx, [ebp - 0x2004]
push edi
push ecx
call fcn.1002c3c0
mov eax, dword [ebp - 0x2064]
mov ebx, dword [esi + 0x20]
inc eax
add edi, 2
add ebx, 0x104
add esp, 0x18
mov dword [ebp - 0x2064], eax
mov dword [ebp - 0x2070], edi
cmp eax, dword [ebx]
jl 0x1002bb77
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x14c]
imul eax, dword [edx + 0x104]
mov ecx, dword [ebp - 0x206c]
add eax, eax
mov dword [ecx], eax
jmp 0x1002bd00
mov ecx, dword [esi + 0x110]
lea edx, [ebp - 0x206c]
push edx
call fcn.10072e50
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x10c]
mov ecx, dword [esi + 0xcc]
mov edx, dword [ebp - 0x206c]
add ecx, eax
cmp edx, ecx
jb 0x1002bc61
mov eax, 0x16
jmp 0x1002bd02
mov eax, dword [ebp + 0xc]
add edx, eax
cmp edx, ecx
jbe 0x1002bc79
sub ecx, dword [ebp - 0x206c]
mov byte [ebp - 0x2059], 1
mov eax, ecx
mov ecx, dword [esi + 0x20]
mov ecx, dword [ecx + 0x100]
push ebx
cmp ecx, 1
jne 0x1002bcc8
push eax
push ecx
mov ecx, dword [esi + 0x110]
push edi
call fcn.100726c0
mov ecx, dword [ebx]
shr ecx, 2
mov dl, 0x80
test ecx, ecx
je 0x1002bcb2
xor byte [edi], dl
xor byte [edi + 1], dl
xor byte [edi + 2], dl
xor byte [edi + 3], dl
add edi, 4
dec ecx
jne 0x1002bca1
mov ebx, dword [ebx]
and ebx, 3
je 0x1002bcef
lea esp, [esp]
xor byte [edi], dl
inc edi
dec ebx
jne 0x1002bcc0
jmp 0x1002bcef
cmp ecx, 2
mov ecx, dword [esi + 0x110]
jne 0x1002bce6
shr eax, 1
push eax
push 2
push edi
call fcn.100726c0
mov edx, dword [ebx]
add edx, edx
mov dword [ebx], edx
jmp 0x1002bcef
push eax
push 1
push edi
call fcn.100726c0
cmp byte [ebp - 0x2059], 0
jne 0x1002bc57
test eax, eax
jne 0x1002bd02
xor eax, eax
lea esp, [ebp - 0x207c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c5f50
mov esp, ebp
pop ebp
ret 0xc