joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400087c3
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
mov dword [rbp - 4], 0
mov rax, qword [rbp + 0x18]
mov qword [rax], 0
mov qword [rbp - 0x10], 0
mov dword [rbp - 8], 0
lea rax, [0x14001b6b0]
mov qword [rbp - 0x20], rax
lea rax, [0x14001b6d8]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x20]
mov r9d, 1
mov r8d, 2
mov rdx, rax
mov ecx, 0
call fcn.14000bc7b
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0
je 0x140008887
lea r8, [rbp - 0x10]
mov ecx, dword [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x10]
mov r9, r8
mov r8d, ecx
mov rcx, rax
call fcn.1400088f4
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0
je 0x14000888a
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.1400088b2
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0
je 0x14000888d
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp + 0x18]
mov qword [rax], rdx
mov dword [rbp - 4], 1
jmp 0x14000888e
nop
jmp 0x14000888e
nop
jmp 0x14000888e
nop
cmp dword [rbp - 4], 0
jne 0x1400088a9
mov rax, qword [rbp - 0x10]
test rax, rax
je 0x1400088a9
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.14000a966
mov eax, dword [rbp - 4]
add rsp, 0x40
pop rbp
ret

Function at 0x140009195
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
lea rax, [0x14001b6b0]
mov qword [rbp - 0x20], rax
lea rax, str.SeAssignPrimaryTokenPrivilege
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x20]
mov rax, qword [rbp + 0x10]
mov r9d, 2
mov r8, rdx
mov rdx, rax
lea rax, str.S_1_5_18
mov rcx, rax
call fcn.1400087c3
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x140009223
mov ecx, 1
mov rax, qword [fcn.140019560]
call rax
mov rcx, rax
lea rax, str.Could_not_impersonate_SYSTEM
mov rdx, rax
call fcn.140008780
mov ecx, 1
mov rax, qword [fcn.140019560]
call rax
mov rcx, rax
lea rax, [0x14001b751]
mov rdx, rax
call fcn.140008780
mov eax, dword [rbp - 4]
add rsp, 0x40
pop rbp
ret
Function at 0x14000bc07
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov r8d, 1
lea rax, str.SeDebugPrivilege
mov rdx, rax
mov ecx, 0
call fcn.14000be35
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x14000bc72
mov ecx, 1
mov rax, qword [fcn.140019560]
call rax
mov rcx, rax
lea rax, str.Could_not_enable_SeDebugPrivilege._Are_you_elevated_
mov rdx, rax
call fcn.14000bb50
mov ecx, 1
mov rax, qword [fcn.140019560]
call rax
mov rcx, rax
lea rax, [0x14001b90b]
mov rdx, rax
call fcn.14000bb50
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret

Function at 0x1400137c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140019560
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140019560
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140013830
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140023334]
mov rbx, rcx
test esi, esi
jle 0x140013960
mov rax, qword [0x140023338]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001387b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140013905
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140013860
mov rcx, rbx
call fcn.140014280
mov rdi, rax
test rax, rax
je 0x140013982
mov rax, qword [0x140023338]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400143c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140023338]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140013967
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400138fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140013910
add dword [0x140023334], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140023338]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400138fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400137c0
nop dword [rax]
xor esi, esi
jmp 0x140013888
mov rax, qword [0x140023338]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400137c0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400137c0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140013ef0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400233a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140023380]
test rbx, rbx
je 0x140013f4c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140013f43
test rsi, rsi
je 0x140013f43
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140013f28
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140014280
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001dcb0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400142a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400142a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400142a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400142fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400142f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400142a0
add rax, 0x28
cmp rax, r9
jne 0x1400142e0
xor eax, eax
ret

Function at 0x140014300
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001dcb0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14001431f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140014328
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14001431f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400143c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001dcb0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400143df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400143e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400012f8
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x120
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, qword [rbx + 0x20]
mov edx, 9
mov rbp, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edi, edi
lea rdx, [rsp + 0x50]
lea r8d, [rdi + 0x64]
mov rcx, rbp
mov rsi, rax
mov word [rsp + 0x50], di
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rbx + 0x20]
lea rdx, [rsp + 0x130]
mov dword [rsp + 0x130], edi
mov dword [rsp + 0x134], edi
call qword [sym.imp.USER32.dll_ClientToScreen]
lea r8d, [rdi + 0x10]
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.1400fdc00
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowRect]
mov r8d, dword [rsp + 0x40]
mov r9d, dword [rsp + 0x44]
mov edi, dword [rsp + 0x48]
mov ebx, dword [rsp + 0x4c]
mov dword [rsp + 0x30], 4
sub edi, r8d
sub r8d, dword [rsp + 0x130]
sub ebx, r9d
sub r9d, dword [rsp + 0x134]
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x44], r9d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov r8d, dword [rsp + 0x44]
mov edx, dword [rsp + 0x40]
mov r9d, edi
mov rcx, rsi
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_MoveWindow]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400048ac
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rcx
mov rcx, qword [rcx]
mov ebx, esi
cmp rcx, rsi
je 0x1400048d2
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea edx, [rbx + 0x2d0]
mov rcx, rdi
movsxd rdx, edx
call fcn.1400622f4
cmp ebx, esi
jg 0x140004981
mov rax, qword [rdi]
lea rcx, [0x140117960]
mov r8d, 0x208
mov word [rax], si
mov rdx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
mov ebx, eax
jg 0x140004966
mov rdx, qword [rdi]
lea rcx, [0x140117950]
mov r8d, 0x208
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
mov ebx, eax
jg 0x140004966
mov rdx, qword [rdi]
xor r9d, r9d
xor ecx, ecx
lea r8d, [r9 + 0x24]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rbx, eax
cmp ebx, esi
jle 0x140004981
mov rax, qword [rdi]
lea rdx, [0x140117940]
lea rcx, [rax + rbx*2]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
add ebx, 5
cmp ebx, esi
jle 0x140004981
mov rax, qword [rdi]
movsxd rcx, ebx
mov edx, 0x5c
mov word [rax + rcx*2], dx
mov rax, qword [rdi]
inc ebx
movsxd rcx, ebx
mov word [rax + rcx*2], si
mov rdx, qword [rdi]
lea rcx, [0x1401370d0]
call fcn.140027660
cmp ebx, esi
jle 0x1400049a0
mov rcx, qword [rdi]
call fcn.1400fce9c
cmp eax, esi
jne 0x1400049dc
mov rdx, qword [rdi]
xor r9d, r9d
xor ecx, ecx
lea r8d, [r9 + 0x24]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rcx, qword [rdi]
lea rdx, [0x140117930]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, qword [rdi]
lea rcx, [0x1401370d0]
call fcn.140027660
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140004ff4
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push rbx
sub rsp, 0x70
xor ebx, ebx
lea rdx, [rsp + 0x20]
lea rcx, str.LC_ALL
lea r8d, [rbx + 0x20]
mov word [rsp + 0x20], bx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
movzx r11d, word [rsp + 0x20]
cmp r11w, bx
jne 0x140005040
lea r9d, [rbx + 0x20]
lea r8, [rsp + 0x20]
lea edx, [rbx + 0xb]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov r11w, word [rsp + 0x20]
lea rax, [rsp + 0x20]
cmp r11w, bx
lea rdx, [0x140117b38]
lea rcx, [0x140136a70]
cmovne rdx, rax
call fcn.14006e3dc
mov rcx, qword [0x140136a70]
call fcn.1400636ac
movzx ecx, word [0x140141004]
cmp eax, 1
cmovg cx, ax
mov word [0x140141004], cx
add rsp, 0x70
pop rbx
ret

Function at 0x14000519c
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x140005190
lea rdx, str.ChangeWindowMessageFilter
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140005187
mov edx, 1
mov ecx, 0x233
call rdi
mov edx, 1
lea ecx, [rdx + 0x49]
call rdi
mov edx, 1
lea ecx, [rdx + 0x48]
call rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
or eax, 0x8001
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [0x140134330], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x140134340], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp qword [0x1401372e8], 0
mov qword [0x140134338], rax
jne 0x140005202
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [0x1401372e8], rax
and qword [0x140136af0], 0
lea rax, [0x140136af0]
mov qword [0x140137120], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ecx, ecx
mov dword [0x140136934], eax
call fcn.1400184f0
add rsp, 0x28
jmp 0x140005130
Function at 0x140005234
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
lea rcx, [rax + 0x10]
xor ebx, ebx
mov dword [rax + 0x10], 8
mov dword [rax + 0x14], ebx
call qword [sym.imp.USER32.dll_GetLastInputInfo]
mov edx, dword [0x1401369fc]
mov eax, dword [rsp + 0x3c]
sub eax, edx
cmp eax, ebx
cmovg edx, dword [rsp + 0x3c]
mov dword [0x1401369fc], edx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1401369fc], eax
mov al, byte [0x14013424f]
cmp al, bl
jle 0x1400052cd
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x3c], ebx
call qword [sym.imp.USER32.dll_GetLastInputInfo]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, dword [rsp + 0x3c]
mov ecx, eax
sub ecx, r8d
cmp ecx, edi
jb 0x1400052b6
mov edx, dword [0x1401369fc]
sub eax, edx
cmp eax, edi
jae 0x1400052d8
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11b, byte [0x14013424f]
cmp r11b, bl
jg 0x140005287
mov r8d, dword [rsp + 0x3c]
mov edx, dword [0x1401369fc]
mov ecx, r8d
sub ecx, edx
cmp ecx, ebx
mov cl, byte [0x14013424f]
cmovg edx, r8d
cmp cl, bl
setg bl
mov dword [0x1401369fc], edx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000532c
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x98
lea rdx, [rsp + 0x20]
lea rcx, str.DEBUGMDG
mov r8d, 0x63
mov byte [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
movzx r11d, byte [0x14013696b]
cmp byte [rsp + 0x20], 0x31
mov eax, 1
cmove r11d, eax
mov byte [0x14013696b], r11b
add rsp, 0x98
ret

Function at 0x1400055d4
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
mov qword [rax - 0x10], rcx
mov rsi, rdx
xor r9d, r9d
xor edx, edx
or rcx, 0xffffffffffffffff
mov r8d, 0x8000004
mov dword [rax - 0x18], 0x64
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x140005663
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140005663
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x64]
call fcn.140005378
mov dword [rbx], 0xffffffff
mov qword [rbx + 0x10], rsi
lea rcx, [rbx + 8]
mov qword [0x140134040], rcx
mov qword [0x140136a20], rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400056a4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov al, byte [0x14013424f]
mov ebx, 0x14
cmp al, 2
je 0x1400056c1
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [0x140136a20]
mov ecx, 0x1e
test rax, rax
cmovne ebx, ecx
jmp 0x1400056ec
mov rax, qword [0x140136a08]
test rax, rax
je 0x1400056f1
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 1
jns 0x1400056d5
mov rcx, qword [0x140136a08]
test rcx, rcx
je 0x140005710
xor edx, edx
mov qword [0x140136a08], 0
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [0x14013424f], 0xff
add rsp, 0x20
pop rbx
ret
Function at 0x140005720
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
xor ecx, ecx
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000004
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x64
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov bl, 1
mov rdi, rax
test rax, rax
je 0x14000577f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140005797
xor bl, bl
jmp 0x140005797
mov r8, rbp
xor edx, edx
mov ecx, 0x8000004
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400057e8
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [0x140136a30], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [0x140136a30]
test r11, r11
je 0x1400057e8
test bl, bl
je 0x1400057e5
xor edx, edx
mov rcx, r11
lea r8d, [rdx + 0x64]
call fcn.1400fdc00
mov r11, qword [0x140136a30]
mov qword [r11], rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400083ec
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x130
lea rdx, str.PECMD:MSGSVR:HWND
xor ecx, ecx
call fcn.140005720
call fcn.140004ff4
mov byte [0x14013696a], 1
call fcn.1400fef80
call fcn.14005bd24
lea rcx, str.TaskbarButtonCreated
call qword [sym.imp.USER32.dll_RegisterWindowMessageW]
xor r9d, r9d
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 0x24]
xor ecx, ecx
mov byte [rsp + 0x20], 0
mov dword [0x1401369f8], eax
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea rdx, str.System32Kernel32
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, str.user32
mov rbx, rax
mov qword [0x140136f98], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.GDI32
mov qword [0x140136f90], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, [0x140118120]
mov rcx, rbx
mov qword [0x140136fa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movsx edx, byte [0x140134038]
lea rbx, [0x1401370d0]
lea r8, str.bX64
mov qword [0x140136970], rax
mov rcx, rbx
call fcn.140065590
lea r8, str.ptrlen
mov edx, 8
mov rcx, rbx
call fcn.140065590
mov edx, dword [0x1401369f8]
lea r8, str.WM_TASKBARBUTTONCREATED
mov rcx, rbx
call fcn.140065590
add rsp, 0x130
pop rbx
ret
Function at 0x1400084fc
Capabilities:
Terminate process

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x38
mov qword [rsp + 0x70], rcx
movzx edi, word [rcx]
add rcx, 8
mov ebp, 0x20
mov qword [rsp + 0x70], rcx
lea r12d, [rbp - 0x17]
cmp r12w, word [rcx]
ja 0x14000852f
cmp word [rcx], 0xd
jbe 0x14000853d
cmp bp, word [rcx]
je 0x14000853d
add rcx, 2
mov qword [rsp + 0x70], rcx
call fcn.14000532c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x88]
xor esi, esi
mov dword [0x1401369fc], eax
mov qword [rsp + 0x80], rsi
call fcn.14006e2a8
lea rcx, [rsp + 0x78]
call fcn.1400621f4
mov rdx, qword [rsp + 0x88]
lea r8, [rsp + 0x78]
lea rcx, [0x1401370d0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
call fcn.140077e38
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x80]
call fcn.14006e3dc
mov r11, qword [rsp + 0x80]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x70], r11
call fcn.140059920
lea rcx, [rsp + 0x88]
call fcn.140059920
mov rcx, qword [rsp + 0x70]
call fcn.140005304
lea r8d, [rsi + 0xf]
lea rcx, str._InstallService
mov rdx, rax
mov rbx, rax
mov qword [rsp + 0x70], rax
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, esi
jne 0x140008640
movzx eax, word [rbx + 0x1e]
cmp r12w, ax
ja 0x140008605
cmp ax, 0xd
jbe 0x14000860f
cmp bp, ax
je 0x14000860f
cmp ax, si
jne 0x140008640
mov rcx, qword [rsp + 0x70]
lea rdx, str._Service
mov r8d, 0x1e
mov bl, 0x49
call fcn.14001d8e0
mov rcx, qword [rsp + 0x70]
add rcx, 0x1e
call fcn.140005304
mov rdx, rax
mov qword [rsp + 0x70], rax
jmp 0x140008667
lea rdx, [rsp + 0x70]
lea rcx, [0x1401181b8]
mov r8d, 8
call fcn.140064cd0
cmp al, sil
je 0x1400086f0
mov rdx, qword [rsp + 0x70]
mov bl, 0x53
mov r13d, 0x22
cmp r13w, di
jne 0x1400086b8
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rsp + 0x70]
movsxd rcx, eax
lea rax, [rdx + rcx*2 - 2]
cmp rax, rdx
jbe 0x1400086b8
cmp r12w, word [rax]
ja 0x14000869a
cmp word [rax], 0xd
jbe 0x14000869f
cmp bp, word [rax]
jne 0x1400086a5
sub rax, 2
jmp 0x140008689
cmp rax, rdx
jbe 0x1400086b8
cmp r13w, word [rax]
jne 0x1400086b8
mov word [rax], si
mov rdx, qword [rsp + 0x70]
sub rdx, 2
movsx eax, bl
mov ecx, 0x7e
mov qword [rsp + 0x70], rdx
mov word [rdx], ax
mov rax, qword [rsp + 0x70]
sub rax, 2
mov qword [rsp + 0x70], rax
mov word [rax], cx
mov rcx, qword [rsp + 0x70]
call fcn.140017074
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rdx, [rsp + 0x70]
lea rcx, str._RemoveService
mov r8d, 0xe
call fcn.140064cd0
cmp al, sil
je 0x14000871f
mov rcx, qword [rsp + 0x70]
call fcn.140008b58
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [rsp + 0x80]
call fcn.140059920
xor eax, eax
add rsp, 0x38
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140008b58
Capabilities:
Delete service
Stop service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x850
movzx eax, word [rcx]
mov ebp, 0x20
mov rdi, rcx
mov rdx, rcx
xor esi, esi
lea r12d, [rbp - 0x17]
jmp 0x140008ba2
cmp r12w, ax
ja 0x140008b96
cmp ax, 0xd
jbe 0x140008ba7
cmp bp, ax
je 0x140008ba7
add rdi, 2
mov ax, word [rdi]
cmp ax, si
jne 0x140008b8a
mov rax, rdi
sub rax, rcx
mov ecx, 0x400
sar rax, 1
cmp eax, ecx
cmovg eax, ecx
lea rcx, [rsp + 0x40]
cdqe
lea rbx, [rax + rax]
mov r8, rbx
call fcn.14001d8e0
mov word [rsp + rbx + 0x40], si
cmp r12w, word [rdi]
ja 0x140008bde
cmp word [rdi], 0xd
jbe 0x140008be3
cmp bp, word [rdi]
jne 0x140008be9
add rdi, 2
jmp 0x140008bd2
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
cmp rax, rsi
je 0x140008c59
lea rdx, [rsp + 0x40]
mov r8d, 0x10020
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
cmp rax, rsi
je 0x140008c59
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, 0xc8
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140008c5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x14000a4f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov bpl, dl
xor edx, edx
mov sil, r9b
mov rdi, r8
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbx]
mov qword [0x140136a08], 0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx], 0
test rdi, rdi
je 0x14000a555
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000a555
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rdi], 0
test sil, sil
je 0x14000a56b
lea rcx, str.shutdown__a
mov r8b, 1
xor edx, edx
call fcn.14000873c
mov rcx, qword [0x140136ac0]
call fcn.140005504
test bpl, bpl
je 0x14000a599
mov ebx, 2
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_AbortSystemShutdownW]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 1
jns 0x14000a581
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret