Function at 0x6e90e720
Capabilities:
Set registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x68
test byte [0x6e928bf8], 8
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], 0
mov esi, dword [ecx]
mov dword [ebp - 0x1c], 0
jne 0x6e90ea60
test esi, esi
je 0x6e90e764
cmp dword [esi], 0x24
je 0x6e90e790
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x80070057
xor edi, edi
mov ecx, dword [ebp - 0x10]
mov eax, edi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x6e90e764
mov edx, dword [esi + 0xc]
mov edi, 1
test edx, edx
je 0x6e90e773
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
add eax, 0x10
mov dword [esp], eax
call sym.crypt32.dll_CryptMemAlloc
sub esp, 4
test eax, eax
mov ecx, eax
je 0x6e90eaa0
mov dword [ebp - 0x30], eax
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x20]
xor edx, edx
mov dword [esp + 0x1c], eax
xor eax, eax
xor edi, edi
mov dword [esp + 0x18], eax
mov eax, 0xf003f
mov dword [esp + 0x14], eax
mov eax, str.SoftwareMicrosoftCryptographyOIDEncodingType_0CryptDllFindOIDInfo
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
xor edi, edi
mov dword [esp + 0x10], edx
mov dword [esp + 4], eax
mov dword [esp], 0x80000002
call sub.advapi32.dll_RegCreateKeyExW
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
sub esp, 0x24
test eax, eax
jne 0x6e90ea10
mov dword [ebp - 0x2c], ecx
mov eax, dword [esi + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 4]
mov dword [esp], ecx
mov dword [esp + 8], eax
mov eax, str._s__u
mov dword [esp + 4], eax
call fcn.6e90bca0
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [ebp - 0x30], ecx
call sub.advapi32.dll_RegCreateKeyA
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
sub esp, 0xc
test eax, eax
jne 0x6e90ea10
mov eax, dword [ebx + 4]
test eax, eax
jne 0x6e90eb10
mov edx, dword [esi + 8]
test edx, edx
je 0x6e90e8da
cmp word [edx], 0
je 0x6e90eb63
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x6e90e890
sub eax, edx
add eax, 2
mov dword [esp + 0x14], eax
mov eax, 1
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, str.Name
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x10], edx
mov dword [ebp - 0x30], ecx
mov dword [esp], eax
call sub.advapi32.dll_RegSetValueExW
mov ecx, dword [ebp - 0x30]
sub esp, 0x18
test eax, eax
jne 0x6e90eb00
mov edi, dword [esi + 0x10]
test edi, edi
jne 0x6e90eaae
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6e90e930
mov edx, dword [esi + 0x18]
test edx, edx
je 0x6e90e930
mov dword [esp + 0x14], eax
mov eax, 3
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, str.ExtraInfo
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x10], edx
mov dword [ebp - 0x30], ecx
mov dword [esp], eax
call sub.advapi32.dll_RegSetValueExW
mov ecx, dword [ebp - 0x30]
sub esp, 0x18
test eax, eax
jne 0x6e90eb00
nop
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x6e90e99a
cmp word [edx], 0
je 0x6e90eb6d
mov eax, edx
lea esi, [esi]
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x6e90e950
sub eax, edx
add eax, 2
mov dword [esp + 0x14], eax
mov eax, str.CNGAlgid
xor edi, edi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov ebx, 1
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [ebp - 0x30], ecx
call sub.advapi32.dll_RegSetValueExW
mov ecx, dword [ebp - 0x30]
sub esp, 0x18
test eax, eax
jne 0x6e90eb00
mov edx, dword [esi + 0x20]
test edx, edx
je 0x6e90eb59
cmp word [edx], 0
je 0x6e90eb77
mov eax, edx
jmp 0x6e90e9c0
add eax, 2
cmp word [eax], 0
jne 0x6e90e9c0
sub eax, edx
add eax, 2
mov dword [esp + 0x14], eax
mov eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x30], ecx
mov ecx, str.CNGExtraAlgid
mov dword [esp + 0x10], edx
xor edx, edx
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.advapi32.dll_RegSetValueExW
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
sub esp, 0x18
test eax, eax
sete dl
movzx edi, dl
lea esi, [esi]
mov dword [esp], ecx
call sym.crypt32.dll_CryptMemFree
mov eax, dword [ebp - 0x1c]
sub esp, 4
test eax, eax
je 0x6e90ea2d
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x6e90ea3f
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x6e90e773
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], edx
jmp 0x6e90e773
mov eax, dword [ecx + 4]
mov edi, str.CryptRegisterOIDInfo
mov ecx, str.__p___x__n
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edi
mov dword [esp + 0x14], eax
mov eax, 0x6e928bf8
mov dword [esp + 4], eax
mov dword [esp], 3
call fcn.6e90be90
jmp 0x6e90e75b
mov dword [ebp - 0x2c], 0xe
xor edi, edi
jmp 0x6e90ea10
mov dword [ebp - 0x30], ecx
mov eax, 4
xor ecx, ecx
mov dword [esp + 0x14], eax
lea eax, [esi + 0x10]
mov edx, 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov ebx, str.Algid
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.advapi32.dll_RegSetValueExW
mov ecx, dword [ebp - 0x30]
sub esp, 0x18
test eax, eax
je 0x6e90e8e5
lea esi, [esi]
lea edi, [edi]
mov dword [ebp - 0x2c], eax
xor edi, edi
jmp 0x6e90ea10
mov eax, 4
xor edx, edx
mov dword [esp + 0x14], eax
mov eax, 4
mov ecx, str.Flags
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
add ebx, 4
mov dword [esp + 4], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.advapi32.dll_RegSetValueExW
mov ecx, dword [ebp - 0x30]
sub esp, 0x18
test eax, eax
je 0x6e90e877
mov dword [ebp - 0x2c], eax
jmp 0x6e90ea10
mov edi, 1
jmp 0x6e90ea10
mov eax, 2
jmp 0x6e90e89e
mov eax, 2
jmp 0x6e90e95e
mov eax, 2
jmp 0x6e90e9ce