joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402226a0
Capabilities:
Create thread

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
xor r12d, r12d
xor esi, esi
movzx ebp, byte [rcx + 0x5b]
dec ebp
mov byte [rcx + 0x58], 1
mov rbx, rcx
cmp esi, ebp
jge 0x140222798
movzx eax, byte [rbx + 0x5a]
lea eax, [rsi + rax + 1]
cdq
idiv ebp
movsxd rdi, edx
imul rax, rdi, 0x68
cmp dword [rbx + rax + 0x68], 0
lea r12, [rbx + rax + 0x60]
jne 0x1402226f2
imul rdi, rdi, 0x68
cmp qword [rbx + rdi + 0x60], 0
je 0x140222703
inc esi
jmp 0x1402226bc
mov rcx, r12
call fcn.1402227f0
test eax, eax
je 0x1402226e2
jmp 0x1402227bd
lea rdx, [rbx + 0x60]
mov rax, r12
mov rcx, qword [r12 + 0x28]
movups xmm0, xmmword [rbx + 0x38]
sub rax, rdx
movabs rdx, 0x4ec4ec4ec4ec4ec5
sar rax, 3
imul rax, rdx
mov byte [rbx + 0x5a], al
mov rax, qword [rbx + 0x48]
movups xmmword [r12 + 0x20], xmm0
mov qword [r12 + 0x30], rax
mov qword [rbx + 0x38], 0
mov dword [rbx + 0x48], 0
test rcx, rcx
je 0x14022275c
mov qword [rbx + 0x40], rcx
call fcn.1401ec0b0
mov dword [rbx + 0x54], eax
jmp 0x140222775
cmp qword [rbx + 0x40], 0
je 0x140222775
movsxd rcx, dword [rbx + 0x54]
call fcn.1401ebf40
mov qword [rbx + 0x40], rax
test rax, rax
je 0x140222791
mov r8, r12
lea rdx, [0x1402227d0]
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1401fe850
mov eax, 7
jmp 0x1402227bd
jne 0x140222703
movsxd rsi, esi
lea rdx, [rbx + 0x38]
imul rsi, rsi, 0x68
lea rcx, [rbx + rsi + 0x60]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140222870
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14022e070
Capabilities:
Encode data using xor

Disassembly:
push rbx
xor r11d, r11d
movsxd rax, dword [rcx + 0xc]
mov r9, rdx
xor edx, edx
lea r10d, [rax + 1]
add rax, qword [rcx]
mov bl, byte [r9 + rdx]
xor byte [rax], bl
movsxd rax, r10d
cmp dword [rcx + 8], r10d
cmovle rax, r11
inc rdx
cmp r8d, edx
jg 0x14022e07d
add dword [rcx + 0x10], r8d
mov dword [rcx + 0xc], eax
pop rbx
ret
Function at 0x140006cc0
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140006cf0
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x140006cef
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140006cf5
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x140006cef
mov eax, 0
jmp 0x140006cef

Function at 0x140007370
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140007320
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140011550
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409c2bf0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400115bf
mov rcx, r9
call fcn.140011420
test eax, eax
je 0x1400115bf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x1400115bd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400115b4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400115bf
add rdx, 0x28
cmp rdx, r9
jne 0x1400115a0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x1400012ec
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.1400f97d0
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 0x1400047f4
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 0x14000481a
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea edx, [rbx + 0x2d0]
mov rcx, rdi
movsxd rdx, edx
call fcn.14006176c
cmp ebx, esi
jg 0x1400048c9
mov rax, qword [rdi]
lea rcx, [0x140113910]
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 0x1400048ae
mov rdx, qword [rdi]
lea rcx, [0x140113900]
mov r8d, 0x208
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, esi
mov ebx, eax
jg 0x1400048ae
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 0x1400048c9
mov rax, qword [rdi]
lea rdx, [0x1401138f0]
lea rcx, [rax + rbx*2]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
add ebx, 5
cmp ebx, esi
jle 0x1400048c9
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, [0x1401330e0]
call fcn.14002733c
cmp ebx, esi
jle 0x1400048e8
mov rcx, qword [rdi]
call fcn.1400f8ad8
cmp eax, esi
jne 0x140004924
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, [0x1401330e0]
call fcn.14002733c
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 0x140004f3c
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 0x140004f88
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, [0x140113ae8]
lea rcx, [0x140132a78]
cmovne rdx, rax
call fcn.14006d718
mov rcx, qword [0x140132a78]
call fcn.140062aa4
movzx ecx, word [0x14013296c]
cmp eax, 1
cmovg cx, ax
mov word [0x14013296c], cx
add rsp, 0x70
pop rbx
ret

Function at 0x1400050e4
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 0x1400050d8
lea rdx, str.ChangeWindowMessageFilter
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x1400050cf
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 [0x140130340], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x140130350], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp qword [0x1401332f8], 0
mov qword [0x140130348], rax
jne 0x14000514a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [0x1401332f8], rax
and qword [0x140132af8], 0
lea rax, [0x140132af8]
mov qword [0x140133130], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
xor ecx, ecx
mov dword [0x140132934], eax
call fcn.140018090
add rsp, 0x28
jmp 0x140005078
Function at 0x14000517c
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 [0x140132a0c]
mov eax, dword [rsp + 0x3c]
sub eax, edx
cmp eax, ebx
cmovg edx, dword [rsp + 0x3c]
mov dword [0x140132a0c], edx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140132a0c], eax
mov al, byte [0x14013025f]
cmp al, bl
jle 0x140005215
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 0x1400051fe
mov edx, dword [0x140132a0c]
sub eax, edx
cmp eax, edi
jae 0x140005220
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11b, byte [0x14013025f]
cmp r11b, bl
jg 0x1400051cf
mov r8d, dword [rsp + 0x3c]
mov edx, dword [0x140132a0c]
mov ecx, r8d
sub ecx, edx
cmp ecx, ebx
mov cl, byte [0x14013025f]
cmovg edx, r8d
cmp cl, bl
setg bl
mov dword [0x140132a0c], edx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

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

Function at 0x14000551c
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 0x1400055ab
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 0x1400055ab
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x64]
call fcn.1400052c0
mov dword [rbx], 0xffffffff
mov qword [rbx + 0x10], rsi
lea rcx, [rbx + 8]
mov qword [0x140130050], rcx
mov qword [0x140132a28], rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400055ec
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov al, byte [0x14013025f]
mov ebx, 0x14
cmp al, 2
je 0x140005609
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [0x140132a28]
mov ecx, 0x1e
test rax, rax
cmovne ebx, ecx
jmp 0x140005634
mov rax, qword [0x140132a10]
test rax, rax
je 0x140005639
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 1
jns 0x14000561d
mov rcx, qword [0x140132a10]
test rcx, rcx
je 0x140005658
xor edx, edx
mov qword [0x140132a10], 0
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [0x14013025f], 0xff
add rsp, 0x20
pop rbx
ret
Function at 0x140005668
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 0x1400056c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400056df
xor bl, bl
jmp 0x1400056df
mov r8, rbp
xor edx, edx
mov ecx, 0x8000004
call qword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov rdi, rax
test rax, rax
je 0x140005730
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 [0x140132a38], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [0x140132a38]
test r11, r11
je 0x140005730
test bl, bl
je 0x14000572d
xor edx, edx
mov rcx, r11
lea r8d, [rdx + 0x64]
call fcn.1400f97d0
mov r11, qword [0x140132a38]
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 0x140008300
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x130
lea rdx, str.PECMD:MSGSVR:HWND
xor ecx, ecx
call fcn.140005668
call fcn.140004f3c
mov byte [0x14013296f], 1
call fcn.140051ef8
call fcn.14005b53c
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 [0x1401329ec], 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 [0x140132fa8], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.GDI32
mov qword [0x140132fa0], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, [0x1401140d0]
mov rcx, rbx
mov qword [0x140132fb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movsx edx, byte [0x140130009]
lea rbx, [0x1401330e0]
lea r8, str.bX64
mov qword [0x140132970], rax
mov rcx, rbx
call fcn.140064988
lea r8, str.ptrlen
mov edx, 8
mov rcx, rbx
call fcn.140064988
mov edx, dword [0x1401329ec]
lea r8, str.WM_TASKBARBUTTONCREATED
mov rcx, rbx
call fcn.140064988
add rsp, 0x130
pop rbx
ret
Function at 0x140008410
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 0x140008443
cmp word [rcx], 0xd
jbe 0x140008451
cmp bp, word [rcx]
je 0x140008451
add rcx, 2
mov qword [rsp + 0x70], rcx
call fcn.140005274
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x88]
xor esi, esi
mov dword [0x140132a0c], eax
mov qword [rsp + 0x80], rsi
call fcn.14006d600
lea rcx, [rsp + 0x78]
call fcn.14006166c
mov rdx, qword [rsp + 0x88]
lea r8, [rsp + 0x78]
lea rcx, [0x1401330e0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
call fcn.140076e04
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x80]
call fcn.14006d718
mov r11, qword [rsp + 0x80]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x70], r11
call fcn.1400590a4
lea rcx, [rsp + 0x88]
call fcn.1400590a4
mov rcx, qword [rsp + 0x70]
call fcn.14000524c
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 0x140008554
movzx eax, word [rbx + 0x1e]
cmp r12w, ax
ja 0x140008519
cmp ax, 0xd
jbe 0x140008523
cmp bp, ax
je 0x140008523
cmp ax, si
jne 0x140008554
mov rcx, qword [rsp + 0x70]
lea rdx, str._Service
mov r8d, 0x1e
mov bl, 0x49
call fcn.14001d128
mov rcx, qword [rsp + 0x70]
add rcx, 0x1e
call fcn.14000524c
mov rdx, rax
mov qword [rsp + 0x70], rax
jmp 0x14000857b
lea rdx, [rsp + 0x70]
lea rcx, [0x140114168]
mov r8d, 8
call fcn.1400640c8
cmp al, sil
je 0x140008604
mov rdx, qword [rsp + 0x70]
mov bl, 0x53
mov r13d, 0x22
cmp r13w, di
jne 0x1400085cc
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 0x1400085cc
cmp r12w, word [rax]
ja 0x1400085ae
cmp word [rax], 0xd
jbe 0x1400085b3
cmp bp, word [rax]
jne 0x1400085b9
sub rax, 2
jmp 0x14000859d
cmp rax, rdx
jbe 0x1400085cc
cmp r13w, word [rax]
jne 0x1400085cc
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.140016c14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rdx, [rsp + 0x70]
lea rcx, str._RemoveService
mov r8d, 0xe
call fcn.1400640c8
cmp al, sil
je 0x140008633
mov rcx, qword [rsp + 0x70]
call fcn.140008a6c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [rsp + 0x80]
call fcn.1400590a4
xor eax, eax
add rsp, 0x38
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140008a6c
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 0x140008ab6
cmp r12w, ax
ja 0x140008aaa
cmp ax, 0xd
jbe 0x140008abb
cmp bp, ax
je 0x140008abb
add rdi, 2
mov ax, word [rdi]
cmp ax, si
jne 0x140008a9e
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.14001d128
mov word [rsp + rbx + 0x40], si
cmp r12w, word [rdi]
ja 0x140008af2
cmp word [rdi], 0xd
jbe 0x140008af7
cmp bp, word [rdi]
jne 0x140008afd
add rdi, 2
jmp 0x140008ae6
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
cmp rax, rsi
je 0x140008b6d
lea rdx, [rsp + 0x40]
mov r8d, 0x10020
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
cmp rax, rsi
je 0x140008b6d
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 0x140008b73
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 0x14000abd8
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 [0x140132a10], 0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx], 0
test rdi, rdi
je 0x14000ac3d
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000ac3d
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 0x14000ac53
lea rcx, str.shutdown__a
mov r8b, 1
xor edx, edx
call fcn.140008650
mov rcx, qword [0x140132ac8]
call fcn.14000544c
test bpl, bpl
je 0x14000ac81
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 0x14000ac69
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140016678
Capabilities:
Accept command line arguments

Disassembly:
mov rax, r9
mov r9d, dword [rsp + 0x28]
mov r10, r8
mov r11, rdx
mov qword [0x140132f48], rcx
mov r8, rax
mov rdx, r10
mov rcx, r11
jmp sym.PECMD.exe_mainW

Function at 0x14001669c
Capabilities:
Accept command line arguments

Disassembly:
mov r8, rdx
mov rdx, rcx
xor r9d, r9d
xor ecx, ecx
jmp sym.PECMD.exe_mainW

Function at 0x140016bdc
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp sym.PECMD.exe_mainB

Function at 0x140016c00
Capabilities:
Accept command line arguments

Disassembly:
mov rdx, rcx
xor ecx, ecx
jmp sym.PECMD.exe_mainB

Function at 0x140016e50
Capabilities:
Check os version
Read file via mapping

Disassembly:
push rbx
sub rsp, 0x70
lea rcx, [0x140132ba0]
mov dword [0x140132ba0], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x140132ba4], 5
je 0x140016e7d
xor eax, eax
jmp 0x140016f74
mov eax, dword [0x140132ba8]
test eax, eax
je 0x140016e93
cmp eax, 1
jne 0x140016e76
mov ebx, 0x39000
jmp 0x140016e98
mov ebx, 0x30000
lea rdx, str.DevicePhysicalMemory
lea rcx, [rsp + 0x30]
call qword [0x140132b58]
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, [0x140132d08]
mov edx, 6
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], 0x30
call qword [0x140132b20]
cmp eax, 0xc0000022
jne 0x140016f38
lea r8, [rsp + 0x40]
lea rcx, [0x140132d08]
mov edx, 0x60000
call qword [0x140132b20]
mov rcx, qword [0x140132d08]
call fcn.140016d00
mov rcx, qword [0x140132d08]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x40]
lea rcx, [0x140132d08]
mov edx, 6
call qword [0x140132b20]
test eax, eax
js 0x140016e76
mov rcx, qword [0x140132d08]
xor r8d, r8d
mov r9d, ebx
lea edx, [r8 + 6]
mov qword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [0x140132d00], rax
neg rax
sbb rax, rax
and rax, qword [0x140132d08]
add rsp, 0x70
pop rbx
ret

Function at 0x140016f7c
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 0x140016fa8
xor eax, eax
jmp 0x140017014
mov eax, r9d
and eax, 0x80
test al, al
je 0x140016fc4
mov ebx, r9d
xor ebx, edx
and ebx, 0x3fffff
xor ebx, r9d
jmp 0x140017012
mov rcx, qword [0x140132d08]
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 0x140016fa4
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