joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b182
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4e0841
call fcn.004daf98
sub esp, 0xc
push ebx
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
xor edi, edi
push eax
mov dword [ebp - 0x14], edi
call fcn.0045b20c
add esp, 0xc
mov dword [ebp - 4], edi
cmp dword [esi], edi
je 0x45b1e9
mov eax, esi
push dword [eax]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040b374
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
mov eax, dword [ebp - 0x18]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.0040763c
test bl, bl
jne 0x45b1f0
inc edi
lea eax, [esi + edi*4]
cmp dword [eax], 0
jne 0x45b1b1
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040763c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x45b5da
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4e0841
call fcn.004daf98
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
xor esi, esi
xor edi, edi
mov dword [ebp - 0x14], str.QQPCRTP
call fcn.0045b647
pop ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
je 0x45b62f
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45b62c
push dword [ebp + esi*4 - 0x14]
call fcn.0040ad0c
test eax, eax
pop ecx
jne 0x45b629
inc esi
cmp esi, 1
jb 0x45b613
jmp 0x45b62c
xor edi, edi
inc edi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040763c
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 4]
lea edi, [ebp - 0x10]
lea esi, [ebp - 8]
mov dword [ebp - 0xc], eax
call fcn.00476a2a
test al, al
je 0x45bd20
mov edi, dword [ebp - 8]
test edi, edi
jne 0x45bcd2
call fcn.004949bc
mov esi, dword [ebp - 4]
cmp esi, dword [edi + 4]
jne 0x45bcdf
call fcn.004949bc
mov esi, dword [esi + 8]
test esi, esi
je 0x45bd0a
cmp dword [esi + 0xc], 0
jne 0x45bd0a
call ebx
sub eax, dword [esi + 8]
cmp eax, dword [esi + 4]
jb 0x45bd13
call ebx
mov ecx, dword [esi]
test ecx, ecx
mov dword [esi + 8], eax
je 0x45bd13
push dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax]
jmp 0x45bd13
mov eax, dword [ebp + 8]
push esi
call fcn.0045bd27
lea esi, [ebp - 8]
call fcn.00453ddc
mov eax, dword [ebp + 0xc]
jmp 0x45bcb1
pop edi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
mov ecx, esi
call fcn.0045c0ec
test al, al
jne 0x45c087
ret
cmp dword [esi + 0x1c], 0
push edi
jbe 0x45c093
mov edi, dword [esi + 0xc]
jmp 0x45c096
mov edi, dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [esi + 0x10]
cmp eax, edi
sbb eax, eax
inc eax
pop edi
ret
Function at 0x45ca09
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
je 0x45ca49
push esi
call fcn.0045d2d1
test al, al
jne 0x45ca49
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call edi
mov ebx, eax
jmp 0x45ca38
call edi
sub eax, ebx
cmp eax, dword [esp + 0x14]
jae 0x45ca47
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
push dword [esp + 0x10]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
test al, al
jne 0x45ca26
pop edi
pop ebx
pop esi
ret 8

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

Disassembly:
push esi
mov esi, ecx
push esi
call fcn.0045d2d1
test al, al
je 0x45ca68
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
neg al
sbb eax, eax
inc eax
jmp 0x45ca9d
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call edi
mov ebp, eax
xor bl, bl
jmp 0x45ca8b
call edi
sub eax, ebp
cmp eax, dword [esp + 0x14]
jae 0x45ca98
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
test al, al
jne 0x45ca79
mov bl, 1
pop edi
pop ebp
mov al, bl
pop ebx
pop esi
ret 4

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
or eax, dword [ebp + 0xc]
push esi
mov esi, ecx
je 0x45ce09
push esi
call fcn.0045d2d1
test al, al
jne 0x45ce09
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call edi
mov ebx, eax
jmp 0x45cdf6
call edi
sub eax, ebx
cmp eax, dword [ebp + 0x10]
jae 0x45ce07
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
push dword [ebp + 0xc]
mov eax, dword [esi]
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 0x30]
test al, al
jne 0x45cde5
pop edi
pop ebx
pop esi
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
push esi
mov esi, ecx
je 0x45ce54
push esi
call fcn.0045d2d1
test al, al
jne 0x45ce54
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call edi
mov dword [ebp + 8], eax
jmp 0x45ce47
call edi
sub eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
jae 0x45ce53
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x34]
test al, al
jne 0x45ce35
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x45d213
Capabilities:
Create thread

Disassembly:
mov eax, 0x4e16be
call fcn.004daf98
push ecx
lea eax, [esi + 0x28]
push edi
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 4], edi
jne 0x45d285
cmp dword [esi + 8], edi
je 0x45d285
push ebx
push 0xc
mov dword [esi + 4], 1
call fcn.00441e72
cmp eax, edi
pop ecx
jne 0x45d253
xor ebx, ebx
jmp 0x45d273
push edi
push edi
push eax
push 0x45d62e
push edi
push edi
mov dword [eax], esi
mov dword [eax + 8], esi
mov dword [eax + 4], 0x45ce5a
call fcn.0049bc8f
add esp, 0x18
mov ebx, eax
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x45d281
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 0xc], ebx
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x45d6e0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
push esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
xor ebx, ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x45d702
xor eax, eax
inc eax
jmp 0x45d76c
cmp dword [edi], esi
je 0x45d70b
xor ebx, ebx
inc ebx
jmp 0x45d750
lea eax, [ebp - 8]
push eax
push 0x4fa7e8
push 1
push esi
push 0x4fa7d8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x45d72a
push 2
jmp 0x45d74f
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x45d73f
push 3
jmp 0x45d74f
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x45d750
push 4
pop ebx
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x45d75d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x45d76a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x45dac9
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov eax, 0x4e2192
call fcn.004daf98
sub esp, 0x280
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
xor edi, edi
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
call fcn.00407fa9
push edi
push 2
mov dword [ebp - 4], edi
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x20], esi
jne 0x45db26
push 0xfffffffffffffffe
pop esi
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040763c
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
push 0x228
lea eax, [ebp - 0x288]
push edi
push eax
call fcn.00497210
add esp, 0xc
lea eax, [ebp - 0x28c]
push eax
push esi
mov dword [ebp - 0x28c], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
jne 0x45db61
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0xfffffffffffffffd
jmp 0x45db07
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0045587c
mov byte [ebp - 4], 1
jmp 0x45db7b
xor edi, edi
mov eax, dword [ebp - 0x284]
cmp eax, dword [ebp - 0x24]
je 0x45dc6e
cmp eax, edi
je 0x45dc6e
cmp eax, 4
je 0x45dc6e
push eax
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ebx, eax
cmp ebx, edi
je 0x45dc6e
mov eax, dword [0x51e6c8]
mov ecx, 0x51e6c8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 2
call fcn.0045e0e7
test eax, eax
push ebx
je 0x45dbf0
lea eax, [ebp - 0x2c]
push eax
lea edi, [ebp - 0x5c]
call fcn.004558e6
lea edi, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00407a9f
mov eax, dword [ebp - 0x2c]
jmp 0x45dc0c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0045598c
lea edi, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.00407a9f
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.0040763c
mov esi, dword [ebp + 8]
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x45dc5b
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx - 0xc]
cmp ecx, eax
jl 0x45dc5b
push eax
push esi
push edx
call fcn.0049beea
add esp, 0xc
test eax, eax
jne 0x45dc5b
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
cmp eax, 1
je 0x45dc55
push dword [ebp - 0x284]
call fcn.00455c0d
cmp eax, 1
pop ecx
jne 0x45dc58
inc dword [ebp - 0x14]
inc dword [ebp - 0x18]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
call fcn.0040763c
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x20]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x45db79
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x45dc9a
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
lea esi, [ebp - 0x3c]
call fcn.00475745
lea esi, [ebp - 0x5c]
call fcn.004557a2
mov esi, dword [ebp - 0x14]
jmp 0x45db08
Function at 0x45e018
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4e0841
call fcn.004daf98
sub esp, 0x5c
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x64]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x14], ebx
call fcn.00497210
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x51e6c8]
xor edi, edi
inc edi
add esp, 0xc
mov ecx, 0x51e6c8
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push 0x4fa8e0
call fcn.00408fb3
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push ebx
neg esi
push ebx
sbb esi, esi
push ebx
and esi, 0xa
mov word [ebp - 0x38], si
mov esi, dword [ebp - 0x10]
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x45e0ad
mov dword [ebp - 0x14], edi
cmp dword [ebp - 0x24], ebx
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x45e0c0
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x20], ebx
je 0x45e0cd
push dword [ebp - 0x20]
call edi
mov dword [ebp - 0x20], ebx
lea eax, [esi - 0x10]
call fcn.0040763c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x45e133
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x509c30
call fcn.004dafb8
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x45e1dd
push eax
push eax
mov ebx, str._TEMP_
push ebx
mov edi, dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
call edi
mov esi, eax
cmp esi, 1
jb 0x45e1dd
cmp esi, 0x103
ja 0x45e1dd
and dword [ebp - 4], 0
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004938b2
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x45e1d9
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.00497210
add esp, 0xc
push esi
push dword [ebp - 0x24]
push ebx
call edi
test eax, eax
je 0x45e1d9
mov ecx, 0x103
cmp eax, ecx
ja 0x45e1d9
push eax
push dword [ebp - 0x24]
push ecx
push dword [ebp + 8]
call fcn.0049aa24
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x45e1d9
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x45e1ec
push dword [ebp - 0x1c]
call fcn.00494fb5
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.004daff3
ret
Function at 0x45e1f5
Capabilities:
Create directory
Delete directory

Disassembly:
mov eax, 0x4dfa4a
call fcn.004daf98
push ebx
push esi
push edi
and dword [ebp - 4], 0
push str._access
lea eax, [ebp + 8]
push eax
call fcn.00408f40
mov ebx, dword [ebp + 8]
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
call esi
test edi, edi
je 0x45e237
push ebx
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x45e23e
call esi
cmp eax, 5
je 0x45e241
xor edi, edi
inc edi
lea eax, [ebx - 0x10]
call fcn.0040763c
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x45e62f
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
xor esi, esi
mov dword [ebp - 4], 0x288
push dword [ebp - 4]
call fcn.004938b2
mov edi, eax
test edi, edi
pop ecx
je 0x45e67c
push dword [ebp - 4]
push 0
push edi
call fcn.00497210
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
mov esi, eax
cmp esi, 0x6f
jne 0x45e682
push edi
call fcn.00494fb5
pop ecx
xor edi, edi
inc ebx
cmp ebx, 2
jl 0x45e645
test esi, esi
jne 0x45e6c9
test edi, edi
mov esi, edi
je 0x45e6d4
push 6
lea eax, [esi + 0x10c]
push str.vmware
push eax
call fcn.0049a690
add esp, 0xc
test eax, eax
jne 0x45e6ae
mov esi, dword [esi]
test esi, esi
jne 0x45e68c
jmp 0x45e6c9
push 8
add esi, 0x194
push esi
push dword [ebp + 8]
call fcn.00498c30
add esp, 0xc
mov dword [ebp - 8], 1
test edi, edi
je 0x45e6d4
push edi
call fcn.00494fb5
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x45e99a
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 6
pop ecx
xor esi, esi
push 1
push esi
xor eax, eax
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
push esi
mov dword [ebp - 4], esi
rep stosd dword es:[edi], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, esi
je 0x45ea04
push ebx
push 0x14
push str.optsvccore
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x45ea00
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x45e9fd
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov byte [ecx], al
mov dword [ebp - 4], 1
push ebx
call esi
push edi
call esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x45eb5a
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 0
jne 0x45eb69
mov eax, 0x13a
ret
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45eb7a
mov eax, 0x13b
ret
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, dword [esi + 0x1c]
call fcn.0045e018
neg eax
sbb eax, eax
pop ecx
and eax, 0xfffffec7
pop ecx
add eax, 0x139
ret
Function at 0x45eb9b
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0x28
mov dword [ebp - 4], edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x45ec11
lea eax, [ebp - 0x10]
push eax
push 0x4fa934
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x45ec11
push edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x45ec11
push 0x40000
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
cmp eax, 1
jne 0x45ec11
inc ebx
cmp dword [ebp - 4], edi
je 0x45ec1f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, ebx
pop ebx
leave
ret

Function at 0x45ec80
Capabilities:
Persist via run registry key

Disassembly:
mov eax, 0x4e0841
call fcn.004daf98
push ecx
mov eax, dword [0x51e6c8]
push esi
push edi
mov ecx, 0x51e6c8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push str.asreboot_inst
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00408713
mov edi, dword [ebp - 0x10]
xor esi, esi
inc esi
add esp, 0x10
cmp eax, esi
jne 0x45ecf2
push str.true
push edi
call fcn.004990a4
test eax, eax
pop ecx
pop ecx
jne 0x45ecf2
lea eax, [edi - 0x10]
call fcn.0040763c
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
xor esi, esi
jmp 0x45ecda

Function at 0x460409
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x4604e3
cmp eax, 4
je 0x4604e3
cmp eax, 8
je 0x4604e3
push ebx
push eax
push edi
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ebx, eax
cmp ebx, edi
je 0x4604e2
push esi
mov esi, 0x206
push esi
lea eax, [ebp - 0x20a]
push edi
push eax
mov word [ebp - 0x20c], di
call fcn.00497210
add esp, 0xc
push 0x103
lea eax, [ebp - 0x20c]
push eax
push edi
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x4604c4
push esi
lea eax, [ebp - 0x412]
push edi
push eax
mov word [ebp - 0x414], di
call fcn.00497210
add esp, 0xc
push 0x104
lea eax, [ebp - 0x414]
push eax
push ebx
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x4604da
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004604eb
test eax, eax
je 0x4604da
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.004080b5
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 4
Function at 0x4604eb
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x4bc
push edi
xor edi, edi
cmp dword [ebp + 0x7c], edi
jne 0x460505
xor eax, eax
jmp 0x4605c8
push ebx
push esi
lea eax, [ebp - 0x44c]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
test eax, eax
je 0x4605b8
cmp word [ebp - 0x44c], di
mov dword [ebp + 0x6c], edi
je 0x4605b8
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
lea esi, [ebp - 0x44c]
push 0x4faf30
push esi
call ebx
test eax, eax
je 0x4605a2
push 0x4faf38
push esi
call ebx
test eax, eax
je 0x4605a2
mov ax, word [esi]
and word [ebp + 0x68], 0
mov word [ebp + 0x64], ax
mov ax, word [ebp + edi - 0x44a]
mov word [ebp + 0x66], ax
push 0x64
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x64]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryDosDeviceW]
test eax, eax
je 0x4605c4
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov edi, dword [ebp + 0x78]
mov esi, eax
push esi
lea eax, [ebp - 0x64]
push eax
push edi
call fcn.0049beea
add esp, 0xc
test eax, eax
je 0x4605d0
add dword [ebp + 0x6c], 4
mov edi, dword [ebp + 0x6c]
add edi, edi
lea esi, [ebp + edi - 0x44c]
cmp word [esi], 0
jne 0x46053d
push dword [ebp + 0x78]
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
xor eax, eax
pop esi
pop ebx
pop edi
add ebp, 0x70
leave
ret 8
lea eax, [ebp + 0x64]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea eax, [edi + esi*2]
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
xor eax, eax
inc eax
jmp 0x4605c6

Function at 0x461da3
Capabilities:
Create process on windows

Disassembly:
mov edx, dword [ecx + 8]
push esi
xor esi, esi
inc esi
cmp edx, esi
jne 0x461df6
mov ecx, dword [ecx + 0xc]
cmp ecx, esi
jne 0x461dc0
xor ecx, ecx
call fcn.00468213
mov eax, esi
pop esi
ret
cmp ecx, 0x3e9
jne 0x461de0
push esi
xor eax, eax
push eax
push eax
push 0x4fb088
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x461dbc
cmp ecx, 0x65
jne 0x461dea
push 2
pop ecx
jmp 0x461db7
cmp ecx, 0x7d1
jne 0x461df6
push 3
jmp 0x461de7
and dword [eax + 0x520], 0
xor eax, eax
pop esi
ret
Function at 0x4632e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x28]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x46332c
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x150]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
test edi, edi
jne 0x46332c
push 1
push dword [ebp + 0x10]
lea ecx, [esi + 0x278]
push dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
mov edi, eax
cmp dword [esi + 0x3bc], 0
je 0x4633a4
lea ebx, [esi + 0x3cc]
cmp dword [ebx], 0
je 0x463349
call dword [sym.imp.USER32.dll_ReleaseCapture]
and dword [ebx], 0
cmp dword [esi + 0x3bc], edi
jne 0x46339d
push edi
call fcn.004144cb
mov edi, eax
movzx eax, word [ebp + 0x10]
pop ecx
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x205
call fcn.0041804a
mov eax, dword [esi + 4]
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0xc], 0xd
mov dword [ebp - 0x14], eax
mov ecx, dword [edi + 0x14]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0xffffffffffffffff
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x3bc], 0
pop edi
pop ebx
leave
ret 0xc