joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100264a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010b0e0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x1015746c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.10036290
mov esi, eax
push str.SETUPDATA
push 0xd7
push dword [0x1015e6c4]
mov ecx, dword [esi]
push esi
call dword [ecx + 0x10]
test eax, eax
jne 0x100265b8
push str.InitPackInfo_failed__exit
call fcn.1002ac70
add esp, 4
push 4
push 0x1011b494
push 0
call fcn.10031af0
cmp eax, 6
jne 0x10026523
push 1
push 0
push 0
push str.http:__www.conchdesktop.com
push 0x10119784
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.10004dc0
mov ecx, eax
test ecx, ecx
je 0x100266db
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0
push str.055EE061_E6A1_4a97_BCA3_B47A227F452A
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push str._sInitPackInfo:_d
push eax
call fcn.1000ae00
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x14], esp
mov dword [eax + 0x24], 0
mov esi, dword [ebp - 0x10]
push 0
push esi
push str.install_init_fail
mov byte [ebp - 4], 1
call fcn.100111f0
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.1000db70
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100265a6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push str.InitPackInfo_success
call fcn.1002ac70
mov eax, dword [esi]
add esp, 4
push str.HALO_DLL.ldsprj
push str.SETUPCONFIG
push 0xd5
push dword [0x1015e6c4]
push esi
call dword [eax + 0xc]
test eax, eax
jne 0x100266b9
push str.InitConfig_failed__exit
call fcn.1002ac70
add esp, 4
push 4
push 0x1011b494
push 0
call fcn.10031af0
cmp eax, 6
jne 0x10026620
push 1
push 0
push 0
push str.http:__www.conchdesktop.com
push 0x10119784
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.10004dc0
mov ecx, eax
test ecx, ecx
je 0x100266e5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0
push str.055EE061_E6A1_4a97_BCA3_B47A227F452A
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 2
push str._sInitConfig:_d
push eax
call fcn.1000ae00
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x14], esp
mov dword [eax + 0x24], 0
mov esi, dword [ebp - 0x10]
push 0
push esi
push str.install_init_fail
mov byte [ebp - 4], 3
call fcn.100111f0
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.1000db70
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100265a6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push str.InitConfig_success
call fcn.1002ac70
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10004170
push 0x80004005
call fcn.10004170
int3
Function at 0x10027ed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010b306
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x1015746c]
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 edi, 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
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x10027f7c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x10027f7c
call fcn.10013130
mov edi, eax
jmp 0x1002809b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10027f9f
call fcn.10013130
jmp 0x1002808e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x10027fbd
call fcn.10013130
jmp 0x1002808e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x10027fde
mov edi, 0x8007000e
jmp 0x10028090
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x100280d4
jb 0x10027ffc
cmp eax, 0xffffffff
ja 0x100280d4
cmp eax, 0x400
jbe 0x10028011
push eax
lea ecx, [ebp - 0x418]
call fcn.10025470
jmp 0x10028037
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x10028037
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x1002804e
mov edi, 0x8007000e
jmp 0x10028090
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x1002806e
call fcn.10013130
jmp 0x1002808e
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.10027d30
mov edi, eax
test esi, esi
je 0x1002809b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100280b4
lea ecx, [ebp - 0x418]
call fcn.10025da0
mov eax, edi
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.10068438
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.10004170
int3
Function at 0x10029820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1015746c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x414]
push 0x208
push 0
push eax
call fcn.10094f30
add esp, 0xc
mov dword [ebp - 0x41c], 1
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0x104
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x41c]
push eax
push str.Setup_Path
push str.SOFTWAREHaloDesktop
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x10029942
push esi
call fcn.10025e70
mov ecx, eax
call fcn.1001b5b0
call fcn.10025e70
mov ecx, eax
call fcn.1001abb0
push eax
call fcn.100111f0
mov ecx, eax
call fcn.1000df10
push str.installpkg
call fcn.100111f0
mov ecx, eax
call fcn.1000df80
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10094f30
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x1015e6c4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.100111f0
mov ecx, eax
call fcn.1000de80
sub esp, 0x28
mov eax, esp
push 0
push 0
push str.exist_wp
mov dword [eax + 0x24], 0
call fcn.100111f0
mov ecx, eax
call fcn.1000db70
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10068438
mov esp, ebp
pop ebp
ret 4
cmp dword [0x1015e6dc], 0
jne 0x10029968
push 1
push esi
push 0
push dword [0x1015e6c4]
mov dword [0x1015e6dc], 1
call fcn.10026780
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, dword [0x101560bc]
xor ecx, ebp
pop esi
call fcn.10068438
mov esp, ebp
pop ebp
ret 4
Function at 0x1002e670
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010bdc8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x1015746c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x1002e6b7
push 1
call fcn.1002f4a0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 1
jne 0x1002e7ff
call fcn.10025e70
mov ecx, eax
call fcn.1001cf00
test eax, eax
jne 0x1002e6dc
cmp dword [esi + 0x184], eax
jne 0x1002e784
call fcn.10025e70
mov ecx, eax
call fcn.1001cf00
test eax, eax
je 0x1002e718
mov eax, dword [esi + 0xa4]
lea ecx, [esi + 0xa4]
call dword [eax]
mov dword [esi + 0x180], 2
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x1002e766
cmp dword [esi + 0x78], 0
je 0x1002e766
mov eax, dword [ecx]
push 1
push 0
push ecx
call dword [eax + 0x20]
push 0
lea ecx, [esi + 0xb0]
call fcn.10023330
mov eax, dword [esi + 0x78]
push 1
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [esi + 0x7c]
push 1
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [esi + 0x80]
push 1
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov dword [esi + 0x180], 2
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
call fcn.10025e70
mov ecx, eax
call fcn.1001cf00
test eax, eax
jne 0x1002e7e1
mov ecx, dword [esi + 0x74]
test ecx, ecx
je 0x1002e7e1
cmp dword [esi + 0x78], eax
je 0x1002e7e1
mov eax, dword [ecx]
push 1
push 0
push ecx
call dword [eax + 0x20]
push 0
lea ecx, [esi + 0xb0]
call fcn.10023330
mov eax, dword [esi + 0x78]
push 1
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [esi + 0x7c]
push 1
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [esi + 0x80]
push 1
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov dword [esi + 0x180], 3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 2
jne 0x1002e857
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea ecx, [esi + 0xb0]
call fcn.10023330
sub esp, 0x28
mov eax, esp
mov dword [ebp + 0xc], esp
mov dword [eax + 0x24], 0
push 1
push 0
push str.install_finish
mov dword [ebp - 4], 9
call fcn.100111f0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.1000db70
push 1
mov ecx, esi
call fcn.1002ef50
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1002eeb0
Capabilities:
Create process on windows

Disassembly:
push 1
push 0
push 0
push str.http:__www.conchdesktop.com_cms_agreement.html
push 0x10119784
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x1002ef50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea ecx, [esi + 0xb0]
call fcn.10023330
mov ecx, 0x1015e71c
call fcn.10007680
push str.quit
call fcn.1002ac70
add esp, 4
lea ecx, [esi + 0x94]
call fcn.1002a090
xor esi, esi
call fcn.10025e70
mov ecx, eax
call fcn.1001cee0
test eax, eax
mov ecx, 1
cmovne esi, ecx
call fcn.10036290
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
call fcn.10036290
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
pop esi
pop ebp
jmp dword [sym.imp.USER32.dll_PostQuitMessage]

Function at 0x1002f000
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010be9b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x1015746c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10094f30
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push str.PluginCfg
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002f08b
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push str.lockscreenfix.ini
lea eax, [ebp - 0x218]
push eax
call esi
call fcn.10004dc0
mov ecx, eax
test ecx, ecx
je 0x1002f12f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
movzx eax, byte [ebp + 8]
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push 0x1011b39c
push eax
call fcn.1000ae00
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
add esp, 0xc
push eax
push esi
push str.lock_screen_state
push str.General
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002f113
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10068438
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10004170
int3
Function at 0x100345d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.10068860
mov eax, dword [0x1015746c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.10094f30
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x100346c2
test edi, edi
je 0x100346c2
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x100346c2
cmp eax, 0x3fff
ja 0x100346c2
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100346c2
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x10118d3c
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100346c2
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
push 0
push edi
call fcn.10094f30
mov ecx, dword [ebp - 0x400c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x10118f2c
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10068438
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.10068438
mov esp, ebp
pop ebp
ret
Function at 0x100348f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
mov eax, dword [0x1015746c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x4c4], eax
mov dword [ebp - 0x4c0], ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x100349cb
test ecx, ecx
je 0x100349cb
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x100349cb
mov ax, word [ebp - 0x4bc]
xor esi, esi
test ax, ax
je 0x100349cb
xor ecx, ecx
movzx edx, ax
nop dword [eax + eax]
mov ax, word [ebp + ecx - 0x4ba]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xd4]
push 0x64
push eax
lea eax, [ebp - 0xc]
mov word [ebp - 0xc], dx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x100349b6
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea eax, [ebp - 0xd4]
push ebx
push eax
push dword [ebp - 0x4c4]
call fcn.100c2d8d
add esp, 0xc
test eax, eax
je 0x100349de
add esi, 4
lea ecx, [esi + esi]
movzx eax, word [ebp + ecx - 0x4bc]
mov edx, eax
test ax, ax
jne 0x10034960
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10068438
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 0x4c0]
call fcn.10035710
xor ecx, ecx
test edi, edi
je 0x100349fc
cmp edi, 0x7fffffff
jbe 0x10034a01
mov ecx, 0x80070057
test ecx, ecx
js 0x10034a37
mov eax, dword [ebp - 0x4c0]
mov esi, edi
test edi, edi
je 0x10034a1f
cmp word [eax], 0
je 0x10034a1f
add eax, 2
sub esi, 1
jne 0x10034a11
xor eax, eax
mov ecx, 0x80070057
test esi, esi
cmovne ecx, eax
mov eax, edi
sub eax, esi
neg esi
sbb esi, esi
and esi, eax
jmp 0x10034a39
xor esi, esi
test ecx, ecx
js 0x10034a8a
mov eax, dword [ebp - 0x4c0]
mov edx, edi
lea ecx, [eax + esi*2]
sub edx, esi
je 0x10034a7d
mov eax, edx
sub eax, edi
mov edi, dword [ebp - 0x4c4]
add eax, 0x7fffffff
add esi, eax
lea eax, [ebx + ebx]
sub eax, ecx
add edi, eax
test esi, esi
je 0x10034a7d
movzx eax, word [edi + ecx]
test ax, ax
je 0x10034a7d
mov word [ecx], ax
dec esi
add ecx, 2
sub edx, 1
jne 0x10034a64
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10068438
mov esp, ebp
pop ebp
ret
Function at 0x10034aa0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1015746c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10034b18
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10068438
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10068438
mov esp, ebp
pop ebp
ret

Function at 0x10034bd0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.10068860
mov eax, dword [0x1015746c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
je 0x10034d0a
mov edi, dword [ebp + 0x10]
cmp edi, 0x64
jl 0x10034d0a
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10034d0a
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.10094f30
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
mov dword [ebp - 0x1008], eax
test eax, eax
je 0x10034cdf
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.10094f30
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.10096372
add esp, 0x14
test eax, eax
je 0x10034ca4
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x10034ca4
mov ecx, 1
jmp 0x10034ca6
xor ecx, ecx
test ecx, ecx
lea edx, [ebp - 0x1004]
lea eax, [ebp - 0x804]
cmovne eax, edx
push eax
push edi
push ebx
call fcn.10035710
mov edi, dword [ebp - 0x1008]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10068438
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x10034cbf
push edi
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.100348f0
add esp, 0xc
mov edi, eax
jmp 0x10034cc5
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10068438
mov esp, ebp
pop ebp
ret
Function at 0x10035380
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10146158
push 0x100969e0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a14
call fcn.10068860
mov eax, dword [0x1015746c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2a2c], esi
test esi, esi
je 0x10035554
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100353d6
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x10035554
mov dword [ebp - 4], 0
call fcn.10034aa0
mov dword [ebp - 4], 0xfffffffe
jmp 0x1003541c
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.10094f30
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.10094f30
add esp, 0x18
lea eax, [ebp - 0x2a28]
push eax
push 0x800
lea eax, [ebp - 0x2a24]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x10035554
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.100b0f4a
lea eax, [ebp - 0x224]
push eax
call fcn.100b1a7f
add esp, 0x10
xor edi, edi
cmp dword [ebp - 0x2a28], edi
jbe 0x10035554
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + edi*4 - 0x2a24]
call fcn.10034bd0
add esp, 0xc
test eax, eax
je 0x10035547
lea eax, [ebp - 0xa24]
push eax
call fcn.100b1a7f
add esp, 4
lea ecx, [ebp - 0xa24]
lea eax, [ebp - 0x224]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10035508
test dx, dx
je 0x10035504
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10035508
add eax, 4
add ecx, 4
test dx, dx
jne 0x100354e2
xor eax, eax
jmp 0x1003550d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10035547
push dword [ebp + edi*4 - 0x2a24]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10035533
push 0
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xa24]
push eax
push str.Kill_process:__s
call fcn.100384f0
add esp, 8
inc edi
cmp edi, dword [ebp - 0x2a28]
jb 0x100354a4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10068438
mov esp, ebp
pop ebp
ret 4
Function at 0x10035580
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10146198
push 0x100969e0
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x1015746c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 4], 0
test esi, esi
je 0x100356e1
cmp word [esi], 0
je 0x100356e1
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100355e0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x100356e1
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100356e1
push 0x800
push 0
lea eax, [ebp - 0x81c]
push eax
call fcn.10094f30
push esi
push 0x10123538
push 0x3ff
lea eax, [ebp - 0x81c]
push eax
call fcn.10005990
push 0x3c
push 0
lea eax, [ebp - 0x858]
push eax
call fcn.10094f30
add esp, 0x28
mov dword [ebp - 0x858], 0x3c
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x84c], 0x10119784
mov dword [ebp - 0x844], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x83c], eax
mov dword [ebp - 0x854], 0x440
lea eax, [ebp - 0x858]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test esi, esi
je 0x100356a8
cmp dword [ebp + 0x18], 0
je 0x100356a8
push dword [ebp + 0x20]
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test edi, edi
je 0x100356bd
test esi, esi
je 0x100356cd
push edi
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test esi, esi
je 0x100356cd
push dword [ebp - 0x820]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x100356ea
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10068438
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x10035780
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x1003579c
pop edi
pop ebp
ret 4
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret 4