Function at 0x4777d4
Capabilities:
Delete file
Delete registry value
Move file
Set registry value

Disassembly:
push 0x494
mov eax, 0x4d01b4
call fcn.004ae989
xor ebx, ebx
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x488], ebx
call fcn.0048b151
push eax
lea ecx, [ebp - 0x48c]
call fcn.00402821
mov dword [ebp - 4], ebx
mov dword [ebp - 0x474], 0x2001f
cmp byte [edi], bl
je 0x47782e
mov al, byte [esi + 0x30]
xor ecx, ecx
cmp al, bl
sete cl
dec ecx
and ecx, 0xffffff00
add ecx, 0x2021f
mov dword [ebp - 0x474], ecx
call fcn.00407727
mov eax, dword [esi + 0x34]
dec eax
cmp eax, 8
ja case.default.0x47783c
jmp dword [eax*4 + 0x478080]
cmp dword [esi + 8], 1
jg 0x47784e
call fcn.0048b094
mov eax, dword [esi + 4]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x488], eax
mov ecx, dword [ebp - 0x48c]
add ecx, 0xfffffff0
call fcn.00402883
mov eax, dword [ebp - 0x488]
call fcn.004aea0c
ret
cmp dword [esi + 8], ebx
jle 0x477849
mov eax, dword [esi + 4]
push ecx
mov dword [ebp - 0x490], esp
mov ecx, esp
push eax
call fcn.00402582
lea eax, [ebp - 0x494]
push eax
call fcn.0047897b
push eax
lea ecx, [ebp - 0x48c]
mov byte [ebp - 4], 1
call fcn.0040260d
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x494]
add ecx, 0xfffffff0
call fcn.00402883
push ecx
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x47c], esp
mov ecx, esp
push eax
call fcn.00402582
call fcn.00478949
cmp eax, 2
je 0x4778f7
push ecx
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x47c], esp
mov ecx, esp
push eax
call fcn.00402582
call fcn.0047861c
mov ecx, dword [esi + 8]
cmp ecx, ebx
jle 0x477849
cmp ecx, 1
mov esi, dword [esi + 4]
mov eax, dword [esi]
jle 0x477849
mov esi, dword [esi + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x47785a
mov dword [ebp - 0x488], ebx
jmp case.default.0x47783c
lea eax, [edi + 0x24]
push eax
lea ecx, [ebp - 0x484]
call fcn.00402582
mov byte [ebp - 4], 2
call fcn.0048b151
push eax
lea ecx, [ebp - 0x478]
call fcn.00402821
mov byte [ebp - 4], 3
mov dword [ebp - 0x240], ebx
cmp dword [edi + 0x38], ebx
jne 0x477a54
lea ecx, [edi + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
cmp eax, ebx
jne 0x47799f
mov ecx, dword [ebp - 0x478]
add ecx, 0xfffffff0
call fcn.00402883
mov ecx, dword [ebp - 0x484]
add ecx, 0xfffffff0
call fcn.00402883
mov ecx, dword [ebp - 0x48c]
add ecx, 0xfffffff0
call fcn.00402883
xor eax, eax
jmp 0x477874
mov edx, dword [edi + 0x2c]
cmp dword [edx - 0xc], ebx
jne 0x4779e5
add eax, 0xfffffffd
push eax
lea eax, [ebp - 0x49c]
push eax
call fcn.004078c2
push 0x53b81c
mov byte [ebp - 4], 4
push dword [eax]
lea eax, [edi + 0x2c]
push 0x52b858
push eax
call fcn.00402a45
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x49c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.00402883
push dword [edi + 0x2c]
call fcn.00438db8
pop ecx
mov dword [edi + 0x38], eax
cmp eax, ebx
jne 0x477a54
push ebx
push ebx
push 0x5229b8
push ecx
mov ecx, esp
mov dword [ebp - 0x47c], esp
push str.RESOURCESTRING
call fcn.0040253e
push ecx
mov ecx, esp
mov dword [ebp - 0x474], esp
push str.SAFEPC_A28
mov byte [ebp - 4], 5
call fcn.0040253e
lea eax, [ebp - 0x498]
push eax
mov byte [ebp - 4], 3
call fcn.00406e20
mov byte [ebp - 4], 6
push dword [eax]
call fcn.0048ad48
mov ecx, dword [ebp - 0x498]
add ecx, 0xfffffff0
call fcn.00402883
jmp 0x47796e
mov eax, dword [edi + 0x38]
push 0xffffffffffffffff
lea ebx, [ebp - 0x240]
call fcn.00438e4b
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
pop ecx
mov dword [ebp - 0x47c], eax
jle 0x477849
mov eax, dword [esi + 0x18]
mov eax, dword [eax]
sub eax, ebx
je 0x477a8a
dec eax
je 0x477aff
dec eax
dec eax
jne 0x47796e
cmp dword [esi + 8], 3
jle 0x477849
mov eax, dword [esi + 4]
add eax, 0xc
push eax
lea ecx, [ebp - 0x478]
call fcn.0040260d
cmp dword [ebp - 0x240], ebx
mov dword [ebp - 0x474], ebx
jle 0x477ba5
push dword [ebp - 0x474]
mov eax, dword [edi + 0x38]
lea ebx, [ebp - 0x470]
call fcn.00438e4b
pop ecx
mov ecx, dword [ebp - 0x478]
lea eax, [ebp - 0x46c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x477b11
test dx, dx
je 0x477afb
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x477b11
add eax, 4
add ecx, 4
test dx, dx
jne 0x477ad9
xor eax, eax
jmp 0x477b16
cmp dword [esi + 8], 2
jle 0x477849
mov eax, dword [esi + 4]
add eax, 8
jmp 0x477a9a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x477b56
mov ebx, dword [ebp - 0x478]
push dword [ebx - 0xc]
lea ecx, [ebp - 0x484]
push ebx
call fcn.00411e73
push dword [edi + 0x24]
mov eax, dword [edi + 0x38]
call fcn.00438ea7
mov eax, dword [edi + 0x38]
pop ecx
push ebx
push dword [ebp - 0x474]
call fcn.00438e76
pop ecx
pop ecx
mov dword [ebp - 0x47c], eax
test eax, eax
je 0x477b70
inc dword [ebp - 0x474]
mov eax, dword [ebp - 0x474]
cmp eax, dword [ebp - 0x240]
jl 0x477ab8
jmp 0x477ba5
mov al, byte [esi + 0x30]
mov byte [ebp - 0x474], al
push dword [ebp - 0x474]
lea eax, [ebp - 0x484]
push ecx
mov dword [ebp - 0x474], esp
mov ecx, esp
push eax
call fcn.00402582
call fcn.004787a7
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x47c], 0
jne 0x477bb8
mov dword [ebp - 0x488], 1
mov ecx, dword [ebp - 0x478]
add ecx, 0xfffffff0
call fcn.00402883
mov ecx, dword [ebp - 0x484]
add ecx, 0xfffffff0
call fcn.00402883
jmp case.default.0x47783c
mov dword [ebp - 0x480], ebx
mov dword [ebp - 0x47c], ebx
mov byte [ebp - 4], 7
cmp dword [esi + 8], ebx
mov dword [ebp - 0x488], ebx
jle 0x477849
cmp dword [esi + 0x1c], ebx
mov eax, dword [esi + 4]
mov eax, dword [eax]
jle 0x477849
mov esi, dword [esi + 0x18]
push eax
mov eax, dword [esi]
call fcn.0047888b
push eax
mov eax, dword [ebp - 0x474]
lea edi, [ebp - 0x480]
call fcn.00411f8b
test eax, eax
jne 0x477c48
mov esi, edi
call fcn.0041582b
lea ecx, [ebp - 0x480]
mov esi, eax
call fcn.00411fc7
xor eax, eax
cmp esi, ebx
sete al
mov dword [ebp - 0x488], eax
lea ecx, [ebp - 0x480]
call fcn.00411fc7
jmp case.default.0x47783c
lea eax, [edi + 0x24]
push eax
lea ecx, [ebp - 0x478]
call fcn.00402582
mov byte [ebp - 4], 8
call fcn.0048b151
push eax
lea ecx, [ebp - 0x484]
call fcn.00402821
mov byte [ebp - 4], 9
mov dword [ebp - 0x240], ebx
cmp dword [edi + 0x38], ebx
jne 0x477d69
lea ecx, [edi + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
cmp eax, ebx
jne 0x477cb4
mov ecx, dword [ebp - 0x484]
add ecx, 0xfffffff0
call fcn.00402883
mov ecx, dword [ebp - 0x478]
jmp 0x477982
mov edx, dword [edi + 0x2c]
cmp dword [edx - 0xc], ebx
jne 0x477cfa
add eax, 0xfffffffd
push eax
lea eax, [ebp - 0x4a0]
push eax
call fcn.004078c2
push 0x53b81c
mov byte [ebp - 4], 0xa
push dword [eax]
lea eax, [edi + 0x2c]
push 0x52b858
push eax
call fcn.00402a45
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x4a0]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.00402883
push dword [edi + 0x2c]
call fcn.00438db8
pop ecx
mov dword [edi + 0x38], eax
cmp eax, ebx
jne 0x477d69
push ebx
push ebx
push 0x5229b8
push ecx
mov ecx, esp
mov dword [ebp - 0x47c], esp
push str.RESOURCESTRING
call fcn.0040253e
push ecx
mov ecx, esp
mov dword [ebp - 0x474], esp
push str.SAFEPC_A28
mov byte [ebp - 4], 0xb
call fcn.0040253e
lea eax, [ebp - 0x490]
push eax
mov byte [ebp - 4], 9
call fcn.00406e20
mov byte [ebp - 4], 0xc
push dword [eax]
call fcn.0048ad48
mov ecx, dword [ebp - 0x490]
add ecx, 0xfffffff0
call fcn.00402883
jmp 0x477c9b
mov eax, dword [edi + 0x38]
push 0xffffffffffffffff
lea ebx, [ebp - 0x240]
call fcn.00438e4b
cmp dword [esi + 8], 1
pop ecx
mov dword [ebp - 0x47c], eax
jle 0x477849
mov eax, dword [esi + 4]
add eax, 4
push eax
lea ecx, [ebp - 0x484]
call fcn.0040260d
and dword [ebp - 0x474], 0
cmp dword [ebp - 0x240], 0
jle 0x477e8b
push dword [ebp - 0x474]
mov eax, dword [edi + 0x38]
lea ebx, [ebp - 0x470]
call fcn.00438e4b
pop ecx
mov ecx, dword [ebp - 0x484]
lea eax, [ebp - 0x46c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x477df7
test dx, dx
je 0x477df3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x477df7
add eax, 4
add ecx, 4
test dx, dx
jne 0x477dd1
xor eax, eax
jmp 0x477dfc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x477e3c
mov ebx, dword [ebp - 0x484]
push dword [ebx - 0xc]
lea ecx, [ebp - 0x478]
push ebx
call fcn.00411e73
push dword [edi + 0x24]
mov eax, dword [edi + 0x38]
call fcn.00438ea7
mov eax, dword [edi + 0x38]
pop ecx
push ebx
push dword [ebp - 0x474]
call fcn.00438e76
pop ecx
pop ecx
mov dword [ebp - 0x47c], eax
test eax, eax
je 0x477e56
inc dword [ebp - 0x474]
mov eax, dword [ebp - 0x474]
cmp eax, dword [ebp - 0x240]
jl 0x477db0
jmp 0x477e8b
mov al, byte [esi + 0x30]
mov byte [ebp - 0x474], al
push dword [ebp - 0x474]
lea eax, [ebp - 0x478]
push ecx
mov dword [ebp - 0x474], esp
mov ecx, esp
push eax
call fcn.00402582
call fcn.004787a7
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x47c], 0
jne 0x477e9e
mov dword [ebp - 0x488], 1
mov ecx, dword [ebp - 0x484]
add ecx, 0xfffffff0
call fcn.00402883
mov ecx, dword [ebp - 0x478]
jmp 0x477bcc
mov dword [ebp - 0x480], ebx
mov dword [ebp - 0x47c], ebx
mov byte [ebp - 4], 0xd
cmp dword [esi + 8], ebx
mov dword [ebp - 0x488], ebx
jle 0x477849
cmp dword [esi + 0x1c], 1
mov eax, dword [esi + 4]
mov ecx, dword [eax]
jle 0x477849
mov eax, dword [esi + 0x18]
add eax, 4
mov eax, dword [eax]
push ecx
call fcn.0047888b
push eax
mov eax, dword [ebp - 0x474]
lea edi, [ebp - 0x480]
call fcn.00411f8b
test eax, eax
jne 0x477c48
cmp dword [esi + 8], 1
jle 0x477849
mov eax, dword [esi + 4]
push dword [eax + 4]
push dword [ebp - 0x480]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x477c2e
mov dword [ebp - 0x480], ebx
mov dword [ebp - 0x47c], ebx
mov byte [ebp - 4], 0xe
cmp dword [esi + 8], ebx
mov dword [ebp - 0x488], ebx
jle 0x477849
cmp dword [esi + 0x1c], ebx
mov eax, dword [esi + 4]
mov ecx, dword [eax]
jle 0x477849
mov eax, dword [esi + 0x18]
mov eax, dword [eax]
push ebx
push ebx
push dword [ebp - 0x474]
push ebx
push ebx
push ecx
call fcn.0047888b
push eax
lea ecx, [ebp - 0x480]
call fcn.00478b0a
test eax, eax
jne 0x477c48
xor edi, edi
inc edi
cmp dword [esi + 0x1c], edi
jle 0x477849
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 4]
sub eax, ebx
je 0x47804c
dec eax
je 0x478019
dec eax
je 0x477fd8
dec eax
je 0x477fb7
lea ecx, [ebp - 0x480]
call fcn.00411fc7
jmp 0x47798a
mov ecx, dword [esi + 8]
cmp ecx, 2
jle 0x477849
cmp ecx, edi
mov esi, dword [esi + 4]
mov eax, dword [esi + 8]
jle 0x477849
push 2
jmp 0x478067
mov edx, dword [esi + 0x2c]
cmp edx, ebx
je 0x47800c
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
je 0x47800c
cmp dword [esi + 8], edi
jle 0x477849
push edx
push ecx
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
push 3
push ebx
push eax
push dword [ebp - 0x480]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x477c2e
cmp dword [esi + 8], edi
jle 0x477849
push ebx
push ebx
jmp 0x477ff1
cmp dword [esi + 0x1c], 2
jle 0x477849
mov eax, dword [esi + 0x18]
add eax, 8
cmp dword [esi + 8], edi
jle 0x477849
push dword [eax]
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + 4]
push ecx
lea eax, [ebp - 0x480]
push eax
call fcn.00478ab6
jmp 0x477c2e
mov ecx, dword [esi + 8]
cmp ecx, 2
jle 0x477849
cmp ecx, edi
mov esi, dword [esi + 4]
mov eax, dword [esi + 8]
jle 0x477849
push edi
mov esi, dword [esi + 4]
push eax
push esi
lea eax, [ebp - 0x480]
push eax
call fcn.00478ad4
jmp 0x477c2e