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

Disassembly:
mov ecx, dword [0x42bc1c]
sub esp, 0x28
mov edx, dword [ecx*4 + 0x42b9d0]
push ebx
test edx, edx
push esi
je 0x40de07
mov esi, dword [ecx*4 + 0x42b910]
xor eax, eax
test esi, esi
jbe 0x40da14
mov bl, byte [eax + edx]
mov cl, al
add cl, 0x41
xor bl, cl
mov byte [eax + edx], bl
mov ecx, dword [0x42bc1c]
inc eax
cmp eax, dword [ecx*4 + 0x42b910]
jb 0x40d9f7
xor eax, eax
mov ax, word [edx]
add edx, 2
test eax, eax
jbe 0x40de07
push ebp
push edi
mov dword [esp + 0x2c], eax
jmp 0x40da30
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 0x40da86
mov edx, dword [0x426048]
mov dword [esp + 0x1c], edx
jmp 0x40da91
mov eax, dword [esi*4 + 0x426044]
mov dword [esp + 0x1c], eax
push 0xffdc
push ebp
push 0
call fcn.0040d6a0
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.0041b140
push esi
push ebp
push eax
mov dword [esp + 0x30], eax
call fcn.0040d6a0
push 0xffdc
push ebx
push 0
call fcn.0040d6a0
lea esi, [eax + 1]
push esi
call fcn.0041b140
push esi
push ebx
push eax
mov dword [esp + 0x5c], eax
call fcn.0040d6a0
mov esi, dword [esp + 0x54]
add esp, 0x38
xor ebp, ebp
cmp esi, 0x80000002
jne 0x40db38
cmp edi, 0xa
jb 0x40db38
mov edi, dword [esp + 0x14]
push 0xa
push str.Software64
push edi
call fcn.0041b790
add esp, 0xc
test eax, eax
jne 0x40db3c
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.0041b8d0
mov eax, dword [0x42bbbc]
mov edi, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x40db3c
mov ebp, 0x100
jmp 0x40db3c
mov edi, dword [esp + 0x14]
test byte [esp + 0x13], 4
je 0x40dbe3
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x40db99
cmp byte [ebx], 0
je 0x40db99
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 0x40dbcf
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.0041b2a3
push edi
call fcn.0041b2a3
add esp, 8
jmp 0x40ddf6
mov eax, dword [0x42bbbc]
test eax, eax
je 0x40dbc7
shr ebp, 8
and ebp, 1
push ebp
push edi
push esi
call fcn.0040de10
add esp, 0xc
push ebx
call fcn.0041b2a3
push edi
call fcn.0041b2a3
add esp, 8
jmp 0x40ddf6
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push ebx
call fcn.0041b2a3
push edi
call fcn.0041b2a3
add esp, 8
jmp 0x40ddf6
mov edi, dword [esp + 0x28]
push 0xffdc
push edi
push 0
call fcn.0040d6a0
mov esi, eax
add esp, 0xc
lea eax, [esi + esi + 1]
cmp eax, 4
ja 0x40dc07
mov eax, 4
push eax
call fcn.0041b140
lea edx, [esi + 1]
mov ebx, eax
push edx
push edi
push ebx
mov dword [esp + 0x30], ebx
call fcn.0040d6a0
mov al, byte [esp + 0x23]
add esp, 0x10
test al, 1
je 0x40dcae
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 0x40dcaa
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 0x40dc81
mov bl, 1
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x40dcaa
mov edx, dword [esp + 0x20]
push edx
call fcn.0041b2a3
push edi
call fcn.0041b2a3
mov eax, dword [esp + 0x1c]
push eax
jmp 0x40ddee
mov ebx, dword [esp + 0x20]
mov al, byte [esp + 0x13]
mov edi, 1
test al, 2
je 0x40dcd2
push ebx
call fcn.0041b83d
mov esi, 4
add esp, 4
mov dword [ebx], eax
mov edi, esi
jmp 0x40dd8d
push 5
push str.:hex:
push ebx
call fcn.0041b790
add esp, 0xc
test eax, eax
jne 0x40dd8d
mov al, byte [ebx + 5]
lea esi, [ebx + 5]
mov ecx, ebx
test al, al
mov dword [esp + 0x28], ecx
je 0x40dd84
movsx ecx, al
push ecx
xor bl, bl
call fcn.0041b6be
add esp, 4
inc esi
cmp al, 0x30
jl 0x40dd19
cmp al, 0x39
jg 0x40dd19
sub al, 0x30
jmp 0x40dd23
cmp al, 0x41
jl 0x40dd25
cmp al, 0x46
jg 0x40dd25
sub al, 0x37
mov bl, al
mov al, byte [esi]
test al, al
je 0x40dd5e
cmp al, 0x2c
je 0x40dd5e
movsx edx, al
push edx
call fcn.0041b6be
add esp, 4
inc esi
cmp al, 0x30
jl 0x40dd4e
cmp al, 0x39
jg 0x40dd4e
sub bl, 3
shl bl, 4
add bl, al
jmp 0x40dd5e
cmp al, 0x41
jl 0x40dd5e
cmp al, 0x46
jg 0x40dd5e
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 0x40dd73
cmp al, 0x2c
jne 0x40dd76
inc esi
jmp 0x40dd69
mov al, byte [esi]
test al, al
jne 0x40dcfe
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 0x40dddd
cmp edi, 1
jne 0x40ddbd
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.0041b2a3
mov edx, dword [esp + 0x28]
push edx
call fcn.0041b2a3
push ebp
call fcn.0041b2a3
add esp, 0xc
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
jne 0x40da2c
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x28
ret