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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x94
mov eax, dword [ecx + 8]
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
mov edi, dword [ecx + 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x5c], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x50], eax
test byte [0x1001a028], 8
jne 0x100160e0
mov dword [esp + 8], 0x26384993
mov dword [esp + 4], esi
mov dword [esp], section..bss
call sym._is_valid_handle
test eax, eax
je 0x100160c0
test edi, 0xffffffbf
je 0x10015f00
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80090009
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x1c
lea eax, [ebp - 0x4c]
mov dword [esp + 8], 0x73620457
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebx
mov dword [esp], section..bss
call sym._lookup_handle
test eax, eax
je 0x10016160
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebx + 0x30]
test eax, eax
jne 0x10016130
mov dword [ebx + 0x30], 1
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
mov dword [ebp - 0x68], eax
mov eax, dword [ebx + 0xc]
mov edx, eax
and edx, 0x1e00
cmp edx, 0x600
je 0x10016198
cmp edx, 0x800
je 0x100164e0
cmp edx, 0x400
jne 0x10016180
cmp eax, 0x2400
je 0x10016510
mov edx, dword [ebp - 0x54]
add ebx, 0x34
mov dword [esp], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
call sym._encrypt_block_impl
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x54]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0x50]
mov dword [esp], edx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, esi
call sym._unpad_data
mov edx, dword [ebp - 0x4c]
test eax, eax
je 0x1001618d
mov ebx, dword [edx + 0x374]
mov ecx, dword [edx + 0x388]
lea eax, [edx + 0x334]
mov dword [edx + 0x30], 0
mov dword [edx + 0x38c], ebx
mov ebx, dword [edx + 0x378]
mov dword [edx + 0x3a0], ecx
mov dword [edx + 0x390], ebx
mov ebx, dword [edx + 0x37c]
mov dword [edx + 0x394], ebx
mov ebx, dword [edx + 0x380]
mov dword [edx + 0x398], ebx
mov ebx, dword [edx + 0x384]
mov dword [edx + 0x39c], ebx
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x20]
mov dword [esp + 8], eax
lea eax, [edx + 0x34]
mov dword [esp + 4], eax
mov eax, dword [edx + 0xc]
mov dword [esp], eax
call sym._setup_key_impl
mov edi, dword [ebp - 0x58]
mov dword [esp + 8], 0x85938417
mov dword [esp], section..bss
mov dword [esp + 4], edi
call sym._is_valid_handle
mov edx, eax
mov eax, 1
test edx, edx
je 0x10015eeb
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x68]
ja 0x1001618d
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], esi
call sym.rsaenh.dll_CPHashData
sub esp, 0x14
test eax, eax
setne al
movzx eax, al
jmp 0x10015eeb
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], 0x80090001
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x1c
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x58]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], str._hProv_08Ix__hKey_08Ix__hHash_08Ix__Final_d__dwFlags_08lx__pbData_p__pdwDataLen_p__n
mov dword [esp + 8], str.RSAENH_CPDecrypt
mov dword [esp + 4], 0x1001a028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10015eb4
cmp eax, 1
je 0x10015f3c
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80090005
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x1c
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], 0x80090003
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x1c
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x8009000a
xor eax, eax
jmp 0x10015eeb
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x10016558
mov dword [ebp - 0x64], 0
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x70], esi
mov eax, dword [ebx + 0x14]
cmp eax, 2
je 0x100161e0
cmp eax, 4
je 0x10016400
cmp eax, 1
je 0x10016320
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80090008
xor eax, eax
jmp 0x10015eeb
lea eax, [ebp - 0x48]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x34]
mov dword [esp + 0x14], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x60], edx
mov dword [esp], eax
call sym._encrypt_block_impl
mov ebx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x60]
mov esi, dword [ebx + 0x2c]
lea eax, [ebp - 0x48]
mov dword [esp], edx
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [ebp - 0x60], edx
call sym._memcpy
mov eax, dword [ebx + 0x2c]
mov edx, dword [ebp - 0x60]
add dword [ebp - 0x64], eax
mov edi, dword [ebp - 0x64]
add edx, eax
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
cmp eax, edi
ja 0x100161b0
mov esi, dword [ebp - 0x70]
mov edx, dword [ebp - 0x5c]
test edx, edx
je 0x10016051
mov edi, dword [ebp - 0x54]
movzx edx, byte [edi + eax - 1]
mov byte [ebp - 0x5c], dl
movzx ebx, byte [ebp - 0x5c]
mov edx, dword [ebp - 0x4c]
test bl, bl
je 0x10016282
cmp dword [edx + 0x2c], eax
mov ecx, eax
cmovbe ecx, dword [edx + 0x2c]
mov dword [ebp - 0x60], ebx
cmp ecx, ebx
jae 0x1001655f
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80090005
mov ebx, dword [edx + 0x374]
lea eax, [edx + 0x334]
mov ecx, dword [edx + 0x388]
mov dword [edx + 0x30], 0
mov dword [edx + 0x38c], ebx
mov ebx, dword [edx + 0x378]
mov dword [edx + 0x3a0], ecx
mov dword [edx + 0x390], ebx
mov ebx, dword [edx + 0x37c]
mov dword [edx + 0x394], ebx
mov ebx, dword [edx + 0x380]
mov dword [edx + 0x398], ebx
mov ebx, dword [edx + 0x384]
mov dword [edx + 0x39c], ebx
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x20]
mov dword [esp + 8], eax
lea eax, [edx + 0x34]
mov dword [esp + 4], eax
mov eax, dword [edx + 0xc]
mov dword [esp], eax
call sym._setup_key_impl
xor eax, eax
jmp 0x10015eeb
lea eax, [ebp - 0x48]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x34]
mov dword [esp + 0x14], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x60], edx
mov dword [esp], eax
call sym._encrypt_block_impl
mov ebx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x60]
mov esi, dword [ebx + 0x2c]
test esi, esi
je 0x10016548
lea eax, [ebx + 0x39c]
lea edi, [ebp - 0x48]
cmp edi, eax
lea ecx, [ebp - 0x38]
setae al
mov edi, eax
lea eax, [ebx + 0x38c]
cmp ecx, eax
mov dword [ebp - 0x60], eax
mov eax, edi
setbe cl
or al, cl
je 0x10016524
lea ecx, [esi - 1]
cmp ecx, 0xe
jbe 0x10016524
movdqu xmm0, xmmword [ebx + 0x38c]
pxor xmm0, xmmword [ebp - 0x48]
mov ecx, esi
and ecx, 0xfffffff0
movups xmmword [ebp - 0x48], xmm0
test esi, 0xf
je 0x100163d6
mov edi, dword [ebp - 0x60]
lea esi, [esi]
movzx eax, byte [ebx + ecx + 0x38c]
xor byte [ebp + ecx - 0x48], al
add ecx, 1
cmp ecx, esi
jb 0x100163c0
mov dword [ebp - 0x60], edi
mov ecx, esi
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [ebp - 0x6c], edx
call sym._memcpy
mov edx, dword [ebp - 0x6c]
jmp 0x10016219
mov esi, dword [ebx + 0x2c]
xor edi, edi
test esi, esi
je 0x10016219
mov esi, edx
nop
lea eax, [ebp - 0x30]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x38c]
mov dword [esp + 0xc], eax
lea eax, [ebx + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call sym._encrypt_block_impl
movzx eax, byte [esi + edi]
movzx edx, byte [ebp - 0x30]
mov ebx, dword [ebp - 0x4c]
xor edx, eax
mov byte [ebp + edi - 0x48], dl
mov edx, dword [ebx + 0x2c]
lea ecx, [edx - 1]
cmp edx, 1
je 0x100164c8
lea eax, [edx - 2]
cmp eax, 0xe
jbe 0x100164d9
movdqu xmm1, xmmword [ebx + 0x38d]
mov eax, ecx
and eax, 0xfffffff0
movups xmmword [ebx + 0x38c], xmm1
test cl, 0xf
je 0x100164a1
mov dword [ebp - 0x60], edx
nop
lea esi, [esi]
add eax, 1
movzx edx, byte [ebx + eax + 0x38c]
mov byte [ebx + eax + 0x38b], dl
cmp ecx, eax
ja 0x10016488
mov edx, dword [ebp - 0x60]
movzx eax, byte [esi + edi]
add edi, 1
mov byte [ebx + ecx + 0x38c], al
cmp edi, edx
jb 0x10016410
mov eax, edx
mov edx, esi
mov esi, eax
jmp 0x10016219
mov edi, edx
mov byte [ebx + 0x38c], al
mov edx, esi
mov esi, edi
jmp 0x10016219
mov dword [ebp - 0x60], edx
xor eax, eax
jmp 0x10016488
mov edi, dword [ebp - 0x68]
add ebx, 0x34
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edi
mov edi, dword [ebp - 0x54]
mov dword [esp + 8], edi
call sym._encrypt_stream_impl
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x4c]
test eax, eax
jne 0x10015fd1
jmp 0x10016051
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80090003
xor eax, eax
jmp 0x10015eeb
mov edi, dword [ebp - 0x60]
xor ecx, ecx
lea esi, [esi]
movzx eax, byte [ebx + ecx + 0x38c]
xor byte [ebp + ecx - 0x48], al
add ecx, 1
cmp ecx, esi
jne 0x10016530
jmp 0x100163d3
lea eax, [ebx + 0x38c]
xor ecx, ecx
mov dword [ebp - 0x60], eax
jmp 0x100163d8
xor eax, eax
jmp 0x1001624d
mov ecx, ebx
cmp ebx, 1
je 0x1001658f
mov ebx, edi
lea edi, [edi + eax - 2]
lea ebx, [ebx + eax - 1]
mov dword [ebp - 0x64], edi
mov edi, eax
movzx eax, byte [ebp - 0x5c]
sub ebx, ecx
mov ecx, dword [ebp - 0x64]
cmp al, byte [ecx]
jne 0x10016282
sub ecx, 1
cmp ebx, ecx
jne 0x1001657e
mov eax, edi
mov edi, dword [ebp - 0x50]
sub eax, dword [ebp - 0x60]
mov dword [edi], eax
jmp 0x10015fd1