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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
push edi
push esi
xor ecx, ecx
mov esi, dword fs:[ecx + 0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
mov eax, dword [esi + 8]
mov edi, dword [esi + 0x20]
mov esi, dword [esi]
cmp word [edi + 0x18], cx
jne 0x401024
cmp byte [edi], 0x6b
je 0x40103c
cmp byte [edi], 0x4b
jne 0x401024
pop esi
mov esi, eax
mov edx, 0x6af88c3c
mov ecx, esi
call fcn.00401aec
mov edx, 0x6c6ec404
mov dword [ebp - 0x4c], eax
mov ecx, esi
call fcn.00401aec
mov edi, eax
mov edx, 0x705cf2a5
mov ecx, esi
mov dword [ebp - 0x44], edi
call fcn.00401aec
mov edx, 0x1c8c5870
mov dword [ebp - 0x2c], eax
mov ecx, esi
call fcn.00401aec
mov edx, 0x1c8c5886
mov dword [ebp - 0x28], eax
mov ecx, esi
call fcn.00401aec
mov edx, 0x5e893462
mov dword [ebp - 0x24], eax
mov ecx, esi
call fcn.00401aec
mov edx, 0x9e7208d
mov dword [ebp - 0x48], eax
mov ecx, esi
call fcn.00401aec
mov edx, 0x3964c68f
mov dword [ebp - 0x34], eax
mov ecx, esi
call fcn.00401aec
mov edx, 0x7f201f78
mov dword [ebp - 0x38], eax
mov ecx, esi
call fcn.00401aec
mov edx, 0x1ab9b854
mov dword [ebp - 0x3c], eax
mov ecx, esi
call fcn.00401aec
mov dword [ebp - 0x30], eax
call fcn.00401c06
lea ebx, [eax + 3]
mov esi, dword [ebx + 0x1c]
lea eax, [ebp - 0xc]
push eax
add esi, 0x28
add esi, dword [ebx + 0x18]
and dword [ebp - 0xc], 0
add esi, ebx
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
add ecx, dword [ebx + 0x20]
add eax, 0x28
push 0x40
add eax, ecx
mov dword [ebp - 4], esi
push eax
push ebx
call edi
test eax, eax
je 0x401225
mov ecx, dword [ebx + 0x14]
xor eax, eax
test ecx, ecx
je 0x401123
xor byte [eax + ebx], 0x37
inc eax
cmp eax, ecx
jb 0x40111a
push dword [ebx + 0x14]
mov edx, ebx
lea ecx, [ebp - 0x150]
call fcn.004019bf
pop ecx
push dword [ebx + 0x20]
mov edx, esi
lea ecx, [ebp - 0x150]
call fcn.00401a4d
and dword [ebp - 0x14], 0
lea esi, [ebp - 0x4c]
cmp dword [ebx + 0x24], 1
mov eax, dword [ebx + 0x10]
pop ecx
mov dword [ebp - 8], eax
jne 0x4011c0
sub esp, 0x2c
push 0xb
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00401b53
add esp, 0x2c
lea esi, [ebp - 0x4c]
test eax, eax
jne 0x4011a5
sub ebx, dword [ebp - 8]
lea edx, [ebp - 0x20]
sub ebx, section..text
mov dword [ebp - 0x20], 0x1c8c5870
mov eax, ebx
mov dword [ebp - 0x18], 0x1c8c5886
add eax, 0x40192f
add ebx, 0x40196e
push 2
mov dword [ebp - 0x1c], eax
sub esp, 0x2c
mov dword [ebp - 0x14], ebx
jmp 0x4011ac
push 0
sub esp, 0x2c
xor edx, edx
push 0xb
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
call fcn.00401750
add esp, 0x30
jmp 0x401225
push 0
sub esp, 0x2c
xor edx, edx
push 0xb
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
call fcn.00401750
add esp, 0x30
mov dword [ebp - 8], eax
test eax, eax
je 0x401225
mov esi, ebx
lea ecx, [ebp - 0x150]
mov edx, esi
push dword [esi + 0x14]
call fcn.004019bf
pop ecx
push dword [esi + 0x18]
lea edx, [ebx + 0x28]
lea ecx, [ebp - 0x150]
call fcn.00401a4d
sub esp, 0x28
lea esi, [ebp - 0x4c]
lea edx, [ebx + 0x28]
push 0xb
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 8]
call fcn.004018b5
add esp, 0x2c
test eax, eax
je 0x401225
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret