joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400022b0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400022fd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400022f4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400022ff
add rax, 0x28
cmp rax, r9
jne 0x1400022e0
xor eax, eax
ret

Function at 0x140002300
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002390
mov rdx, qword [0x1400357f0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000237e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000237e
cmp word [rax + 0x18], 0x20b
jne 0x14000237e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002390
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002369
add rbx, 0x28
cmp rbx, rdi
je 0x140002390
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002360
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x1400357f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000241d
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 0x140002414
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400023c0
add rax, 0x28
cmp rax, r9
jne 0x140002400
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

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

Function at 0x140002460
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400357f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002480
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002488
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002480
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400024d0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400024c7
test rcx, rcx
je 0x140002480
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400024b8
xor eax, eax
ret
Function at 0x1400024e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400357f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400024ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002508
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x1400357f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002540
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002548
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002540
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002540
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002594
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400025a0
add rdx, 0x28
cmp r9, rdx
jne 0x140002580
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400357f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400025d2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400025e0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025d2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400025d2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400025d2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002635
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002648
add rdx, 0x28
cmp rdx, r10
jne 0x140002620
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002657
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002667
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000263e
test ecx, ecx
jg 0x140002650
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400010d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x38
mov r15, rcx
mov rcx, qword [rcx]
lea rax, [rsp + 0x60]
mov rsi, r8
xor edi, edi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
mov r14, rdx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x60], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400011c3
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400011c3
mov qword [rsp + 0x68], rbx
mov ecx, eax
mov qword [rsp + 0x30], rbp
mov ebx, eax
call qword [sym.imp.MSVCR120.dll_malloc]
mov r8d, ebx
mov rcx, rax
xor edx, edx
mov rbp, rax
call sub.MSVCR120.dll_memset
mov rcx, qword [r15]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rbx, qword [rsp + 0x68]
mov rcx, rsi
test eax, eax
jne 0x1400011a2
mov rdx, rbp
call qword [sym.imp.mfc120u.dll_Ordinal_1498]
mov rcx, rbp
mov edi, 1
call qword [sym.imp.MSVCR120.dll_free]
mov rbp, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.mfc120u.dll_Ordinal_4138]
mov rcx, rbp
call qword [sym.imp.MSVCR120.dll_free]
mov rbp, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rsi
ret
mov rcx, rsi
call qword [sym.imp.mfc120u.dll_Ordinal_4138]
mov eax, edi
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x140001830
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 - 0x30], 0xfffffffffffffffe
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 8], rax
movsxd rdi, r8d
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x28], rcx
xor r14d, r14d
mov dword [rbp - 0x38], r14d
movzx edx, byte [rdx]
mov ecx, 1
mov eax, ecx
cmp rcx, rdi
jge 0x14000189d
nop word [rax + rax]
cmp byte [rax + rbx], dl
jne 0x140001891
inc ecx
inc rax
cmp rax, rdi
jl 0x140001880
jmp 0x14000189d
movsxd rcx, ecx
movzx eax, byte [rcx + rbx]
mov byte [rbx], al
mov byte [rcx + rbx], dl
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x40], r14
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14000191a
mov dword [rsp + 0x20], 8
lea r9d, [rax + 1]
xor r8d, r8d
lea rdx, str.Nitro5Container
lea rcx, [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14000191a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x8009000f
jne 0x140001939
mov dword [rsp + 0x20], r14d
mov r9d, 1
xor r8d, r8d
lea rdx, str.Nitro5Container
lea rcx, [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140001939
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
nop
xor r9d, r9d
mov r8d, edi
mov rdx, rbx
mov rcx, qword [rbp - 0x40]
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 - 0x50], 0x10
mov dword [rsp + 0x20], r14d
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x20]
lea edx, [rax + 2]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edi, dword [rbp - 0x50]
or ecx, 0xffffffff
test eax, eax
cmove edi, ecx
mov rcx, rsi
call qword [sym.imp.mfc120u.dll_Ordinal_296]
mov dword [rbp - 0x38], 1
test edi, edi
je 0x1400019e0
lea rbx, [rbp - 0x20]
nop dword [rax]
nop dword [rax + rax]
movzx r9d, byte [rbx]
lea r8, [0x14001096c]
mov edx, 3
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCR120.dll_swprintf_s]
lea rdx, [rbp - 0x10]
mov rcx, rsi
call qword [sym.imp.mfc120u.dll_Ordinal_2373]
lea rbx, [rbx + 1]
dec rdi
jne 0x1400019b0
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1400019f3
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rbp - 0x40], r14
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140001a04
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, rsi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14000ce90
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140001a90
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], pe_nt_image_headers64
mov ecx, 0x200
call qword [sym.imp.MSVCR120.dll_malloc]
mov r15, rax
test rax, rax
jne 0x140001af2
lea rdx, [0x140010974]
mov rcx, r14
call qword [sym.imp.mfc120u.dll_Ordinal_286]
jmp 0x140001c8f
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 0x140001add
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 0x140001add
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 0x140001bb5
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x140001c44
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140001c44
cmp dword [rsp + 0x98], ebp
jbe 0x140001bff
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 0x140001b60
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 0x140001b60
mov r8d, dword [rsp + 0x98]
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140001830
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 0x1400045b0
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 [0x140018240]
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 [0x140018030], rax
test rax, rax
jne 0x140004638
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.140004f40
lea rcx, [rsp + 0x40]
call fcn.140004fd0
xor eax, eax
jmp 0x140004706
lea rcx, str.CreateFileMapping_succeeded
mov qword [rsp + 0x170], rbx
call fcn.140004fd0
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, [0x140018038]
lea edx, [r9 + 1]
mov r8, rdi
call qword [sym.imp.MSVCR120.dll_wcsncpy_s]
mov rcx, qword [0x140018030]
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 [0x140018248]
mov rbx, rax
test rcx, rcx
je 0x1400046c2
mov r8d, dword [0x140018240]
xor edx, edx
call sub.MSVCR120.dll_memset
mov qword [0x140018248], rbx
test rbx, rbx
mov rbx, qword [rsp + 0x170]
jne 0x1400046f5
mov rcx, qword [0x140018030]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [0x140011070]
jmp 0x14000460d
lea rcx, str.MapViewOfFile_succeeded
call fcn.140004fd0
mov eax, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000ce90
add rsp, 0x160
pop rdi
ret
Function at 0x1400049f0
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.140004fd0
lea rdx, [rsp + 0x180]
mov r8d, Ordinal_265
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140004a78
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.140004f40
lea rcx, [rsp + 0x70]
call fcn.140004fd0
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.14000ce90
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 0x140004acc
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.140004f40
lea rcx, [rsp + 0x70]
call fcn.140004fd0
jmp 0x140004c0d
xor ecx, ecx
lea rax, [0x140010974]
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 0x140004bb6
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.140004f40
lea rcx, [rsp + 0x70]
call fcn.140004fd0
cmp ebx, 0x431
mov rbx, qword [rsp + 0x3b0]
jne 0x140004bee
lea rdx, str.NitroUpdateService
mov r8d, 0x10014
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140004bb6
lea rcx, str.OpenService
jmp 0x140004be9
lea rcx, str.Service_installed
call fcn.140004fd0
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x140004be2
lea rcx, str.Service_started
call fcn.140004fd0
jmp 0x140004bee
lea rcx, str.StartService
call fcn.140005340
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x140004c05
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.14000ce90
add rsp, 0x3a8
ret
Function at 0x140004c30
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.140004fd0
xor edx, edx
lea r8d, [rdx + 1]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140004cb8
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.140004f40
lea rcx, [rsp + 0x50]
call fcn.140004fd0
jmp 0x140004df8
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 0x140004d0f
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.140004f40
lea rcx, [rsp + 0x50]
call fcn.140004fd0
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140004d92
lea rcx, str.Stopping_service
call fcn.140004fd0
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 0x140004d76
nop
mov eax, dword [rsp + 0x34]
cmp eax, 3
jne 0x140004d7a
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 0x140004d50
mov eax, dword [rsp + 0x34]
lea rcx, str.Service_is_stopped
cmp eax, 1
je 0x140004d8d
lea rcx, str.Service_failed_to_stop
call fcn.140004fd0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140004dcd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [0x140011270]
lea r8, str._s_failed_w_err_0x_08lx
lea rcx, [rsp + 0x50]
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.140004f40
lea rcx, [rsp + 0x50]
jmp 0x140004dd4
lea rcx, str.Service_removed
call fcn.140004fd0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x140004df0
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.14000ce90
add rsp, 0x170
pop rdi
ret
Function at 0x1400053b0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rdx
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
lea rdx, [rsp + 0x60]
call fcn.140001410
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000541b
mov qword [rsp + 0x50], 0
xor bl, bl
jmp 0x14000546b
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x140005420
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov ebx, 1
mov r9d, ebx
xor r8d, r8d
lea rdx, str.RunNitroVersion
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140005463
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
jmp 0x140005465
xor ebx, ebx
cmp ebx, 1
sete bl
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
add rsp, 0x40
pop rbx
ret
Function at 0x140005cc0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rcx, str.Nitro_updateService_OnStart_entered
call fcn.140004fd0
xor eax, eax
lea rcx, [0x1400062b0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], eax
call qword [sym.imp.mfc120u.dll_Ordinal_2107]
lea rcx, str.Nitro_updateService_OnStart_exited
mov qword [rbx + 0x18], rax
add rsp, 0x30
pop rbx
jmp fcn.140004fd0
Function at 0x140006cb0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rdi, rdx
mov rbx, rcx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140006def
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc120u.dll_Ordinal_296]
nop
mov rdx, rbx
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc120u.dll_Ordinal_286]
nop
mov edx, 0x5c
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc120u.dll_Ordinal_12433]
test eax, eax
js 0x140006d39
lea r8d, [rax + 1]
xor edx, edx
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc120u.dll_Ordinal_3683]
mov rdx, rdi
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc120u.dll_Ordinal_286]
nop
xor r8d, r8d
lea rdx, [0x1400117a0]
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc120u.dll_Ordinal_4467]
mov edx, eax
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc120u.dll_Ordinal_13902]
lea rdx, str.__quiet
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc120u.dll_Ordinal_2373]
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
lea rdx, str._s__s
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc120u.dll_Ordinal_4612]
mov rax, qword [rsp + 0x30]
mov ecx, dword [rax - 0x10]
lea ecx, [rcx*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.NitroInstaller
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
lea rcx, [rsp + 0x70]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc120u.dll_Ordinal_1030]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140006e10
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x40]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140006e51
mov rcx, qword [rsp + 0x40]
lea rdx, str.NitroInstaller
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
ret