Function at 0x100d803
Capabilities:
Create process on windows
Enumerate files on windows
Persist via run registry key
Resume thread
Self delete
Terminate process
Write and execute a file
Write file on windows

Disassembly:
mov eax, 0x1080363
call fcn.0105c800
sub esp, 0x200
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0106738c
mov ecx, ebx
call fcn.0100d423
lea eax, [ebp - 0x68]
mov ecx, ebx
push eax
call fcn.0100b41d
mov edi, 0x104
push edi
call fcn.0105b249
pop ecx
mov dword [ebp - 0x18], eax
push 0x1a
lea ecx, [ebp - 0x54]
call fcn.0100943b
xor esi, esi
push str.DelAll.bat
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], esi
call fcn.01009731
push 0xffffffffffffff9b
lea ecx, [ebp - 0x54]
call fcn.0100972d
push eax
lea ecx, [ebp - 0x38]
call fcn.010087b8
push esi
push 0x8000080
push 2
push esi
push esi
push 0x40000000
push dword [ebp - 0x38]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x48], eax
jne 0x100d8ac
lea ecx, [ebp - 0x38]
call fcn.01001190
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.010095e5
xor al, al
jmp 0x100df0f
lea eax, [ebp - 0x88]
mov ecx, ebx
push eax
call fcn.0100c99f
push 0xffffffffffffff9b
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0100972d
push eax
lea ecx, [ebp - 0x20]
call fcn.010087b8
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 4
call fcn.010095e5
lea eax, [ebp - 0x14]
push 0x5c
push eax
lea ecx, [ebp - 0x20]
call fcn.01008eba
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.01008a01
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.01001190
mov esi, 0x10989d8
mov eax, esi
test eax, eax
je 0x100d91a
push esi
call fcn.0105c0e0
pop ecx
jmp 0x100d91c
xor eax, eax
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.01008a89
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.0100c7c7
mov ecx, 0x1098a40
mov byte [ebp - 4], 6
mov eax, ecx
test eax, eax
je 0x100d94e
push ecx
call fcn.0105c0e0
pop ecx
mov ecx, 0x1098a40
jmp 0x100d950
xor eax, eax
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.01008a89
mov eax, dword [ebp - 0x20]
cmp dword [eax - 8], 0
jne 0x100d96d
mov eax, dword [0x1098824]
mov dword [ebp - 0x30], eax
jmp 0x100d97c
mov dword [ebp - 0x30], eax
mov ecx, dword [eax - 0xc]
cmp ecx, 0xffffffff
je 0x100d97c
inc ecx
mov dword [eax - 0xc], ecx
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
push eax
mov byte [ebp - 4], 7
call fcn.0100df20
push edi
push dword [ebp - 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffff9b
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x18]
call fcn.010087b8
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocStringLen
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 8
call fcn.01016e3e
push edi
lea ecx, [ebp - 0x7c]
push dword [ebp - 0x18]
mov byte [ebp - 4], 9
push str.Desktop
push 0x10a40b8
call fcn.01016edf
push 0xffffffffffffff9b
lea ecx, [ebp - 0x44]
push dword [ebp - 0x18]
call fcn.010087b8
lea eax, [ebp - 0x44]
push esi
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0xa
call fcn.01008b79
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.01008b0c
add esp, 0x18
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xc
call fcn.01008a01
lea ecx, [ebp - 0x14]
call fcn.01001190
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.01001190
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ebx, dword [ebx + 4]
and byte [ebx + 0x14], 0
mov eax, dword [0x1098824]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx - 8], 0
jne 0x100da51
mov dword [ebp - 0x40], eax
jmp 0x100da60
mov dword [ebp - 0x40], ecx
mov eax, dword [ecx - 0xc]
cmp eax, 0xffffffff
je 0x100da60
inc eax
mov dword [ecx - 0xc], eax
mov edi, 0x1098a80
mov byte [ebp - 4], 0xe
mov eax, edi
test eax, eax
je 0x100da78
push edi
call fcn.0105c0e0
pop ecx
jmp 0x100da7a
xor eax, eax
push edi
push eax
lea ecx, [ebp - 0x40]
call fcn.01008a89
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
mov edi, str.del__
mov ebx, 0x1098b4c
je 0x100dc01
cmp byte [ebp - 0x1e0], 0x2e
je 0x100db47
lea eax, [ebp - 0x1e0]
push eax
push dword [ebp - 0x2c]
call fcn.0105d920
pop ecx
test eax, eax
pop ecx
je 0x100db47
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.01008c03
push esi
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0xf
push eax
call fcn.01008b79
lea ecx, [ebp - 0x1e0]
mov byte [ebp - 4], 0x10
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.01008b79
push ebx
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0x11
push eax
call fcn.01008b79
add esp, 0x30
mov eax, dword [eax]
mov byte [ebp - 4], 0x12
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.01008a89
lea ecx, [ebp - 0x14]
call fcn.01001190
lea ecx, [ebp - 0x28]
call fcn.01001190
lea ecx, [ebp - 0x24]
call fcn.01001190
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x10]
call fcn.01001190
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x100dbf8
cmp byte [ebp - 0x1e0], 0x2e
je 0x100db47
lea eax, [ebp - 0x1e0]
push eax
push dword [ebp - 0x2c]
call fcn.0105d920
pop ecx
test eax, eax
pop ecx
je 0x100db47
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.01008c03
push esi
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x13
push eax
call fcn.01008b79
lea ecx, [ebp - 0x1e0]
mov byte [ebp - 4], 0x14
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.01008b79
push ebx
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0x15
push eax
call fcn.01008b79
add esp, 0x30
mov eax, dword [eax]
mov byte [ebp - 4], 0x16
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.01008a89
lea ecx, [ebp - 0x10]
call fcn.01001190
lea ecx, [ebp - 0x24]
call fcn.01001190
lea ecx, [ebp - 0x28]
call fcn.01001190
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x14]
jmp 0x100db42
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x14]
push str.:Repeat_r_ndel__
push eax
call fcn.01008c03
push str.__r_nif_exist__
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x17
push eax
call fcn.01008b79
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x18
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.01008b0c
push str.__goto_Repeat_r_n
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0x19
push eax
call fcn.01008b79
add esp, 0x30
mov eax, dword [eax]
mov byte [ebp - 4], 0x1a
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.01008a89
lea ecx, [ebp - 0x10]
call fcn.01001190
lea ecx, [ebp - 0x24]
call fcn.01001190
lea ecx, [ebp - 0x28]
call fcn.01001190
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xe
call fcn.01001190
push dword [ebp - 0x3c]
push dword [ebp - 0x30]
call fcn.0105d920
pop ecx
test eax, eax
pop ecx
je 0x100dd1a
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x14]
push str.:Repeat2_r_ndel__
push eax
call fcn.01008c03
push str.__r_nif_exist__
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x1b
push eax
call fcn.01008b79
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x1c
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.01008b0c
push str.__goto_Repeat2_r_n
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0x1d
push eax
call fcn.01008b79
add esp, 0x30
mov eax, dword [eax]
mov byte [ebp - 4], 0x1e
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.01008a89
lea ecx, [ebp - 0x10]
call fcn.01001190
lea ecx, [ebp - 0x24]
call fcn.01001190
lea ecx, [ebp - 0x28]
call fcn.01001190
lea ecx, [ebp - 0x14]
call fcn.01001190
mov eax, dword [ebp - 0x20]
cmp dword [eax - 8], 0
jne 0x100dd2d
mov eax, dword [0x1098824]
mov dword [ebp - 0x34], eax
jmp 0x100dd3c
mov dword [ebp - 0x34], eax
mov ecx, dword [eax - 0xc]
cmp ecx, 0xffffffff
je 0x100dd3c
inc ecx
mov dword [eax - 0xc], ecx
lea eax, [ebp - 0x10]
push 0x5c
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x1f
call fcn.01008eba
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x20
call fcn.01008a01
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x1f
call fcn.01001190
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push str.rmdir__
push eax
call fcn.01008c03
push ebx
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0x21
push eax
call fcn.01008b79
add esp, 0x18
mov eax, dword [eax]
mov byte [ebp - 4], 0x22
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.01008a89
lea ecx, [ebp - 0x10]
call fcn.01001190
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x1f
call fcn.01001190
mov eax, edi
test eax, eax
je 0x100ddc1
push edi
call fcn.0105c0e0
pop ecx
jmp 0x100ddc3
xor eax, eax
push edi
push eax
lea ecx, [ebp - 0x1c]
call fcn.01008a89
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.01008a89
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.01008b79
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.01001190
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x6c]
push 0
push eax
push edi
call fcn.0105c0e0
pop ecx
push eax
push edi
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x48]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0xcc]
rep stosd dword es:[edi], eax
push 0x44
lea ecx, [ebp - 0x64]
pop eax
xor edi, edi
push ecx
lea ecx, [ebp - 0xcc]
push ecx
push esi
push edi
push eax
push edi
push edi
push edi
mov dword [ebp - 0xcc], eax
push dword [ebp - 0x38]
mov dword [ebp - 0xa0], 1
mov word [ebp - 0x9c], di
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x100dead
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push dword [ebp - 0x60]
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push dword [ebp - 0x64]
call ebx
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x60]
call ebx
test byte [ebp + 8], 2
jne 0x100dead
push edi
call fcn.0105d547
lea ecx, [ebp - 0x34]
call fcn.01001190
lea ecx, [ebp - 0x40]
call fcn.01001190
lea ecx, [ebp - 0x1c]
call fcn.01001190
lea ecx, [ebp - 0x44]
call fcn.01001190
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 8
call fcn.01016e63
lea ecx, [ebp - 0x3c]
call fcn.01001190
lea ecx, [ebp - 0x30]
call fcn.01001190
lea ecx, [ebp - 0x2c]
call fcn.01001190
lea ecx, [ebp - 0x20]
call fcn.01001190
lea ecx, [ebp - 0x38]
call fcn.01001190
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.010095e5
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4