Function at 0x10003f86
Capabilities:
Access peb ldr_data
Encode data using xor
Get number of processors
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x64
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x100142c0
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 - 0x20], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x4c], eax
movaps xmm0, xmmword [0x100350a0]
lea esi, [ebp - 0x3c]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x54791917
mov dword [esi + 0x14], 0x4f5ad2ed
mov dword [esi + 0x18], 0x5eb5a5a3
mov dword [ebp - 0x58], ecx
lea eax, [ecx + 0xc]
mov dword [ebp - 0x54], eax
xor edi, edi
mov ecx, esi
push dword [ebp - 0x3c]
push dword [ebp + edi*4 - 0x30]
call fcn.100065e0
mov dword [ebp + edi*4 - 0x30], eax
inc edi
cmp edi, dword [ebp - 0x38]
jb 0x10004004
lea esi, [ebp - 0x3c]
mov eax, dword [esi + 8]
mov eax, dword [ebp + eax*4 - 0x30]
mov ecx, dword [ebp - 0x20]
mov edi, dword [eax + ecx]
movaps xmm0, xmmword [0x100350b0]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x63d3ebe9
xor ebx, ebx
mov ecx, esi
push dword [ebp - 0x3c]
push dword [ebp + ebx*4 - 0x30]
call fcn.100065e0
mov dword [ebp + ebx*4 - 0x30], eax
inc ebx
cmp ebx, dword [ebp - 0x38]
jb 0x1000403f
add edi, dword [ebp - 0x20]
lea esi, [ebp - 0x3c]
mov eax, dword [esi + 8]
mov eax, dword [ebp + eax*4 - 0x30]
mov ebx, dword [eax + edi]
movaps xmm0, xmmword [0x100350c0]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x732ebebb
mov dword [esi + 0x14], 0x6e107855
mov dword [esi + 0x18], 0x7d6b4b47
xor edi, edi
mov ecx, esi
push dword [ebp - 0x3c]
push dword [ebp + edi*4 - 0x30]
call fcn.100065e0
mov dword [ebp + edi*4 - 0x30], eax
inc edi
cmp edi, dword [ebp - 0x38]
jb 0x10004088
add ebx, dword [ebp - 0x20]
lea esi, [ebp - 0x3c]
mov eax, dword [esi + 8]
mov eax, dword [ebp + eax*4 - 0x30]
mov eax, dword [eax + ebx]
mov dword [ebp - 0x44], eax
movaps xmm0, xmmword [0x100350d0]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x4289918c
xor edi, edi
mov ecx, esi
push dword [ebp - 0x3c]
push dword [ebp + edi*4 - 0x30]
call fcn.100065e0
mov dword [ebp + edi*4 - 0x30], eax
inc edi
cmp edi, dword [ebp - 0x38]
jb 0x100040c6
lea esi, [ebp - 0x3c]
mov eax, dword [esi + 8]
mov eax, dword [ebp + eax*4 - 0x30]
mov dword [ebp - 0x40], ebx
mov ebx, dword [eax + ebx]
movaps xmm0, xmmword [0x100350e0]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x51e4645e
mov dword [esi + 0x14], 0x4cc61e3c
mov dword [esi + 0x18], 0x5c20f0ea
xor edi, edi
mov ecx, esi
push dword [ebp - 0x3c]
push dword [ebp + edi*4 - 0x30]
call fcn.100065e0
mov dword [ebp + edi*4 - 0x30], eax
inc edi
cmp edi, dword [ebp - 0x38]
jb 0x1000410f
mov ecx, dword [ebp - 0x20]
add dword [ebp - 0x44], ecx
add ebx, ecx
mov dword [ebp - 0x48], ebx
lea esi, [ebp - 0x3c]
mov eax, dword [esi + 8]
mov eax, dword [ebp + eax*4 - 0x30]
mov edx, dword [ebp - 0x40]
mov eax, dword [eax + edx]
add eax, ecx
mov dword [ebp - 0x5c], eax
xor edi, edi
movaps xmm0, xmmword [0x100350f0]
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0x613f3730
xor ebx, ebx
mov ecx, esi
push dword [ebp - 0x3c]
push dword [ebp + ebx*4 - 0x30]
call fcn.100065e0
mov dword [ebp + ebx*4 - 0x30], eax
inc ebx
cmp ebx, dword [ebp - 0x38]
jb 0x1000415d
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax + edi*4]
add ebx, dword [ebp - 0x20]
push ebx
call fcn.10020570
add esp, 4
cmp eax, 0xffffffff
je 0x100041b0
mov dword [ebp - 0x40], 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 0x10004197
cmp ecx, 0xeb461b5b
mov edi, dword [ebp - 0x40]
je 0x100041b3
inc edi
jmp 0x10004149
cmp dword [ebp - 0x4c], 8
mov edx, dword [ebp - 0x50]
cmovb edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x5c]
movzx eax, word [eax + edi*2]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x48]
add ecx, dword [esi + eax*4]
mov dword [ebp - 0x10], 0
push edx
call ecx
mov ecx, dword [ebp - 0x58]
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 - 0x20], eax
mov al, 0x6a
lea ecx, [ebp - 0x68]
mov byte [ecx - 8], al
mov dword [ecx - 4], 9
movsd xmm0, qword [0x10035140]
movsd qword [ecx], xmm0
mov byte [ecx + 8], al
xor edi, edi
lea esi, [ebp - 0x70]
movsx eax, byte [ebp + edi - 0x68]
mov ecx, esi
push eax
call fcn.10007d00
mov byte [ebp + edi - 0x68], al
inc edi
cmp edi, dword [ebp - 0x6c]
jb 0x1000421b
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
lea esi, [ebp - 0x3c]
movaps xmm0, xmmword [0x100350a0]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x54791917
mov dword [esi + 0x14], 0x4f5ad2ed
mov dword [esi + 0x18], 0x5eb5a5a3
xor edi, edi
mov ecx, esi
push dword [ebp - 0x3c]
push dword [ebp + edi*4 - 0x30]
call fcn.100065e0
mov dword [ebp + edi*4 - 0x30], eax
inc edi
cmp edi, dword [ebp - 0x38]
jb 0x10004260
lea esi, [ebp - 0x3c]
mov eax, dword [esi + 8]
mov eax, dword [ebp + eax*4 - 0x30]
mov ecx, dword [ebp - 0x20]
mov edi, dword [eax + ecx]
movaps xmm0, xmmword [0x100350b0]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x63d3ebe9
xor ebx, ebx
mov ecx, esi
push dword [ebp - 0x3c]
push dword [ebp + ebx*4 - 0x30]
call fcn.100065e0
mov dword [ebp + ebx*4 - 0x30], eax
inc ebx
cmp ebx, dword [ebp - 0x38]
jb 0x1000429b
add edi, dword [ebp - 0x20]
lea esi, [ebp - 0x3c]
mov eax, dword [esi + 8]
mov eax, dword [ebp + eax*4 - 0x30]
mov ebx, dword [eax + edi]
movaps xmm0, xmmword [0x100350c0]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x732ebebb
mov dword [esi + 0x14], 0x6e107855
mov dword [esi + 0x18], 0x7d6b4b47
xor edi, edi
mov ecx, esi
push dword [ebp - 0x3c]
push dword [ebp + edi*4 - 0x30]
call fcn.100065e0
mov dword [ebp + edi*4 - 0x30], eax
inc edi
cmp edi, dword [ebp - 0x38]
jb 0x100042e4
add ebx, dword [ebp - 0x20]
lea esi, [ebp - 0x3c]
mov eax, dword [esi + 8]
mov eax, dword [ebp + eax*4 - 0x30]
mov eax, dword [eax + ebx]
mov dword [ebp - 0x44], eax
movaps xmm0, xmmword [0x100350d0]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x4289918c
xor edi, edi
mov ecx, esi
push dword [ebp - 0x3c]
push dword [ebp + edi*4 - 0x30]
call fcn.100065e0
mov dword [ebp + edi*4 - 0x30], eax
inc edi
cmp edi, dword [ebp - 0x38]
jb 0x10004322
lea esi, [ebp - 0x3c]
mov eax, dword [esi + 8]
mov eax, dword [ebp + eax*4 - 0x30]
mov dword [ebp - 0x40], ebx
mov ebx, dword [eax + ebx]
movaps xmm0, xmmword [0x100350e0]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x51e4645e
mov dword [esi + 0x14], 0x4cc61e3c
mov dword [esi + 0x18], 0x5c20f0ea
xor edi, edi
mov ecx, esi
push dword [ebp - 0x3c]
push dword [ebp + edi*4 - 0x30]
call fcn.100065e0
mov dword [ebp + edi*4 - 0x30], eax
inc edi
cmp edi, dword [ebp - 0x38]
jb 0x1000436b
mov ecx, dword [ebp - 0x20]
add dword [ebp - 0x44], ecx
add ebx, ecx
mov dword [ebp - 0x4c], ebx
lea esi, [ebp - 0x3c]
mov eax, dword [esi + 8]
mov eax, dword [ebp + eax*4 - 0x30]
mov edx, dword [ebp - 0x40]
mov eax, dword [eax + edx]
add eax, ecx
mov dword [ebp - 0x48], eax
xor edi, edi
movaps xmm0, xmmword [0x100350f0]
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], 0x613f3730
xor ebx, ebx
mov ecx, esi
push dword [ebp - 0x3c]
push dword [ebp + ebx*4 - 0x30]
call fcn.100065e0
mov dword [ebp + ebx*4 - 0x30], eax
inc ebx
cmp ebx, dword [ebp - 0x38]
jb 0x100043b9
mov eax, dword [ebp - 0x44]
mov ebx, dword [eax + edi*4]
add ebx, dword [ebp - 0x20]
push ebx
call fcn.10020570
add esp, 4
cmp eax, 0xffffffff
je 0x1000440c
mov dword [ebp - 0x40], 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 0x100043f3
cmp ecx, 0x52e8c03b
mov edi, dword [ebp - 0x40]
je 0x1000440f
inc edi
jmp 0x100043a5
mov eax, dword [ebp - 0x48]
movzx eax, word [eax + edi*2]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x4c]
add ecx, dword [edx + eax*4]
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x50]
call ecx
test eax, eax
je 0x10004441
mov ecx, dword [ebp - 0x58]
push dword [ecx + 8]
push dword [ecx + 4]
call eax
add esp, 8
mov ecx, dword [ebp - 0x54]
call fcn.100078d2
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret