joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140051438
Capabilities:
Modify service

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0x168], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
lea rbp, [rax - 0x128]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1400ca118]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov esi, edx
mov rdi, rcx
lea r14, str..._nsService.cpp
mov rdx, r14
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
lea r12, [rdi + 0x40]
mov rbx, qword [r12]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov r8, rax
mov r9d, 0x17f
lea rdx, str.SetErrorControl___s:_d_
mov rcx, r12
call qword [rbx + 0x128]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
lea rdx, [rdi + 0x10]
mov r8b, 1
lea rcx, [rbp]
call fcn.140022a08
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + pe_nt_image_headers64]
mov rdx, r14
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
mov rbx, qword [r12]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov r9, rax
mov dword [rsp + 0x20], 0x184
mov r8d, esi
lea rdx, str.ErrorControl_d___s:_d_
mov rcx, r12
call qword [rbx + 0x140]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
lea rcx, [rdi + 0x2f0]
call fcn.14004cbe8
xor r13d, r13d
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov r9d, esi
or edx, 0xffffffff
mov r8d, edx
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x1400516ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
cmp eax, 0x3e5
je 0x1400516ad
test eax, eax
je 0x1400516ad
mov rdx, r14
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
mov r14, qword [r12]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov rsi, rax
mov ecx, r15d
call fcn.140023e14
mov ebx, eax
mov rdx, qword [rdi + 0x270]
lea rcx, [rdi + 0x270]
call qword [rdx + 0x1e8]
mov r8, rax
mov dword [rsp + 0x28], 0x195
mov qword [rsp + 0x20], rsi
mov r9d, ebx
lea rdx, str.ChangeServiceConfig__s_0x_x___s:_d_
mov rcx, r12
call qword [r14 + 0x130]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], r13
mov word [rbp + 0x40], r13w
cmp word [0x1400a6650], r13w
jne 0x140051620
mov eax, r13d
jmp 0x14005162c
lea rcx, [0x1400a6650]
call fcn.140065418
mov r8, rax
lea rdx, [0x1400a6650]
lea rcx, [rbp + 0x40]
call fcn.1400045d0
nop
mov qword [rbp + 0x78], 0xf
mov qword [rbp + 0x70], r13
mov byte [rbp + 0x60], r13b
lea rcx, str..._nsService.cpp
call fcn.1400657f0
mov r8, rax
lea rdx, str..._nsService.cpp
lea rcx, [rbp + 0x60]
call fcn.140004720
nop
mov ecx, r15d
call fcn.140023e14
mov edx, eax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x196
lea r8, [rbp + 0x60]
lea rcx, [rbp + 0x80]
call fcn.1400230c8
lea rdx, [0x1400c7a80]
lea rcx, [rbp + 0x80]
call fcn.14005ba94
nop
mov dword [rdi + 0x2d0], esi
lea rcx, [rbp]
call fcn.140022a60
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140058630
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400522c4
Capabilities:
Modify service

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0x168], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
lea rbp, [rax - 0x128]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1400ca118]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov esi, edx
mov rdi, rcx
lea r14, str..._nsService.cpp
mov rdx, r14
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
lea r12, [rdi + 0x40]
mov rbx, qword [r12]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov r8, rax
mov r9d, 0x158
lea rdx, str.SetStartType___s:_d_
mov rcx, r12
call qword [rbx + 0x128]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
lea rdx, [rdi + 0x10]
mov r8b, 1
lea rcx, [rbp]
call fcn.140022a08
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + pe_nt_image_headers64]
mov rdx, r14
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
mov rbx, qword [r12]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov r9, rax
mov dword [rsp + 0x20], 0x15d
mov r8d, esi
lea rdx, str.ServiceStart_d___s:_d_
mov rcx, r12
call qword [rbx + 0x140]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
lea rcx, [rdi + 0x2f0]
call fcn.14004cbe8
xor r13d, r13d
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
or edx, 0xffffffff
mov r9d, edx
mov r8d, esi
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x140052539
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
cmp eax, 0x3e5
je 0x140052539
test eax, eax
je 0x140052539
mov rdx, r14
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
mov r14, qword [r12]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov rsi, rax
mov ecx, r15d
call fcn.140023e14
mov ebx, eax
mov rdx, qword [rdi + 0x270]
lea rcx, [rdi + 0x270]
call qword [rdx + 0x1e8]
mov r8, rax
mov dword [rsp + 0x28], 0x16e
mov qword [rsp + 0x20], rsi
mov r9d, ebx
lea rdx, str.ChangeServiceConfig__s_0x_x___s:_d_
mov rcx, r12
call qword [r14 + 0x130]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], r13
mov word [rbp + 0x40], r13w
cmp word [0x1400a6650], r13w
jne 0x1400524ac
mov eax, r13d
jmp 0x1400524b8
lea rcx, [0x1400a6650]
call fcn.140065418
mov r8, rax
lea rdx, [0x1400a6650]
lea rcx, [rbp + 0x40]
call fcn.1400045d0
nop
mov qword [rbp + 0x78], 0xf
mov qword [rbp + 0x70], r13
mov byte [rbp + 0x60], r13b
lea rcx, str..._nsService.cpp
call fcn.1400657f0
mov r8, rax
lea rdx, str..._nsService.cpp
lea rcx, [rbp + 0x60]
call fcn.140004720
nop
mov ecx, r15d
call fcn.140023e14
mov edx, eax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x16f
lea r8, [rbp + 0x60]
lea rcx, [rbp + 0x80]
call fcn.1400230c8
lea rdx, [0x1400c7a80]
lea rcx, [rbp + 0x80]
call fcn.14005ba94
nop
mov dword [rdi + 0x2bc], esi
lea rcx, [rbp]
call fcn.140022a60
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140058630
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140052578
Capabilities:
Modify service

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0x168], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
lea rbp, [rax - 0x128]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1400ca118]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov esi, edx
mov rdi, rcx
lea r14, str..._nsService.cpp
mov rdx, r14
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
lea r12, [rdi + 0x40]
mov rbx, qword [r12]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov r8, rax
mov r9d, 0x131
lea rdx, str.SetType___s:_d_
mov rcx, r12
call qword [rbx + 0x128]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
lea rdx, [rdi + 0x10]
mov r8b, 1
lea rcx, [rbp]
call fcn.140022a08
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + pe_nt_image_headers64]
mov rdx, r14
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
mov rbx, qword [r12]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov r9, rax
mov dword [rsp + 0x20], 0x136
mov r8d, esi
lea rdx, str.ServiceType_d___s:_d_
mov rcx, r12
call qword [rbx + 0x140]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
lea rcx, [rdi + 0x2f0]
call fcn.14004cbe8
mov edx, dword [rdi + 0x2b8]
and edx, 0x100
or edx, esi
xor r13d, r13d
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
or r8d, 0xffffffff
mov r9d, r8d
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x1400527f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
cmp eax, 0x3e5
je 0x1400527f9
test eax, eax
je 0x1400527f9
mov rdx, r14
lea rcx, [rbp + 0x40]
call fcn.140009aa8
nop
mov r14, qword [r12]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x1e8]
mov rsi, rax
mov ecx, r15d
call fcn.140023e14
mov ebx, eax
mov rdx, qword [rdi + 0x270]
lea rcx, [rdi + 0x270]
call qword [rdx + 0x1e8]
mov r8, rax
mov dword [rsp + 0x28], 0x147
mov qword [rsp + 0x20], rsi
mov r9d, ebx
lea rdx, str.ChangeServiceConfig__s_0x_x___s:_d_
mov rcx, r12
call qword [r14 + 0x130]
nop
lea rcx, [rbp + 0x40]
call fcn.14000a3b0
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], r13
mov word [rbp + 0x40], r13w
cmp word [0x1400a6650], r13w
jne 0x14005276c
mov eax, r13d
jmp 0x140052778
lea rcx, [0x1400a6650]
call fcn.140065418
mov r8, rax
lea rdx, [0x1400a6650]
lea rcx, [rbp + 0x40]
call fcn.1400045d0
nop
mov qword [rbp + 0x78], 0xf
mov qword [rbp + 0x70], r13
mov byte [rbp + 0x60], r13b
lea rcx, str..._nsService.cpp
call fcn.1400657f0
mov r8, rax
lea rdx, str..._nsService.cpp
lea rcx, [rbp + 0x60]
call fcn.140004720
nop
mov ecx, r15d
call fcn.140023e14
mov edx, eax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x148
lea r8, [rbp + 0x60]
lea rcx, [rbp + 0x80]
call fcn.1400230c8
lea rdx, [0x1400c7a80]
lea rcx, [rbp + 0x80]
call fcn.14005ba94
nop
mov dword [rdi + 0x2b8], esi
lea rcx, [rbp]
call fcn.140022a60
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.140058630
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005cf40
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14005cd14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005cd14
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005cd14
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005cd14
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005cd14
cmp dword [rcx + 0x84], 0xe
jbe 0x14005cd14
cmp dword [rcx + 0xf8], esi
je 0x14005cd14
mov ecx, r14d
call fcn.14005ce5c
mov ecx, 2
call fcn.1400667b8
nop
cmp byte [0x1400cf630], 0
jne 0x14005cdde
mov r15d, 1
mov eax, r15d
xchg dword [0x1400cf620], eax
test ebx, ebx
jne 0x14005cd87
mov rdi, qword [0x1400ca118]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400cf628]
cmp rcx, rax
je 0x14005cd7e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140004090]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400cfab0]
jmp 0x14005cd93
cmp ebx, r15d
jne 0x14005cd99
lea rcx, [0x1400cfac8]
call fcn.14006a838
nop
test ebx, ebx
jne 0x14005cdb0
lea rdx, [0x14008abe0]
lea rcx, [0x14008abc0]
call fcn.14006ab80
lea rdx, [0x14008abf0]
lea rcx, [0x14008abe8]
call fcn.14006ab80
movzx eax, byte [0x1400cf630]
test esi, esi
cmove eax, r15d
mov byte [0x1400cf630], al
jmp 0x14005cdde
mov ecx, 2
call fcn.14006680c
test esi, esi
jne 0x14005cdf5
mov ecx, r14d
call fcn.14005ce10
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14005cca4
Function at 0x140001550
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 8], rax
movsxd rdi, r8d
mov rbx, rdx
mov rsi, rcx
xor r14d, r14d
mov dword [rbp - 0x30], r14d
movzx edx, byte [rdx]
mov ecx, 1
mov eax, ecx
cmp rcx, rdi
jge 0x1400015b3
cmp byte [rax + rbx], dl
jne 0x1400015a7
inc ecx
inc rax
cmp rax, rdi
jl 0x140001596
jmp 0x1400015b3
movsxd rcx, ecx
movzx eax, byte [rcx + rbx]
mov byte [rbx], al
mov byte [rcx + rbx], dl
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], r14
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140001630
mov dword [rsp + 0x20], 8
lea r9d, [rax + 1]
xor r8d, r8d
lea rdx, str.Nitro5Container
lea rcx, [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140001630
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x8009000f
jne 0x14000164f
mov dword [rsp + 0x20], r14d
mov r9d, 1
xor r8d, r8d
lea rdx, str.Nitro5Container
lea rcx, [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14000164f
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
nop
xor r9d, r9d
mov r8d, edi
mov rdx, rbx
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov byte [rbp - 0x20], 0
xor eax, eax
mov qword [rbp - 0x1f], rax
mov dword [rbp - 0x17], eax
mov word [rbp - 0x13], ax
mov byte [rbp - 0x11], al
mov dword [rbp - 0x40], 0x10
mov dword [rsp + 0x20], r14d
lea r9, [rbp - 0x40]
lea r8, [rbp - 0x20]
lea edx, [rax + 2]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edi, dword [rbp - 0x40]
or ecx, 0xffffffff
test eax, eax
cmove edi, ecx
lea rcx, [rbp - 0x38]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
test edi, edi
je 0x1400016f1
lea rbx, [rbp - 0x20]
nop word [rax + rax]
movzx r9d, byte [rbx]
lea r8, [0x14000f96c]
mov edx, 3
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCR120.dll_swprintf_s]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x38]
call qword [sym.imp.mfc120u.dll_Ordinal_2373]
lea rbx, [rbx + 1]
dec rdi
jne 0x1400016c0
lea rdx, [rbp - 0x38]
mov rcx, rsi
call qword [sym.imp.mfc120u.dll_Ordinal_280]
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14000171d
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rbp - 0x48], r14
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14000172e
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, rsi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14000cd50
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400017b0
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov r14, rcx
xor eax, eax
mov dword [rsp + 0x40], eax
mov dword [r11 + 0x10], eax
mov ebp, 0x20
mov dword [r11 + 0x18], eax
mov ebx, ebp
mov dword [r11 + 0x20], 0x100
mov ecx, 0x200
call qword [sym.imp.MSVCR120.dll_malloc]
mov r15, rax
test rax, rax
jne 0x140001812
lea rdx, [0x14000f974]
mov rcx, r14
call qword [sym.imp.mfc120u.dll_Ordinal_286]
jmp 0x1400019af
lea rdx, [rsp + 0xa8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov rcx, rbp
call qword [sym.imp.MSVCR120.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400017fd
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
lea ecx, [rax + 0x40]
call qword [sym.imp.MSVCR120.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400017fd
xor eax, eax
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x20], rax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x38], rax
nop word [rax + rax]
mov dword [rsp + 0x98], ebp
mov dword [rsp + 0xa0], ebx
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x98]
mov r8, rdi
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x1400018d5
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x140001964
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140001964
cmp dword [rsp + 0x98], ebp
jbe 0x14000191f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [rsp + 0x98]
call qword [sym.imp.mfc120u.dll_Ordinal_265]
mov rdi, rax
mov r8d, dword [rsp + 0x98]
xor edx, edx
mov rcx, rax
call sub.MSVCR120.dll_memset
mov ebp, dword [rsp + 0x98]
cmp dword [rsp + 0xa0], ebx
jbe 0x140001880
mov rcx, rsi
call qword [sym.imp.MSVCR120.dll_free]
mov ebx, dword [rsp + 0xa0]
add rbx, rbx
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll_malloc]
mov rsi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.MSVCR120.dll_memset
mov ebx, dword [rsp + 0xa0]
jmp 0x140001880
mov r8d, dword [rsp + 0x98]
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140001550
nop
mov rcx, rsi
call qword [sym.imp.MSVCR120.dll_free]
mov rcx, rdi
call qword [sym.imp.MSVCR120.dll_free]
mov rcx, r15
call qword [sym.imp.MSVCR120.dll_free]
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.mfc120u.dll_Ordinal_280]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
mov rax, r14
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140003fc0
Capabilities:
Read file via mapping

Disassembly:
push rdi
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140017230]
xor r9d, r9d
lea rdi, str.GlobalNitroPDF_Shared_UpdateService_Data
lea r8d, [r9 + 4]
xor edx, edx
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [0x140017020], rax
test rax, rax
jne 0x140004048
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.CreateFileMapping
lea r8, str._s_failed_w_err_0x_08lx
lea rcx, [rsp + 0x40]
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.140004940
lea rcx, [rsp + 0x40]
call fcn.1400049d0
xor eax, eax
jmp 0x140004116
lea rcx, str.CreateFileMapping_succeeded
mov qword [rsp + 0x170], rbx
call fcn.1400049d0
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea edx, [rbx + 6]
lea r8d, [rbx + 4]
mov rcx, rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov r9d, 0x103
lea rcx, [0x140017028]
lea edx, [r9 + 1]
mov r8, rdi
call qword [sym.imp.MSVCR120.dll_wcsncpy_s]
mov rcx, qword [0x140017020]
lea edx, [rbx + 6]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, qword [0x140017238]
mov rbx, rax
test rcx, rcx
je 0x1400040d2
mov r8d, dword [0x140017230]
xor edx, edx
call sub.MSVCR120.dll_memset
mov qword [0x140017238], rbx
test rbx, rbx
mov rbx, qword [rsp + 0x170]
jne 0x140004105
mov rcx, qword [0x140017020]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [0x14000ff40]
jmp 0x14000401d
lea rcx, str.MapViewOfFile_succeeded
call fcn.1400049d0
mov eax, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000cd50
add rsp, 0x160
pop rdi
ret
Function at 0x1400043f0
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
sub rsp, 0x3a8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x390], rax
lea rcx, str.Service_installation_started
call fcn.1400049d0
lea rdx, [rsp + 0x180]
mov r8d, Ordinal_265
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140004478
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.GetModuleFileName
lea r8, str._s_failed_w_err_0x_08lx
lea rcx, [rsp + 0x70]
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.140004940
lea rcx, [rsp + 0x70]
call fcn.1400049d0
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.14000cd50
add rsp, 0x3a8
ret
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x3b8], rsi
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x1400044cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.OpenSCManager
lea r8, str._s_failed_w_err_0x_08lx
lea rcx, [rsp + 0x70]
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.140004940
lea rcx, [rsp + 0x70]
call fcn.1400049d0
jmp 0x14000460d
xor ecx, ecx
lea rax, [0x14000f974]
lea r8, str.Nitro_Update_Service
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x180]
mov qword [rsp + 0x38], rax
lea r9d, [rcx + 0x14]
mov dword [rsp + 0x30], 1
lea rdx, str.NitroUpdateService
mov rcx, rsi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
mov qword [rsp + 0x3a0], rdi
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x1400045b6
mov qword [rsp + 0x3b0], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.CreateService
lea r8, str._s_failed_w_err_0x_08lx
lea rcx, [rsp + 0x70]
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.140004940
lea rcx, [rsp + 0x70]
call fcn.1400049d0
cmp ebx, 0x431
mov rbx, qword [rsp + 0x3b0]
jne 0x1400045ee
lea rdx, str.NitroUpdateService
mov r8d, 0x10014
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x1400045b6
lea rcx, str.OpenService
jmp 0x1400045e9
lea rcx, str.Service_installed
call fcn.1400049d0
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1400045e2
lea rcx, str.Service_started
call fcn.1400049d0
jmp 0x1400045ee
lea rcx, str.StartService
call fcn.140004d40
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x140004605
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x3a0]
mov rsi, qword [rsp + 0x3b8]
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.14000cd50
add rsp, 0x3a8
ret
Function at 0x140004630
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rdi
sub rsp, 0x170
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor eax, eax
lea rcx, str.Service_uninstallation_started
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], eax
call fcn.1400049d0
xor edx, edx
lea r8d, [rdx + 1]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x1400046b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.OpenSCManager
lea r8, str._s_failed_w_err_0x_08lx
lea rcx, [rsp + 0x50]
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.140004940
lea rcx, [rsp + 0x50]
call fcn.1400049d0
jmp 0x1400047f8
lea rdx, str.NitroUpdateService
mov r8d, 0x10024
mov rcx, rax
mov qword [rsp + 0x180], rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14000470f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.OpenService
lea r8, str._s_failed_w_err_0x_08lx
lea rcx, [rsp + 0x50]
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.140004940
lea rcx, [rsp + 0x50]
call fcn.1400049d0
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140004792
lea rcx, str.Stopping_service
call fcn.1400049d0
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140004776
nop
mov eax, dword [rsp + 0x34]
cmp eax, 3
jne 0x14000477a
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140004750
mov eax, dword [rsp + 0x34]
lea rcx, str.Service_is_stopped
cmp eax, 1
je 0x14000478d
lea rcx, str.Service_failed_to_stop
call fcn.1400049d0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400047cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [0x140010140]
lea r8, str._s_failed_w_err_0x_08lx
lea rcx, [rsp + 0x50]
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.140004940
lea rcx, [rsp + 0x50]
jmp 0x1400047d4
lea rcx, str.Service_removed
call fcn.1400049d0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x1400047f0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14000cd50
add rsp, 0x170
pop rdi
ret