Function at 0x40fb80
Capabilities:
Delete registry value
Persist via run registry key
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x469eab
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x4846a0]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
mov eax, dword [0x4846a0]
xor eax, esp
push eax
lea eax, [esp + 0x168]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x170], ebx
mov ecx, SysReAllocStringLen
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], ecx
xor ecx, ecx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], ebx
mov word [esp + 0xa8], cx
lea edx, [esp + 0x1c]
mov byte [esp + 0x170], 1
push edx
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov byte [eax + 0x12a], bl
call fcn.00401110
mov byte [esp + 0x170], 2
mov eax, dword [esp + 0xa0]
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x9c], eax
je 0x40fc5a
cmp eax, ebx
je 0x40fc5a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x9c]
lea eax, [esp + 0xa0]
push eax
push 0xf003f
push ebx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov eax, esi
mov dword [esp + 0xa4], 0xf003f
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40fc90
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [esp + 0xac]
call fcn.00430450
cmp edi, ebx
jne 0x4103d6
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x170], 3
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0x9c]
sub edx, eax
neg edx
sbb edx, edx
and edx, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x108]
push ecx
mov dword [esp + 0x1c], edx
call fcn.00404a80
xor esi, esi
xor edx, edx
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xe8], 7
mov dword [esp + 0xe4], ebx
mov word [esp + 0xd4], dx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xfc], ebx
mov byte [esp + 0x170], 6
mov eax, dword [0x484034]
mov edx, dword [eax + 0xc]
mov ecx, 0x484034
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
push str.ctdownloader
lea eax, [esp + 0x1c]
push eax
lea ebx, [esi + 0xc]
mov byte [esp + 0x178], 7
call fcn.00401320
mov eax, dword [esp + 0x104]
test eax, eax
jne 0x40fd99
test esi, esi
sete al
jmp 0x40fe23
cmp eax, esi
jne 0x40fe2b
mov ecx, dword [esp + 0xc8]
cmp dword [esp + 0x108], ecx
jne 0x40fe2b
cmp dword [esp + 0xe8], 8
mov eax, dword [esp + 0xd4]
jae 0x40fdc9
lea eax, [esp + 0xd4]
mov edi, dword [esp + 0xe4]
push eax
mov eax, dword [esp + 0x128]
lea ecx, [esp + 0x118]
call fcn.0042af10
test eax, eax
jne 0x40fe2b
mov edx, dword [esp + 0x130]
cmp edx, dword [esp + 0xf0]
jne 0x40fe2b
mov ecx, dword [esp + 0x138]
mov eax, dword [esp + 0x134]
mov edi, dword [esp + 0xf8]
mov edx, dword [esp + 0xf4]
mov esi, ecx
sub esi, eax
sub edi, edx
cmp esi, edi
jne 0x40fe2b
call fcn.0042d8e0
test al, al
jne 0x410284
lea eax, [esp + 0x104]
push eax
lea edi, [esp + 0x68]
call fcn.00404bd0
mov byte [esp + 0x170], 8
mov eax, dword [eax]
xor ebx, ebx
xor ecx, ecx
mov word [esp + 0x144], cx
mov ecx, eax
mov dword [esp + 0x158], 7
mov dword [esp + 0x154], ebx
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x40fe70
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [esp + 0x148]
call fcn.00430450
mov byte [esp + 0x170], 0xa
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x40fea5
push eax
call fcn.0044ee8c
add esp, 4
lea edx, [esp + 0x104]
push edx
lea edi, [esp + 0x84]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call fcn.00404bd0
mov byte [esp + 0x170], 0xb
mov ecx, dword [eax + 4]
lea edx, [esp + 0x3c]
mov dword [esp + 0x38], ecx
lea ecx, [eax + 8]
push edx
call fcn.00422980
mov byte [esp + 0x170], 0xd
mov eax, dword [esp + 0x88]
cmp eax, ebx
je 0x40fefd
push eax
call fcn.0044ee8c
add esp, 4
cmp dword [esp + 0x38], 1
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x90], ebx
jne 0x41022e
mov edx, dword [esp + 0x18]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ff26
sub eax, esi
sar eax, 1
push eax
push edx
lea eax, [esp + 0x14c]
push eax
xor eax, eax
call fcn.00424dd0
test eax, eax
jne 0x41022e
mov eax, dword [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], cx
lea edx, [eax + 2]
jmp 0x40ff70
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ff70
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x68]
call fcn.00430450
push 0xc
push str.afterreboot
lea edx, [esp + 0x6c]
mov bl, 0xe
push edx
xor eax, eax
mov byte [esp + 0x17c], bl
call fcn.00424dd0
cmp eax, 0xffffffff
je 0x41021a
lea ecx, [eax + 0xd]
push 0xffffffffffffffff
lea eax, [esp + 0x84]
lea edx, [esp + 0x68]
call fcn.004227d0
mov edi, eax
lea esi, [esp + 0x64]
mov byte [esp + 0x170], 0xf
call fcn.00424ca0
mov byte [esp + 0x170], bl
cmp dword [esp + 0x94], 8
jb 0x40fffb
mov eax, dword [esp + 0x80]
push eax
call fcn.0044ee8c
add esp, 4
cmp dword [esp + 0x74], 0
jbe 0x41021a
push 2
push 0x473694
lea ecx, [esp + 0x6c]
push ecx
xor eax, eax
call fcn.00424dd0
cmp eax, 0xffffffff
je 0x410065
push eax
xor ecx, ecx
lea eax, [esp + 0x84]
lea edx, [esp + 0x68]
call fcn.004227d0
mov edi, eax
lea esi, [esp + 0x64]
mov byte [esp + 0x170], 0x10
call fcn.00424ca0
mov byte [esp + 0x170], bl
cmp dword [esp + 0x94], 8
jb 0x410065
mov edx, dword [esp + 0x80]
push edx
call fcn.0044ee8c
add esp, 4
sub esp, 0x1c
mov ecx, esp
xor edi, edi
xor eax, eax
mov esi, 7
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
mov dword [esp + 0x68], esp
mov word [ecx], ax
push edi
mov eax, 0x4776ac
call fcn.00430450
sub esp, 0x1c
mov ecx, esp
mov byte [esp + 0x1a8], 0x11
mov dword [esp + 0x68], esp
xor edx, edx
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], edi
push 1
mov eax, 0x4721b4
mov word [ecx], dx
call fcn.00430450
lea ecx, [esp + 0x9c]
mov byte [esp + 0x1a8], bl
call fcn.004296e0
add esp, 0x1c
mov edi, esp
xor eax, eax
mov dword [esp + 0x4c], esp
push eax
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], 0
lea ecx, [esp + 0x84]
mov word [edi], ax
push ecx
or eax, 0xffffffff
call fcn.00430130
lea ecx, [esp + 0x9c]
call fcn.00429790
add esp, 0x1c
mov edi, eax
lea esi, [esp + 0x64]
mov byte [esp + 0x170], 0x12
call fcn.00424ca0
mov byte [esp + 0x170], bl
cmp dword [esp + 0x94], 8
jb 0x410132
mov edx, dword [esp + 0x80]
push edx
call fcn.0044ee8c
add esp, 4
cmp dword [esp + 0x78], 8
mov ecx, dword [esp + 0x64]
jae 0x410141
lea ecx, [esp + 0x64]
mov eax, dword [esp + 0x74]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x410195
dec eax
push eax
xor ecx, ecx
lea eax, [esp + 0x84]
lea edx, [esp + 0x68]
call fcn.004227d0
mov edi, eax
lea esi, [esp + 0x64]
mov byte [esp + 0x170], 0x13
call fcn.00424ca0
mov byte [esp + 0x170], bl
cmp dword [esp + 0x94], 8
jb 0x410195
mov eax, dword [esp + 0x80]
push eax
call fcn.0044ee8c
add esp, 4
cmp dword [esp + 0x78], 8
mov ecx, dword [esp + 0x64]
jae 0x4101a4
lea ecx, [esp + 0x64]
lea edx, [esp + 0x14]
push edx
call fcn.00401110
mov eax, dword [esp + 0x34]
mov byte [esp + 0x170], 0x14
mov eax, dword [eax + 0x90]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41027a
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.0044febf
add esp, 8
test eax, eax
jne 0x4101f3
lea ecx, [esp + 0x144]
lea ebx, [esp + 0x20]
call fcn.004241e0
mov bl, 0xe
mov byte [esp + 0x170], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41021a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x78], 8
jb 0x41022e
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0044ee8c
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x41023f
push eax
call fcn.0044ee8c
add esp, 4
mov byte [esp + 0x170], 7
cmp dword [esp + 0x158], 8
jb 0x410261
mov edx, dword [esp + 0x144]
push edx
call fcn.0044ee8c
add esp, 4
lea eax, [esp + 0x104]
push eax
call fcn.00404cb0
mov esi, dword [esp + 0xc4]
jmp 0x40fd84
push 0x80004005
call fcn.00401670
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4102cd
mov esi, dword [esp + 0x20]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
lea ecx, [ecx]
cmp dword [esi + 0x14], 8
jb 0x4102ba
mov eax, dword [esi]
jmp 0x4102bc
mov eax, esi
mov ecx, dword [esp + 0xa0]
push eax
push ecx
call ebx
add esi, 0x1c
dec edi
jne 0x4102b0
mov byte [esp + 0x170], 6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4102f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xf4]
xor esi, esi
cmp eax, esi
je 0x41030b
push eax
call fcn.0044ee8c
add esp, 4
mov edi, 8
cmp dword [esp + 0xe8], edi
jb 0x410329
mov ecx, dword [esp + 0xd4]
push ecx
call fcn.0044ee8c
add esp, 4
mov eax, dword [esp + 0x134]
cmp eax, esi
je 0x41033d
push eax
call fcn.0044ee8c
add esp, 4
mov dword [esp + 0x134], esi
mov dword [esp + 0x138], esi
mov dword [esp + 0x13c], esi
cmp dword [esp + 0x128], edi
jb 0x41036b
mov edx, dword [esp + 0x114]
push edx
call fcn.0044ee8c
add esp, 4
mov ebx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x128], 7
mov dword [esp + 0x124], esi
mov word [esp + 0x114], ax
cmp ebx, esi
je 0x4103d4
mov edi, dword [esp + 0x24]
mov esi, ebx
cmp ebx, edi
je 0x4103cb
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x4103b1
mov eax, dword [esi]
push eax
call fcn.0044ee8c
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x1c
cmp esi, edi
jne 0x4103a0
push ebx
call fcn.0044ee8c
add esp, 4
xor ebx, ebx
mov byte [esp + 0x170], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4103fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0xa0]
cmp eax, ebx
je 0x410419
cmp dword [esp + 0x9c], eax
je 0x410419
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0xbc], 8
jb 0x410433
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.0044ee8c
add esp, 4
mov ecx, dword [esp + 0x168]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.0044ee97
mov esp, ebp
pop ebp
ret 4