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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [0x10044b54]
xor eax, esp
mov dword [esp + 0x2c], eax
cmp dword [0x10045984], 0
jne 0x10006186
mov eax, dword [esp + 0x44]
mov dword [0x10045984], 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 [esp], eax
movaps xmm0, xmmword [0x100350a0]
lea esi, [esp + 0x10]
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 [esp + 0x10]
push dword [esp + edi*4 + 0x20]
call fcn.100065e0
mov dword [esp + edi*4 + 0x1c], eax
inc edi
cmp edi, dword [esp + 0x14]
jb 0x10005fa9
lea esi, [esp + 0x10]
mov eax, dword [esi + 8]
mov eax, dword [esp + eax*4 + 0x1c]
mov ecx, dword [esp]
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 [esp + 0x10]
push dword [esp + ebx*4 + 0x20]
call fcn.100065e0
mov dword [esp + ebx*4 + 0x1c], eax
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x10005fe7
add edi, dword [esp]
lea esi, [esp + 0x10]
mov eax, dword [esi + 8]
mov eax, dword [esp + eax*4 + 0x1c]
mov ebp, 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 [esp + 0x10]
push dword [esp + edi*4 + 0x20]
call fcn.100065e0
mov dword [esp + edi*4 + 0x1c], eax
inc edi
cmp edi, dword [esp + 0x14]
jb 0x10006033
add ebp, dword [esp]
lea esi, [esp + 0x10]
mov eax, dword [esi + 8]
mov eax, dword [esp + eax*4 + 0x1c]
mov eax, dword [eax + ebp]
mov dword [esp + 8], eax
movaps xmm0, xmmword [0x100350d0]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x4289918c
xor edi, edi
mov ecx, esi
push dword [esp + 0x10]
push dword [esp + edi*4 + 0x20]
call fcn.100065e0
mov dword [esp + edi*4 + 0x1c], eax
inc edi
cmp edi, dword [esp + 0x14]
jb 0x10006075
lea esi, [esp + 0x10]
mov eax, dword [esi + 8]
mov eax, dword [esp + eax*4 + 0x1c]
mov eax, dword [eax + ebp]
mov dword [esp + 4], eax
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 [esp + 0x10]
push dword [esp + edi*4 + 0x20]
call fcn.100065e0
mov dword [esp + edi*4 + 0x1c], eax
inc edi
cmp edi, dword [esp + 0x14]
jb 0x100060c2
mov ecx, dword [esp]
add dword [esp + 8], ecx
add dword [esp + 4], ecx
lea esi, [esp + 0x10]
mov eax, dword [esi + 8]
mov eax, dword [esp + eax*4 + 0x1c]
mov eax, dword [eax + ebp]
add eax, ecx
mov dword [esp + 0xc], eax
xor ebp, ebp
movaps xmm0, xmmword [0x100350f0]
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0x613f3730
xor edi, edi
mov ecx, esi
push dword [esp + 0x10]
push dword [esp + edi*4 + 0x20]
call fcn.100065e0
mov dword [esp + edi*4 + 0x1c], eax
inc edi
cmp edi, dword [esp + 0x14]
jb 0x10006113
mov eax, dword [esp + 8]
mov edi, dword [eax + ebp*4]
add edi, dword [esp]
push edi
call fcn.10020570
add esp, 4
cmp eax, 0xffffffff
je 0x10006163
inc eax
mov ecx, 0x1d
xor edx, edx
movsx ebx, byte [edi + edx]
xor ebx, ecx
lea ecx, [ebx + ebx*4]
inc edx
cmp eax, edx
jne 0x1000614d
cmp ecx, 0xec10575
je 0x10006166
inc ebp
jmp 0x100060fd
mov eax, dword [esp + 0xc]
movzx eax, word [eax + ebp*2]
mov ecx, dword [esp]
mov edx, dword [esp + 4]
add ecx, dword [edx + eax*4]
push 0x10004a1f
push 1
call ecx
mov dword [0x10045980], eax
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10014c77
mov al, 1
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret 0xc