Function at 0x622c5ad0
Capabilities:
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, 0x58
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov esi, dword [ecx + 8]
mov edi, dword [ecx + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x30], eax
test byte [0x622d8018], 8
jne 0x622c5d40
mov dword [esp + 8], 0x26384993
mov dword [esp + 4], ebx
mov dword [esp], 0x622d8080
call sym._is_valid_handle
test eax, eax
je 0x622c5d20
test edi, edi
je 0x622c5b50
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 0x14
lea eax, [ebp - 0x28]
mov dword [esp + 8], 0x85938417
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], 0x622d8080
mov dword [esp + 4], eax
call sym._lookup_handle
test eax, eax
je 0x622c5d80
cmp esi, 6
je 0x622c5de8
ja 0x622c5cd0
cmp esi, 2
je 0x622c5da0
cmp esi, 5
jne 0x622c5dd0
mov eax, dword [ebp - 0x28]
mov esi, dword [eax + 0x8c]
test esi, esi
je 0x622c5bce
mov eax, dword [esi + 4]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [ebp - 0x2c], eax
call eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], esi
call eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x622c5ddd
mov edx, dword [ebp - 0x30]
add eax, 0x8c
call sym._copy_hmac_info.part.0
test eax, eax
je 0x622c5ddd
lea eax, [ebp - 0x24]
mov dword [esp + 8], 0x73620457
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x10]
mov dword [esp], 0x622d8080
mov dword [esp + 4], eax
call sym._lookup_handle
test eax, eax
je 0x622c5e1a
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0xc], 0x8009
mov esi, dword [edx + 0x20]
je 0x622c5e2d
mov ebx, dword [ebp - 0x28]
mov ecx, esi
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], esi
cmovbe ecx, dword [eax + 8]
mov dword [ebp - 0x2c], ecx
xor ecx, ecx
cmp dword [ebp - 0x2c], 0
je 0x622c5c7f
mov dword [ebp - 0x2c], edi
nop
mov edi, dword [eax + 4]
movzx edx, byte [edx + ecx + 0x334]
add edi, ecx
inc ecx
xor byte [edi], dl
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x8c]
mov esi, dword [edx + 0x20]
cmp dword [eax + 8], esi
mov edi, esi
cmovbe edi, dword [eax + 8]
cmp edi, ecx
ja 0x622c5c50
mov edi, dword [ebp - 0x2c]
cmp dword [eax + 0x10], esi
cmovbe esi, dword [eax + 0x10]
test esi, esi
je 0x622c5cba
lea esi, [esi]
mov esi, dword [eax + 0xc]
movzx edx, byte [edx + edi + 0x334]
add esi, edi
inc edi
xor byte [esi], dl
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x8c]
mov ecx, dword [edx + 0x20]
cmp dword [eax + 0x10], ecx
cmovbe ecx, dword [eax + 0x10]
cmp ecx, edi
ja 0x622c5c90
mov eax, ebx
call sym._init_hash
mov eax, 1
jmp 0x622c5b38
cmp esi, 7
jne 0x622c5dd0
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebx + 0x9c], eax
test eax, eax
je 0x622c5f1a
mov esi, dword [ebp - 0x30]
mov edx, dword [esi]
mov dword [ebx + 0x98], edx
mov ecx, dword [esi + 4]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._memcpy
mov eax, 1
jmp 0x622c5b38
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 0x14
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
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], 0x622d8018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x622c5b05
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], 0x80090002
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebx + 0x18]
lea eax, [ebx + 0x24]
mov dword [esp], eax
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x30]
mov dword [esp + 4], edx
call sym._memcpy
mov dword [ebx + 0x1c], 2
mov eax, 1
jmp 0x622c5b38
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x8009000a
xor eax, eax
jmp 0x622c5b38
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebx + 0x94], eax
test eax, eax
je 0x622c5f1a
mov edi, dword [ebp - 0x30]
mov edx, dword [edi]
mov dword [ebx + 0x90], edx
mov ecx, dword [edi + 4]
jmp 0x622c5d06
mov edx, dword fs:[0x18]
mov dword [edx + 0x34], 0x80090020
jmp 0x622c5b38
test esi, esi
jne 0x622c5c2e
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], 0
mov eax, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym.rsaenh.dll_CPCreateHash
sub esp, 0x14
test eax, eax
je 0x622c5ddd
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x10], 0
mov edx, dword [eax + 0x3dc]
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0x3e0]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
call sym.rsaenh.dll_CPHashData
sub esp, 0x14
test eax, eax
je 0x622c5f02
lea eax, [ebp - 0x1c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], 2
add eax, 0x334
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], 0x40
mov dword [esp + 4], eax
call sym.rsaenh.dll_CPGetHashParam
sub esp, 0x18
test eax, eax
je 0x622c5f02
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 0x20]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym.rsaenh.dll_CPDestroyHash
mov edx, dword [ebp - 0x24]
push eax
push eax
mov esi, dword [edx + 0x20]
jmp 0x622c5c2e
mov eax, dword [ebp - 0x20]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym.rsaenh.dll_CPDestroyHash
xor eax, eax
push edx
push edx
jmp 0x622c5b38
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x8009000e
xor eax, eax
jmp 0x622c5b38