joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bfb3
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
xor esi, esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp dword [ebp + 0x10], esi
je 0x40bfeb
cdq
jmp 0x40bffe
cmp dword [ebp + 0xc], esi
je 0x40bff8
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
jmp 0x40bffe
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
leave
ret

Function at 0x40c4a3
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebp, dword [esp + 0x38]
mov esi, eax
add esi, ebp
xor ebx, ebx
cmp ebp, 0x4e20
jb 0x40c4cb
push ebx
call fcn.0042a26a
pop ecx
cmp ebp, ebx
jg 0x40c548
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40c552
cmp byte [0x499280], bl
jle 0x40c552
cmp ecx, 0x7d0
jbe 0x40c4ef
mov ecx, 0x3e8
jmp 0x40c4f7
cmp ecx, 0x64
jbe 0x40c4f7
push 0x64
pop ecx
push 0x4bf
push ecx
push ebx
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x40c540
call edi
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x40c548
push 3
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40c548
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [0x499280], bl
jg 0x40c50c
call edi
mov ecx, esi
sub ecx, eax
cmp ecx, ebx
jg 0x40c4d8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 4

Function at 0x40c55e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
push esi
push edi
push 0x325
lea ecx, [ebp - 8]
call fcn.0042e1e2
mov esi, dword [ebp - 8]
push esi
push 0x324
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_CharUpperW]
push ebx
call edi
push esi
call edi
cmp word [esi], 0
je 0x40c5f2
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
add eax, 0x10
mov dword [ebp - 0xc], eax
push esi
call fcn.0040c001
cmp eax, dword [ebp - 0xc]
pop ecx
jb 0x40c5e1
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
je 0x40c5db
dec eax
jne 0x40c5e1
mov ax, word [esi]
mov word [edi + 2], ax
mov cx, word [esi]
xor eax, eax
inc eax
cmp cx, word [ebx]
mov dword [ebp - 4], eax
jb 0x40c5e1
mov esi, eax
jmp 0x40c5f5
mov ax, word [esi]
mov word [edi], ax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x40c5a8
mov esi, dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00428a48
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40ca8d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov esi, 0x485d7c
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
mov edi, 0x49aed0
movsx ax, byte [ebp - 2]
add eax, 0x41
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x40cb27
movsx ebx, byte [ebp - 1]
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x218]
push str.HKLMSYSTEMCurrentControlSetControlSession_ManagerEnvironmentCDROM_u_s
push eax
call esi
add esp, 0x10
push 0
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.00448fce
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x218]
push str.CDROM_u
push eax
call esi
add esp, 0x10
inc byte [ebp - 1]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.0042cbf7
inc byte [ebp - 2]
cmp byte [ebp - 2], 0x1a
jl 0x40cab7
cmp byte [ebp - 1], 0
pop edi
pop esi
pop ebx
jle 0x40cb4b
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
push eax
push eax
push str.THREAD_Envi
call fcn.004228ce
leave
ret

Function at 0x40ce02
Capabilities:
Check mutex on windows

Disassembly:
push esi
push dword [esp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40ce20
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop esi
ret

Function at 0x40ce81
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
add dword [ebp + 8], 2
push esi
push edi
lea ecx, [ebp - 8]
call fcn.0042e1c4
lea ecx, [ebp - 4]
call fcn.0042e1c4
push 0x2c
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov edi, eax
test edi, edi
je 0x40cf62
and word [edi], 0
push ebx
push 1
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov esi, 0x49aed0
mov ecx, esi
call fcn.00437546
mov ebx, dword [ebp - 8]
push 1
push 0
lea eax, [ebp - 4]
push eax
add edi, 2
push edi
mov ecx, esi
mov dword [ebp + 8], ebx
call fcn.00437546
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], esi
je 0x40cf19
lea ecx, [ebp + 8]
call fcn.0040ac34
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push dword [ebp + 8]
push 1
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
jmp 0x40cf55
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call esi
shl eax, 1
push eax
push ebx
push 1
push str.RegisteredOwner
mov edi, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push edi
mov ebx, 0x80000002
push ebx
call fcn.004297ff
add esp, 0x18
push dword [ebp - 0xc]
call esi
shl eax, 1
push eax
push dword [ebp - 0xc]
push 1
push str.RegisteredOrganization
push edi
push ebx
call fcn.004297ff
add esp, 0x18
xor esi, esi
pop ebx
jmp 0x40cf65
xor esi, esi
inc esi
lea ecx, [ebp - 4]
call fcn.00428a48
lea ecx, [ebp - 8]
call fcn.00428a48
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x40d46c
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jge 0x40d47d
call fcn.0040d411
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, dword [esp + 0xc]
jg 0x40d491
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
dec eax
js 0x40d49d
inc eax
xor word [esi], di
inc esi
inc esi
dec eax
jne 0x40d495
mov eax, edi
pop edi
shl eax, 0x10
pop esi
ret

Function at 0x40d5c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
and dword [ebp - 8], 0
or dword [ebp - 4], 0xffffffff
and dword [ebp - 0x10], 0
cmp byte [0x49af80], 0
mov dword [ebp - 0xc], 4
jne 0x40d68c
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
mov ebx, str.SysStartuped
push ebx
mov edi, str.SOFTWAREPELOGON
push edi
mov esi, 0x80000002
push esi
mov byte [0x49af80], 1
call fcn.00429788
add esp, 0x18
cmp dword [ebp - 8], 0
jne 0x40d689
push 1
push 0x25
lea eax, [ebp - 0x2e0]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.SysStartup.ini
lea eax, [ebp - 0x2e0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x2e0]
push eax
call fcn.00470011
test eax, eax
pop ecx
je 0x40d661
mov dword [ebp - 4], 1
push 4
lea eax, [ebp - 4]
push eax
push 4
push ebx
push edi
push esi
call fcn.004297ff
add esp, 0x18
cmp dword [ebp - 4], 1
jne 0x40d689
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2e0]
push eax
call fcn.0041e615
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d7c2
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp dword [0x49add0], 0
jne 0x40d7e5
push 0
push dword [0x49addc]
push 0x40d70a
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x49add0], eax
ret

Function at 0x40dbaf
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
jne 0x40dbca
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
push esi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x22c], 0x22c
mov dword [ebp - 0x228], ebx
mov ecx, 0x89
lea edi, [ebp - 0x224]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40dc19
cmp dword [ebp - 0x224], esi
je 0x40dc1f
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40dc04
jmp 0x40dc25
mov ebx, dword [ebp - 0x214]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
dec dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0
mov esi, ebx
jg 0x40dbca
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40dd12
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push edi
je 0x40dd36
cmp dword [ebp + 0xc], 2
jne 0x40dd65
mov edi, dword [ebp + 0x14]
push 0x104
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x40dd39
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x18], 0
je 0x40dd49
push dword [ebp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi + 2]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
push esi
mov ecx, 0x49aed0
call fcn.0042cbf7
pop esi
pop edi
pop ebp
ret

Function at 0x40ddf8
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x411
lea ecx, [ebp - 4]
mov byte [0x49aedd], 1
call fcn.0042e1e2
push 0x822
push 0
push dword [ebp - 4]
call fcn.00470340
mov edi, dword [ebp - 4]
add esp, 0xc
push 0x104
add edi, 0x410
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.PE_IDBASE
push 0x1000
mov esi, 0x49aed0
push esi
call fcn.00430102
push str.WM_PE_BASE
push 0x5000
push esi
call fcn.00430102
push str.PE_MENU_IDBASE
push 0x100
push esi
call fcn.00430102
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add esp, 0x24
push edi
push 0x486122
call esi
push edi
mov ebx, 0x49aed0
push str.MyName
mov ecx, ebx
call fcn.0042cbf7
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
xor edi, edi
cmp eax, edi
je 0x40debf
lea edi, [eax + 2]
push edi
push 0x48610e
call esi
push edi
push str.MyName0
mov ecx, ebx
call fcn.0042cbf7
xor edi, edi
push edi
push edi
push str.Desktop
call fcn.0040dd68
push edi
push edi
push str.Favorites
call fcn.0040dd68
push edi
push edi
push str.Programs
call fcn.0040dd68
push edi
push edi
push str.SendTo
call fcn.0040dd68
push edi
push edi
push str.Personal
call fcn.0040dd68
push edi
push str.Start_Menu
push 0x48581c
call fcn.0040dd68
add esp, 0x48
push edi
push str.Cache
push str.IECache
call fcn.0040dd68
push edi
push edi
push str.Startup
call fcn.0040dd68
push str.MicrosoftInternet_ExplorerQuick_Launch
push str.AppData
push str.QuickLaunch
call fcn.0040dd68
add esp, 0x24
lea ecx, [ebp - 4]
call fcn.00428a48
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40df80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14b8
call fcn.00470d80
push esi
mov esi, 0x499284
and word [ebp - 0x14b8], 0
mov edx, dword [esi]
mov word [ebp - 0x64], 0x26
lea ecx, [ebp - 0x62]
movsx ax, byte [edx]
mov word [ecx], ax
inc ecx
inc ecx
inc edx
test ax, ax
jne 0x40dfa6
push 0xa28
lea eax, [ebp - 0x14b8]
push eax
lea eax, [ebp - 0x62]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x14b8]
push eax
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x49aed0
call fcn.0042cbf7
add esi, 4
cmp esi, 0x499298
jl 0x40df93
pop esi
leave
ret
Function at 0x40dfee
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xd0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [0x49afdc], eax
call fcn.0040b096
call fcn.0047128a
xor ebx, ebx
mov esi, 0x49aed0
push ebx
mov ecx, esi
call fcn.0040bb89
call fcn.00404356
mov edi, 0x49b604
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x49ac28]
or eax, dword [0x49ac2c]
jne 0x40e049
push 0x49ac28
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x49ac30
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0x49ae54
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
call fcn.0040acc1
push ebx
push 0x2be0
call fcn.0040df70
push 0xd6faf
push 0x311f1
lea eax, [ebp - 0x60]
push str._06lu_06lu
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x60]
push eax
push 0x48628e
mov ecx, esi
call fcn.0042cbf7
lea eax, [ebp - 0x60]
push eax
push str.PECMDVER
mov ecx, esi
call fcn.0042cbf7
push str.X86_U
lea ecx, [ebp + 0x68]
call fcn.0043a4ba
push dword [0x4990c0]
lea ecx, [ebp + 0x68]
call fcn.0042e232
push dword [ebp + 0x68]
mov ecx, esi
push 0x486264
call fcn.0042cbf7
push 0x486260
push 0x486250
mov ecx, esi
call fcn.0042cc47
push ebx
push 0x2bed
call fcn.0040df70
call fcn.0040ddf8
push ebx
push 0x2bef
call fcn.0040df70
mov eax, dword [ebp + 0x78]
mov dword [0x49addc], eax
mov eax, dword [ebp + 0x7c]
mov dword [0x49925c], eax
call fcn.00429024
push str.WM_TaskbarRestart
push dword [0x49afe8]
mov esi, 0x49aed0
push esi
call fcn.004300d6
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add esp, 0x1c
push str.__PID
call edi
push eax
push esi
call fcn.004300d6
add esp, 0xc
push str.__PPID
call edi
push eax
call fcn.00403d6c
pop ecx
push eax
push esi
call fcn.004300d6
push str.__HINST
push dword [0x49addc]
push esi
call fcn.004300d6
add esp, 0x18
push 0x4861e4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push esi
call fcn.004300d6
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x2bf8
push ebx
push eax
call fcn.0040df70
movzx eax, word [0x49e010]
push str.SYSCODEPAGE
push eax
push esi
call fcn.004300d6
add esp, 0x14
push 0x20a
lea ecx, [ebp + 0x6c]
call fcn.0042e1e2
push dword [ebp + 0x6c]
mov edi, 0x208
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push dword [ebp + 0x6c]
mov ecx, esi
push 0x4861b4
call fcn.0042cc47
push dword [ebp + 0x6c]
mov ecx, esi
push 0x4861a8
call fcn.0042cc47
mov eax, dword [ebp + 0x6c]
mov word [eax + 4], bx
push dword [ebp + 0x6c]
mov ecx, esi
push str.CurDrv
call fcn.0042cc47
mov eax, dword [ebp + 0x6c]
push edi
push eax
push ebx
mov word [eax], bx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [ebp + 0x6c]
mov ecx, esi
push str.CurFile
call fcn.0042cc47
call fcn.0040df80
lea ecx, [ebp + 0x6c]
call fcn.00428a48
lea ecx, [ebp + 0x68]
call fcn.00428a48
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret
Function at 0x40ec43
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 6
pop ecx
mov esi, str.format.com
lea edi, [ebp - 0x8c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call esi
push dword [ebp + 8]
mov edi, eax
call esi
add eax, edi
lea eax, [eax + eax + 0x1a]
add eax, 0x1e
push eax
lea ecx, [ebp - 8]
call fcn.0042e06b
mov edx, dword [ebp - 8]
push 0x10
pop ecx
xor eax, eax
mov dword [ebp - 0x74], 0x44
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
and word [ebp - 0x44], ax
or dword [ebp - 0x48], 1
lea eax, [ebp - 0x8c]
push eax
push edx
mov dword [ebp + 0xc], edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp + 0xc]
call edi
push 0x4850e8
push dword [ebp + 0xc]
call edi
cmp word [ebx], 0x22
jne 0x40ece6
inc ebx
inc ebx
push ebx
call esi
test eax, eax
jle 0x40ece6
lea eax, [ebx + eax*2 - 2]
cmp word [eax], 0x22
jne 0x40ece6
and word [eax], 0
push ebx
push dword [ebp + 0xc]
call edi
push 0x486b7c
push ebx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40ed06
push 0x486b70
push dword [ebp + 0xc]
call edi
mov eax, dword [ebp + 8]
mov ax, word [eax]
mov esi, str..D:
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], 8
mov word [ebp - 0x28], ax
mov dword [ebp + 8], 0x12b
mov ebx, 0x49aed0
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push 0x80000000
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x40ed61
push 0x64
mov ecx, ebx
call fcn.0040c4a3
dec dword [ebp + 8]
jns 0x40ed2f
jmp 0x40ed64
push eax
call esi
mov dword [ebp - 0x10], 2
mov dword [ebp + 8], 0x1d
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40eda4
push str.Cannot_format_drive:
call fcn.0040e587
dec dword [ebp - 0x10]
pop ecx
jns 0x40edd4
push 8
pop esi
jmp 0x40ede5
push dword [ebp - 0x1c]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x20]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 4]
push dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
call esi
cmp dword [ebp - 4], edi
je 0x40ede2
push 0x64
mov ecx, ebx
call fcn.0040c4a3
dec dword [ebp + 8]
jns 0x40ed72
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 8]
call fcn.00428a48
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40fdb8
Capabilities:
Acquire debug privileges

Disassembly:
cmp byte [ecx], 0
je 0x40fdd2
and byte [0x49b1c8], 0xfb
push 4
push str.SeDebugPrivilege
call fcn.0040e27e
pop ecx
pop ecx
ret

Function at 0x40fdd3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, 0x49b604
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.0040304d
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
pop ecx
push 0x5c
push dword [ebp + 8]
mov byte [ebp - 4], al
jmp 0x40fe2b
push dword [ebp + 8]
and word [esi], 0
call fcn.0046fe88
test eax, eax
pop ecx
jne 0x40fe20
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [esi], 0x5c
push 0x5c
add esi, 2
push esi
call edi
mov esi, eax
test esi, esi
jne 0x40fe05
cmp byte [ebp - 4], al
je 0x40fe41
push dword [ebp - 8]
call fcn.0040305e
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x40ff87
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x40ffae
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.0040b93c
test eax, eax
je 0x40ffae
call fcn.0040b9c3
test eax, eax
mov dword [esp + 0xc], eax
jne 0x40ffb5
xor eax, eax
jmp 0x410077
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x34]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebp
push edi
push 0x40
mov ebp, 0x3000
push ebp
push eax
push ecx
call ebx
mov edi, eax
test edi, edi
jne 0x40ffed
push 0x40
push ebp
push dword [esp + 0x20]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x40ffed
xor eax, eax
jmp 0x410074
push dword [esp + 0x14]
mov ecx, esi
push edi
call fcn.0040ba34
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp dword [eax + 0xa0], ebx
jbe 0x41001a
cmp dword [eax + 0xa4], ebx
jbe 0x41001a
push edi
mov ecx, esi
call fcn.0040b7fe
test eax, eax
je 0x40ffe6
push edi
mov ecx, esi
call fcn.0040b85d
test eax, eax
jne 0x410035
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40ffe6
mov eax, dword [esi + 0x10]
mov dword [eax + 0x34], edi
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x28]
push ebx
xor ebp, ebp
inc ebp
push ebp
add eax, edi
push edi
mov dword [esi + 4], eax
call eax
test eax, eax
jne 0x41006d
push ebx
push ebx
push edi
call dword [esi + 4]
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [esi + 4], ebx
jmp 0x40ffe6
mov dword [esi], ebp
mov dword [esi + 8], edi
mov eax, ebp
pop edi
pop ebp
pop ebx
pop esi
ret 8

Function at 0x4100ee
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push 0x40
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00470340
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp dword [ebp + 8], 0
je 0x410123
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
leave
ret
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
leave
ret
Function at 0x4101ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0x18]
test ebx, ebx
push esi
push edi
mov dword [ebp - 0xc], 0x20
jne 0x4101d4
lea ebx, [ebp - 0xc]
push dword [ebp + 0x10]
mov ax, word [ebx + 2]
push dword [ebp + 0xc]
mov word [ebp - 8], ax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4101ff
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
jmp 0x410201
xor edi, edi
test esi, esi
je 0x410211
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x410213
xor eax, eax
xor cl, cl
test byte [ebx], 1
mov byte [ebp + 0x1b], cl
je 0x41022f
test eax, eax
je 0x410312
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov cl, byte [ebp + 0x1b]
mov esi, eax
test esi, esi
mov dword [ebp - 4], eax
je 0x410312
test edi, edi
jle 0x410312
test byte [ebx], 0x40
jne 0x4102a2
push 0
push edi
push esi
call fcn.0042b070
add esp, 0xc
test al, al
mov byte [ebp + 0x1b], al
je 0x4102a2
test byte [ebx], 0x20
je 0x41026c
test al, 2
je 0x41026c
xor eax, eax
jmp 0x41031b
push 0
lea ecx, [ebp - 0x18]
call fcn.0043a46d
movzx eax, word [ebx + 2]
push eax
mov dword [ebp - 0x18], esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call fcn.004314af
and dword [ebp - 0x18], 0
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00428a48
jmp 0x4102e1
mov esi, dword [ebp + 0x14]
lea eax, [edi + 0x410]
push eax
mov ecx, esi
call fcn.0042e092
push edi
push dword [ebp - 4]
mov dword [esi + 8], edi
push dword [esi]
mov dword [esi + 4], edi
call fcn.00470580
add esp, 0xc
cmp word [ebp - 8], 0
je 0x4102e1
movzx eax, word [ebp - 8]
inc edi
shr edi, 1
push edi
push eax
push dword [esi]
call fcn.0040d46c
add esp, 0xc
mov eax, dword [esi + 4]
mov edi, dword [esi]
lea ecx, [eax + 0x10]
push 0x10
add eax, edi
push 0
push eax
mov dword [esi + 8], ecx
call fcn.00470340
movsx eax, word [ebx + 2]
push 0xc
push eax
mov eax, dword [esi + 4]
add eax, dword [esi]
push eax
call fcn.00470340
mov cl, byte [ebp + 0x1b]
add esp, 0x18
jmp 0x410314
xor edi, edi
and ecx, 2
or dword [ebx], ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret