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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [0x10026554]
xor eax, esp
mov dword [esp + 0x2c], eax
cmp dword [0x100272b8], 0
jne 0x100047da
mov eax, dword [esp + 0x44]
mov dword [0x100272b8], 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 [0x1001b090]
lea esi, [esp + 0x10]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x5543a7c7
mov dword [esi + 0x14], 0x4ff2bde9
mov dword [esi + 0x18], 0x5fe57bab
xor edi, edi
mov ecx, esi
push dword [esp + 0x10]
push dword [esp + edi*4 + 0x20]
call fcn.10004a20
mov dword [esp + edi*4 + 0x1c], eax
inc edi
cmp edi, dword [esp + 0x14]
jb 0x100045fd
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 [0x1001b0a0]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x6536659d
xor ebx, ebx
mov ecx, esi
push dword [esp + 0x10]
push dword [esp + ebx*4 + 0x20]
call fcn.10004a20
mov dword [esp + ebx*4 + 0x1c], eax
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x1000463b
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 [0x1001b0b0]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x75292373
mov dword [esi + 0x14], 0x6fd839a1
mov dword [esi + 0x18], 0x7fcaf757
xor edi, edi
mov ecx, esi
push dword [esp + 0x10]
push dword [esp + edi*4 + 0x20]
call fcn.10004a20
mov dword [esp + edi*4 + 0x1c], eax
inc edi
cmp edi, dword [esp + 0x14]
jb 0x10004687
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 [0x1001b0c0]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x451be148
xor edi, edi
mov ecx, esi
push dword [esp + 0x10]
push dword [esp + edi*4 + 0x20]
call fcn.10004a20
mov dword [esp + edi*4 + 0x1c], eax
inc edi
cmp edi, dword [esp + 0x14]
jb 0x100046c9
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 [0x1001b0d0]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0x550e9f1e
mov dword [esi + 0x14], 0x4fbdb508
mov dword [esi + 0x18], 0x5fb07302
xor edi, edi
mov ecx, esi
push dword [esp + 0x10]
push dword [esp + edi*4 + 0x20]
call fcn.10004a20
mov dword [esp + edi*4 + 0x1c], eax
inc edi
cmp edi, dword [esp + 0x14]
jb 0x10004716
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 [0x1001b0e0]
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0x65015cf4
xor edi, edi
mov ecx, esi
push dword [esp + 0x10]
push dword [esp + edi*4 + 0x20]
call fcn.10004a20
mov dword [esp + edi*4 + 0x1c], eax
inc edi
cmp edi, dword [esp + 0x14]
jb 0x10004767
mov eax, dword [esp + 8]
mov edi, dword [eax + ebp*4]
add edi, dword [esp]
push edi
call fcn.10011fa0
add esp, 4
cmp eax, 0xffffffff
je 0x100047b7
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 0x100047a1
cmp ecx, 0xec10575
je 0x100047ba
inc ebp
jmp 0x10004751
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 0x10003053
push 1
call ecx
mov dword [0x100272bc], eax
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1000adb2
mov al, 1
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret 0xc