Function at 0x10003e76
Capabilities:
Access peb ldr_data
Encode data using xor
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x10013f90
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], 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]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x44], eax
movaps xmm0, xmmword [0x100350d0]
lea esi, [ebp - 0x30]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x55409b4f
mov dword [ebp - 0x50], ecx
lea eax, [ecx + 0xc]
mov dword [ebp - 0x4c], eax
xor edi, edi
mov ecx, esi
push dword [ebp - 0x30]
push dword [ebp + edi*4 - 0x24]
call fcn.10006370
mov dword [ebp + edi*4 - 0x24], eax
inc edi
cmp edi, dword [ebp - 0x2c]
jb 0x10003ee6
lea esi, [ebp - 0x30]
mov eax, dword [esi + 8]
mov eax, dword [ebp + eax*4 - 0x24]
mov ecx, dword [ebp - 0x34]
mov edi, dword [eax + ecx]
movaps xmm0, xmmword [0x100350e0]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x65310fcb
xor ebx, ebx
mov ecx, esi
push dword [ebp - 0x30]
push dword [ebp + ebx*4 - 0x24]
call fcn.10006370
mov dword [ebp + ebx*4 - 0x24], eax
inc ebx
cmp ebx, dword [ebp - 0x2c]
jb 0x10003f21
add edi, dword [ebp - 0x34]
lea esi, [ebp - 0x30]
mov eax, dword [esi + 8]
mov eax, dword [ebp + eax*4 - 0x24]
mov ebx, dword [eax + edi]
movaps xmm0, xmmword [0x100350f0]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x75218447
xor edi, edi
mov ecx, esi
push dword [ebp - 0x30]
push dword [ebp + edi*4 - 0x24]
call fcn.10006370
mov dword [ebp + edi*4 - 0x24], eax
inc edi
cmp edi, dword [ebp - 0x2c]
jb 0x10003f5c
add ebx, dword [ebp - 0x34]
lea esi, [ebp - 0x30]
mov eax, dword [esi + 8]
mov eax, dword [ebp + eax*4 - 0x24]
mov eax, dword [eax + ebx]
mov dword [ebp - 0x3c], eax
movaps xmm0, xmmword [0x10035100]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x4511f8c2
xor edi, edi
mov ecx, esi
push dword [ebp - 0x30]
push dword [ebp + edi*4 - 0x24]
call fcn.10006370
mov dword [ebp + edi*4 - 0x24], eax
inc edi
cmp edi, dword [ebp - 0x2c]
jb 0x10003f9a
lea esi, [ebp - 0x30]
mov eax, dword [esi + 8]
mov eax, dword [ebp + eax*4 - 0x24]
mov dword [ebp - 0x38], ebx
mov ebx, dword [eax + ebx]
movaps xmm0, xmmword [0x10035110]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x55026d3e
xor edi, edi
mov ecx, esi
push dword [ebp - 0x30]
push dword [ebp + edi*4 - 0x24]
call fcn.10006370
mov dword [ebp + edi*4 - 0x24], eax
inc edi
cmp edi, dword [ebp - 0x2c]
jb 0x10003fd5
mov ecx, dword [ebp - 0x34]
add dword [ebp - 0x3c], ecx
add ebx, ecx
mov dword [ebp - 0x40], ebx
lea esi, [ebp - 0x30]
mov eax, dword [esi + 8]
mov eax, dword [ebp + eax*4 - 0x24]
mov edx, dword [ebp - 0x38]
mov eax, dword [eax + edx]
add eax, ecx
mov dword [ebp - 0x54], eax
xor edi, edi
movaps xmm0, xmmword [0x10035120]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x64f2e1ba
xor ebx, ebx
mov ecx, esi
push dword [ebp - 0x30]
push dword [ebp + ebx*4 - 0x24]
call fcn.10006370
mov dword [ebp + ebx*4 - 0x24], eax
inc ebx
cmp ebx, dword [ebp - 0x2c]
jb 0x10004023
mov eax, dword [ebp - 0x3c]
mov ebx, dword [eax + edi*4]
add ebx, dword [ebp - 0x34]
push ebx
call fcn.10020240
add esp, 4
cmp eax, 0xffffffff
je 0x10004076
mov dword [ebp - 0x38], edi
inc eax
mov ecx, 0x1d
xor edx, edx
movsx edi, byte [ebx + edx]
xor edi, ecx
lea ecx, [edi + edi*4]
inc edx
cmp eax, edx
jne 0x1000405d
cmp ecx, 0xeb461b5b
mov edi, dword [ebp - 0x38]
je 0x10004079
inc edi
jmp 0x1000400f
cmp dword [ebp - 0x44], 8
mov edx, dword [ebp - 0x48]
cmovb edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x54]
movzx eax, word [eax + edi*2]
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x40]
add ecx, dword [esi + eax*4]
mov dword [ebp - 0x10], 0
push edx
call ecx
mov ecx, dword [ebp - 0x50]
mov ecx, dword [ecx]
mov dword [ecx], 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]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x34], eax
mov al, 0x6a
lea ecx, [ebp - 0x60]
mov byte [ecx - 8], al
mov dword [ecx - 4], 9
movsd xmm0, qword [0x10035170]
movsd qword [ecx], xmm0
mov byte [ecx + 8], al
xor edi, edi
lea esi, [ebp - 0x68]
movsx eax, byte [ebp + edi - 0x60]
mov ecx, esi
push eax
call fcn.10007a90
mov byte [ebp + edi - 0x60], al
inc edi
cmp edi, dword [ebp - 0x64]
jb 0x100040e1
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
lea esi, [ebp - 0x30]
movaps xmm0, xmmword [0x100350d0]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x55409b4f
xor edi, edi
mov ecx, esi
push dword [ebp - 0x30]
push dword [ebp + edi*4 - 0x24]
call fcn.10006370
mov dword [ebp + edi*4 - 0x24], eax
inc edi
cmp edi, dword [ebp - 0x2c]
jb 0x10004118
lea esi, [ebp - 0x30]
mov eax, dword [esi + 8]
mov eax, dword [ebp + eax*4 - 0x24]
mov ecx, dword [ebp - 0x34]
mov edi, dword [eax + ecx]
movaps xmm0, xmmword [0x100350e0]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x65310fcb
xor ebx, ebx
mov ecx, esi
push dword [ebp - 0x30]
push dword [ebp + ebx*4 - 0x24]
call fcn.10006370
mov dword [ebp + ebx*4 - 0x24], eax
inc ebx
cmp ebx, dword [ebp - 0x2c]
jb 0x10004153
add edi, dword [ebp - 0x34]
lea esi, [ebp - 0x30]
mov eax, dword [esi + 8]
mov eax, dword [ebp + eax*4 - 0x24]
mov ebx, dword [eax + edi]
movaps xmm0, xmmword [0x100350f0]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x75218447
xor edi, edi
mov ecx, esi
push dword [ebp - 0x30]
push dword [ebp + edi*4 - 0x24]
call fcn.10006370
mov dword [ebp + edi*4 - 0x24], eax
inc edi
cmp edi, dword [ebp - 0x2c]
jb 0x1000418e
add ebx, dword [ebp - 0x34]
lea esi, [ebp - 0x30]
mov eax, dword [esi + 8]
mov eax, dword [ebp + eax*4 - 0x24]
mov eax, dword [eax + ebx]
mov dword [ebp - 0x3c], eax
movaps xmm0, xmmword [0x10035100]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x4511f8c2
xor edi, edi
mov ecx, esi
push dword [ebp - 0x30]
push dword [ebp + edi*4 - 0x24]
call fcn.10006370
mov dword [ebp + edi*4 - 0x24], eax
inc edi
cmp edi, dword [ebp - 0x2c]
jb 0x100041cc
lea esi, [ebp - 0x30]
mov eax, dword [esi + 8]
mov eax, dword [ebp + eax*4 - 0x24]
mov dword [ebp - 0x38], ebx
mov ebx, dword [eax + ebx]
movaps xmm0, xmmword [0x10035110]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x55026d3e
xor edi, edi
mov ecx, esi
push dword [ebp - 0x30]
push dword [ebp + edi*4 - 0x24]
call fcn.10006370
mov dword [ebp + edi*4 - 0x24], eax
inc edi
cmp edi, dword [ebp - 0x2c]
jb 0x10004207
mov ecx, dword [ebp - 0x34]
add dword [ebp - 0x3c], ecx
add ebx, ecx
mov dword [ebp - 0x44], ebx
lea esi, [ebp - 0x30]
mov eax, dword [esi + 8]
mov eax, dword [ebp + eax*4 - 0x24]
mov edx, dword [ebp - 0x38]
mov eax, dword [eax + edx]
add eax, ecx
mov dword [ebp - 0x40], eax
xor edi, edi
movaps xmm0, xmmword [0x10035120]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x64f2e1ba
xor ebx, ebx
mov ecx, esi
push dword [ebp - 0x30]
push dword [ebp + ebx*4 - 0x24]
call fcn.10006370
mov dword [ebp + ebx*4 - 0x24], eax
inc ebx
cmp ebx, dword [ebp - 0x2c]
jb 0x10004255
mov eax, dword [ebp - 0x3c]
mov ebx, dword [eax + edi*4]
add ebx, dword [ebp - 0x34]
push ebx
call fcn.10020240
add esp, 4
cmp eax, 0xffffffff
je 0x100042a8
mov dword [ebp - 0x38], edi
inc eax
mov ecx, 0x1d
xor edx, edx
movsx edi, byte [ebx + edx]
xor edi, ecx
lea ecx, [edi + edi*4]
inc edx
cmp eax, edx
jne 0x1000428f
cmp ecx, 0x52e8c03b
mov edi, dword [ebp - 0x38]
je 0x100042ab
inc edi
jmp 0x10004241
mov eax, dword [ebp - 0x40]
movzx eax, word [eax + edi*2]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x44]
add ecx, dword [edx + eax*4]
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x48]
call ecx
test eax, eax
je 0x100042dd
mov ecx, dword [ebp - 0x50]
push dword [ecx + 8]
push dword [ecx + 4]
call eax
add esp, 8
mov ecx, dword [ebp - 0x4c]
call fcn.10007662
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret