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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
push edi
push esi
and eax, 0xffff0000
mov dword [ebp - 0x50], eax
mov ecx, 0x8000
add eax, 0xaf631837
xor ebx, eax
add bx, ax
rol ebx, 7
loop 0x511158
push dword [ebp + 8]
pop edx
add edx, 0x6c00
mov eax, 0x6c00
mov ecx, 0x6c00
mov ebx, 0x4f7dd9d8
sub ecx, 4
sub edx, 4
mov edi, dword [edx]
add ebx, 0x2864a224
xor edi, ecx
add edi, 0x9739bafd
sub edi, ecx
rol edi, 0xeb
sub ebx, 0x8d9d204c
add edi, 0x8233f35e
bswap edi
ror edi, 0x3b
neg edi
sub edi, 0x9c329374
sub edi, 0xef1384c6
sub edi, ebx
sub edi, ebx
xor edi, 0x963a3e5a
xor edi, 0x44099b9c
sub ebx, 0xd337f32e
xor edi, 0xc28ca190
xor edi, 0x4a7f7742
add edi, 0xe5ad8c4
add edi, ebx
xor edi, 0x2618ae1d
xor edi, ecx
sub ebx, 0x55377d2a
neg edi
add ebx, 0xfdc4fefb
xor edi, ebx
rol edi, 0xb8
sub edi, ecx
xor edi, 0x7c370e69
add edi, ecx
sub edi, ebx
add edi, ecx
add edi, ecx
sub ebx, 0xe3d19be7
rol edi, 0xb5
xor edi, 0xf6dcc60b
add edi, ebx
bswap edi
add edi, ebx
mov dword [edx], edi
test ecx, ecx
jne 0x511180
call fcn.00511583
push 0
push 0x6c6c642e
push 0x32336c65
push 0x6e72656b
push esp
mov eax, dword [ebp + 0x10]
call dword [eax]
add esp, 0x10
mov edi, eax
push 0
push 0x636f6c6c
push 0x416c6175
push 0x74726956
push esp
push eax
mov eax, dword [ebp + 0xc]
call dword [eax]
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x511579
push 0x7463
push 0x65746f72
push 0x506c6175
push 0x74726956
push esp
push edi
mov eax, dword [ebp + 0xc]
call dword [eax]
add esp, 0x10
mov dword [ebp - 0x74], eax
test eax, eax
je 0x511579
push 0
push 0x79726575
push 0x516c6175
push 0x74726956
push esp
push edi
mov eax, dword [ebp + 0xc]
call dword [eax]
add esp, 0x10
mov dword [ebp - 0x78], eax
test eax, eax
je 0x511579
push 0
push 0x72745064
push 0x61655264
push 0x61427349
push esp
push edi
mov eax, dword [ebp + 0xc]
call dword [eax]
add esp, 0x10
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x511579
lea edi, [ebp - 0x1f8]
push edi
mov esi, dword [ebp + 8]
add esi, dword [esi + 0x3c]
push 0x3e
pop ecx
rep movsd dword es:[edi], dword [esi]
pop edi
mov eax, dword [edi + 0x34]
mov dword [ebp - 4], eax
mov ecx, dword [edi + 0x50]
mov dword [ebp - 8], ecx
push ecx
push 0x40
push 0x3000
push ecx
push eax
call ebx
pop ecx
test eax, eax
jne 0x51132c
push 0x40
push 0x1000
push ecx
push eax
call ebx
test eax, eax
je 0x511579
mov dword [ebp - 0xc], eax
mov edi, eax
mov esi, dword [ebp + 8]
push esi
mov ecx, esi
add ecx, dword [esi + 0x3c]
mov ecx, dword [ecx + 0x54]
rep movsb byte es:[edi], byte [esi]
pop esi
add esi, dword [esi + 0x3c]
add esi, 0xf8
mov eax, dword [ebp + 8]
add eax, dword [eax + 0x3c]
movzx eax, byte [eax + 6]
lea edi, [ebp - 0x38]
push edi
push 0xa
pop ecx
rep movsd dword es:[edi], dword [esi]
pop edi
mov edx, dword [edi + 0x14]
test edx, edx
je 0x511378
push esi
mov esi, dword [ebp + 8]
add esi, edx
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
mov edi, dword [ebp - 0xc]
add edi, edx
rep movsb byte es:[edi], byte [esi]
pop esi
dec eax
jne 0x511353
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 4]
je 0x5113df
mov eax, dword [ebp - 0xc]
mov ebx, eax
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0xa0]
test ebx, ebx
je 0x5113df
add ebx, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x5113df
lea ecx, [eax - 8]
shr ecx, 1
lea edi, [ebx + 8]
movzx eax, word [edi]
push edx
mov edx, eax
shr eax, 0xc
mov esi, dword [ebp - 0xc]
and dx, 0xfff
add esi, dword [ebx]
add esi, edx
pop edx
dec eax
jne 0x5113c6
mov eax, edx
shr eax, 0x10
jmp 0x5113cc
dec eax
jne 0x5113d1
movzx eax, dx
add word [esi], ax
jmp 0x5113d6
dec eax
jne 0x5113d6
add dword [esi], edx
inc edi
inc edi
loop 0x5113a6
add ebx, dword [ebx + 4]
jmp 0x511397
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x50]
add dword [ebp - 0x4c], edx
mov eax, dword fs:[0x30]
cmp dword [ebp - 0x44], 0
jne 0x5113f8
mov dword [eax + 8], ecx
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov esi, eax
mov edx, dword [eax + 0x18]
cmp edx, dword [ebp - 0x50]
jne 0x51142f
mov edx, dword [eax + 0x1c]
cmp edx, dword [ebp - 0x4c]
jne 0x51142f
mov edx, dword [eax + 0x20]
cmp edx, dword [ebp - 0x48]
jne 0x51142f
mov dword [eax + 0x18], ecx
add ecx, dword [ebp - 0x1d0]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp - 0x1a8]
mov dword [eax + 0x20], ecx
jmp 0x511437
cmp dword [eax], esi
je 0x511437
mov eax, dword [eax]
jmp 0x511400
mov ebx, dword [ebp - 0x178]
test ebx, ebx
je 0x5114ad
mov esi, dword [ebp - 0xc]
add ebx, esi
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x5114ad
mov ecx, dword [ebx + 0x10]
add ecx, esi
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebx]
test ecx, ecx
jne 0x51145e
mov ecx, dword [ebx + 0x10]
add ecx, esi
mov dword [ebp - 0x40], ecx
add eax, esi
push eax
mov eax, dword [ebp + 0x10]
call dword [eax]
test eax, eax
je 0x511579
mov edi, eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx]
test edx, edx
je 0x5114a8
test edx, 0x80000000
je 0x51148e
and edx, 0x7fffffff
jmp 0x511492
add edx, esi
inc edx
inc edx
push edx
push edi
mov eax, dword [ebp + 0xc]
call dword [eax]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
add dword [ebp - 0x3c], 4
add dword [ebp - 0x40], 4
jmp 0x511475
add ebx, 0x14
jmp 0x511446
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0xc]
mov dword [ebp - 0x70], ebx
mov edx, dword [ebx + 0x18]
cmp edx, dword [ebp - 0x50]
je 0x511565
push edx
push 4
push edx
call dword [ebp - 0x7c]
pop edx
test eax, eax
jne 0x511565
mov edi, edx
add edi, dword [edi + 0x3c]
mov edi, dword [edi + 0x80]
test edi, edi
je 0x511565
add edi, edx
xor eax, eax
push edi
push 5
pop ecx
repe scasd eax, dword es:[edi]
pop edi
je 0x511565
mov esi, dword [edi + 0x10]
add esi, dword [ebx + 0x18]
mov eax, dword [esi]
sub eax, dword [ebp - 0x50]
jb 0x511507
cmp eax, dword [ebp - 0x48]
jbe 0x51150c
add edi, 0x14
jmp 0x5114ea
push 0x1c
lea eax, [ebp - 0x9c]
push eax
push esi
call dword [ebp - 0x78]
lea eax, [ebp - 0x88]
push eax
push 4
push dword [ebp - 0x90]
push dword [ebp - 0x9c]
call dword [ebp - 0x74]
test eax, eax
je 0x511565
push edi
mov edi, esi
lodsd eax, dword [esi]
test eax, eax
je 0x511546
sub eax, dword [ebp - 0x50]
add eax, dword [ebp - 0xc]
stosd dword es:[edi], eax
jmp 0x511538
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x88]
push dword [ebp - 0x90]
push dword [ebp - 0x9c]
call dword [ebp - 0x74]
pop edi
jmp 0x511507
mov ebx, dword [ebx]
cmp ebx, dword [ebp - 0x70]
jne 0x5114bd
mov eax, dword [ebp - 0x1d0]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
pop esi
pop edi
pop ebx
leave
ret 0xc