Function at 0x40cb80
Capabilities:
Delete registry key
Delete registry value
Encode data using xor
Query or enumerate registry value
Set registry value

Disassembly:
mov ecx, dword [0x42ae1c]
sub esp, 0x28
mov edx, dword [ecx*4 + 0x42abd0]
push ebx
test edx, edx
push esi
je 0x40cfb7
mov esi, dword [ecx*4 + 0x42ab10]
xor eax, eax
test esi, esi
jbe 0x40cbc4
mov bl, byte [eax + edx]
mov cl, al
add cl, 0x41
xor bl, cl
mov byte [eax + edx], bl
mov ecx, dword [0x42ae1c]
inc eax
cmp eax, dword [ecx*4 + 0x42ab10]
jb 0x40cba7
xor eax, eax
mov ax, word [edx]
add edx, 2
test eax, eax
jbe 0x40cfb7
push ebp
push edi
mov dword [esp + 0x2c], eax
jmp 0x40cbe0
mov edx, dword [esp + 0x30]
mov esi, dword [edx]
mov al, byte [edx + 4]
add edx, 4
mov byte [esp + 0x13], al
inc edx
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, edx
lea edx, [edx + ecx + 1]
or ecx, 0xffffffff
mov edi, edx
mov ebx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [edx + ecx + 1]
or ecx, 0xffffffff
mov edi, edx
mov dword [esp + 0x28], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, 0x14
lea ecx, [edx + ecx + 1]
mov dword [esp + 0x30], ecx
jb 0x40cc36
mov edx, dword [0x42527c]
mov dword [esp + 0x1c], edx
jmp 0x40cc41
mov eax, dword [esi*4 + 0x425278]
mov dword [esp + 0x1c], eax
push 0xffdc
push ebp
push 0
call fcn.0040c850
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.0041a470
push esi
push ebp
push eax
mov dword [esp + 0x30], eax
call fcn.0040c850
push 0xffdc
push ebx
push 0
call fcn.0040c850
lea esi, [eax + 1]
push esi
call fcn.0041a470
push esi
push ebx
push eax
mov dword [esp + 0x5c], eax
call fcn.0040c850
mov esi, dword [esp + 0x54]
add esp, 0x38
xor ebp, ebp
cmp esi, 0x80000002
jne 0x40cce8
cmp edi, 0xa
jb 0x40cce8
mov edi, dword [esp + 0x14]
push 0xa
push str.Software64
push edi
call fcn.0041aac0
add esp, 0xc
test eax, eax
jne 0x40ccec
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x14]
not ecx
add ecx, 0xfffffff6
push ecx
lea ecx, [eax + 0xa]
add eax, 8
push ecx
push eax
call fcn.0041ac00
mov eax, dword [0x42adbc]
mov edi, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x40ccec
mov ebp, 0x100
jmp 0x40ccec
mov edi, dword [esp + 0x14]
test byte [esp + 0x13], 4
je 0x40cd93
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x40cd49
cmp byte [ebx], 0
je 0x40cd49
lea edx, [esp + 0x18]
or ebp, 0xf003f
push edx
push ebp
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cd7f
mov eax, dword [esp + 0x18]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0041a5d3
push edi
call fcn.0041a5d3
add esp, 8
jmp 0x40cfa6
mov eax, dword [0x42adbc]
test eax, eax
je 0x40cd77
shr ebp, 8
and ebp, 1
push ebp
push edi
push esi
call fcn.0040cfc0
add esp, 0xc
push ebx
call fcn.0041a5d3
push edi
call fcn.0041a5d3
add esp, 8
jmp 0x40cfa6
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push ebx
call fcn.0041a5d3
push edi
call fcn.0041a5d3
add esp, 8
jmp 0x40cfa6
mov edi, dword [esp + 0x28]
push 0xffdc
push edi
push 0
call fcn.0040c850
mov esi, eax
add esp, 0xc
lea eax, [esi + esi + 1]
cmp eax, 4
ja 0x40cdb7
mov eax, 4
push eax
call fcn.0041a470
lea edx, [esi + 1]
mov ebx, eax
push edx
push edi
push ebx
mov dword [esp + 0x30], ebx
call fcn.0040c850
mov al, byte [esp + 0x23]
add esp, 0x10
test al, 1
je 0x40ce5e
mov edx, dword [esp + 0x14]
mov ecx, ebp
lea eax, [esp + 0x18]
or ecx, 0x20019
push eax
mov eax, dword [esp + 0x20]
push ecx
push 0
push edx
push eax
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ce5a
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x38]
push eax
push edx
mov dword [esp + 0x34], eax
push eax
mov eax, dword [esp + 0x28]
push edi
push eax
mov dword [esp + 0x4c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ce31
mov bl, 1
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x40ce5a
mov edx, dword [esp + 0x20]
push edx
call fcn.0041a5d3
push edi
call fcn.0041a5d3
mov eax, dword [esp + 0x1c]
push eax
jmp 0x40cf9e
mov ebx, dword [esp + 0x20]
mov al, byte [esp + 0x13]
mov edi, 1
test al, 2
je 0x40ce82
push ebx
call fcn.0041ab6d
mov esi, 4
add esp, 4
mov dword [ebx], eax
mov edi, esi
jmp 0x40cf3d
push 5
push str.:hex:
push ebx
call fcn.0041aac0
add esp, 0xc
test eax, eax
jne 0x40cf3d
mov al, byte [ebx + 5]
lea esi, [ebx + 5]
mov ecx, ebx
test al, al
mov dword [esp + 0x28], ecx
je 0x40cf34
movsx ecx, al
push ecx
xor bl, bl
call fcn.0041a9ee
add esp, 4
inc esi
cmp al, 0x30
jl 0x40cec9
cmp al, 0x39
jg 0x40cec9
sub al, 0x30
jmp 0x40ced3
cmp al, 0x41
jl 0x40ced5
cmp al, 0x46
jg 0x40ced5
sub al, 0x37
mov bl, al
mov al, byte [esi]
test al, al
je 0x40cf0e
cmp al, 0x2c
je 0x40cf0e
movsx edx, al
push edx
call fcn.0041a9ee
add esp, 4
inc esi
cmp al, 0x30
jl 0x40cefe
cmp al, 0x39
jg 0x40cefe
sub bl, 3
shl bl, 4
add bl, al
jmp 0x40cf0e
cmp al, 0x41
jl 0x40cf0e
cmp al, 0x46
jg 0x40cf0e
shl bl, 4
add bl, al
sub bl, 0x37
mov eax, dword [esp + 0x28]
mov byte [eax], bl
inc eax
mov dword [esp + 0x28], eax
mov al, byte [esi]
cmp al, 0x20
je 0x40cf23
cmp al, 0x2c
jne 0x40cf26
inc esi
jmp 0x40cf19
mov al, byte [esi]
test al, al
jne 0x40ceae
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
sub ecx, ebx
mov edi, 3
mov esi, ecx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push 0
push eax
or ebp, 0xf003f
push 0
push ebp
mov ebp, dword [esp + 0x24]
push 0
push 0
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40cf8d
cmp edi, 1
jne 0x40cf6d
inc esi
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push esi
push ebx
push edi
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0041a5d3
mov edx, dword [esp + 0x28]
push edx
call fcn.0041a5d3
push ebp
call fcn.0041a5d3
add esp, 0xc
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
jne 0x40cbdc
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x28
ret