Function at 0x407150
Capabilities:
Copy file
Create process on windows
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43aa70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x29c
mov eax, dword [0x449a98]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x280], ecx
call fcn.00431cfd
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x268], eax
push 0x104
lea eax, [ebp - 0x258]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x258]
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4071c0
sub eax, ecx
push eax
lea ecx, [ebp - 0x258]
push ecx
lea ecx, [ebp - 0x268]
call fcn.00404950
push 1
push 0x43d874
lea ecx, [ebp - 0x268]
call fcn.00404f70
mov edi, dword [ebp + 8]
push 0x43d940
lea edx, [ebp - 0x26c]
push edi
push edx
call fcn.00405580
add esp, 0xc
mov byte [ebp - 4], 1
call fcn.00431cfd
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x154]
push eax
push ecx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x260], eax
je 0x40732b
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea esp, [esp]
lea eax, [ebp - 0x128]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407260
sub eax, edx
push eax
lea edx, [ebp - 0x128]
push edx
lea ecx, [ebp - 0x264]
call fcn.00404950
test byte [ebp - 0x154], 0x10
jne 0x407308
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x268]
push ecx
lea edx, [ebp - 0x25c]
push edx
call fcn.004054d0
mov esi, eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp + 8]
push edi
push ecx
mov byte [ebp - 4], 3
call fcn.004054d0
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0x18
push 0
push esi
push eax
call ebx
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4072e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407308
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [ebp - 0x260]
lea eax, [ebp - 0x154]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407250
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x2a8]
call fcn.0042fb60
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 4
call fcn.0042fb60
push str.RegInfo_
lea ecx, [ebp + 8]
push edi
push ecx
mov byte [ebp - 4], 5
call fcn.00405580
mov eax, dword [eax]
lea edx, [ebp - 0x294]
push edx
push 0
push str..nfd
push eax
mov byte [ebp - 4], 6
call fcn.004105f0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407396
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x28c]
test eax, eax
jne 0x407592
push str.RegInfo_
lea eax, [ebp + 8]
push edi
push eax
call fcn.00405580
mov eax, dword [eax]
lea ecx, [ebp - 0x294]
push ecx
push 0
push str..psd
push eax
mov byte [ebp - 4], 7
call fcn.004105f0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [ebp - 4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4073f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x28c]
test eax, eax
jne 0x407592
push str.RegInfo_
lea eax, [ebp + 8]
push edi
push eax
call fcn.00405580
mov eax, dword [eax]
lea ecx, [ebp - 0x2a8]
push ecx
push 0
push str..reg
push eax
mov byte [ebp - 4], 8
call fcn.004105f0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 0x1c
mov byte [ebp - 4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40744c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x2a0]
xor edi, edi
test eax, eax
jle 0x4074ea
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.00431cfd
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
test edi, edi
mov byte [ebp - 4], 9
jl 0x4077ab
cmp edi, dword [ebp - 0x2a0]
jge 0x4077ab
mov eax, dword [ebp - 0x2a4]
mov ecx, dword [eax + edi*4]
push ecx
lea edx, [ebp + 8]
push str._s___s_
push edx
call fcn.004053d0
mov esi, dword [ebp + 8]
add esp, 0xc
push 0
push 0
push esi
push str.Regedit.exe
push str.open
push 0
call ebx
lea eax, [esi - 0x10]
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4074db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x2a0]
inc edi
cmp edi, eax
jl 0x407462
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 4
call fcn.0042fbb2
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 2
call fcn.0042fbb2
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40752c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407550
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407577
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0042193c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor edi, edi
cmp edi, dword [ebp - 0x28c]
mov dword [ebp - 0x25c], edi
jge 0x4074ea
test edi, edi
jl 0x4077ab
mov eax, dword [ebp - 0x290]
mov esi, dword [eax + edi*4]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
sub esi, 0x10
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
lea ecx, [esi + 0xc]
xor ebx, ebx
cmp edx, ebx
jl 0x4075df
cmp eax, dword [esi]
jne 0x4075df
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x407618
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
cmp eax, ebx
jne 0x4075f4
call fcn.00402280
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x25c]
add eax, 0x10
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x278], ebx
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x27c], 0x43d7c8
mov byte [ebp - 4], 0xc
call fcn.00431cfd
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0xd
call fcn.00413af0
mov eax, dword [ebp - 0x280]
mov ecx, dword [eax + 0x120]
cmp ecx, 1
jbe 0x4076a0
cmp ecx, ebx
jbe 0x40768c
mov edx, dword [eax + 0x124]
cmp edx, ebx
jne 0x407692
xor eax, eax
jmp 0x4076ca
xor edx, edx
xor eax, eax
jmp 0x4076ca
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407697
jmp 0x4076c8
cmp dword [eax + 0x118], ebx
jbe 0x4076b6
mov edx, dword [eax + 0x11c]
cmp edx, ebx
jne 0x4076bc
xor eax, eax
jmp 0x4076ca
xor edx, edx
xor eax, eax
jmp 0x4076ca
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4076c1
sub eax, esi
push eax
lea ecx, [ebp + 8]
push edx
call fcn.00404950
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x27c]
call fcn.00413c10
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407704
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp dword [ebp - 0x274], ebx
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x27c], 0x43d7c8
lea eax, [ebp - 0x278]
je 0x40777e
xor ecx, ecx
cmp ecx, dword [eax]
jae 0x407729
inc ecx
jmp 0x407722
mov ecx, dword [eax + 4]
cmp ecx, ebx
je 0x40777e
mov edx, dword [ecx - 4]
cmp edx, ebx
lea eax, [ecx - 4]
je 0x407742
mov eax, dword [ecx]
push 3
call dword [eax]
jmp 0x40777e
push eax
call fcn.00431cf8
add esp, 4
jmp 0x40777e
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
mov dword [ebp - 4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4077a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
inc edi
jmp 0x407594
call fcn.0042fb3b
int3