joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f3c0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0x208
call fcn.00551ee7
mov esi, eax
add esp, 4
test esi, esi
jne 0x42f3f3
push esi
mov edi, 0x8007000e
call fcn.00551f79
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x42f42e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x42f4db
movzx edi, di
push esi
or edi, 0x80070000
call fcn.00551f79
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Proxy.bat
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x42f465
call fcn.00433890
mov edi, eax
test edi, edi
js 0x42f4d0
jmp 0x42f467
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
push 0x1e
push str._windir__system32compmgmt.msc
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42f48a
call fcn.00433890
mov edi, eax
test edi, edi
js 0x42f4d0
test ebx, ebx
je 0x42f497
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push 0x38
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00559380
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x24], 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, 0x20
jle 0x42f4cb
xor edi, edi
jmp 0x42f4d0
mov edi, 0x80004005
test ebx, ebx
je 0x42f4db
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00551f79
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433df0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598a62
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.004344d0
mov dword [ebp - 4], 0
lea esi, [edi + 0x3d0]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], eax
mov dword [edi + 0x3f4], 0x5bdd7c
mov dword [edi], 0x5bdda0
mov dword [esi], 0x5bdd8c
mov dword [edi + 0x3f4], 0x5bdd84
mov dword [edi + 0x404], 0
mov dword [edi + 0x408], 0
mov dword [edi + 0x40c], 0
mov byte [ebp - 4], 3
lea eax, [esi + 0x20]
push dword [ebp - 0x10]
push eax
push 0x6351f0
call fcn.00433620
add esp, 0xc
movzx eax, ax
mov ecx, esi
push 0
push eax
push 0
push 0
push 0x56000000
push 0
push 0
push 0xfffffffffffffffd
call fcn.00433480
push 0
push dword [edi + 0x3d4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x436110
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
mov esi, ecx
mov dword [ebp - 0x20], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00435f10
mov dword [esi + 0x150], eax
cmp eax, 1
je 0x4361bb
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
mov dword [esi + 0x154], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x158], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x54]
push 1
mov ecx, esi
movdqu xmm0, xmmword [eax]
mov eax, dword [esi]
mov dword [esi + 0x16c], 1
movdqu xmmword [esi + 0x15c], xmm0
call dword [eax + 0x104]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
ret 0x10
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.004212b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0055199a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43aff0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x43b06c
mov esi, dword [ebp + 8]
mov ecx, 1
mov eax, dword [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x43b025
push edi
mov ecx, esi
call fcn.0040c110
push edi
push dword [esi]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov ecx, edi
cmp edi, 0xffffffff
jne 0x43b04d
mov ecx, dword [esi]
test ecx, ecx
je 0x43b051
push dword [ecx - 8]
push ecx
call fcn.00551cd2
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x43b06c
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x43b06c
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.0040c390
int3

Function at 0x43b140
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.00559380
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43b1ad
mov eax, dword [ebp - 0x114]
cmp eax, 5
jae 0x43b19d
cmp eax, 4
jne 0x43b1ad
cmp dword [ebp - 0x110], 0x5a
jb 0x43b1ad
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
ret
Function at 0x43d620
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599526
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [edi], vtable.2______.0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
push 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
push eax
push ecx
mov dword [edi + 0x34], 0
mov ecx, esp
mov dword [edi + 0x38], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [ebp - 0x18], esp
push str.iconSizeMode
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [ebp - 0x10], 0xffffffff
call fcn.0040c2d0
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.AppleDT
call fcn.0040c2d0
mov byte [ebp - 4], 2
mov eax, dword [0x640424]
test eax, eax
jne 0x43d714
push 0xc
call fcn.00551c81
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x43d709
mov ecx, eax
call fcn.00422e00
jmp 0x43d70b
xor eax, eax
mov byte [ebp - 4], 2
mov dword [0x640424], eax
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.00423110
mov esi, dword [ebp - 0x10]
cmp esi, 0xffffffff
jne 0x43d805
lea ecx, [ebp - 0x10]
call fcn.004fb790
mov byte [ebp - 4], 4
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43d779
call fcn.0050acc0
cmp dword [0x6412b4], 0x400
jge 0x43d759
xor esi, esi
jmp 0x43d77e
call fcn.004283a0
mov dword [ebp - 0x24], eax
cmp edx, 0x38
jne 0x43d76a
xor esi, esi
jmp 0x43d77e
cmp edx, 0x48
je 0x43d779
mov esi, 2
cmp edx, 0x78
je 0x43d77e
mov esi, 1
push esi
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.iconSizeMode
call fcn.0040c2d0
push ecx
mov byte [ebp - 4], 5
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.AppleDT
call fcn.0040c2d0
mov byte [ebp - 4], 6
mov eax, dword [0x640424]
test eax, eax
jne 0x43d7d9
push 0xc
call fcn.00551c81
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x43d7ce
mov ecx, eax
call fcn.00422e00
jmp 0x43d7d0
xor eax, eax
mov byte [ebp - 4], 6
mov dword [0x640424], eax
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00423010
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43d805
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, edi
mov dword [edi + 4], esi
call fcn.0043d9a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4401c0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 5
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esi + 0x13c], 0
je 0x44020f
lea eax, [esi + 0x138]
mov dword [esi + 0x158], 2
push eax
push ecx
call fcn.004d28c0
add esp, 4
mov ecx, eax
call fcn.004d26d0
mov ecx, dword [esi + 0x13c]
mov dword [esi + 0x140], 0
push 0
mov eax, dword [ecx]
call dword [eax + 8]
cmp dword [esi + 0x164], 2
mov eax, 1
je 0x440227
mov dword [esi + 0x164], 2
pop esi
ret
Function at 0x443040
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x44]
lea eax, [esi + 0x54]
push eax
lea eax, [esi + 0x48]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [esi + 4]
pop esi
jmp 0x517040
push esi
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov edi, ecx
push edi
call esi
push edi
mov dword [edi + 0x20], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call esi
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [edi + 0x24]
mov dword [eax + 4], eax
mov dword [edi + 0x28], 0
cmp ecx, dword [edi + 0x24]
je 0x517089
mov esi, dword [ecx]
push ecx
call fcn.00551995
add esp, 4
mov ecx, esi
cmp esi, dword [edi + 0x24]
jne 0x517077
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 1
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0x1f4
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x5170ba
push 0
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x1c], 0
mov eax, 1
pop edi
pop esi
ret
Function at 0x443ee0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x599cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x60f520]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x60f520]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0043b590
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push dword [ebp + 8]
push eax
call fcn.00443e20
add esp, 0x24
mov dword [esp + 0x38], 0
cmp dword [eax + 0x14], 0x10
jb 0x443f5d
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ecx, esi
lea eax, [esp + 0xc]
push eax
call fcn.005545a1
cmp dword [esp + 0x24], 0x10
mov dword [esi], method.______________.virtual_0
jb 0x443f86
push dword [esp + 0x10]
call fcn.00551995
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, esi
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], vtable.______________.0
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0055199a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4447e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, ecx
mov dword [ebp - 0xa0c], 0
lea ecx, [ebp - 0xa0c]
mov dword [ebp - 0xa1c], eax
push ecx
push 0x20019
xor esi, esi
mov ebx, edx
push esi
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4449c7
xor edi, edi
mov dword [ebp - 0xa10], 0x200
push edi
push edi
push edi
push edi
lea eax, [ebp - 0xa10]
push eax
lea eax, [ebp - 0x608]
push eax
push edi
push dword [ebp - 0xa0c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4449ba
jmp 0x444870
lea eax, [ebp - 0x608]
push eax
push dword [ebp - 0xa1c]
lea eax, [ebp - 0xa08]
push 0x5bc4f0
push 0x200
push eax
call fcn.00429e70
add esp, 0x14
lea eax, [ebp - 0xa14]
push eax
push 0x20019
push 0
lea eax, [ebp - 0xa08]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x444984
lea eax, [ebp - 0xa18]
mov dword [ebp - 0xa18], 0x100
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0xa20]
push eax
push 0
push 0
push dword [ebp - 0xa14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0xa18]
mov edx, eax
test ecx, ecx
je 0x444923
cmp dword [ebp - 0xa20], 1
jne 0x444923
cmp word [ebp + ecx*2 - 0x20a], 0
je 0x44492c
mov eax, 0x100
cmp ecx, eax
cmovb eax, ecx
xor ecx, ecx
mov word [ebp + eax*2 - 0x208], cx
jmp 0x44492c
xor eax, eax
mov word [ebp - 0x208], ax
test edx, edx
jne 0x44497c
lea edx, [ebp - 0xa28]
lea ecx, [ebp - 0x208]
call fcn.004449f0
test eax, eax
je 0x44497c
mov esi, dword [ebx]
lea eax, [ebp - 0xa28]
push eax
push dword [esi + 4]
push esi
call fcn.00444b90
mov edx, dword [ebx + 4]
mov ecx, eax
mov eax, 0xffffffe
sub eax, edx
cmp eax, 1
jb 0x4449da
lea eax, [edx + 1]
mov dword [ebx + 4], eax
mov dword [esi + 4], ecx
mov eax, dword [ecx + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [eax], ecx
push dword [ebp - 0xa14]
call esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xa10]
mov dword [ebp - 0xa10], 0x200
push eax
lea eax, [ebp - 0x608]
inc edi
push eax
push edi
push dword [ebp - 0xa0c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x444870
push dword [ebp - 0xa0c]
call esi
mov esi, 1
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055199a
mov esp, ebp
pop ebp
ret
push str.list_T__too_long
call fcn.005502bf
int3
Function at 0x4449f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, ecx
mov ebx, edx
push eax
push str.SoftwareClassesCLSID
push 0x5bc4f0
mov dword [ebp - 0x634], eax
xor esi, esi
lea eax, [ebp - 0x610]
push 0x200
push eax
call fcn.00429e70
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x628]
add esp, 0x14
push eax
push 0x20019
push esi
lea eax, [ebp - 0x610]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x444b10
lea eax, [ebp - 0x62c]
push eax
push 0x20019
push esi
push 0x5bf070
push dword [ebp - 0x628]
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x444b08
lea eax, [ebp - 0x624]
mov dword [ebp - 0x624], 0x104
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x630]
push eax
push esi
push esi
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x624]
mov edx, eax
test ecx, ecx
je 0x444ae4
cmp dword [ebp - 0x630], 1
jne 0x444ae4
cmp word [ebp + ecx*2 - 0x212], si
je 0x444aed
mov eax, 0x104
cmp ecx, eax
cmovb eax, ecx
xor ecx, ecx
mov word [ebp + eax*2 - 0x210], cx
jmp 0x444aed
xor eax, eax
mov word [ebp - 0x210], ax
test edx, edx
jne 0x444b00
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push dword [ebp - 0x62c]
call edi
push dword [ebp - 0x628]
call edi
lea eax, [ebp - 0x620]
push eax
push dword [ebp - 0x634]
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x444b6f
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x624]
push eax
push 0x5abca8
push 1
push 0
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x444b6f
mov ecx, dword [ebp - 0x624]
mov eax, 1
mov dword [ebx], esi
mov dword [ebx + 4], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x444b7a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055199a
mov esp, ebp
pop ebp
ret
Function at 0x4453c0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x20028
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4453f8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x445429
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055199a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
push 0
push 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0055199a
mov esp, ebp
pop ebp
ret
Function at 0x4461a0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596508
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x6435a0
call fcn.004473c0
lea ecx, [ebp - 0x10]
call fcn.004fb7f0
push eax
mov ecx, 0x643664
mov dword [ebp - 4], 0
call fcn.0040b7d0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44620d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x643664]
call dword [sym.imp.ole32.dll_StgIsStorageFile]
test eax, eax
js 0x446226
call fcn.00446d50
test eax, eax
jne 0x446242
push dword [0x643664]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x446242
push dword [0x643664]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [0x6435b4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x446b90
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x60f520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
push dword [esi + 0xc4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x446bdc
push dword [esi + 0xc4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0
push 0x1011
push dword [esi + 0xc4]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.ole32.dll_StgCreateDocfile]
test eax, eax
js 0x446d12
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x446d12
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push 0
push 0
push 0x1011
push str.SubStg
push ecx
call dword [eax + 0x14]
test eax, eax
js 0x446d05
cmp dword [ebp - 0x10], 0
je 0x446d05
lea eax, [ebp - 0x20]
push eax
call fcn.004472c0
lea edx, [ebp - 0x14]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
push edx
push 0
push 0
mov ecx, dword [eax]
push 0x1011
push dword [ebp - 0x20]
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x446c97
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x446c97
push eax
push dword [esi + 0x10]
call dword [sym.imp.COMCTL32.dll_ImageList_Write]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x446c97
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
push edx
push 0
push 0
mov ecx, dword [eax]
push 0x1011
push str.StmSamll
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x446cd4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x446cd4
push eax
push dword [esi + 0x18]
call dword [sym.imp.COMCTL32.dll_ImageList_Write]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x446cd4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x446ce1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x446d05
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x446d12
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ole32.dll_OleUninitialize]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x447ae0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x60f520]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x447bf2
push edi
push eax
push str.ExpandToFullPath_Enter__s_n
call fcn.0040a320
mov eax, dword [esi]
xor edi, edi
add esp, 8
cmp dword [eax - 0xc], edi
jl 0x447c01
mov edi, edi
cmp word [eax], 0x22
jne 0x447b35
mov edi, 1
mov ecx, esi
push edi
push 0
call fcn.00415140
mov ecx, dword [esi]
mov edx, dword [ecx - 0xc]
lea eax, [edx - 1]
test eax, eax
js 0x447c01
cmp eax, edx
jg 0x447c01
cmp word [ecx + eax*2], 0x22
jne 0x447b60
push 1
push eax
mov ecx, esi
call fcn.00415140
jmp 0x447b64
test edi, edi
je 0x447b72
mov eax, dword [esi]
xor edi, edi
cmp dword [eax - 0xc], edi
jge 0x447b20
jmp 0x447c01
push ecx
push str.ExpandToFullPath_trim_____s_n
call fcn.0040a320
mov eax, dword [esi]
add esp, 8
cmp dword [eax - 0xc], 0
je 0x447be4
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x447be4
push dword [esi]
push str.ExpandToFullPath_IsEmpty__PathIsRelative__s_n
call fcn.0040a320
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00559380
add esp, 0x14
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push dword [esi]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0040c280
push str.ExpandToFullPath_Exit_n
call fcn.0040a320
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0055199a
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0040c390
int3