joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004538
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 0x14000455e
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea edx, [rbx + 0x2d0]
mov rcx, rdi
movsxd rdx, edx
call fcn.14005828c
cmp ebx, esi
jg 0x14000460d
mov rax, qword [rdi]
lea rcx, [0x1400f0830]
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 0x1400045f2
mov rdx, qword [rdi]
lea rcx, [0x1400f0820]
mov r8d, 0x208
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
mov ebx, eax
jg 0x1400045f2
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 0x14000460d
mov rax, qword [rdi]
lea rdx, [0x1400f0810]
lea rcx, [rax + rbx*2]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
add ebx, 5
cmp ebx, esi
jle 0x14000460d
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, [0x14010df00]
call fcn.140028160
cmp ebx, esi
jle 0x14000462c
mov rcx, qword [rdi]
call fcn.1400d36c4
cmp eax, esi
jne 0x140004668
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, str.TEMP_
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rdx, qword [rdi]
lea rcx, [0x14010df00]
call fcn.140028160
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 0x140004c80
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 0x140004ccc
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, [0x1400f0a08]
lea rcx, [0x14010d9a0]
cmovne rdx, rax
call fcn.140062798
mov rcx, qword [0x14010d9a0]
call fcn.1400593f4
movzx ecx, word [0x14010d8e4]
cmp eax, 1
cmovg cx, ax
mov word [0x14010d8e4], cx
add rsp, 0x70
pop rbx
ret

Function at 0x140004e28
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 0x140004e1c
lea rdx, str.ChangeWindowMessageFilter
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140004e13
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 [0x14010b2d0], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x14010b2e0], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp qword [0x14010e110], 0
mov qword [0x14010b2d8], rax
jne 0x140004e8e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [0x14010e110], rax
and qword [0x14010da20], 0
lea rax, [0x14010da20]
mov qword [0x14010df50], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ecx, ecx
mov dword [0x14010d8b4], eax
call fcn.140015f2c
add rsp, 0x28
jmp 0x140004dbc
Function at 0x140004ec0
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 [0x14010d960]
mov eax, dword [rsp + 0x3c]
sub eax, edx
cmp eax, ebx
cmovg edx, dword [rsp + 0x3c]
mov dword [0x14010d960], edx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14010d960], eax
mov al, byte [0x14010b21f]
cmp al, bl
jle 0x140004f59
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 0x140004f42
mov edx, dword [0x14010d960]
sub eax, edx
cmp eax, edi
jae 0x140004f64
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11b, byte [0x14010b21f]
cmp r11b, bl
jg 0x140004f13
mov r8d, dword [rsp + 0x3c]
mov edx, dword [0x14010d960]
mov ecx, r8d
sub ecx, edx
cmp ecx, ebx
mov cl, byte [0x14010b21f]
cmovg edx, r8d
cmp cl, bl
setg bl
mov dword [0x14010d960], edx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140004fb8
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 [0x14010d944]
cmp byte [rsp + 0x20], 0x31
mov eax, 1
cmove r11d, eax
mov byte [0x14010d944], r11b
add rsp, 0x98
ret

Function at 0x140005260
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 0x1400052ef
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 0x1400052ef
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x64]
call fcn.140005004
mov dword [rbx], 0xffffffff
mov qword [rbx + 0x10], rsi
lea rcx, [rbx + 8]
mov qword [0x14010b018], rcx
mov qword [0x14010d980], rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140005330
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov al, byte [0x14010b21f]
mov ebx, 0x14
cmp al, 2
je 0x14000534d
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [0x14010d980]
mov ecx, 0x1e
test rax, rax
cmovne ebx, ecx
jmp 0x140005378
mov rax, qword [0x14010d968]
test rax, rax
je 0x14000537d
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 1
jns 0x140005361
mov rcx, qword [0x14010d968]
test rcx, rcx
je 0x14000539c
xor edx, edx
mov qword [0x14010d968], 0
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [0x14010b21f], 0xff
add rsp, 0x20
pop rbx
ret
Function at 0x1400053ac
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 0x14000540b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140005423
xor bl, bl
jmp 0x140005423
mov r8, rbp
xor edx, edx
mov ecx, 0x8000004
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov rdi, rax
test rax, rax
je 0x140005474
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 [0x14010d990], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [0x14010d990]
test r11, r11
je 0x140005474
test bl, bl
je 0x140005471
xor edx, edx
mov rcx, r11
lea r8d, [rdx + 0x64]
call fcn.1400d4180
mov r11, qword [0x14010d990]
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 0x1400057d0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbx, rcx
mov rsi, rdx
lea rcx, [rsp + 0x30]
mov edx, 0x169
mov r12, r8
call fcn.140058200
mov r15, qword [rsp + 0x30]
mov r8d, 0x104
add r15, 0xc8
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
xor edi, edi
cmp rsi, rdi
je 0x14000582a
lea ebp, [rdi + 1]
cmp rsi, 0xffffffffffffffff
jne 0x14000582c
mov ebp, edi
mov ebx, 0x64
cmp r12, rdi
je 0x140005849
mov rdx, rbx
mov rcx, r12
call fcn.14005828c
mov r11, qword [r12]
mov word [r11], di
cmp ebp, edi
je 0x14000585f
mov rdx, rbx
mov rcx, rsi
call fcn.14005828c
mov r11, qword [rsi]
mov word [r11], di
lea rdx, [rsp + 0x88]
mov rcx, r15
mov dword [rsp + 0x88], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov r14d, eax
cmp eax, edi
je 0x140005992
mov rdx, r14
mov ecx, 2
mov dword [rsp + 0x90], edi
mov qword [rsp + 0x98], rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [rsp + 0x88]
mov r8d, r14d
mov r9, rax
mov rcx, r15
mov rbx, rax
call sub.VERSION.dll_GetFileVersionInfoW
lea r9, [rsp + 0x90]
lea r8, [rsp + 0x98]
lea rdx, [0x1400f0aa8]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
cmp r12, rdi
je 0x140005919
mov rcx, qword [rsp + 0x98]
lea rdx, str._u._u._u._u
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 0x12]
movzx r9d, word [rcx + 0x10]
movzx ecx, word [rcx + 0x16]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, qword [r12]
call qword [sym.imp.USER32.dll_wsprintfW]
cmp ebp, edi
je 0x14000594f
mov rcx, qword [rsp + 0x98]
lea rdx, str._u._u._u._u
movzx eax, word [rcx + 0xc]
movzx r8d, word [rcx + 0xa]
movzx r9d, word [rcx + 8]
movzx ecx, word [rcx + 0xe]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_wsprintfW]
cmp rsi, rdi
jne 0x14000596b
mov rax, qword [rsp + 0x98]
mov edi, dword [rax + 0x10]
mov eax, dword [rax + 0x14]
shl rdi, 0x20
or rdi, rax
jmp 0x140005980
mov rcx, qword [rsp + 0x98]
mov edi, dword [rcx + 8]
mov ecx, dword [rcx + 0xc]
shl rdi, 0x20
or rdi, rcx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalFree]
lea rcx, [rsp + 0x30]
call fcn.14005041c
mov rbx, qword [rsp + 0x80]
mov rax, rdi
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005c60
Capabilities:
Spoof parent pid

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movzx eax, word [0x14010ef04]
mov rsi, r8
mov ebx, edx
mov rdi, rcx
test al, 2
jne 0x140005cc6
xor r8d, r8d
or ax, 3
lea rcx, str.SeRestorePrivilege
lea edx, [r8 + 2]
mov word [0x14010ef04], ax
call fcn.14001955c
xor r8d, r8d
lea rcx, str.SeSecurityPrivilege
lea edx, [r8 + 2]
call fcn.14001955c
xor r8d, r8d
lea rcx, str.SeTakeOwnershipPrivilege
lea edx, [r8 + 2]
call fcn.14001955c
mov r8d, ebx
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x140005d66
and qword [rsp + 0x50], 0
xor r8d, r8d
lea r9, [rsp + 0x50]
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.140057f90
xor r8d, r8d
lea r9, [rsp + 0x50]
lea edx, [r8 + 1]
mov rcx, rax
mov qword [rdi + 8], rax
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
cmp qword [rdi + 0x10], 0
je 0x140005d55
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
mov rcx, qword [rdi + 8]
lea r9, [rdi + 0x10]
xor edx, edx
mov r8d, 0x20000
mov qword [rsp + 0x20], 8
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test rsi, rsi
je 0x140005d62
mov rcx, qword [rdi + 8]
mov qword [rsi + 0x68], rcx
mov rax, qword [rdi + 0x10]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140007368
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x130
lea rdx, str.PECMD:MSGSVR:HWND
xor ecx, ecx
call fcn.1400053ac
call fcn.140004c80
mov byte [0x14010d8e7], 1
call fcn.1400e48ec
call fcn.1400526e0
xor r9d, r9d
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 0x24]
xor ecx, ecx
mov byte [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea rdx, str.System32Kernel32.dll
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.dll
mov rbx, rax
mov qword [0x14010ddd8], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, [0x1400f0d48]
mov rcx, rbx
mov qword [0x14010ddd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movsx edx, byte [0x14010b009]
lea r8, str.bX64
lea rcx, [0x14010df00]
mov qword [0x14010d8e8], rax
call fcn.14005b214
add rsp, 0x130
pop rbx
ret
Function at 0x140007424
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 0x140007457
cmp word [rcx], 0xd
jbe 0x140007465
cmp bp, word [rcx]
je 0x140007465
add rcx, 2
mov qword [rsp + 0x70], rcx
call fcn.140004fb8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x88]
xor esi, esi
mov dword [0x14010d960], eax
mov qword [rsp + 0x80], rsi
call fcn.140062680
lea rcx, [rsp + 0x78]
call fcn.14005818c
mov rdx, qword [rsp + 0x88]
lea r8, [rsp + 0x78]
lea rcx, [0x14010df00]
xor r9d, r9d
mov byte [rsp + 0x20], 1
call fcn.14006a800
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x80]
call fcn.140062798
mov r11, qword [rsp + 0x80]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x70], r11
call fcn.14005041c
lea rcx, [rsp + 0x88]
call fcn.14005041c
mov rcx, qword [rsp + 0x70]
call fcn.140004f90
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 0x140007568
movzx eax, word [rbx + 0x1e]
cmp r12w, ax
ja 0x14000752d
cmp ax, 0xd
jbe 0x140007537
cmp bp, ax
je 0x140007537
cmp ax, si
jne 0x140007568
mov rcx, qword [rsp + 0x70]
lea rdx, str._Service
mov r8d, 0x1e
mov bl, 0x49
call fcn.14001aac4
mov rcx, qword [rsp + 0x70]
add rcx, 0x1e
call fcn.140004f90
mov rdx, rax
mov qword [rsp + 0x70], rax
jmp 0x14000758f
lea rdx, [rsp + 0x70]
lea rcx, [0x1400f0da0]
mov r8d, 8
call fcn.14005a964
cmp al, sil
je 0x140007618
mov rdx, qword [rsp + 0x70]
mov bl, 0x53
mov r13d, 0x22
cmp r13w, di
jne 0x1400075e0
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 0x1400075e0
cmp r12w, word [rax]
ja 0x1400075c2
cmp word [rax], 0xd
jbe 0x1400075c7
cmp bp, word [rax]
jne 0x1400075cd
sub rax, 2
jmp 0x1400075b1
cmp rax, rdx
jbe 0x1400075e0
cmp r13w, word [rax]
jne 0x1400075e0
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.140014d10
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rdx, [rsp + 0x70]
lea rcx, str._RemoveService
mov r8d, 0xe
call fcn.14005a964
cmp al, sil
je 0x140007647
mov rcx, qword [rsp + 0x70]
call fcn.140007a80
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [rsp + 0x80]
call fcn.14005041c
xor eax, eax
add rsp, 0x38
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140007a80
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 0x140007aca
cmp r12w, ax
ja 0x140007abe
cmp ax, 0xd
jbe 0x140007acf
cmp bp, ax
je 0x140007acf
add rdi, 2
mov ax, word [rdi]
cmp ax, si
jne 0x140007ab2
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.14001aac4
mov word [rsp + rbx + 0x40], si
cmp r12w, word [rdi]
ja 0x140007b06
cmp word [rdi], 0xd
jbe 0x140007b0b
cmp bp, word [rdi]
jne 0x140007b11
add rdi, 2
jmp 0x140007afa
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
cmp rax, rsi
je 0x140007b81
lea rdx, [rsp + 0x40]
mov r8d, 0x10020
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
cmp rax, rsi
je 0x140007b81
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 0x140007b87
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 0x1400095c4
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 [0x14010d968], 0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx], 0
test rdi, rdi
je 0x140009629
mov rcx, qword [rdi]
test rcx, rcx
je 0x140009629
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 0x14000963f
lea rcx, str.shutdown__a
mov r8b, 1
xor edx, edx
call fcn.140007664
mov rcx, qword [0x14010d9f0]
call fcn.140005190
test bpl, bpl
je 0x14000966d
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 0x140009655
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140014f4c
Capabilities:
Check os version
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x70
lea rcx, [0x14010dac0]
mov dword [0x14010dac0], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x14010dac4], 5
je 0x140014f79
xor eax, eax
jmp 0x140015070
mov eax, dword [0x14010dac8]
test eax, eax
je 0x140014f8f
cmp eax, 1
jne 0x140014f72
mov ebx, 0x39000
jmp 0x140014f94
mov ebx, 0x30000
lea rdx, str.DevicePhysicalMemory
lea rcx, [rsp + 0x30]
call qword [0x14010da78]
and qword [rsp + 0x48], 0
and dword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
and qword [rsp + 0x68], 0
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rcx, [0x14010dc28]
mov edx, 6
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], 0x30
call qword [0x14010da40]
cmp eax, 0xc0000022
jne 0x140015034
lea r8, [rsp + 0x40]
lea rcx, [0x14010dc28]
mov edx, 0x60000
call qword [0x14010da40]
mov rcx, qword [0x14010dc28]
call fcn.140014dfc
mov rcx, qword [0x14010dc28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x40]
lea rcx, [0x14010dc28]
mov edx, 6
call qword [0x14010da40]
test eax, eax
js 0x140014f72
mov rcx, qword [0x14010dc28]
xor r8d, r8d
mov r9d, ebx
lea edx, [r8 + 6]
mov qword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [0x14010dc20], rax
neg rax
sbb rax, rax
and rax, qword [0x14010dc28]
add rsp, 0x70
pop rbx
ret

Function at 0x140015078
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov eax, edx
mov rdi, rdx
mov esi, edx
shr rax, 0x16
mov r9d, dword [rcx + rax*4]
mov eax, r9d
and eax, 1
test al, al
jne 0x1400150a4
xor eax, eax
jmp 0x140015110
mov eax, r9d
and eax, 0x80
test al, al
je 0x1400150c0
mov ebx, r9d
xor ebx, edx
and ebx, 0x3fffff
xor ebx, r9d
jmp 0x14001510e
mov rcx, qword [0x14010dc28]
xor r8d, r8d
and r9d, 0xfffff000
lea edx, [r8 + 4]
mov qword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
shr rsi, 0xc
mov ecx, eax
and esi, 0x3ff
mov eax, dword [rcx + rsi*4]
and eax, 1
test al, al
je 0x1400150a0
mov ebx, dword [rcx + rsi*4]
xor ebx, edi
and ebx, 0xfff
xor ebx, dword [rcx + rsi*4]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140015120
Capabilities:
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x30
mov rdx, rcx
mov rcx, qword [0x14010dc20]
call fcn.140015078
mov rcx, qword [0x14010dc28]
xor r8d, r8d
mov r9d, eax
lea edx, [r8 + 6]
mov rbx, rax
and r9d, 0xfffff000
mov qword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rax
test rax, rax
je 0x14001517d
mov eax, ebx
shr rax, 2
and eax, 0x3ff
mov ebx, dword [rcx + rax*4]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1400152c0
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
mov r8, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
je 0x1400152e7
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140015420
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
xor r9d, r9d
mov rdi, rcx
mov dword [rax - 0x20], 0x80
lea rcx, str.C:pe.debug.log
lea r8d, [r9 + 7]
mov edx, 0xc0000000
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400154a3
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call fcn.14005184c
cmp byte [rdi], 0
je 0x14001549a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, eax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400155a0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
xor ebp, ebp
mov rbx, rdx
mov rdx, rcx
mov qword [rax - 0x30], rbp
mov dword [rax - 0x38], ebp
mov rdi, r8
mov dword [rax - 0x40], 3
lea r9d, [rbp + 7]
lea rcx, [rax + 0x10]
mov r8d, 0x80000000
mov qword [rax + 0x10], rbp
mov qword [rax - 0x48], rbp
call fcn.140003568
mov rsi, rax
cmp rax, rbp
je 0x140015692
lea rdx, [rsp + 0x78]
mov rcx, rax
mov qword [rsp + 0x78], rbp
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov r11, qword [rsp + 0x78]
mov dword [rsp + 0x88], r11d
cmp rdi, rbp
je 0x140015618
mov dword [rdi], r11d
jmp 0x140015620
lea rdi, [rsp + 0x88]
cmp rbx, rbp
jne 0x14001564c
lea edx, [r11 + 0x10]
lea rcx, [rsp + 0x40]
call fcn.140057f14
mov rbx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rbp
call fcn.14005041c
cmp rbx, rbp
je 0x140015689
mov r8d, dword [rdi]
lea r9, [rsp + 0x78]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x78], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, dword [rsp + 0x78]
cmp r11d, ebp
cmovl r11d, ebp
xor edx, edx
movsxd rcx, r11d
lea r8d, [rdx + 6]
mov dword [rdi], r11d
add rcx, rbx
call fcn.1400d4180
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret