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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [0x1001e958]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x1001e98c], 0
jne 0x10008c51
mov eax, dword [ebp + 8]
mov dword [0x1001e98c], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x34], eax
movaps xmm0, xmmword [0x100170d0]
movups xmmword [ebp - 0x30], xmm0
movaps xmm0, xmmword [0x100170e0]
movups xmmword [ebp - 0x20], xmm0
xor edi, edi
lea esi, [ebp - 0x30]
nop word [eax + eax]
mov ecx, esi
push dword [ebp - 0x30]
push dword [ebp + edi*4 - 0x24]
call fcn.10008fc0
mov dword [ebp + edi*4 - 0x24], eax
inc edi
cmp edi, dword [ebp - 0x2c]
jb 0x100089f0
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp + eax*4 - 0x24]
mov ecx, dword [ebp - 0x34]
mov edi, dword [eax + ecx]
movaps xmm0, xmmword [0x100170f0]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x6573b858
xor ebx, ebx
lea esi, [ebp - 0x30]
nop dword [eax]
mov ecx, esi
push dword [ebp - 0x30]
push dword [ebp + ebx*4 - 0x24]
call fcn.10008fc0
mov dword [ebp + ebx*4 - 0x24], eax
inc ebx
cmp ebx, dword [ebp - 0x2c]
jb 0x10008a30
add edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp + eax*4 - 0x24]
mov edi, dword [eax + edi]
movaps xmm0, xmmword [0x10017100]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x7580be35
mov dword [ebp - 0x1c], 0x7ada6ad4
xor ebx, ebx
lea esi, [ebp - 0x30]
nop word cs:[eax + eax]
mov ecx, esi
push dword [ebp - 0x30]
push dword [ebp + ebx*4 - 0x24]
call fcn.10008fc0
mov dword [ebp + ebx*4 - 0x24], eax
inc ebx
cmp ebx, dword [ebp - 0x2c]
jb 0x10008a80
add edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp + eax*4 - 0x24]
mov eax, dword [eax + edi]
mov dword [ebp - 0x3c], eax
movaps xmm0, xmmword [0x10017110]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x458dc411
mov dword [ebp - 0x1c], 0x4ae770b0
mov dword [ebp - 0x18], 0x50411d4f
xor ebx, ebx
lea esi, [ebp - 0x30]
nop dword [eax]
mov ecx, esi
push dword [ebp - 0x30]
push dword [ebp + ebx*4 - 0x24]
call fcn.10008fc0
mov dword [ebp + ebx*4 - 0x24], eax
inc ebx
cmp ebx, dword [ebp - 0x2c]
jb 0x10008ad0
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp + eax*4 - 0x24]
mov eax, dword [eax + edi]
mov dword [ebp - 0x38], eax
movaps xmm0, xmmword [0x10017120]
movups xmmword [ebp - 0x30], xmm0
movaps xmm0, xmmword [0x10017130]
movups xmmword [ebp - 0x20], xmm0
xor ebx, ebx
lea esi, [ebp - 0x30]
mov ecx, esi
push dword [ebp - 0x30]
push dword [ebp + ebx*4 - 0x24]
call fcn.10008fc0
mov dword [ebp + ebx*4 - 0x24], eax
inc ebx
cmp ebx, dword [ebp - 0x2c]
jb 0x10008b10
mov ecx, dword [ebp - 0x34]
add dword [ebp - 0x3c], ecx
add dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp + eax*4 - 0x24]
mov eax, dword [eax + edi]
add eax, ecx
mov dword [ebp - 0x40], eax
xor edi, edi
jmp 0x10008b5f
cmp eax, 0xec10575
mov edi, dword [ebp - 0x48]
je 0x10008c33
inc edi
lea ebx, [ebp - 0x30]
movaps xmm0, xmmword [0x10017140]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x65a7cfcb
xor esi, esi
nop word cs:[eax + eax]
mov ecx, ebx
push dword [ebp - 0x30]
push dword [ebp + esi*4 - 0x24]
call fcn.10008fc0
mov dword [ebp + esi*4 - 0x24], eax
inc esi
cmp esi, dword [ebp - 0x2c]
jb 0x10008b80
mov eax, dword [ebp - 0x3c]
mov ebx, dword [eax + edi*4]
add ebx, dword [ebp - 0x34]
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xffffffff
je 0x10008b5e
mov dword [ebp - 0x48], edi
lea ecx, [eax + 1]
mov edx, ecx
and edx, 3
mov dword [ebp - 0x44], edx
cmp eax, 3
jae 0x10008bd0
mov eax, 0x1d
xor edx, edx
jmp 0x10008c0e
and ecx, 0xfffffffc
lea esi, [ebx + 3]
mov eax, 0x1d
xor edx, edx
nop dword [eax]
movsx edi, byte [esi + edx - 3]
xor edi, eax
lea eax, [edi + edi*4]
movsx edi, byte [esi + edx - 2]
xor edi, eax
lea eax, [edi + edi*4]
movsx edi, byte [esi + edx - 1]
xor edi, eax
lea eax, [edi + edi*4]
movsx edi, byte [esi + edx]
xor edi, eax
lea eax, [edi + edi*4]
add edx, 4
cmp ecx, edx
jne 0x10008be0
mov esi, dword [ebp - 0x44]
test esi, esi
je 0x10008b50
add ebx, edx
xor ecx, ecx
nop dword [eax]
movsx edx, byte [ebx + ecx]
xor edx, eax
lea eax, [edx + edx*4]
inc ecx
cmp esi, ecx
jne 0x10008c20
jmp 0x10008b50
mov eax, dword [ebp - 0x40]
movzx eax, word [eax + edi*2]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
add ecx, dword [edx + eax*4]
push 0x10006920
push 1
call ecx
mov dword [0x1001e990], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10015bbc
mov al, 1
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc