joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47baa0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a89f6
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0x410], eax
push ebp
push esi
mov eax, dword [0x4cd290]
xor eax, esp
push eax
lea eax, [esp + 0x424]
mov dword fs:[0], eax
mov eax, dword [esp + 0x434]
mov esi, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], eax
call fcn.0040f1d0
mov dword [esp + 0x42c], 0
mov eax, dword [esi]
test eax, eax
je 0x47bb1a
cmp eax, 0xffffffff
je 0x47bb1a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x47bbfe
mov dword [esi], 0xffffffff
mov eax, dword [edi]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x400
lea edx, [esp + 0x28]
push edx
push eax
call ebp
test eax, eax
je 0x47bbad
lea ebx, [ebx]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x47bbad
call fcn.00411010
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0044cce0
lea ecx, [esp + 0x10]
mov byte [esp + 0x42c], 1
call fcn.0040f660
push eax
lea ecx, [esp + 0x14]
call fcn.0040f0f0
push eax
lea ecx, [esp + 0x14]
call fcn.0044b610
lea ecx, [esp + 0x10]
mov byte [esp + 0x42c], 0
call fcn.0040f420
mov ecx, dword [edi]
push 0
lea edx, [esp + 0x18]
push edx
push 0x400
lea eax, [esp + 0x28]
push eax
push ecx
call ebp
test eax, eax
jne 0x47bb40
mov esi, dword [esp + 0x18]
lea edx, [esp + 0xc]
push edx
push esi
call fcn.0047bc10
push esi
call fcn.0047c3b0
push esi
call fcn.0047c780
lea ecx, [esp + 0xc]
call fcn.0040f420
mov eax, 1
mov ecx, dword [esp + 0x424]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004851ae
add esp, 0x424
ret 4
lea ecx, [esp + 0xc]
call fcn.0040f420
xor eax, eax
jmp 0x47bbd6
Function at 0x47df80
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebp
mov ebp, dword [esp + 0x10]
push esi
xor esi, esi
cmp eax, esi
mov dword [esp + 0x14], esi
je 0x47e009
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x18]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push esi
push ebp
push eax
call ebx
cmp dword [esp + 0xc], 1
jne 0x47e011
mov ecx, edi
call fcn.0040f5a0
mov eax, dword [esp + 0x18]
shr eax, 1
add eax, 1
push eax
mov ecx, edi
call fcn.0040f630
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push esi
lea edx, [esp + 0x14]
push edx
push 0
push ebp
push ecx
call ebx
test eax, eax
jne 0x47e01a
mov edx, dword [esp + 0x18]
shr edx, 1
push 0xffffffffffffffff
mov ecx, edi
mov word [esi + edx*2], ax
call fcn.0040f6c0
pop ebx
pop esi
mov eax, 1
pop ebp
pop ecx
ret 8
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
pop ebx
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
pop ebx
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8

Function at 0x47e100
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4aa848
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cd290]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, dword [esp + 0x44]
push edi
lea ecx, [esp + 0x18]
call fcn.00418aa0
push edi
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47e1b9
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push edi
call ebx
test eax, eax
jne 0x47e1b9
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0xb7
je 0x47e1b9
lea esi, [esp + 0x14]
call fcn.0047e030
mov ecx, esi
call fcn.0044a3d0
test al, al
mov ecx, esi
jne 0x47e19e
call fcn.00420780
push eax
call fcn.0047e100
add esp, 4
test eax, eax
jne 0x47e1a7
lea ecx, [esp + 0x14]
call fcn.00418c50
xor eax, eax
jmp 0x47e1c7
push 0
push edi
call ebx
test eax, eax
jne 0x47e1b9
call ebp
cmp eax, 0xb7
jne 0x47e19a
lea ecx, [esp + 0x14]
call fcn.00418c50
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004851ae
add esp, 0x2c
ret
Function at 0x47e260
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4c4228
push 0x48bc70
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4cd290]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], esi
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, esi
je 0x47e30e
lea ecx, [ebp - 0x28]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, esi
je 0x47e30e
mov edi, 1
mov dword [ebp - 0x38], edi
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 2
push esi
push esi
push esi
lea ecx, [ebp - 0x38]
push ecx
push esi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, esi
je 0x47e30e
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.0047e331
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47f030
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4ab2fb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0x228], eax
push edi
mov eax, dword [0x4cd290]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
xor edi, edi
push edi
push 0x1a
lea eax, [esp + 0x30]
push eax
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x10]
call fcn.00420640
lea ecx, [esp + 0xc]
mov dword [esp + 0x23c], edi
call fcn.0044a3d0
test al, al
je 0x47f0ad
push 0x4bd07c
mov ecx, esi
call fcn.00418aa0
jmp 0x47f120
mov eax, dword [esp + 0x20]
lea edi, [eax - 1]
cmp eax, edi
ja 0x47f0bd
call fcn.004840ea
lea ecx, [esp + 0xc]
call fcn.00424a40
movzx eax, word [eax + edi*2]
cmp ax, 0x5c
je 0x47f0e4
cmp ax, 0x2f
je 0x47f0e4
push 0x4bed2c
lea ecx, [esp + 0x10]
call fcn.00455d90
push 0x4bfa58
lea ecx, [esp + 0x10]
call fcn.00455dc0
lea ecx, [esp + 0xc]
call fcn.00420780
push eax
call fcn.0047e100
add esp, 4
test eax, eax
mov ecx, esi
jne 0x47f116
push 0x4bd07c
call fcn.00418aa0
jmp 0x47f120
lea edx, [esp + 0xc]
push edx
call fcn.004206a0
lea ecx, [esp + 0xc]
call fcn.004206f0
mov eax, esi
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004851ae
add esp, 0x238
ret

Function at 0x47f150
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4ab2fb
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0x228], eax
push edi
mov eax, dword [0x4cd290]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
xor edi, edi
push edi
push 0x23
lea eax, [esp + 0x30]
push eax
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x10]
call fcn.00420640
lea ecx, [esp + 0xc]
mov dword [esp + 0x23c], edi
call fcn.0044a3d0
test al, al
je 0x47f1cd
push 0x4bd07c
mov ecx, esi
call fcn.00418aa0
jmp 0x47f240
mov eax, dword [esp + 0x20]
lea edi, [eax - 1]
cmp eax, edi
ja 0x47f1dd
call fcn.004840ea
lea ecx, [esp + 0xc]
call fcn.00424a40
movzx eax, word [eax + edi*2]
cmp ax, 0x5c
je 0x47f204
cmp ax, 0x2f
je 0x47f204
push 0x4bed2c
lea ecx, [esp + 0x10]
call fcn.00455d90
push 0x4bfa58
lea ecx, [esp + 0x10]
call fcn.00455dc0
lea ecx, [esp + 0xc]
call fcn.00420780
push eax
call fcn.0047e100
add esp, 4
test eax, eax
mov ecx, esi
jne 0x47f236
push 0x4bd07c
call fcn.00418aa0
jmp 0x47f240
lea edx, [esp + 0xc]
push edx
call fcn.004206a0
lea ecx, [esp + 0xc]
call fcn.004206f0
mov eax, esi
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004851ae
add esp, 0x238
ret
Function at 0x47f690
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4a9517
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0x24c], eax
push esi
mov eax, dword [0x4cd290]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x47f81d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47f81d
push 0x208
lea eax, [esp + 0x4e]
push 0
push eax
mov word [esp + 0x54], 0
call fcn.004863a0
push 0x104
lea ecx, [esp + 0x58]
push esi
push ecx
call fcn.00486dcb
add esp, 0x18
test eax, eax
jne 0x47f742
push esi
lea ecx, [esp + 0x14]
call fcn.00418aa0
mov dword [esp + 0x260], 0
lea edx, [esp + 0x10]
push edx
mov ecx, 0x4d14f8
call fcn.004348c0
lea ecx, [esp + 0x10]
call fcn.00418c50
jmp 0x47f81d
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
je 0x47f76f
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x14]
call fcn.00418aa0
mov dword [esp + 0x260], 1
jmp 0x47f725
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x10]
call fcn.0040f390
lea ecx, [esp + 0xc]
mov dword [esp + 0x260], 2
call fcn.0041f610
xor esi, esi
mov ecx, dword [esi + 0x4ce9c8]
push ecx
lea ecx, [esp + 0xc]
call fcn.0040f390
lea ecx, [esp + 8]
mov byte [esp + 0x260], 3
call fcn.0041f610
push 0
lea ecx, [esp + 0xc]
call fcn.0040f0f0
push eax
lea ecx, [esp + 0x14]
call fcn.0041f570
test eax, eax
lea ecx, [esp + 8]
jg 0x47f844
mov byte [esp + 0x260], 2
call fcn.0040f420
add esi, 4
cmp esi, 0x38
jb 0x47f793
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x30]
call fcn.00418aa0
lea eax, [esp + 0x2c]
push eax
mov ecx, 0x4d14f8
mov byte [esp + 0x264], 4
call fcn.004348c0
lea ecx, [esp + 0x2c]
call fcn.00418c50
lea ecx, [esp + 0xc]
call fcn.0040f420
xor al, al
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.004851ae
add esp, 0x25c
ret
call fcn.0040f420
lea ecx, [esp + 0xc]
call fcn.0040f420
mov al, 1
jmp 0x47f81f

Function at 0x47f860
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0x210], eax
xor eax, eax
push 0x208
push eax
mov dword [esp + 8], eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call fcn.004863a0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.00418aa0
mov ecx, dword [esp + 0x210]
xor ecx, esp
mov eax, esi
call fcn.004851ae
add esp, 0x214
ret
Function at 0x47f8f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0x40c], eax
lea eax, [esp]
push eax
push 1
push 0
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47f9d4
push 0x400
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.004863a0
mov ecx, dword [esp + 0xc]
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x4bf3ac
push ecx
mov dword [esp + 0x1c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47f9ca
lea edx, [esp + 8]
push edx
push edi
push esi
call fcn.004890c8
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47f980
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x47f9a6
push 0x4bed2c
push edi
push esi
call fcn.0048a217
add esp, 0xc
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004851ae
add esp, 0x410
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
xor ecx, esp
xor eax, eax
call fcn.004851ae
add esp, 0x410
ret

Function at 0x47f9f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0x40c], eax
lea eax, [esp]
push eax
push 1
push 0
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47faab
push 0x400
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.004863a0
mov ecx, dword [esp + 0xc]
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push 0
push str.Version
push ecx
mov dword [esp + 0x1c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47faa1
mov eax, dword [esp + 0x414]
lea edx, [esp + 8]
push edx
push eax
push esi
call fcn.004890c8
mov ecx, dword [esp + 0xc]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004851ae
add esp, 0x410
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
xor ecx, esp
xor eax, eax
call fcn.004851ae
add esp, 0x410
ret
Function at 0x47fad0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push ebx
xor ebx, ebx
cmp edi, ebx
jne 0x47fae2
lea eax, [ebx + 1]
pop ebx
add esp, 0x3c
ret
push esi
push 0x38
lea eax, [esp + 0x10]
push ebx
push eax
mov esi, 1
call fcn.004863a0
mov ecx, dword [esp + 0x54]
add esp, 0xc
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], str.runas
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x47fb5d
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
sub esi, 0x102
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 2
mov eax, esi
pop esi
pop ebx
add esp, 0x3c
ret

Function at 0x47fb70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a74d8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push esi
mov eax, dword [0x4cd290]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
push 0x40
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.004863a0
xor eax, eax
add esp, 0xc
lea ecx, [esp + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 0x181
call fcn.0040f1d0
push edi
push ebx
lea ecx, [esp + 0x10]
push str.__s___s
push ecx
mov dword [esp + 0x88], 0
call fcn.00413ba0
add esp, 0x10
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
mov edx, esi
neg edx
push 0
sbb edx, edx
push 0
and edx, 0xa
push 0
lea ecx, [esp + 0x28]
mov word [esp + 0x74], dx
call fcn.0040f0f0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x47fc6d
mov edx, dword [ebp + 8]
push edi
push ebx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QMTFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_ws__cmd:_s
mov esi, 0x4d1508
call fcn.00481e10
add esp, 0x18
lea ecx, [esp + 8]
call fcn.0040f420
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.0044a3f0
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x10]
call fcn.0044a3f0
mov eax, dword [ebp + 8]
test eax, eax
je 0x47fcaf
mov edx, dword [esp + 0x14]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x47fcaf
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea ecx, [esp + 0xc]
call fcn.004207d0
lea ecx, [esp + 0x10]
call fcn.004207d0
lea ecx, [esp + 8]
call fcn.0040f420
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47fce0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a74a8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push esi
mov eax, dword [0x4cd290]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
push 0x40
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.004863a0
xor eax, eax
add esp, 0xc
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 0x181
call fcn.0040f1d0
push edi
push ebx
lea ecx, [esp + 0x14]
push str.__s___s
push ecx
mov dword [esp + 0x88], 0
call fcn.00413ba0
add esp, 0x10
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
mov edx, esi
neg edx
push 0
sbb edx, edx
push 0
and edx, 0xa
push 0
lea ecx, [esp + 0x2c]
mov word [esp + 0x74], dx
call fcn.0040f0f0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x47fdd9
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QMTFunction::RunApp_CreateProcessW_error:_d__show:_d__path:_ws__cmd:_s
mov esi, 0x4d1508
call fcn.00481e10
add esp, 0x14
lea ecx, [esp + 0xc]
call fcn.0040f420
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call fcn.0044a3f0
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x10]
call fcn.004207d0
lea ecx, [esp + 0xc]
call fcn.0040f420
mov eax, esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47fe10
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x23c]
push esi
xor ebx, ebx
push ebx
push 2
mov dword [edi], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x47fe5f
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x47fe80
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004851ae
add esp, 0x230
ret
cmp dword [esp + 0x14], ebx
jbe 0x47fe98
lea ecx, [esp + 0x30]
push ebp
push ecx
call fcn.00486a9c
add esp, 8
test eax, eax
je 0x47fea9
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x47fe80
jmp 0x47feb4
mov eax, dword [esp + 0x14]
mov dword [edi], eax
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x238]
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004851ae
add esp, 0x230
ret
Function at 0x47fee0
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
push edi
mov esi, 1
mov dword [esp + 0x10], 0
lea ebx, [ebx]
mov eax, dword [esp + 0x1c]
push eax
lea edi, [esp + 0x18]
mov dword [esp + 0x18], 0
call fcn.0047fe10
mov ebx, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x47ff73
push ebx
xor edi, edi
push edi
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x47ff71
push edi
push esi
call ebp
push 0x1f4
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x47ff71
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x47ff71
push ebx
push str.QMTProcess::CloseProcessByID___d
mov ecx, 0x4d1508
call fcn.00481c20
add esp, 8
mov esi, edi
add dword [esp + 0x10], 1
test ebx, ebx
je 0x47ff87
cmp dword [esp + 0x10], 0xa
jl 0x47ff00
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x480410
Capabilities:
Query service status

Disassembly:
sub esp, 0x24
push esi
mov esi, eax
test esi, esi
je 0x4804e1
cmp word [esi], 0
je 0x4804e1
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
xor eax, eax
test edi, edi
mov dword [esp + 0xc], edi
je 0x48047d
push 4
push esi
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
mov dword [esp + 8], esi
jne 0x480483
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
add esp, 0x24
ret
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4804a7
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x24
ret
cmp dword [esp + 0x14], 1
lea esi, [esp + 8]
jne 0x4804c8
call fcn.004804f0
lea esi, [esp + 0xc]
call fcn.004804f0
pop edi
xor eax, eax
pop esi
add esp, 0x24
ret
call fcn.004804f0
lea esi, [esp + 0xc]
call fcn.004804f0
pop edi
mov eax, 1
pop esi
add esp, 0x24
ret
xor eax, eax
pop esi
add esp, 0x24
ret