joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401cf0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x44900c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xa0
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xac], 0
push 0
push eax
mov dword [ebp - 0xa8], 0
call fcn.00413590
add esp, 0xc
push 0x442960
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x401d9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegisterServiceCtrlHandler
push str._s_failed_with__d
lea eax, [ebp - 0xa4]
push 0x50
push eax
call fcn.00401db0
add esp, 0x14
mov dword [ebp - 0xac], 0x442960
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xac]
push 0
push eax
push 0
push 2
push 0
push 0xc0020001
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00410e28
mov esp, ebp
pop ebp
ret
Function at 0x401f30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4345cf
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x44900c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0
push 0
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_DefWindowProcW]
push 0x2c
call fcn.00411633
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00405a40
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0xc], eax
test eax, eax
je 0x402104
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 8
push eax
mov dword [ebp - 0x24], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
sub esp, 0xc
call fcn.00402b70
mov ebx, eax
test ebx, ebx
js 0x402104
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0x442b04
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x78]
mov esi, dword [0x44b414]
add esi, 0x10
mov dword [ebp - 0x2c], eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x44b91c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00402b00
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0xc]
xorps xmm0, xmm0
push dword [ebp - 0x24]
movups xmmword [ebp - 0x20], xmm0
lea eax, [esi + 0x20]
push eax
push 0x4499e8
call fcn.004023a0
add esp, 8
movzx eax, ax
push eax
push 0
push 0x188
push 0x80000000
push 0x44187c
lea eax, [ebp - 0x20]
push eax
push ecx
mov ecx, esi
call fcn.004021e0
test eax, eax
je 0x4020e2
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
push 0
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
push 0x4076e0
push 0
push 0
mov byte [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x38], eax
call fcn.00402a10
call fcn.004028c0
mov eax, dword [edi + 0xc]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.004057a0
mov eax, dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4020d8
push eax
call esi
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4020e2
push eax
call esi
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4020f0
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [edi + 0xc], 0
call fcn.00402730
lea ecx, [ebp - 0x78]
call fcn.00402130
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410e28
mov esp, ebp
pop ebp
ret
Function at 0x404530
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x44900c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00404480
mov esi, eax
test esi, esi
jne 0x404627
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x4045f9
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00404530
mov esi, eax
test esi, esi
jne 0x404627
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x4045c0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x404610
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.00404670
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x404636
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00410e28
mov esp, ebp
pop ebp
ret 4
Function at 0x405250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4347c6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x44900c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4052fc
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4052fc
call fcn.00403740
mov esi, eax
jmp 0x4053ec
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40531f
call fcn.00403740
jmp 0x4053df
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40533d
call fcn.00403740
jmp 0x4053df
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40535e
mov esi, 0x8007000e
jmp 0x4053e1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004036f0
jmp 0x405388
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x40539f
mov esi, 0x8007000e
jmp 0x4053e1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4053bf
call fcn.00403740
jmp 0x4053df
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004050f0
mov esi, eax
test edi, edi
je 0x4053ec
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x405410
lea ecx, [ebp - 0x418]
call fcn.004036a0
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00410e28
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405820
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x44900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x44b9f0]
cmp eax, dword [ecx + 4]
jle 0x405891
push 0x44b9f0
call fcn.00410f62
add esp, 4
cmp dword [0x44b9f0], 0xffffffff
jne 0x405891
call fcn.004016b0
mov ecx, eax
test ecx, ecx
je 0x40592b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x435a60
mov dword [0x44b9f4], eax
call fcn.004113bd
push 0x44b9f0
call fcn.00410f23
add esp, 8
mov eax, dword [0x44b9f4]
cmp dword [eax - 0xc], 0
jne 0x405916
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.00413590
add esp, 0xc
lea eax, [ebp - 0x404]
push 0x200
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x442f6c
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x404]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4058f0
sub ecx, edx
lea eax, [ebp - 0x404]
sar ecx, 1
push ecx
push eax
mov ecx, 0x44b9f4
call fcn.00407530
mov eax, dword [0x44b9f4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410e28
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404350
int3

Function at 0x405940
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00428970
mov eax, dword [0x44900c]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00405820
test eax, eax
je 0x4059af
push 0x1000
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00413590
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push 0x800
push 0x800
push eax
call fcn.00401e30
push dword [eax + 4]
push dword [eax]
call fcn.0041871e
add esp, 0x20
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410e28
mov esp, ebp
pop ebp
ret
Function at 0x405a40
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4347f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x44900c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
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
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
mov dword [esi], vtable.CProcessWnd.0
mov dword [esi + 0x28], 3
call fcn.004063e0
push dword [ebp - 0x10]
mov edi, dword [esi + 0x28]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405ad5
push dword [ebp - 0x10]
push dword [esi + 0x28]
push str.CheckAssocTime
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
mov edx, dword [ebp - 0x10]
or ecx, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x405af0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov dword [esi + 0x28], 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 0x406100
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
call fcn.004063e0
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406134
push dword [ebp - 4]
push 0xffffffffffffffff
push str.AutoDetectPdfAssoc
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
jmp 0x406139
mov esi, 1
mov edx, dword [ebp - 4]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406154
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406160
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
call fcn.004063e0
push dword [ebp - 4]
mov esi, dword [edi + 0x28]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x406199
push dword [ebp - 4]
push dword [edi + 0x28]
push str.CheckAssocTime
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov edx, dword [ebp - 4]
or ecx, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4061b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4061c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4348ab
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x44900c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, byte [0x44b971]
test al, al
jne 0x406347
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00413590
add esp, 0xc
lea eax, [ebp - 0x114]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x406342
push 0x14
push str.config_systemprofile
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x130], 0xf
mov dword [ebp - 0x134], 0
mov byte [ebp - 0x144], 0
call fcn.00406830
mov dword [ebp - 4], 0
cmp byte [ebp - 0x114], 0
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
jne 0x406285
xor ecx, ecx
jmp 0x406299
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406290
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00406830
push dword [ebp - 0x134]
cmp dword [ebp - 0x130], 0x10
lea eax, [ebp - 0x144]
push ecx
cmovae eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x12c]
push eax
call fcn.00406740
movzx ecx, byte [0x44b971]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x118]
mov edx, 1
cmovne ecx, edx
mov byte [0x44b971], cl
cmp eax, 0x10
jb 0x406309
inc eax
lea ecx, [ebp - 0x12c]
push eax
push dword [ebp - 0x12c]
call fcn.00406a60
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
cmp eax, 0x10
jb 0x406342
inc eax
lea ecx, [ebp - 0x144]
push eax
push dword [ebp - 0x144]
call fcn.00406a60
mov al, byte [0x44b971]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410e28
mov esp, ebp
pop ebp
ret

Function at 0x4071e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4071f9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407236
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x407232
nop word [eax + eax]
cmp esi, edx
jae 0x407236
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x407220
cmp esi, edx
jb 0x40723d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4078a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434a0b
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x44900c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00413590
add esp, 0xc
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x424]
mov dword [ebp - 0x428], 0
push eax
push 0xf003f
push 0
push 0x443430
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407971
lea eax, [ebp - 0x438]
mov dword [ebp - 0x428], 1
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x438], 0x208
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push str.InstallLocation
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x420]
jmp 0x4079ae
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00413590
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push str.PDFRunningHelper.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
push 0
push str._check_updateserver
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x434]
call fcn.00407b10
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x407a13
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x434], 0
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x407a24
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410e28
mov esp, ebp
pop ebp
ret
Function at 0x407b10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x468
mov eax, dword [0x44900c]
xor eax, esp
mov dword [esp + 0x464], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0xc], eax
test edi, edi
jne 0x407b54
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x464]
xor ecx, esp
call fcn.00410e28
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 8], 0
jne 0x407b63
call fcn.00407d30
test eax, eax
je 0x407b3c
cmp dword [esi], 0
je 0x407b3c
cmp dword [ebp + 0x10], 0
je 0x407b77
xor dword [esi + 4], 0x8000000
jmp 0x407b7e
or dword [esi + 4], 0x8000000
push 0x44
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00413590
add esp, 0xc
mov dword [esp + 0x20], 0x44
lea eax, [esp + 0x68]
mov dword [esp + 0x28], str.winsta0default
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
push 0x400
push 0
push eax
call fcn.00413590
add esp, 0xc
lea eax, [esp + 0x68]
push dword [esp + 0xc]
push edi
push str._s__s
push 0x200
push eax
call fcn.00408010
add esp, 0x14
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push dword [esi + 8]
lea eax, [esp + 0x78]
push dword [esi + 4]
push 0
push 0
push 0
push eax
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x407c0e
test eax, eax
jne 0x407c13
mov edi, 1
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x407c24
push eax
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x407c2f
push eax
call esi
mov ecx, dword [esp + 0x46c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00410e28
mov esp, ebp
pop ebp
ret 0xc

Function at 0x407c50
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x44900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407c90
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410e28
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x407cfd
mov edi, dword [ebp + 0xc]
nop
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00414609
add esp, 8
test eax, eax
jne 0x407ce9
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x407ce9
cmp dword [ebp - 0x234], edi
je 0x407d19
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x407cb0
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410e28
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp - 0x228]
jmp 0x407cfd
Function at 0x407d30
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434a48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x44900c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x443524
push 0x443544
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push 0x443554
push str.Wtsapi32.dll
mov dword [ebp - 0x10], eax
call edi
push eax
call esi
mov esi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x407db2
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x407d9e
call eax
mov edi, eax
mov dword [ebx + 4], 0x20
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], 0
push eax
push edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call esi
test eax, eax
jne 0x407e7a
push 0x443578
lea ecx, [ebp - 0x10]
call fcn.004075e0
push 4
push str.lore
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00407f40
push 3
push 0x44358c
lea ecx, [ebp - 0x10]
call fcn.00407f40
push 2
push 0x443594
lea ecx, [ebp - 0x10]
call fcn.00407f40
push edi
push dword [ebp - 0x10]
call fcn.00407c50
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 0xf00ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407e89
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x407e89
mov eax, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x13
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x407ea9
mov eax, dword [ebp - 0x1c]
mov dword [ebx], eax
jmp 0x407ecf
lea eax, [ebp - 0x28]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push ebx
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov eax, dword [ebx]
test eax, eax
je 0x407ef4
push 1
push eax
lea eax, [ebx + 8]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x407ef4
or dword [ebx + 4], 0x400
mov ebx, 1
jmp 0x407efd
mov dword [ebx + 8], 0
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x407f0a
push edi
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x407f14
push eax
call esi
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x407f1e
push ecx
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret