joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419af7
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4334f4
call fcn.004269c8
sub esp, 0x634
mov eax, dword [0x44de90]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x424]
mov dword [ebp - 0x640], eax
lea eax, [ebp - 0x320]
mov esi, str.system.ini
push esi
mov dword [ebp - 0x63c], eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x21c]
push eax
push 0x4349c5
push dword [ebp + 8]
xor ebx, ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x634], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x21c]
push eax
call fcn.00425700
test eax, eax
pop ecx
je 0x419ca4
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.00425600
pop ecx
pop ecx
mov dword [ebp - 0x630], ebx
push edi
lea eax, [ebp - 0x424]
push ebx
push eax
mov dword [ebp - 0x638], ebx
call fcn.00425190
push edi
lea eax, [ebp - 0x320]
push ebx
push eax
call fcn.00425190
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.004212f0
add esp, 0x28
push dword [ebp + 0x10]
lea eax, [ebp - 0x424]
push eax
call fcn.0042766e
test eax, eax
pop ecx
pop ecx
jne 0x419c6f
lea eax, [ebp - 0x21c]
push eax
call fcn.00425700
cmp dword [ebp - 0x630], eax
pop ecx
lea eax, [ebp - 0x21c]
jae 0x419c40
push eax
call fcn.004269e7
mov ecx, dword [ebp - 0x638]
mov ebx, eax
mov eax, dword [ebp - 0x630]
add ecx, ebx
add ecx, eax
mov byte [ebp + eax - 0x21c], 0
push ecx
lea eax, [ebp - 0x21c]
push eax
call fcn.00425610
push ebx
call fcn.00425476
add esp, 0x10
xor ebx, ebx
jmp 0x419c4d
push str.explorer.exe
push eax
call fcn.00425600
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
je 0x419c6f
mov dword [ebp - 0x634], 3
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.00425600
mov eax, dword [ebp - 0x638]
push dword [ebp - 0x63c]
add dword [ebp - 0x630], eax
call fcn.00425700
add esp, 0xc
test eax, eax
jne 0x419b8c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x634]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00425221
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419f73
Capabilities:
Create service

Disassembly:
mov eax, 0x433508
call fcn.004269c8
sub esp, 0x124
mov eax, dword [0x44de90]
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push 2
push esi
push esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x124], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x12c], edi
je 0x41a0cd
push esi
push esi
push esi
push esi
push str.Extended_Base
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push dword [ebp + 8]
mov dword [ebp - 0x124], eax
push str.SYSTEMCurrentControlSetServices_
push dword [ebp + 0x18]
call fcn.00425600
pop ecx
pop ecx
push eax
call fcn.00425610
pop ecx
pop ecx
lea eax, [ebp - 0x120]
push eax
push 0x20006
push esi
push dword [ebp + 0x18]
push 0x80000002
call dword [0x451e18]
cmp eax, esi
jne 0x41a0c7
lea eax, [ebp - 0x11c]
push eax
push str.Parameters
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x41a0bf
push dword [ebp + 0x1c]
lea eax, [ebp - 0x118]
push 0x43e7b8
push eax
mov dword [ebp - 0x130], esi
call fcn.00425600
pop ecx
pop ecx
push eax
call fcn.00425610
pop ecx
pop ecx
push 4
lea eax, [ebp - 0x130]
push eax
push 4
push esi
push str.BreakOnEntry
push dword [ebp - 0x11c]
call dword [0x451e20]
lea eax, [ebp - 0x118]
push eax
call fcn.00425700
pop ecx
inc eax
push eax
lea eax, [ebp - 0x118]
push eax
xor ebx, ebx
inc ebx
push ebx
push esi
push str.PendingFileRenameListPath
push dword [ebp - 0x11c]
call dword [0x451e20]
mov dword [ebp - 0x128], ebx
jmp 0x41a0cd
mov dword [ebp - 0x11c], esi
jmp 0x41a0cd
mov dword [ebp - 0x120], esi
cmp dword [ebp - 0x11c], esi
je 0x41a0e1
push dword [ebp - 0x11c]
call dword [0x451e1c]
cmp dword [ebp - 0x120], esi
je 0x41a0f5
push dword [ebp - 0x120]
call dword [0x451e1c]
cmp dword [ebp - 0x124], esi
je 0x41a109
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, esi
je 0x41a114
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x128]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00425221
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a1e6
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, 0x433512
call fcn.004269c8
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0xa
xor esi, esi
push 0x3e7
push esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, esi
je 0x41a291
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, esi
mov dword [ebp - 0x1c], eax
je 0x41a291
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x41a291
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x80
push 2
push esi
push esi
push 0x40010000
push dword [ebp + 8]
mov ebx, eax
call dword [0x451df8]
mov edi, eax
cmp edi, 0xffffffff
je 0x41a27c
push esi
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x1c]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a27c
cmp dword [ebp - 0x1c], esi
jne 0x41a27c
mov dword [ebp - 0x18], 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp edi, 0xffffffff
je 0x41a291
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41a2cf
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x451a2c], 2
jne 0x41a329
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x41a328
push esi
push 0xf01ff
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x41a327
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
pop edi
leave
ret
Function at 0x41a54c
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x433526
call fcn.004269c8
sub esp, 0x31c
mov eax, dword [0x44de90]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
xor esi, esi
mov dword [ebp - 4], ebx
call fcn.004276b1
test eax, eax
pop ecx
pop ecx
je 0x41a74f
mov esi, dword [0x45e260]
xor eax, eax
cmp esi, 0x11
sete al
xor ecx, ecx
cmp esi, 0xd
sete cl
or eax, ecx
je 0x41a741
cmp dword [0x451a2c], 2
jne 0x41a5c0
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x451e10]
jmp 0x41a719
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov esi, 0x104
push esi
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x324], ebx
mov dword [ebp - 0x328], 0xfffffffe
call edi
test eax, eax
jne 0x41a5fd
push dword [ebp + 8]
lea eax, [ebp - 0x21c]
push eax
call fcn.00425600
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 0xc]
call edi
test eax, eax
jne 0x41a61f
push dword [ebp + 0xc]
lea eax, [ebp - 0x118]
push eax
call fcn.00425600
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x320]
push eax
call dword [0x451e00]
lea eax, [ebp - 0x320]
push str.wininit.ini
push eax
call fcn.00425610
pop ecx
pop ecx
mov esi, str.rename
mov eax, dword [ebp - 0x324]
lea ecx, [eax - 2]
mov eax, dword [ebp - 0x328]
cmp eax, ecx
jne 0x41a6ae
add dword [ebp - 0x324], 0x400
lea eax, [ebp - 0x118]
push eax
call fcn.00425700
mov edi, eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00425700
add edi, dword [ebp - 0x324]
lea eax, [eax + edi + 3]
push eax
call fcn.00425520
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x320]
push eax
push dword [ebp - 0x324]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov dword [ebp - 0x328], eax
jmp 0x41a645
lea ecx, [ebp - 0x21c]
push ecx
push 0x434868
lea ecx, [ebp - 0x118]
push ecx
add eax, ebx
push eax
call fcn.00425600
pop ecx
pop ecx
push eax
call fcn.00425610
pop ecx
pop ecx
push eax
call fcn.00425610
lea eax, [ebp - 0x118]
push eax
call fcn.00425700
mov edi, eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00425700
add edi, dword [ebp - 0x328]
add esp, 0x10
add eax, edi
mov byte [eax + ebx + 2], 0
lea eax, [ebp - 0x320]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
push ebx
call fcn.00425476
pop ecx
xor esi, esi
inc esi
jmp 0x41a74f
xor eax, eax
cmp esi, 2
sete al
lea eax, [eax + eax + 2]
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00425221
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a954
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x44de90]
push ebx
push esi
push edi
push str.win.ini
push 0x104
mov dword [ebp + 0x18c], eax
lea eax, [ebp - 0x7c]
push eax
mov ebx, 0x4349c5
push ebx
push dword [ebp + 0x198]
mov edi, str.Windows
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x7c]
push eax
call fcn.00425700
test eax, eax
pop ecx
je 0x41aa46
lea eax, [ebp - 0x7c]
push eax
call fcn.0043109b
push dword [ebp + 0x19c]
lea eax, [ebp + 0x88]
push eax
call fcn.00425600
lea eax, [ebp + 0x88]
push eax
call fcn.0043109b
movsx eax, byte [ebp + 0x88]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00426a30
add esp, 0x18
jmp 0x41aa1e
lea eax, [ebp + 0x88]
push eax
call fcn.00425700
push eax
lea eax, [ebp + 0x88]
push eax
push dword [ebp - 0x80]
call fcn.00427800
add esp, 0x10
test eax, eax
je 0x41aa27
movsx eax, byte [ebp + 0x88]
push eax
mov eax, dword [ebp - 0x80]
inc eax
push eax
call fcn.00426a30
pop ecx
pop ecx
test eax, eax
mov dword [ebp - 0x80], eax
jne 0x41a9e7
jmp 0x41aa46
push str.win.ini
push ebx
push dword [ebp + 0x198]
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffff7
add esi, 0xc
mov ecx, dword [ebp + 0x18c]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.00425221
add ebp, 0x190
leave
ret
Function at 0x41dafa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3d8]
sub esp, 0x458
mov eax, dword [0x44de90]
and dword [ebp - 0x78], 0
push esi
push edi
push 0x12
pop ecx
mov dword [ebp + 0x3d4], eax
lea eax, [ebp - 0x78]
push eax
push 0x20019
push 0
lea eax, [ebp + 0x38c]
push eax
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorerRestrictRun
lea edi, [ebp + 0x38c]
push 0x80000001
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41db4e
xor al, al
jmp 0x41dba4
xor eax, eax
mov byte [ebp - 0x74], 0
mov ecx, 0xff
lea edi, [ebp - 0x73]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push str.54321
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41db4a
lea eax, [ebp - 0x74]
push str.www.bat
push eax
call fcn.00425100
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
mov ecx, dword [ebp + 0x3d4]
pop edi
pop esi
call fcn.00425221
add ebp, 0x3d8
leave
ret

Function at 0x41dbb9
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push 0x43f6ec
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41dbdb
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
ret
Function at 0x41dbee
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
mov eax, 0x433576
call fcn.004269c8
sub esp, 0x2a4
mov eax, dword [0x44de90]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], eax
push 0x105
lea eax, [ebp - 0x2a4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x2a4]
push 0x43f7d8
push eax
call fcn.00425610
lea eax, [ebp - 0x2a4]
push eax
call fcn.0041990f
add esp, 0xc
test al, al
je 0x41ddd1
push ebx
mov esi, 0x80
push esi
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x2a4]
push eax
call dword [0x451df8]
cmp eax, 0xffffffff
mov dword [ebp - 0x2ac], eax
je 0x41ddd1
push 0x1f
pop ecx
mov byte [ebp - 0x94], bl
xor eax, eax
lea edi, [ebp - 0x93]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push dword [ebp - 0x2ac]
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x578
mov byte [ebp - 0x2a5], bl
jbe 0x41dd07
push ebx
push ebx
push 0x4f8
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41dd07
push ebx
lea eax, [ebp - 0x2b0]
push eax
push esi
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41dd07
cmp dword [ebp - 0x2b0], esi
jne 0x41dd07
push esi
lea eax, [ebp - 0x94]
push eax
push str.gmer.sys
call fcn.00425540
add esp, 0xc
test eax, eax
jne 0x41dd07
mov byte [ebp - 0x2a5], 1
push dword [ebp - 0x2ac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x2a5], bl
je 0x41ddd1
lea eax, [ebp - 0x2a4]
push eax
call fcn.0043109b
push 0x41
mov esi, eax
pop ecx
xor eax, eax
mov byte [ebp - 0x19c], bl
lea edi, [ebp - 0x19b]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x19c]
mov dword [esp], 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x19c]
push str.dllcache_beep.sys
push eax
call fcn.00425610
lea eax, [ebp - 0x19c]
push eax
call fcn.0043109b
push esi
push str._s__t_t_Removed:_Backdoor.Win32.UltimateDefender.a.__..._n
mov edi, eax
call fcn.00425036
push esi
call fcn.00402be4
add esp, 0x18
push edi
call fcn.00402be4
pop ecx
push esi
call fcn.0041b113
pop ecx
push edi
call fcn.0041b113
pop ecx
mov al, 1
jmp 0x41ddd3
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00425221
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f74f
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 8
lea eax, [esi + 0x10]
push 0
push eax
call fcn.00425190
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
ret

Function at 0x4201a3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x44de90]
push ebx
push esi
push edi
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], eax
call fcn.0041f74f
mov esi, 0x400
xor ebx, ebx
push esi
lea eax, [ebp - 0x470]
push ebx
push eax
mov dword [ebp - 0x474], ebx
call fcn.00425190
add esp, 0xc
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x42020e
cmp dword [ebp - 0x474], ebx
jbe 0x420227
push dword [ebp - 0x474]
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x70]
call fcn.0041ffe7
push ebx
lea eax, [ebp - 0x474]
push eax
push esi
lea eax, [ebp - 0x470]
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x4201f1
lea ecx, [ebp - 0x70]
call fcn.00420086
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x18]
push eax
call fcn.0041f6d1
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00425221
leave
ret

Function at 0x42024f
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
push 0x28
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42031e
lea eax, [ebp - 0x14]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x420315
mov eax, dword [ebp - 0x14]
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
push esi
push 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp - 8]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], 2
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x420313
lea eax, [ebp - 4]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x30]
push eax
push str.SeShutdownPrivilege
push esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
push esi
lea eax, [ebp - 0x34]
push eax
push esi
push dword [ebp - 4]
call edi
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
pop esi
leave
ret
Function at 0x420324
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x28
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42039b
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x420392
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push esi
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x420392
inc esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret
Function at 0x42095f
Capabilities:
Create process on windows
Shutdown system

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xac
mov eax, dword [0x44de90]
push esi
push edi
push 0x24
mov dword [ebp + 0x74], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 2
pop edi
cmp dword [ebp - 0x10], edi
jne 0x4209fa
lea eax, [ebp - 0x24]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4209f6
lea eax, [ebp - 0x30]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x4209f6
push esi
push esi
push esi
lea eax, [ebp - 0x34]
push eax
push esi
push dword [ebp - 0x24]
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x28], edi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4209f6
push esi
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x420a18
xor al, al
jmp 0x420a1a
xor esi, esi
push esi
push 0x4349c5
push str.shell32.dll_SHExitWindowsEx_6
push str.rundll32.exe
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov al, 1
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
call fcn.00425221
add ebp, 0x78
leave
ret
Function at 0x42299a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 7
push 0x80
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x422aa3
push ebx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp + 0x14]
xor edx, edx
mov dword [ebx], eax
div dword [ebp + 0xc]
mov edi, eax
inc edi
inc edi
shl edi, 4
push edi
call fcn.00425520
pop ecx
mov esi, eax
xor eax, eax
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push 8
lea eax, [ebp - 0x20]
push eax
push 0x90073
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x422a91
mov eax, dword [ebx]
mov ecx, dword [ebp + 0xc]
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
shl eax, 3
push eax
call fcn.00425520
mov edi, dword [esi + 8]
mov ebx, eax
mov eax, dword [esi + 0xc]
xor edx, edx
cmp dword [esi], edx
pop ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], edx
jbe 0x422a91
lea eax, [esi + 0x10]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax]
sub ecx, edi
je 0x422a7c
mov edi, dword [ebp + 0x10]
cmp edx, dword [edi]
jae 0x422a7c
mov edi, dword [ebp - 0x18]
mov dword [ebx + edx*8], edi
mov edi, dword [ebp - 0x14]
dec ecx
mov dword [ebx + edx*8 + 4], edi
inc edx
add dword [ebp - 0x18], 1
adc dword [ebp - 0x14], 0
test ecx, ecx
jne 0x422a5a
mov ecx, dword [eax + 4]
inc dword [ebp - 4]
mov edi, dword [eax]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 4]
add eax, 0x10
cmp ecx, dword [esi]
jb 0x422a48
push esi
call fcn.00425476
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, dword [ebp - 0xc]
pop esi
leave
ret