joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012510
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x14006c038]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x40]
mov esi, r9d
call fcn.14001cd80
mov r9d, esi
mov dword [rsp + 0x38], 0x200
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, rbx
call fcn.1400114d0
test al, al
je 0x1400125d5
mov rbx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.b3f8fa53_0004_438e_9003_51a46e139bfc_2
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400125cc
test rbp, rbp
je 0x1400125bf
lea r9, [rsp + 0x40]
mov edx, 0x200
lea r8, [0x14005b1b8]
mov rcx, rbp
call fcn.140002050
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x1400125d7
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140019840
mov rbx, qword [rsp + 0x470]
add rsp, 0x450
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001749c
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
sub rsp, 0x60
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x14006c038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rdx
mov rbp, rcx
mov qword [r11 - 0x40], rcx
mov qword [r11 - 0x38], rdx
mov dword [r11 - 0x30], r8d
call fcn.140017550
mov rsi, rax
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400174e8
mov rdx, qword [rdi]
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
test ebx, ebx
jne 0x14001751d
lea esi, [rbx + 1]
mov rcx, rbp
call fcn.14000a940
nop
mov rcx, rdi
call fcn.14000a940
mov eax, esi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140019840
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140018af0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14006c038]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov rdx, qword [rcx + 0x18]
movzx ebp, r8w
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140018b76
mov rcx, qword [rdi + 0x18]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rcx
mov edx, 2
xor ecx, ecx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], dx
movzx edx, bp
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140019840
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret

Function at 0x140018ba0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x14006c038]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
mov dword [rsp + 0x20], r8d
mov r9, rdx
lea r8, str._s_failed_w_err_0x_08lx
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140004750
mov rdx, qword [rdi + 0x18]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x140018c49
mov rcx, qword [rdi + 0x18]
lea rax, [rsp + 0x60]
mov r9d, 2
mov qword [rsp + 0x50], rcx
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], ecx
lea edx, [r9 - 1]
mov word [rsp + 0x28], r9w
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140019840
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rdi
ret
Function at 0x140031cb4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140031b13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140031b13
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140031b13
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140031b13
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140031b13
cmp dword [rcx + 0x84], 0xe
jbe 0x140031b13
cmp dword [rcx + 0xf8], 0
je 0x140031b13
mov ecx, ebx
call fcn.140031bd0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400319a0
nop
cmp dword [rbp + 0x20], 0
je 0x140031b61
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140031b6c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140031aa4
Function at 0x1400395fc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x14003962e
call fcn.14002a74c
mov dword [rax], 0x16
call fcn.14001f534
jmp 0x14003974d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14003974d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14003974d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14003965d
lock or dword [rcx + 0x14], 0x10
jmp 0x14003974d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140039671
call fcn.140039dd4
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400395d4
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14003cfcc
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14003973b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140039706
mov rcx, rsi
call fcn.1400395d4
cmp eax, edi
je 0x1400396f1
mov rcx, rsi
call fcn.1400395d4
cmp eax, 0xfffffffe
je 0x1400396f1
mov rcx, rsi
call fcn.1400395d4
movsxd rbx, eax
lea r14, [0x14006e7d0]
mov rcx, rsi
sar rbx, 6
call fcn.1400395d4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400396f8
lea rdx, [0x14006c450]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140039706
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14003972a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14003972a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14003972a
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140039750
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14003c8a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14001a240
sub rsp, rax
mov rax, qword [0x14006c038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400395d4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003c8ef
mov rax, rbp
jmp 0x14003c9f7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x6e7d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14003c4e4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x6e7d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003c9f3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003c9f3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14003c4e4
test rax, rax
js 0x14003c9f3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003c9f3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14003c9e5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14003c9e5
cmp byte [rcx], 0xd
jne 0x14003c9cb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14003c9da
cmp byte [rcx + 1], 0xa
jne 0x14003c9da
inc rcx
jmp 0x14003c9da
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x6c4a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14003c9ad
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14003c9f7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140019840
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003cb20
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14006e7d0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14003cb7e
cmp word [rdx], r12w
jne 0x14003cb7e
or byte [rax + r8*8 + 0x38], cl
jmp 0x14003cb84
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14003ccdf
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14003ccba
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14003cbbd
mov rcx, r9
jmp 0x14003cbe0
cmp r9, rdx
jae 0x14003cbf7
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14003cba1
jmp 0x14003ccdf
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003ccb4
cmp dword [rsp + 0x80], edi
je 0x14003ccb4
mov rdx, r14
lea r11, [0x14006e7d0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14003cc8d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14003cc60
mov word [rbx], r12w
jmp 0x14003ccdb
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14003cc69
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14003ccdb
cmp word [rsp + 0x70], r12w
jne 0x14003cc9a
cmp rbx, rsi
je 0x14003cc5a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14003c4ec
cmp word [rsp + 0x70], r12w
je 0x14003ccdf
mov word [rbx], r13w
jmp 0x14003ccdb
lea r11, [0x14006e7d0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14003ccd7
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14003ccdf
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003f6f0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14003f777
mov rsi, rbx
cmp word [rax], bp
je 0x14003f736
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003f720
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003f71c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140039e40
mov rdi, rax
test rax, rax
je 0x14003f764
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001c920
mov rbp, rdi
xor ecx, ecx
call fcn.140039598
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001460
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rdx
mov rbp, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x40], rax
call fcn.14000b05c
test rax, rax
je 0x14000168f
mov rbx, rax
movzx eax, word [rbp + rax*2 - 2]
cmp eax, 0x5c
je 0x140001687
cmp eax, 0x2f
je 0x140001687
lea rax, [rbx + 2]
add rax, rax
mov rcx, 0xffffffffffffffff
cmovae rcx, rax
call fcn.14000af70
mov rdi, rax
lea r8, [rbx + rbx]
add r8, 4
xor r14d, r14d
mov rcx, rax
xor edx, edx
call fcn.14000ce30
lea r8, [rbx + 1]
mov rcx, rdi
mov rdx, rbp
call fcn.14000b198
mov rcx, rdi
call fcn.14000b1f0
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x38]
mov qword [rcx], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140001694
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x8003
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1400016c7
add ebx, ebx
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
mov r8d, ebx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1400016c7
lea r9, [rsp + 0x2c]
mov dword [r9], 4
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x28]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400016c7
lea r14, [rsp + 0x28]
mov ebp, dword [r14]
mov rcx, rbp
call fcn.14000af70
mov r15, rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call fcn.14000ce30
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x20], 0
mov edx, 2
mov r8, r15
mov r9, r14
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x1400016c7
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400015f2
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001604
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rdi
call fcn.14000b190
lea rdx, str.SOFTWAREMozillaMaintenanceService_
mov r8d, 0x104
mov rcx, rsi
call fcn.14000b198
mov r14d, 1
cmp dword [rsp + 0x28], 0
je 0x14000165f
add rsi, 0x48
xor ebp, ebp
lea rdi, str._.2x
mov rbx, qword [sym.imp.USER32.dll_wsprintfW]
movzx r8d, byte [r15 + rbp]
mov rcx, rsi
mov rdx, rdi
call rbx
add rsi, 4
inc rbp
mov eax, dword [rsp + 0x28]
cmp rbp, rax
jb 0x140001642
mov rdi, r15
mov rcx, rdi
call fcn.14000b190
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140016cb0
mov eax, r14d
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
dec rbx
jmp 0x1400014a9
xor r14d, r14d
jmp 0x14000166a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1400016c7
mov dword [rsp + 0x20], 0xf0000008
lea rcx, [rsp + 0x38]
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140001525
xor r14d, r14d
jmp 0x140001662
Function at 0x140004710
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r14, r9
mov r15, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
mov ecx, eax
call fcn.14000af70
mov rsi, rax
mov rcx, rbx
xor edx, edx
mov r8d, ebp
mov r9, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1400047ac
lea r8, [rsp + 0x28]
mov qword [r8], rsi
lea rdx, [0x140031312]
lea r9, [rsp + 0x24]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400047e3
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x28]
movzx edx, word [rcx + 0xa]
mov dword [rdi], edx
movzx edx, word [rcx + 8]
mov dword [r15], edx
movzx edx, word [rcx + 0xe]
mov dword [r14], edx
movzx ecx, word [rcx + 0xc]
mov dword [rax], ecx
mov edi, 1
jmp 0x140004826
mov eax, dword [0x14003a328]
mov ecx, dword [0x140038d6c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000484a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14003a118]
lea rdx, str.Could_not_obtain_file_info_of_old_service.____lu_
jmp 0x14000481c
mov eax, dword [0x14003a328]
mov ecx, dword [0x140038d6c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000488b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14003a118]
lea rdx, str.Could_not_query_file_version_info_of_old_service.____lu_
mov r8d, eax
call fcn.140008ff0
xor edi, edi
mov rcx, rsi
call fcn.14000b190
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140016cb0
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x14003a328]
call fcn.14000b3c0
cmp dword [0x14003a328], 0xffffffff
jne 0x1400047cd
mov qword [0x14003a118], 0
lea rcx, [0x140002780]
call fcn.14000b578
lea rcx, [0x14003a328]
call fcn.14000b428
jmp 0x1400047cd
lea rcx, [0x14003a328]
call fcn.14000b3c0
cmp dword [0x14003a328], 0xffffffff
jne 0x140004808
mov qword [0x14003a118], 0
lea rcx, [0x140002780]
call fcn.14000b578
lea rcx, [0x14003a328]
call fcn.14000b428
jmp 0x140004808
Function at 0x140008ff0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x70], r8
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp qword [rcx], 0
je 0x14000907f
mov r14, rdx
mov rsi, rcx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov r9, qword [rcx]
lea rcx, str._Warning:
mov edx, 0xd
mov r8d, 1
call fcn.14001461c
mov rdi, qword [rsp + 0x28]
mov rbx, qword [rsi]
call fcn.140001080
mov rcx, qword [rax]
mov qword [rsp + 0x20], rdi
mov rdx, rbx
mov r8, r14
xor r9d, r9d
call fcn.14000aee4
mov r9, qword [rsi]
lea rcx, str._n
mov edx, 4
mov r8d, 1
call fcn.14001461c
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140016cb0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140009780
Capabilities:
Create directory
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x140029028]
xor esi, esi
lea r9, [rsp + 0x20]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1400097d6
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.14000b05c
cmp rax, 0x105
jb 0x1400097ed
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140016cb0
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov r8d, 0x105
mov rcx, rdi
mov rdx, rbx
call fcn.14000b198
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Mozilla_Maintenance_Service
mov rcx, rdi
call fcn.140028000
test eax, eax
je 0x1400097d6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000983a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400097d6
lea rdx, str.UpdateLogs
mov rcx, rdi
call fcn.140028000
test eax, eax
je 0x1400097d6
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000986f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400097d6
mov esi, 1
jmp 0x1400097d6
Function at 0x14000a450
Capabilities:
Get disk information

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x238], rax
xor ebx, ebx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
xor edx, edx
call fcn.14000ce30
mov rcx, rdi
call fcn.14000b05c
cmp rax, 0x104
ja 0x14000a4cd
lea rbx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rbx
mov rdx, rdi
call fcn.14000b198
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 3
sete cl
mov dword [rsi], ecx
mov ebx, 1
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.140016cb0
mov eax, ebx
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret

Function at 0x140010a70
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140010ba8
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140010c0f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010c0f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140010c0f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140010c0f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140010c0f
cmp dword [rcx + 0x84], 0xe
jbe 0x140010c0f
cmp dword [rcx + 0xf8], 0
je 0x140010c0f
mov ecx, ebx
call fcn.140010af4
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140010d3c
cmp dword [rbp + 0x20], 0
je 0x140010c5c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140010b50
int3

Function at 0x1400135f0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140013610
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140011724
or eax, 0xffffffff
jmp 0x140013612
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001350
Capabilities:
Create device object

Disassembly:
push rbx
sub rsp, 0x60
and qword [rsp + 0x78], 0
lea rdx, [0x140001fe0]
mov rbx, rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x140002000]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x78]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov byte [rsp + 0x28], 0
xor edx, edx
and dword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x1400013e4
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
test eax, eax
jns 0x1400013d6
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, ebx
jmp 0x1400013e4
mov rax, qword [rsp + 0x78]
mov qword [0x140004080], rax
xor eax, eax
add rsp, 0x60
pop rbx
ret

Function at 0x140001d5c
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, ecx
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
call fcn.1400014e8
test ebx, ebx
js 0x140001d93
mov ecx, eax
mov rax, qword [rsp + 0x38]
mov dword [rcx + rax], 0x72
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140001d9c
Capabilities:
Find process by pid

Disassembly:
sub rsp, 0x28
mov ecx, ecx
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140001dcb
mov rax, qword [rsp + 0x38]
mov dword [rax + 0x67a], 0x31
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
add rsp, 0x28
ret