Function at 0x403e4e
Capabilities:
Copy file
Delete file
Move file
Query or enumerate registry value

Disassembly:
mov eax, 0x471027
call fcn.00465b54
sub esp, 0xe0
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x60], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x1d]
push ebx
push eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 5
mov dword [ebp - 0x30], 0x104
mov dword [ebp - 0x88], 0x47b4b8
mov dword [ebp - 0x68], 0x47b4b0
call fcn.0040580f
mov eax, dword [esi + 0x28]
mov byte [ebp - 4], 6
cmp eax, ebx
je 0x403eae
push dword [esi + 0x2c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp - 0x1c], ebx
mov eax, dword [esi + 0x28]
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x403f77
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push 0x4913e8
push 0x47c520
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x403f77
lea eax, [ebp - 0x1e]
push 1
push eax
lea ecx, [ebp - 0x58]
call fcn.0040554d
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x58]
push eax
mov byte [ebp - 4], 8
call fcn.0042b5fa
mov ecx, dword [eax]
mov byte [ebp - 4], 9
mov byte [eax + 4], 1
call fcn.004064ba
push 0x4912bc
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
push edi
push dword [ebp - 0x18]
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
push dword [ebp - 0x18]
test eax, eax
setge byte [ebp - 0xd]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp byte [ebp - 0x24], bl
mov byte [ebp - 4], 8
je 0x403f4d
mov ecx, dword [ebp - 0x28]
push dword [ecx + 0x1c]
call fcn.00405710
cmp byte [ebp - 0xd], bl
je 0x403f6b
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x54]
neg eax
sbb eax, eax
push 0x4912dc
and eax, ecx
push eax
call fcn.0040a826
pop ecx
pop ecx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
call fcn.00407f77
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push 1
push ebx
call fcn.00406443
push eax
push dword [esi + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40410d
lea eax, [ebp - 0x2c]
push 0x104
push eax
lea ecx, [ebp - 0x88]
call fcn.00406e9d
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 0xb
call fcn.0040650f
lea ecx, [ebp - 0x30]
mov dword [edi + 8], eax
push ecx
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push 0x491448
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb al, al
lea ecx, [ebp - 0x2c]
inc al
mov byte [ebp - 4], 7
mov byte [ebp - 0xd], al
call fcn.00405c43
cmp byte [ebp - 0xd], bl
je 0x40410d
push 0x18
xor eax, eax
pop ecx
lea edi, [ebp - 0xeb]
mov byte [ebp - 0xec], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0x38]
cmp eax, ebx
mov dword [ebp - 0x24], eax
jne 0x404015
xor edi, edi
jmp 0x404044
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 0x18], eax
add eax, 3
and al, 0xfc
call fcn.00465ce0
mov edi, esp
push ebx
push ebx
push dword [ebp - 0x18]
mov byte [edi], bl
push edi
push 0xffffffffffffffff
push dword [ebp - 0x24]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push edi
lea eax, [ebp - 0xec]
push 0x4918d0
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0xec]
push eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edi, eax
cmp edi, ebx
jne 0x4040ff
cmp byte [esi + 0x8c], bl
lea eax, [esi + 0x64]
jne 0x404089
lea eax, [esi + 0x3c]
push ebx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x58], 0x47b4b8
mov dword [ebp - 0x38], 0x47b4b0
call fcn.00405884
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xc
call fcn.0040650f
lea ecx, [ebp - 0x88]
mov edi, eax
call fcn.0040650f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4040e4
lea ecx, [ebp - 0x58]
call fcn.0040650f
push ebx
lea ecx, [ebp - 0x88]
mov edi, eax
call fcn.0040650f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x88]
push eax
call fcn.00408cd8
pop ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
call fcn.00407f77
jmp 0x40410d
push edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x3c]
call fcn.0040650f
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call edi
lea ecx, [esi + 0x64]
call fcn.0040650f
push eax
call edi
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 6
cmp eax, ebx
je 0x40413a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 5
call fcn.00407f77
cmp dword [ebp - 0x14], ebx
je 0x40415a
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.00407f77
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 2
call fcn.00407f77
push dword [esi + 0x38]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 0x28]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x40418b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00407f77
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0xf8]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret