Function at 0x10008750
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x1001a024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov cl, byte [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x39], cl
mov byte [ebp - 0x3f], 0
mov dword [ebp - 0x54], 0
call fcn.10002570
movzx edi, ax
add esp, 4
mov eax, 0x9000
cmp di, ax
jne 0x10008a29
mov eax, dword [ebp + 0xc]
cmp eax, 4
ja case.default.0x100087a1
jmp dword [eax*4 + 0x10008a84]
mov dword [esi + 0x78], 0x47
mov dword [esi + 0x7c], 0x32
mov dword [esi + 0x80], 0x70
mov dword [esi + 0x84], 0x1d
jmp case.default.0x100087a1
mov dword [esi + 0x78], 0x60
mov dword [esi + 0x7c], 0x48
mov dword [esi + pe_nt_image_headers32], 0x80
mov dword [esi + 0x84], 0x30
jmp case.default.0x100087a1
mov eax, dword [0x1002b7c4]
mov dword [esi + 0x78], eax
mov eax, dword [0x1002b7c0]
mov dword [esi + 0x7c], eax
mov eax, dword [0x1002b7c8]
mov dword [esi + 0x80], eax
mov eax, dword [0x1002b7bc]
mov dword [esi + 0x84], eax
xor edi, edi
mov dword [ebp - 0x48], 0
lea eax, [esi + 0x64]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0xc], 0xa
push ebx
xor edx, edx
lea ebx, [edx + 4]
mov eax, dword [esi + 0x78]
lea ecx, [edi + edx]
add eax, edi
lea edx, [edx + 1]
mov al, byte [eax + edx + 0x100337df]
mov byte [ecx + esi], al
sub ebx, 1
jne 0x10008835
mov ebx, dword [ebp - 0x44]
xor edx, edx
mov eax, dword [ebp - 0x48]
add ebx, 0xffffffc4
add ebx, eax
lea edi, [edx + 2]
nop
lea ecx, [eax + edx]
mov eax, dword [esi + 0x7c]
lea edx, [edx + 1]
lea ebx, [ebx + 1]
mov al, byte [ecx + eax + 0x100337e0]
mov byte [ebx - 1], al
mov eax, dword [ebp - 0x48]
sub edi, 1
jne 0x10008860
mov edi, dword [ebp - 0x4c]
xor ecx, ecx
lea ebx, [edi + esi]
lea edx, [ecx + 4]
nop dword [eax]
mov eax, dword [esi + 0x80]
lea ecx, [ecx + 1]
add eax, edi
mov al, byte [eax + ecx + 0x100337df]
mov byte [ebx + ecx + 0x3b], al
sub edx, 1
jne 0x10008890
mov edi, dword [ebp - 0x48]
lea ebx, [edx + 2]
mov eax, dword [esi + 0x84]
lea ecx, [edi + edx]
mov esi, dword [ebp - 0x14]
lea edx, [edx + 1]
mov al, byte [ecx + eax + 0x100337e0]
mov ecx, dword [ebp - 0x44]
add ecx, edi
mov byte [ecx + edx - 1], al
sub ebx, 1
jne 0x100088b1
mov edi, dword [ebp - 0x4c]
add dword [ebp - 0x48], 2
add edi, 4
sub dword [ebp - 0xc], 1
mov dword [ebp - 0x4c], edi
jne 0x10008830
xor al, al
nop
movzx ecx, al
cmp ecx, 0x1a
jae 0x10008a7f
inc al
mov byte [ebp + ecx - 0x38], 0
cmp al, 0x19
jb 0x100088f0
movzx ecx, byte [ebp - 0x39]
xor bl, bl
mov bh, byte [ebp - 0x3f]
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0x38], 0x13
lea edx, [ecx*4]
mov eax, dword [edx + esi]
mov dword [ebp - 0x37], eax
mov ax, word [esi + ecx*2 + 0x28]
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
mov word [ebp - 0x31], ax
mov eax, dword [esi + 0x80]
setne cl
mov dword [ebp - 0x4c], edx
lea ecx, [ecx*4 + 0x28]
lea esi, [eax + 0x100337e3]
mov dword [ebp - 0x44], ecx
add esi, edx
movzx edi, byte [esi - 1]
movzx eax, byte [esi]
shl edi, 8
add edi, eax
movzx ecx, bl
mov edx, edi
movzx eax, bh
sub edx, dword [ebp - 0x54]
cmovns ecx, eax
inc bl
mov bh, cl
mov ecx, dword [ebp - 0x44]
add esi, ecx
test edx, edx
cmovns edi, dword [ebp - 0x54]
mov dword [ebp - 0x54], edi
cmp bl, 7
jb 0x10008950
mov esi, dword [ebp - 0x14]
movzx eax, bh
imul eax, ecx
mov ecx, dword [ebp - 0xc]
add eax, dword [ebp - 0x4c]
lea ebx, [esi + ecx*4]
xor edx, edx
mov dword [ebp - 0x44], eax
lea edi, [edx + 4]
nop dword [eax + eax]
lea ecx, [eax + edx]
mov eax, dword [esi + 0x80]
lea edx, [edx + 1]
mov al, byte [ecx + eax + 0x100337e0]
mov byte [edx + ebx + 0x3b], al
mov eax, dword [ebp - 0x44]
sub edi, 1
jne 0x100089a0
mov eax, dword [ebx + 0x3c]
xor cl, cl
mov dword [ebp - 0x2f], eax
mov edx, 0xe
mov eax, dword [ebp - 0xc]
pop ebx
mov ax, word [esi + eax*2 + 0x64]
mov word [ebp - 0x2b], ax
lea eax, [ebp - 0x37]
nop dword [eax]
xor cl, byte [eax]
lea eax, [eax + 1]
sub edx, 1
jne 0x100089e0
mov esi, dword [ebp - 0x50]
lea eax, [ebp - 0x40]
push 0x3e8
push eax
push 1
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x20], cl
push eax
push 0x19
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.10002b10
add esp, 0x1c
cmp word [ebp - 0x40], 1
jne 0x10008a22
cmp byte [ebp - 0x1c], 0x13
jne 0x10008a22
mov edi, 0xe036
jmp 0x10008a2c
mov edi, 0xe041
jmp 0x10008a2c
mov esi, dword [ebp - 0x50]
push 0x1f4
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0
push eax
push 1
lea eax, [ebp - 0xc]
mov dword [0x1002b7b0], 0
push eax
push 1
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 2
push eax
push esi
call fcn.10002b10
push 0
push 1
push 1
push esi
call dword [0x1003c83c]
mov ecx, dword [ebp - 4]
add esp, 0x2c
mov ax, di
xor ecx, ebp
pop edi
pop esi
call fcn.10008cc1
mov esp, ebp
pop ebp
ret
call fcn.10008df3
test al, 0x87
add byte [eax], dl
int3