Function at 0x42b970
Capabilities:
Delete registry value
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x48f7e7
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x4c2b20]
xor eax, esp
mov dword [esp + 0x448], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c2b20]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x468], ebx
call fcn.00450992
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x42b9ce
push 0x80004005
call fcn.00419910
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push 0x3ff
lea ecx, [esp + 0x61]
push ebx
push ecx
mov byte [esp + 0x474], 1
mov byte [esp + 0x68], bl
call fcn.0046a930
add esp, 0xc
push fcn.00420d00
push fcn.00420cd0
push 2
push 4
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x30], 0x400
call fcn.0046e142
cmp dword [esp + 0x474], 1
mov byte [esp + 0x468], 2
push 4
lea ecx, [esp + 0x2c]
jne 0x42ba48
push str..doc
call fcn.0041a4c0
push 5
push str..docx
jmp 0x42ba59
push str..xls
call fcn.0041a4c0
push 5
push str..xlsx
lea ecx, [esp + 0x34]
call fcn.0041a4c0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x28]
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], 2
jmp 0x42ba80
mov ecx, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0x24]
call fcn.0041a940
mov edi, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push edi
push closesocket
call ebp
cmp eax, ebx
mov eax, dword [esp + 0x14]
je 0x42bab9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42bf4b
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x60]
push edx
push ebx
push ebx
push 0x4a70f8
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
cmp esi, ebx
jne 0x42bf4b
push str._shellOpencommand
lea ecx, [esp + 0x44]
call fcn.0041af70
mov esi, eax
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x46c], 3
call fcn.0041af70
push esi
push eax
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x474], 4
call fcn.0041c610
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x46c], 5
call fcn.0041a940
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
mov byte [esp + 0x468], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bb61
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x468], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bb89
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x468], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bbb1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str._shellOpenddeexec
lea ecx, [esp + 0x4c]
call fcn.0041af70
mov esi, eax
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x54]
mov byte [esp + 0x46c], 6
call fcn.0041af70
push esi
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x474], 7
call fcn.0041c610
add esp, 0xc
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x468], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bc16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x468], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bc3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebx
push edi
push closesocket
call ebp
test eax, eax
jne 0x42be51
push 0x400
lea edx, [esp + 0x60]
push ebx
push edx
call fcn.0046a930
mov edx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x60]
push ecx
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x34], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x1c]
call fcn.0041af70
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], ebx
mov byte [esp + 0x468], 0xb
jl 0x42be16
push 0x49748c
push eax
call fcn.0046d249
add esp, 8
cmp eax, ebx
je 0x42be16
mov ecx, dword [esp + 0x18]
sub eax, ecx
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x42be16
cmp dword [ecx - 0xc], ebx
jl 0x42bd02
push 0x497480
push ecx
call fcn.0046d249
add esp, 8
cmp eax, ebx
je 0x42bd02
sub eax, dword [esp + 0x18]
sar eax, 1
cmp eax, 0xffffffff
jne 0x42be16
push esi
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x20]
call fcn.0041a6f0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x46c], 0xc
call fcn.0041a940
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov byte [esp + 0x468], 0xb
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42bd4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x24]
push str..doc
push esi
call fcn.0042aa50
add esp, 8
test al, al
jne 0x42bda7
push str..docx
push esi
call fcn.0042aa50
add esp, 8
test al, al
jne 0x42bda7
push 0x497474
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.0041ab10
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x46c], 0xe
call fcn.0041a940
lea ecx, [esp + 0x3c]
call fcn.00420d00
jmp 0x42bdf8
push str.__t__n___1_
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.0041ab10
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x46c], 0xd
call fcn.0041a940
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x468], 0xb
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42bdf8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 0xc]
mov edx, dword [esp + 0x14]
add ecx, ecx
push ecx
push eax
push 1
push ebx
push 0x4a70f8
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
mov byte [esp + 0x468], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42be57
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x42be57
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebx
push edi
push closesocket
call ebp
test eax, eax
jne 0x42bee8
push 0x400
lea edx, [esp + 0x60]
push ebx
push edx
call fcn.0046a930
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x54]
push edx
push ebx
push str.command
push eax
mov dword [esp + 0x34], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x42bedd
mov ecx, dword [esp + 0x14]
push str.command
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x60]
push eax
push ecx
push ebx
push str.command4321
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x14]
push eax
call esi
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push ebx
push edx
push closesocket
call ebp
test eax, eax
jne 0x42bf23
mov eax, dword [esp + 0x14]
push ebx
push ebx
push 1
push ebx
push 0x4a70f8
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x468], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42bf4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x24], 4
sub dword [esp + 0x34], 1
jne 0x42ba80
push fcn.00420d00
push 2
push 4
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x478], 1
call fcn.0046e0df
lea eax, [edi - 0x10]
mov byte [esp + 0x468], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42bf99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x470]
add eax, 0xfffffff0
mov dword [esp + 0x468], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42bfc7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.0046b5b0
add esp, 0x458
ret