Function at 0x100114a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x38
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x18]
test byte [0x1001a028], 8
jne 0x100117b0
mov dword [esp + 8], 0x26384993
mov dword [esp + 4], esi
mov dword [esp], section..bss
call sym._is_valid_handle
test eax, eax
je 0x10011790
test ebx, ebx
je 0x10011500
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80090009
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
lea eax, [ebp - 0x1c]
mov dword [esp + 8], 0x85938417
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], section..bss
mov dword [esp + 4], eax
call sym._lookup_handle
test eax, eax
je 0x100117f8
cmp edi, 6
je 0x10011858
ja 0x10011738
cmp edi, 2
je 0x10011810
cmp edi, 5
jne 0x10011840
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax + 0x8c]
test edi, edi
je 0x1001157e
mov eax, dword [edi + 4]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x20], eax
call eax
mov edx, dword [edi + 0xc]
mov eax, dword [ebp - 0x20]
mov dword [esp], edx
call eax
mov eax, dword [ebp - 0x20]
mov dword [esp], edi
call eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x10011890
mov edx, dword [ebp + 0x14]
add eax, 0x8c
call sym._copy_hmac_info.part.0
test eax, eax
je 0x10011890
lea eax, [ebp - 0x18]
mov dword [esp + 8], 0x73620457
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x10]
mov dword [esp], section..bss
mov dword [esp + 4], eax
call sym._lookup_handle
test eax, eax
je 0x10011897
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0xc], 0x8009
mov edi, dword [edx + 0x20]
je 0x100118aa
mov esi, dword [ebp - 0x1c]
mov ecx, edi
mov eax, dword [esi + 0x8c]
cmp dword [eax + 8], edi
cmovbe ecx, dword [eax + 8]
mov dword [ebp - 0x20], ecx
xor ecx, ecx
cmp dword [ebp - 0x20], 0
je 0x10011631
mov dword [ebp + 0x18], ebx
nop
mov edi, dword [eax + 4]
movzx edx, byte [edx + ecx + 0x334]
add edi, ecx
add ecx, 1
xor byte [edi], dl
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [esi + 0x8c]
mov edi, dword [edx + 0x20]
cmp dword [eax + 8], edi
mov ebx, edi
cmovbe ebx, dword [eax + 8]
cmp ecx, ebx
jb 0x10011600
mov ebx, dword [ebp + 0x18]
cmp dword [eax + 0x10], edi
mov ecx, edi
cmovbe ecx, dword [eax + 0x10]
test ecx, ecx
je 0x1001166c
nop
mov ecx, dword [eax + 0xc]
movzx edx, byte [edx + ebx + 0x334]
add ecx, ebx
add ebx, 1
xor byte [ecx], dl
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [esi + 0x8c]
mov ecx, dword [edx + 0x20]
cmp dword [eax + 0x10], ecx
cmovbe ecx, dword [eax + 0x10]
cmp ebx, ecx
jb 0x10011640
mov edx, dword [esi + 0xc]
cmp edx, 0x8005
je 0x1001199c
cmp edx, 0x8009
jne 0x10011988
mov ebx, dword [eax]
lea eax, [ebp - 0x10]
mov dword [esp + 8], 0x26384993
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [esp], section..bss
mov dword [esp + 4], eax
call sym._lookup_handle
test eax, eax
je 0x10011a2e
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100119ec
imul eax, dword [eax + 0x10], 0x898
lea edx, [eax + 0x1002a6c0]
mov eax, dword [eax + 0x1002a6c0]
test eax, eax
jne 0x100116ee
jmp 0x100119df
mov eax, dword [edx + 0x58]
add edx, 0x58
test eax, eax
je 0x100119df
cmp ebx, eax
jne 0x100116e0
mov eax, dword [edx + 4]
shr eax, 3
mov dword [esi + 0x18], eax
lea eax, [esi + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x8c]
mov eax, dword [eax]
mov dword [esp], eax
call sym._init_hash_impl
mov eax, dword [esi + 0x8c]
mov edx, dword [eax + 8]
mov dword [esp + 8], edx
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x20]
mov dword [esp], eax
call sym._update_hash_impl
jmp 0x1001177e
cmp edi, 7
jne 0x10011840
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebx + 0x9c], eax
test eax, eax
je 0x10011883
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov dword [ebx + 0x98], edx
mov ecx, dword [ecx + 4]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym._memcpy
mov eax, 1
jmp 0x100114f2
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], 0x80090001
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str._hProv_08Ix__hHash_08Ix__dwParam_08lx__pbData_p__dwFlags_08lx__n
mov dword [esp + 8], str.RSAENH_CPSetHashParam
mov dword [esp + 4], 0x1001a028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x100114bf
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], 0x80090002
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebx + 0x18]
lea eax, [ebx + 0x24]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 8], edx
call sym._memcpy
mov dword [ebx + 0x1c], 2
mov eax, 1
jmp 0x100114f2
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x8009000a
xor eax, eax
jmp 0x100114f2
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebx + 0x94], eax
test eax, eax
je 0x10011883
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov dword [ebx + 0x90], edx
jmp 0x1001176b
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x8009000e
xor eax, eax
jmp 0x100114f2
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], 0x80090020
jmp 0x100114f2
test edi, edi
jne 0x100115de
lea eax, [ebp - 0x14]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], 0
mov eax, dword [eax]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym.rsaenh.dll_CPCreateHash
sub esp, 0x14
test eax, eax
je 0x10011890
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x10], 0
mov edx, dword [eax + 0x3dc]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0x3e0]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
call sym.rsaenh.dll_CPHashData
sub esp, 0x14
test eax, eax
je 0x10011a3d
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], 2
add eax, 0x334
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], 0x40
mov dword [esp + 4], eax
call sym.rsaenh.dll_CPGetHashParam
sub esp, 0x18
test eax, eax
je 0x10011a3d
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 0x14]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym.rsaenh.dll_CPDestroyHash
mov edx, dword [ebp - 0x18]
push eax
push eax
mov edi, dword [edx + 0x20]
jmp 0x100115de
add esi, 0x20
mov dword [esp], edx
mov dword [esp + 4], esi
call sym._init_hash_impl
jmp 0x1001177e
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
mov dword [esp + 0x10], eax
lea eax, [esi + 0x18]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 8
mov eax, dword [esi + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x14]
mov dword [esp], eax
call sym.rsaenh.dll_CPGetKeyParam
shr dword [esi + 0x18], 3
sub esp, 0x18
jmp 0x1001177e
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80090008
test byte [0x1001a028], 1
je 0x1001177e
mov eax, dword [esi + 0x8c]
mov eax, dword [eax]
mov dword [esp + 0xc], str.Hash_algroithm__x_not_found._n
mov dword [esp + 8], str.init_hash
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x1001a028
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x1001177e
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80090001
jmp 0x100119ec
mov eax, dword [ebp - 0x14]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym.rsaenh.dll_CPDestroyHash
xor eax, eax
push edx
push edx
jmp 0x100114f2