Function at 0x10008991
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [0x10042814], 0
jne 0x10008bd7
mov eax, dword [ebp + 8]
mov edx, 0x4ff2a8bd
movaps xmm0, xmmword [0x10039520]
xor ecx, ecx
mov dword [0x10042814], eax
mov eax, dword fs:[0x18]
push ebx
push esi
push edi
mov eax, dword [eax + 0x30]
push 2
pop ebx
mov dword [ebp - 0x38], edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x30], ebx
movups xmmword [ebp - 0x2c], xmm0
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov edi, dword [eax + 0x10]
mov eax, ecx
mov dword [ebp - 0x14], edi
xor dword [ebp + eax*4 - 0x2c], edx
inc eax
cmp eax, dword [ebp - 0x34]
jae 0x100089f9
mov edx, dword [ebp - 0x38]
jmp 0x100089ea
mov eax, dword [ebp - 0x30]
mov edx, 0x5fe5517b
mov eax, dword [ebp + eax*4 - 0x2c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ecx
mov esi, dword [edi + eax]
mov eax, ecx
mov dword [ebp - 0x24], 0x5fe55103
mov dword [ebp - 0x20], 0x65363465
xor dword [ebp + eax*4 - 0x24], edx
inc eax
cmp eax, dword [ebp - 0x2c]
jae 0x10008a30
mov edx, dword [ebp - 0x30]
jmp 0x10008a21
mov eax, dword [ebp - 0x28]
mov edx, 0x6fd7fa39
movaps xmm0, xmmword [0x10039530]
push 2
mov eax, dword [ebp + eax*4 - 0x24]
add eax, esi
mov dword [ebp - 0x38], edx
pop esi
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x30], esi
mov ebx, dword [eax + edi]
mov eax, ecx
add ebx, edi
mov dword [ebp - 0xc], ebx
movups xmmword [ebp - 0x2c], xmm0
xor dword [ebp + eax*4 - 0x2c], edx
inc eax
cmp eax, dword [ebp - 0x34]
jae 0x10008a72
mov edx, dword [ebp - 0x38]
jmp 0x10008a63
mov eax, dword [ebp - 0x30]
mov edx, 0x7fcaa2f7
mov eax, dword [ebp + eax*4 - 0x2c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ecx
mov eax, dword [eax + ebx]
add eax, edi
mov dword [ebp - 0x24], 0x7fcaa2eb
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x20], 0x451b85e0
xor dword [ebp + eax*4 - 0x24], edx
inc eax
cmp eax, dword [ebp - 0x2c]
jae 0x10008aae
mov edx, dword [ebp - 0x30]
jmp 0x10008a9f
mov eax, dword [ebp - 0x28]
mov edx, 0x4fbd4bb4
movaps xmm0, xmmword [0x10039510]
mov eax, dword [ebp + eax*4 - 0x24]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x30], 2
mov esi, dword [eax + ebx]
mov eax, ecx
add esi, edi
mov dword [ebp - 0x1c], esi
movups xmmword [ebp - 0x2c], xmm0
xor dword [ebp + eax*4 - 0x2c], edx
inc eax
cmp eax, dword [ebp - 0x34]
jae 0x10008aef
mov edx, dword [ebp - 0x38]
jmp 0x10008ae0
mov eax, dword [ebp - 0x30]
mov eax, dword [ebp + eax*4 - 0x2c]
mov ebx, dword [eax + ebx]
add ebx, edi
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 4], ecx
je 0x10008bc6
test esi, esi
je 0x10008bc6
test ebx, ebx
je 0x10008bc6
mov edx, ecx
mov esi, 0x5faff472
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x30], esi
mov eax, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 0x5faff46a
mov dword [ebp - 0x20], 0x6500d75c
xor dword [ebp + eax*4 - 0x24], esi
inc eax
cmp eax, dword [ebp - 0x2c]
jae 0x10008b4a
mov esi, dword [ebp - 0x30]
jmp 0x10008b3b
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x24]
cmp edx, dword [esi + eax]
jae 0x10008bc6
mov eax, dword [ebp - 4]
mov eax, dword [eax + edx*4]
add eax, edi
mov esi, eax
mov dword [ebp - 0x10], eax
lea eax, [esi + 1]
mov dword [ebp + 8], eax
mov al, byte [esi]
inc esi
test al, al
jne 0x10008b6c
sub esi, dword [ebp + 8]
push 0x1d
lea eax, [esi + 1]
mov esi, ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
pop eax
mov dword [ebp + 8], eax
jbe 0x10008bb4
mov ebx, dword [ebp - 0x10]
mov edi, eax
mov ecx, dword [ebp - 8]
movsx eax, byte [esi + ebx]
xor eax, edi
imul edi, eax, 5
inc esi
cmp esi, ecx
jb 0x10008b92
mov ebx, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp + 8], edi
cmp dword [ebp + 8], 0xec10575
mov edi, dword [ebp - 0x14]
je 0x10008bba
inc edx
jmp 0x10008b19
movzx eax, word [ebx + edx*2]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + eax*4]
add ecx, edi
push 0x10008926
push 1
call ecx
pop edi
pop esi
mov dword [0x10042818], eax
pop ebx
mov al, 1
leave
ret 0xc