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

Disassembly:
push 0x58
mov eax, 0x1002f9f2
call fcn.100124ee
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
xor esi, esi
mov ecx, 0x4e732b34
mov dword [ebp - 4], esi
mov ebx, 0x61b764d0
mov eax, dword fs:[0x18]
cmp dword [ebp + 0x28], 8
movaps xmm0, xmmword [0x10039370]
mov dword [ebp - 0x2c], ecx
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x28], 5
mov dword [ebp - 0x24], esi
movups xmmword [ebp - 0x20], xmm0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], ebx
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov edi, dword [eax + 0x10]
lea eax, [ebp + 0x14]
cmovae eax, dword [ebp + 0x14]
mov dword [ebp - 0x60], eax
mov eax, esi
mov dword [ebp - 0x48], edi
xor dword [ebp + eax*4 - 0x20], ecx
inc eax
cmp eax, dword [ebp - 0x28]
jae 0x10004f88
mov ecx, dword [ebp - 0x2c]
jmp 0x10004f79
mov eax, dword [ebp - 0x24]
mov ecx, 0x5ce65669
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x38], esi
mov eax, dword [ebp + eax*4 - 0x20]
mov dword [ebp - 0x34], 0x5ce65611
mov dword [ebp - 0x30], ebx
mov edx, dword [edi + eax]
mov eax, esi
xor dword [ebp + eax*4 - 0x34], ecx
inc eax
cmp eax, dword [ebp - 0x3c]
jae 0x10004fbf
mov ecx, dword [ebp - 0x40]
jmp 0x10004fb0
mov eax, dword [ebp - 0x38]
mov ecx, 0x6b59819e
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp + eax*4 - 0x34]
add eax, edx
mov dword [ebp - 0x18], 0x6b5981be
mov dword [ebp - 0x14], 0x702a9005
mov dword [ebp - 0x10], 0x74fb9e6c
mov ebx, dword [eax + edi]
mov eax, esi
add ebx, edi
mov dword [ebp - 0x54], ebx
xor dword [ebp + eax*4 - 0x18], ecx
inc eax
cmp eax, dword [ebp - 0x20]
jae 0x10005008
mov ecx, dword [ebp - 0x24]
jmp 0x10004ff9
mov eax, dword [ebp - 0x1c]
mov ecx, 0x79ccacd3
movaps xmm0, xmmword [0x10039350]
mov eax, dword [ebp + eax*4 - 0x18]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x20], esi
mov eax, dword [eax + ebx]
add eax, edi
mov dword [ebp - 0x44], eax
mov eax, esi
movups xmmword [ebp - 0x1c], xmm0
xor dword [ebp + eax*4 - 0x1c], ecx
inc eax
cmp eax, dword [ebp - 0x24]
jae 0x10005045
mov ecx, dword [ebp - 0x28]
jmp 0x10005036
mov eax, dword [ebp - 0x20]
mov ecx, 0x483fd807
movaps xmm0, xmmword [0x10039360]
mov eax, dword [ebp + eax*4 - 0x1c]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 5
mov dword [ebp - 0x24], esi
mov edx, dword [eax + ebx]
mov eax, esi
add edx, edi
mov dword [ebp - 0x10], 0x5b8411a3
mov dword [ebp - 0x5c], edx
movups xmmword [ebp - 0x20], xmm0
xor dword [ebp + eax*4 - 0x20], ecx
inc eax
cmp eax, dword [ebp - 0x28]
jae 0x10005089
mov ecx, dword [ebp - 0x2c]
jmp 0x1000507a
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp + eax*4 - 0x20]
mov eax, dword [eax + ebx]
add eax, edi
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x44], esi
je 0x10005152
test edx, edx
je 0x10005152
test eax, eax
je 0x10005152
mov edx, esi
mov ecx, 0x56b3033c
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x40], ecx
mov eax, esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0x56b30324
mov dword [ebp - 0x30], 0x5b8411a3
xor dword [ebp + eax*4 - 0x34], ecx
inc eax
cmp eax, dword [ebp - 0x3c]
jae 0x100050e4
mov ecx, dword [ebp - 0x40]
jmp 0x100050d5
mov eax, dword [ebp - 0x38]
mov eax, dword [ebp + eax*4 - 0x34]
cmp edx, dword [ebx + eax]
jae 0x10005152
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + edx*4]
add eax, edi
mov ecx, eax
mov dword [ebp - 0x50], eax
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005100
sub ecx, ebx
push 0x1d
pop ebx
lea eax, [ecx + 1]
mov ecx, esi
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x10005138
mov edi, dword [ebp - 0x50]
mov esi, eax
movsx eax, byte [ecx + edi]
xor eax, ebx
imul ebx, eax, 5
inc ecx
cmp ecx, esi
jb 0x1000511d
mov edi, dword [ebp - 0x48]
xor esi, esi
cmp ebx, 0xeb461b5b
je 0x10005141
mov ebx, dword [ebp - 0x54]
inc edx
jmp 0x100050b3
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
movzx eax, word [eax + edx*2]
mov eax, dword [ecx + eax*4]
add eax, edi
jmp 0x10005154
mov eax, esi
push dword [ebp - 0x60]
call eax
mov ecx, dword [ebp - 0x64]
push 0x2e
pop edx
mov dword [ebp - 0x54], eax
mov dword [ecx], eax
mov eax, esi
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 0x40], dl
mov dword [ebp - 0x3c], 9
mov dword [ebp - 0x38], 0x715a4b5d
mov dword [ebp - 0x34], 0x465d4f46
mov byte [ebp - 0x30], dl
xor byte [ebp + eax - 0x38], dl
inc eax
cmp eax, dword [ebp - 0x3c]
jae 0x100051aa
mov dl, byte [ebp - 0x40]
jmp 0x1000519b
movaps xmm0, xmmword [0x10039370]
mov edx, 0x4e732b34
mov edi, 0x61b764d0
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], 5
mov eax, esi
mov dword [ebp - 0x24], esi
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], edi
xor dword [ebp + eax*4 - 0x20], edx
inc eax
cmp eax, dword [ebp - 0x28]
jae 0x100051e0
mov edx, dword [ebp - 0x2c]
jmp 0x100051d1
mov eax, dword [ebp - 0x24]
mov edx, 0x5ce65669
mov eax, dword [ebp + eax*4 - 0x20]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x18], esi
mov ebx, dword [ecx + eax]
mov eax, esi
mov dword [ebp - 0x14], 0x5ce65611
mov dword [ebp - 0x10], edi
xor dword [ebp + eax*4 - 0x14], edx
inc eax
cmp eax, dword [ebp - 0x1c]
jae 0x10005217
mov edx, dword [ebp - 0x20]
jmp 0x10005208
mov eax, dword [ebp - 0x18]
mov edx, 0x6b59819e
mov eax, dword [ebp + eax*4 - 0x14]
add eax, ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0x6b5981be
mov ebx, dword [eax + ebx]
mov eax, esi
add ebx, ecx
mov dword [ebp - 0x14], 0x702a9005
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], 0x74fb9e6c
xor dword [ebp + eax*4 - 0x18], edx
inc eax
cmp eax, dword [ebp - 0x20]
jae 0x10005260
mov edx, dword [ebp - 0x24]
jmp 0x10005251
mov eax, dword [ebp - 0x1c]
mov edx, 0x79ccacd3
movaps xmm0, xmmword [0x10039350]
mov eax, dword [ebp + eax*4 - 0x18]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x20], esi
mov eax, dword [eax + ebx]
add eax, ecx
mov dword [ebp - 0x48], eax
mov eax, esi
movups xmmword [ebp - 0x1c], xmm0
xor dword [ebp + eax*4 - 0x1c], edx
inc eax
cmp eax, dword [ebp - 0x24]
jae 0x1000529d
mov edx, dword [ebp - 0x28]
jmp 0x1000528e
mov eax, dword [ebp - 0x20]
mov edi, 0x483fd807
movaps xmm0, xmmword [0x10039360]
mov eax, dword [ebp + eax*4 - 0x1c]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 5
mov dword [ebp - 0x24], esi
mov edx, dword [eax + ebx]
mov eax, esi
add edx, ecx
mov dword [ebp - 0x10], 0x5b8411a3
mov dword [ebp - 0x58], edx
movups xmmword [ebp - 0x20], xmm0
xor dword [ebp + eax*4 - 0x20], edi
inc eax
cmp eax, dword [ebp - 0x28]
jae 0x100052e1
mov edi, dword [ebp - 0x2c]
jmp 0x100052d2
mov eax, dword [ebp - 0x24]
mov eax, dword [ebp + eax*4 - 0x20]
mov edi, dword [eax + ebx]
add edi, ecx
cmp dword [ebp - 0x48], 0
mov dword [ebp - 0x60], edi
je 0x100053b2
test edx, edx
je 0x100053b2
test edi, edi
je 0x100053b2
mov edx, esi
mov ecx, 0x56b3033c
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x20], ecx
mov eax, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0x56b30324
mov dword [ebp - 0x10], 0x5b8411a3
xor dword [ebp + eax*4 - 0x14], ecx
inc eax
cmp eax, dword [ebp - 0x1c]
jae 0x1000533d
mov ecx, dword [ebp - 0x20]
jmp 0x1000532e
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp + eax*4 - 0x14]
cmp edx, dword [ebx + eax]
jae 0x100053b2
mov eax, dword [ebp - 0x48]
mov ebx, dword [eax + edx*4]
add ebx, dword [ebp - 0x50]
mov ecx, ebx
lea eax, [ecx + 1]
mov dword [ebp - 0x64], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000535a
sub ecx, dword [ebp - 0x64]
push 0x1d
lea eax, [ecx + 1]
mov ecx, esi
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
pop eax
mov dword [ebp - 0x44], eax
jbe 0x1000539c
mov esi, dword [ebp - 0x4c]
mov edi, eax
movsx eax, byte [ecx + ebx]
xor eax, edi
imul edi, eax, 5
inc ecx
cmp ecx, esi
jb 0x1000537d
mov dword [ebp - 0x44], edi
xor esi, esi
cmp dword [ebp - 0x44], 0x52e8c03b
mov edi, dword [ebp - 0x60]
je 0x100053a5
mov ebx, dword [ebp - 0x5c]
inc edx
jmp 0x1000530c
movzx eax, word [edi + edx*2]
mov esi, dword [ebp - 0x58]
mov esi, dword [esi + eax*4]
add esi, dword [ebp - 0x50]
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x54]
call esi
test eax, eax
je 0x100053c9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call eax
pop ecx
pop ecx
lea ecx, [ebp + 0x14]
call fcn.1000aa2b
call fcn.100124bc
ret 0x24