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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a75b
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x44e414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0x814]
mov byte [ebp - 0x814], 0x43
push edx
push 1
mov eax, dword [ecx]
call dword [eax + 0x30]
push dword [ebp - 0x814]
mov ecx, edi
push 0
call fcn.0040a920
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0x814]
mov byte [ebp - 0x814], 0xbc
push edx
push 1
mov eax, dword [ecx]
call dword [eax + 0x30]
push dword [ebp - 0x814]
mov ecx, edi
push 0
call fcn.0040a920
push 0x401
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0043a378
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0x414]
add esp, 0xc
mov eax, dword [ecx]
push edx
push 1
call dword [eax + 0x38]
push dword [ebp - 0x414]
mov ecx, edi
push 1
call fcn.0040a920
mov al, byte [ebp - 0x414]
cmp al, 0x1f
je 0x4088b4
cmp al, 0x79
jne 0x4088b4
mov bl, byte [ebp + 8]
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x82c], 0
mov dword [ebp - 0x818], 0xf
test bl, bl
jne 0x4087a6
mov dword [ebp - 0x81c], 1
lea edx, [ebp - 0x82c]
mov word [ebp - 0x82c], 0xff
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], 0
call dword [eax + 0x2c]
cmp dword [ebp - 0x818], 0x10
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x81c], 1
lea edx, [ebp - 0x82c]
cmovae eax, dword [ebp - 0x82c]
push edx
mov word [eax], 0
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x2c]
push 0xff
push 0
mov ecx, edi
call fcn.0040a920
push 0
push 0
mov ecx, edi
call fcn.0040a920
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0x414]
mov byte [ebp - 0x414], 0xff
push edx
push 1
mov eax, dword [ecx]
call dword [eax + 0x38]
push dword [ebp - 0x414]
mov ecx, edi
push 1
call fcn.0040a920
cmp byte [ebp - 0x414], 0x79
mov edx, dword [ebp - 0x818]
sete bl
dec bl
and bl, 0x14
cmp edx, 0x10
jb 0x40879f
mov ecx, dword [ebp - 0x82c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408795
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408795
call dword [0x43f418]
push edx
push ecx
call fcn.004395ca
add esp, 8
mov al, bl
jmp 0x4088b6
lea eax, [ebx - 1]
mov dword [ebp - 0x81c], 1
mov byte [ebp - 0x82d], al
lea edx, [ebp - 0x82c]
mov byte [ebp - 0x82c], al
mov byte [ebp - 0x82b], 0
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], 1
call dword [eax + 0x2c]
lea eax, [ebx - 1]
mov ecx, edi
push eax
push 0
mov dword [ebp - 0x838], eax
call fcn.0040a920
mov esi, dword [ebp + 0xc]
movzx ebx, bl
add esi, 0xfffffffe
mov dword [ebp - 0x834], ebx
lea esi, [esi + ebx*2]
nop
cmp dword [ebp - 0x818], 0x10
lea eax, [ebp - 0x82c]
mov cl, byte [esi]
lea edx, [ebp - 0x82c]
cmovae eax, dword [ebp - 0x82c]
mov dword [ebp - 0x81c], 1
push edx
mov byte [eax], cl
mov byte [eax + 1], 0
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x2c]
movzx eax, byte [esi]
mov ecx, edi
push eax
push 0
call fcn.0040a920
dec ebx
lea esi, [esi - 2]
test ebx, ebx
jg 0x408800
mov edx, dword [ebp + 0xc]
mov eax, 1
mov ecx, dword [ebp - 0x834]
mov bl, byte [edx]
cmp ecx, eax
jbe 0x408868
nop
xor bl, byte [edx + eax*2]
inc eax
cmp eax, ecx
jl 0x408860
mov cl, byte [ebp - 0x82d]
lea eax, [ebp - 0x82c]
xor cl, bl
mov dword [ebp - 0x81c], 1
cmp dword [ebp - 0x818], 0x10
lea edx, [ebp - 0x82c]
push edx
cmovae eax, dword [ebp - 0x82c]
mov byte [eax], cl
mov byte [eax + 1], 0
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov eax, dword [ebp - 0x838]
xor al, bl
movzx eax, al
push eax
jmp 0x408724
mov al, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004395e6
mov esp, ebp
pop ebp
ret 8