Function at 0x407830
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e371
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x439004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], cx
sub esp, 0x18
mov dword [ebp - 4], ecx
mov ecx, esp
push eax
call fcn.00404030
lea eax, [ebp - 0xa0]
push eax
call fcn.00407f00
test al, al
je 0x407d8c
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x88]
call fcn.00404030
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x74]
mov eax, edx
mov ecx, dword [ebp - 0x78]
sub eax, ecx
cmp eax, 0x16
jb 0x407901
cmp edx, 8
lea esi, [ebp - 0x88]
push 0x2c
cmovae esi, dword [ebp - 0x88]
lea edi, [ecx + 0x16]
push str.System32Kernel32.dll
mov dword [ebp - 0x78], edi
lea eax, [esi + ecx*2]
push eax
call fcn.00415ee0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x407922
push 0x16
push str.System32Kernel32.dll
mov byte [ebp - 0x1d4], 0
lea ecx, [ebp - 0x88]
push dword [ebp - 0x1d4]
push 0x16
call fcn.00404100
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x70]
call fcn.00404030
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x5c]
mov eax, edx
mov ecx, dword [ebp - 0x60]
sub eax, ecx
cmp eax, 0x19
jb 0x40796f
cmp edx, 8
lea esi, [ebp - 0x70]
push 0x32
cmovae esi, dword [ebp - 0x70]
lea edi, [ecx + 0x19]
push str.System32configSOFTWARE
mov dword [ebp - 0x60], edi
lea eax, [esi + ecx*2]
push eax
call fcn.00415ee0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x40798d
push 0x19
push str.System32configSOFTWARE
mov byte [ebp - 0x1d4], 0
lea ecx, [ebp - 0x70]
push dword [ebp - 0x1d4]
push 0x19
call fcn.00404100
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x58]
call fcn.00404030
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x44]
mov eax, edx
mov ecx, dword [ebp - 0x48]
sub eax, ecx
cmp eax, 0x17
jb 0x4079da
cmp edx, 8
lea esi, [ebp - 0x58]
push 0x2e
cmovae esi, dword [ebp - 0x58]
lea edi, [ecx + 0x17]
push str.System32configSYSTEM
mov dword [ebp - 0x48], edi
lea eax, [esi + ecx*2]
push eax
call fcn.00415ee0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x4079f8
push 0x17
push str.System32configSYSTEM
mov byte [ebp - 0x1d4], 0
lea ecx, [ebp - 0x58]
push dword [ebp - 0x1d4]
push 0x17
call fcn.00404100
mov ecx, str.SeBackupPrivilege
call fcn.004133b0
test eax, eax
je 0x407d71
mov ecx, str.SeRestorePrivilege
call fcn.004133b0
test eax, eax
je 0x407d71
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404030
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [ebp - 0x18]
sub eax, ecx
cmp eax, 4
jb 0x407a66
cmp edx, 8
lea esi, [ebp - 0x28]
push 8
cmovae esi, dword [ebp - 0x28]
lea edi, [ecx + 4]
push str..GIX
mov dword [ebp - 0x18], edi
lea eax, [esi + ecx*2]
push eax
call fcn.00415ee0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x407a84
push 4
push str..GIX
mov byte [ebp - 0x1d4], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x1d4]
push 4
call fcn.00404100
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x40]
call fcn.00404030
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 4
jb 0x407ace
cmp edx, 8
lea esi, [ebp - 0x40]
push 8
cmovae esi, dword [ebp - 0x40]
lea edi, [ecx + 4]
push str..GIX
mov dword [ebp - 0x30], edi
lea eax, [esi + ecx*2]
push eax
call fcn.00415ee0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x407aec
push 4
push str..GIX
mov byte [ebp - 0x1d4], 0
lea ecx, [ebp - 0x40]
push dword [ebp - 0x1d4]
push 4
call fcn.00404100
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x70]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x5c], 8
push 0
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call esi
test eax, eax
je 0x407d61
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push 0
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
call esi
test eax, eax
lea eax, [ebp - 0x28]
jne 0x407b4d
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x407d61
cmp dword [ebp - 0x14], 8
mov esi, dword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
cmovae eax, dword [ebp - 0x28]
push eax
push str.GIX_SOFTWARE
push 0x80000002
call esi
test eax, eax
jne 0x407b98
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push str.GIX_SYSTEM
push 0x80000002
call esi
test eax, eax
je 0x407bbf
push str.GIX_SOFTWARE
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
jmp 0x407d61
xor eax, eax
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 7
mov word [ebp - 0x1d0], ax
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1a4], 7
mov word [ebp - 0x1b8], ax
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], 7
mov word [ebp - 0x1a0], ax
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x174], 7
mov word [ebp - 0x188], ax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], 7
mov word [ebp - 0x170], ax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], 7
mov word [ebp - 0x158], ax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], 7
mov word [ebp - 0x134], ax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], 7
mov word [ebp - 0x11c], ax
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xf0], 7
mov word [ebp - 0x104], ax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], ax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], 7
mov word [ebp - 0xd4], ax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], 7
mov word [ebp - 0xbc], ax
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.00408500
mov esi, dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
push str.GIX_SYSTEM
push 0x80000002
call esi
push str.GIX_SOFTWARE
push 0x80000002
call esi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
lea eax, [ebp - 0x1d0]
mov ecx, ebx
push eax
push dword [ebp - 0x1d8]
call fcn.00409240
lea ecx, [ebp - 0x1d0]
call fcn.00407dc0
lea ecx, [ebp - 0x40]
call fcn.004019e0
lea ecx, [ebp - 0x28]
call fcn.004019e0
lea ecx, [ebp - 0x58]
call fcn.004019e0
lea ecx, [ebp - 0x70]
call fcn.004019e0
lea ecx, [ebp - 0x88]
call fcn.004019e0
lea ecx, [ebp - 0xa0]
call fcn.004019e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414df1
mov esp, ebp
pop ebp
ret 8