joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fdc6
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.0043dd9c
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 0x40fe5a
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
add eax, 0x10
mov dword [ebp - 0xc], eax
push esi
call fcn.0040f5f6
cmp eax, dword [ebp - 0xc]
pop ecx
jb 0x40fe49
push esi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
dec eax
dec eax
je 0x40fe43
dec eax
jne 0x40fe49
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 0x40fe49
mov esi, eax
jmp 0x40fe5d
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 0x40fe10
mov esi, dword [ebp - 4]
lea ecx, [ebp - 8]
call fcn.00437e1a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x410213
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x410244
xor eax, eax
jmp 0x4102b3
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push 0x40
lea eax, [ebp - 0x48]
push eax
push ebx
mov dword [ebp - 8], edi
call esi
cmp dword [ebp - 4], 0x40
jne 0x4102a8
cmp word [ebp - 0x48], 0x5a4d
jne 0x4102a8
push edi
push edi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
je 0x4102a8
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0xf8
push edi
lea eax, [ebp - 0x140]
push eax
push ebx
call esi
cmp dword [ebp - 4], edi
jne 0x4102a8
cmp dword [ebp - 0x140], 0x4550
jne 0x4102a8
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x410309
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x41033f
push dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x410338
mov eax, dword [esp + 0x10]
test eax, eax
je 0x410338
and dword [eax], 0
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
ret
Function at 0x410341
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x20a
lea ecx, [ebp - 4]
call fcn.0043dd9c
mov eax, dword [ebp - 4]
mov word [eax], 0x20
mov eax, dword [ebp - 4]
and word [eax + 2], 0
mov eax, dword [ebp - 4]
push 0x208
add eax, 2
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
push str.System32OnShutdown.wcs
lea ecx, [ebp - 4]
call fcn.0043ddea
mov bl, byte [ebp + 0xc]
test bl, 0x20
mov esi, str.unknown
je 0x41039c
mov esi, 0x4a7628
test bl, 0x10
je 0x4103a6
mov esi, str.reboot
test bl, 2
je 0x4103b0
mov esi, str.logout
test bl, 4
je 0x4103ba
mov esi, str.suspend
test bl, 8
je 0x4103c4
mov esi, str.hiber
test bl, 0x40
je 0x4103ce
mov esi, str.poweroff
test bl, bl
jns 0x4103d7
mov esi, str.lock
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push esi
lea ecx, [ebp - 4]
mov edi, eax
call fcn.0043ddea
push 0x4a7360
lea ecx, [ebp - 4]
call fcn.0043ddea
cmp dword [ebp + 8], 0
je 0x410409
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.0043ddea
push dword [ebp - 4]
mov esi, 0x4c0fb8
mov ecx, esi
call fcn.0042f370
push str._25INDATA
lea ecx, [ebp - 8]
call fcn.00446497
mov eax, dword [ebp - 4]
lea eax, [eax + edi*2]
push eax
lea ecx, [ebp - 8]
call fcn.0043ddea
test bl, 0x70
je 0x410443
push dword [ebp - 8]
mov ecx, esi
call fcn.0042f370
lea ecx, [ebp - 8]
call fcn.00437e1a
lea ecx, [ebp - 4]
call fcn.00437e1a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x410508
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
mov esi, 0x4a8c7c
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, 0x4c0fb8
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 0x4105a2
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.00456701
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.0043d658
inc byte [ebp - 2]
cmp byte [ebp - 2], 0x1a
jl 0x410532
cmp byte [ebp - 1], 0
pop edi
pop esi
pop ebx
jle 0x4105c6
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
push eax
push eax
push str.THREAD_Envi
call fcn.0042d06c
leave
ret
Function at 0x410a08
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.0043dd7e
lea ecx, [ebp - 4]
call fcn.0043dd7e
push 0x2c
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov edi, eax
cmp edi, esi
je 0x410aea
push ebx
push 1
push esi
lea eax, [ebp - 8]
mov word [edi], si
push eax
push dword [ebp + 8]
mov esi, 0x4c0fb8
mov ecx, esi
call fcn.0044c8eb
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.0044c8eb
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], esi
je 0x410aa1
lea ecx, [ebp + 8]
call fcn.0040e2c3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add eax, eax
push eax
push dword [ebp + 8]
push 1
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
jmp 0x410add
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
push ebx
call esi
add eax, eax
push eax
push ebx
push 1
push str.RegisteredOwner
mov edi, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push edi
mov ebx, 0x80000002
push ebx
call fcn.00439000
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.00439000
add esp, 0x18
xor esi, esi
pop ebx
jmp 0x410aed
xor esi, esi
inc esi
lea ecx, [ebp - 4]
call fcn.00437e1a
lea ecx, [ebp - 8]
call fcn.00437e1a
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x411027
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jge 0x411038
call fcn.00410fcc
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, dword [esp + 0xc]
jg 0x41104c
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
dec eax
js 0x411058
inc eax
xor word [esi], di
inc esi
inc esi
dec eax
jne 0x411050
mov eax, edi
pop edi
shl eax, 0x10
pop esi
ret

Function at 0x4111e9
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp dword [0x4c0e90], 0
jne 0x41120c
push 0
push dword [0x4c0ea0]
push 0x4110e8
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4c0e90], eax
ret

Function at 0x41137d
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 0x411398
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 0x4113e7
cmp dword [ebp - 0x224], esi
je 0x4113ed
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x4113d2
jmp 0x4113f3
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 0x411398
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x411794
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 [0x4c0fc3], 1
call fcn.0043dd9c
push 0x822
push 0
push dword [ebp - 4]
call fcn.00492e00
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, 0x4c0fb8
push esi
call fcn.00440266
push str.WM_PE_BASE
push 0x5000
push esi
call fcn.00440266
push str.PE_MENU_IDBASE
push 0x100
push esi
call fcn.00440266
mov esi, dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
add esp, 0x24
push edi
push 0x4a911a
call esi
push edi
mov ebx, 0x4c0fb8
push str.MyName
mov ecx, ebx
call fcn.0043d658
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
xor edi, edi
cmp eax, edi
je 0x41185b
lea edi, [eax + 2]
push edi
push 0x4a9106
call esi
push edi
push str.MyName0
mov ecx, ebx
call fcn.0043d658
xor edi, edi
push edi
push edi
push str.Desktop
call fcn.004116e1
push edi
push edi
push str.Favorites
call fcn.004116e1
push edi
push edi
push str.Programs
call fcn.004116e1
push edi
push edi
push str.SendTo
call fcn.004116e1
push edi
push edi
push str.Personal
call fcn.004116e1
push edi
push str.Start_Menu
push 0x4a86d0
call fcn.004116e1
add esp, 0x48
push edi
push str.Cache
push str.IECache
call fcn.004116e1
push edi
push edi
push str.Startup
call fcn.004116e1
push str.MicrosoftInternet_ExplorerQuick_Launch
push str.AppData
push str.QuickLaunch
call fcn.004116e1
add esp, 0x24
lea ecx, [ebp - 4]
call fcn.00437e1a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411946
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14b8
call fcn.004931e0
push esi
mov esi, 0x4bf2c4
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 0x41196c
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, 0x4c0fb8
call fcn.0043d658
add esi, 4
cmp esi, 0x4bf2d8
jl 0x411959
pop esi
leave
ret
Function at 0x412427
Capabilities:
Check if file exists
Unmount volume via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp ebx, edi
jne 0x412481
push 0xc0000000
push dword [ebp + 8]
call dword [0x4c0f6c]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412564
push 0x80000000
push dword [ebp + 8]
call dword [0x4c0f6c]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412564
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ecx, ecx
cmp eax, 2
setne cl
inc ecx
mov eax, ecx
jmp 0x4125f2
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
push ebx
call esi
cmp eax, 2
jne 0x41249b
xor eax, eax
cmp word [ebx + 2], 0x3a
sete al
jmp 0x4124bc
push ebx
call esi
cmp eax, 3
jne 0x4124ba
lea eax, [ebx + 2]
push 0x4a96a4
push eax
call fcn.0049321d
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x4124bc
xor eax, eax
cmp eax, edi
je 0x412517
mov ax, word [ebx]
mov esi, str.._:
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
movsd dword es:[edi], dword [esi]
mov ebx, 0x20000000
push ebx
push 3
push 0
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.DLL_CreateFileW]
push 3
mov word [ebp - 0x10], ax
push 0xc0000000
lea eax, [ebp - 0x18]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x412562
push 0
push ebx
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x18]
push eax
call edi
mov esi, eax
xor edi, edi
jmp 0x412462
push 0xc0000000
push ebx
call dword [0x4c0f70]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412564
push 0x80000000
push ebx
call dword [0x4c0f70]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412564
call dword [sym.imp.KERNEL32.DLL_GetLastError]
dec eax
je 0x41255a
sub eax, 0x56
je 0x41255a
sub eax, 0x3a
je 0x41255a
sub eax, 0x7a
je 0x41255a
sub eax, 0x101b
push 9
pop eax
jmp 0x4125f2
xor edi, edi
push esi
call fcn.00411e86
test eax, eax
pop ecx
jne 0x41257d
push 5
pop edi
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
jmp 0x4125f2
test byte [ebp + 0x10], 3
mov ebx, dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
je 0x4125be
push esi
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
push edi
lea eax, [ebp + 0xc]
push eax
push edi
push edi
push edi
push edi
push 0x90018
push esi
call ebx
test eax, eax
jne 0x4125a9
push 2
jmp 0x412571
push edi
lea eax, [ebp + 0xc]
push eax
push edi
push edi
push edi
push edi
push 0x90020
push esi
call ebx
test eax, eax
je 0x4125a5
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 8
lea eax, [ebp - 8]
push eax
push 8
push eax
push 0x83722014
push esi
call ebx
cmp dword [ebp - 8], edi
je 0x4125e9
push 3
jmp 0x412571
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4125f7
Capabilities:
Check if file exists
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
xor eax, eax
cmp esi, ebx
mov dword [ebp - 0x34], ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jne 0x41265b
push 0xc0000000
push dword [ebp + 8]
call dword [0x4c0f6c]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41273a
push 0x80000000
push dword [ebp + 8]
call dword [0x4c0f6c]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41273a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ecx, ecx
cmp eax, 2
setne cl
inc ecx
mov eax, ecx
jmp 0x4127da
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
push esi
call edi
cmp eax, 2
jne 0x412675
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x412696
push esi
call edi
cmp eax, 3
jne 0x412694
lea eax, [esi + 2]
push 0x4a96a4
push eax
call fcn.0049321d
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x412696
xor eax, eax
cmp eax, ebx
je 0x4126ef
mov eax, dword [ebp + 0xc]
mov ax, word [eax]
mov esi, str.._:
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
push 0x20000000
movsd dword es:[edi], dword [esi]
push 3
push ebx
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.DLL_CreateFileW]
push 3
mov word [ebp - 0x1c], ax
push 0xc0000000
lea eax, [ebp - 0x24]
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x41273a
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x24]
push eax
call esi
jmp 0x41263a
push 0xc0000000
push esi
call dword [0x4c0f70]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41273a
push 0x80000000
push esi
call dword [0x4c0f70]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41273a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
dec eax
je 0x412732
sub eax, 0x56
je 0x412732
sub eax, 0x3a
je 0x412732
sub eax, 0x7a
je 0x412732
sub eax, 0x101b
push 9
pop eax
jmp 0x4127da
mov eax, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x10
lea eax, [ebp - 0x34]
push eax
push 0x7c0d0
push edi
mov dword [ebp - 0x34], 1
call esi
test eax, eax
jne 0x412771
push 3
pop ebx
jmp 0x4127d1
push ebx
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x7405c
push edi
call esi
test eax, eax
je 0x4127a3
push ebx
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x4c]
push eax
push ebx
push ebx
push 0x70000
push edi
call esi
test eax, eax
jne 0x4127a7
push 2
jmp 0x41276e
push ebx
push dword [ebp - 0x38]
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.00492e60
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 8
lea eax, [ebp - 0x14]
push eax
push 0x900f0
push edi
mov dword [ebp - 0x10], edx
call esi
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412b79
Capabilities:
Acquire debug privileges

Disassembly:
cmp byte [ecx], 0
je 0x412b96
and byte [0x4c1bf0], 0xfb
push 0
push 4
push str.SeDebugPrivilege
call fcn.004119f4
add esp, 0xc
ret

Function at 0x412d86
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, 0x4c1b94
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.00403cdd
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
pop ecx
push 0x5c
push dword [ebp + 8]
mov byte [ebp - 4], al
jmp 0x412dde
push dword [ebp + 8]
and word [esi], 0
call fcn.004925aa
test eax, eax
pop ecx
jne 0x412dd3
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 0x412db8
cmp byte [ebp - 4], al
je 0x412df4
push dword [ebp - 8]
call fcn.00403cee
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 0x412f3b
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
movzx ecx, word [eax + 6]
mov eax, dword [eax + 0x54]
push edi
mov edi, dword [ebp + 8]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*8]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0041286c
mov eax, dword [esi + 0x14]
xor ebx, ebx
add esp, 0xc
cmp word [eax + 6], bx
mov dword [ebp - 4], ebx
jbe 0x412fde
mov eax, dword [esi + 0x18]
add eax, ebx
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x412fcc
mov edx, dword [eax + 0x10]
test edx, edx
je 0x412fcc
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 0xc]
push edx
add edi, ecx
push eax
push edi
call fcn.0041286c
mov eax, dword [esi + 0x18]
add esp, 0xc
add eax, ebx
push str..rsrc
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpA]
test eax, eax
jne 0x412fc9
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x18]
sub edi, eax
lea ecx, [ecx + ebx + 0xc]
lea edx, [edi + eax]
add dword [ecx], edx
mov ecx, dword [esi + 0x18]
lea ecx, [ecx + ebx + 0x14]
add edi, eax
add dword [ecx], edi
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
movzx eax, word [eax + 6]
inc dword [ebp - 4]
add ebx, 0x28
cmp dword [ebp - 4], eax
jl 0x412f72
mov dword [esi + 0x10], edi
mov eax, dword [edi + 0x3c]
add eax, edi
mov dword [esi + 0x14], eax
add eax, 0xf8
pop edi
mov dword [esi + 0x18], eax
pop esi
pop ebx
leave
ret 8

Function at 0x41329d
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.00492e00
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 0x4132d2
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 0x41765a
Capabilities:
Check mutex on windows

Disassembly:
test byte [0x4c4003], 1
je 0x417672
push str.UCallBackhWnd
call fcn.00410910
test eax, eax
pop ecx
jne 0x417675
xor eax, eax
ret
push edi
push str.GlobalPECMD:main_u
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov edi, eax
test edi, edi
je 0x4176b0
push esi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
sub esi, 0xb7
neg esi
sbb esi, esi
push edi
inc esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test esi, esi
pop esi
jne 0x4176b0
xor eax, eax
inc eax
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x418539
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, eax
add esi, 0x84
lea eax, [esi + 0x325]
push eax
lea ecx, [ebp - 0xc]
call fcn.0043dd9c
cmp word [edi], 0x5c
mov ebx, dword [ebp - 0xc]
push 2
pop eax
mov dword [ebp - 4], ebx
lea ebx, [ebx + esi*2]
mov dword [ebp - 8], eax
jne 0x41861c
and dword [ebp + 8], 0
push 0x2c
add edi, eax
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov esi, eax
test esi, esi
je 0x4185ab
and word [esi], 0
inc esi
inc esi
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
movzx esi, word [esi]
test si, si
je 0x4185ab
mov dword [ebp + 8], esi
push edi
call fcn.0041161a
pop ecx
push ebx
push 0x324
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
cmp word [ebx], 0
mov esi, ebx
je 0x418683
mov ax, word [ebp + 8]
cmp word [esi], ax
jb 0x418609
mov ebx, dword [ebp - 4]
push edi
push esi
push str._s_sFonts
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
push ebx
call fcn.004925aa
add esp, 0x14
test eax, eax
je 0x418609
push 0x4a9b44
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push ebx
call fcn.00418481
pop ecx
mov dword [ebp - 8], eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x4185cc
jmp 0x418683
push edi
call fcn.0041161a
and dword [ebp + 8], 0
mov esi, eax
push esi
call fcn.004925aa
test eax, eax
pop ecx
pop ecx
je 0x41864d
push esi
lea ecx, [ebp + 8]
call fcn.0044655b
push 0x4a9b44
lea ecx, [ebp + 8]
call fcn.0043ddea
mov esi, dword [ebp + 8]
push esi
push 0x4aa110
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.0040ea8a
push esi
call fcn.004925aa
add esp, 0x14
test eax, eax
je 0x41867b
push dword [ebp - 4]
call fcn.00418481
pop ecx
mov dword [ebp - 8], eax
lea ecx, [ebp + 8]
call fcn.00437e1a
lea ecx, [ebp - 0xc]
call fcn.00437e1a
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret