joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ba40
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push r14
xor r14d, r14d
push r13
push r12
push rbp
push rdi
push rsi
push rbx
push rcx
pop rbx
nop
push rbx
pop rdx
nop
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
mov ecx, dword [rcx + rax + 0x88]
call 0x140012630
push rbx
nop
pop rdx
mov esi, eax
add rsi, rbx
mov ecx, dword [rsi + 0x20]
call 0x140012630
mov ecx, dword [rsi + 0x24]
nop
push rbx
pop rdx
mov r12d, eax
call 0x140012630
mov r13d, dword [rsi + 0x18]
add r12, rbx
mov edi, eax
cmp r13, r14
je 0x14000baff
mov ecx, dword [r12 + r14*4]
push rbx
nop
pop rdx
call 0x140012630
mov ebp, eax
add rbp, rbx
push rbp
nop
pop rcx
call fcn.14000bfd0
cmp eax, 0xa6caa1c5
jne 0x14000bae4
mov ecx, dword [rsi + 0x1c]
nop
push rbx
pop rdx
add rdi, rbx
call 0x140012630
movzx edx, word [rdi + r14*2]
mov eax, eax
add rax, rbx
mov ecx, dword [rax + rdx*4]
add rsp, 0x20
nop
push rbx
pop rdx
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp 0x140012630
push rbp
pop rcx
nop
call fcn.14000bfd0
mov edx, eax
lea rax, [r14 + 1]
cmp edx, 0xffe885ef
je 0x14000bab3
mov r14, rax
jmp 0x14000ba8e
add rsp, 0x20
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov eax, ecx
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
cmp eax, dword [rdx + 0x14]
jb 0x14001267a
mov r9w, word [rcx + 6]
xor ecx, ecx
cmp r9w, cx
je 0x140012678
mov r8d, dword [rdx + 0xc]
cmp eax, r8d
jb 0x140012670
mov r10d, dword [rdx + 0x10]
add r10d, r8d
cmp eax, r10d
jae 0x140012670
add eax, dword [rdx + 0x14]
sub eax, r8d
ret
inc ecx
add rdx, 0x28
jmp 0x14001264e
sub eax, eax
ret

Function at 0x14000bb60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, qword [0x140019150]
push r12
sub edx, edx
push rbp
push rdi
push rsi
push rbx
mov rbx, qword [rax]
mov rax, qword [rbx + 0x84a]
or rax, rax
je 0x14000bc11
mov edx, dword [rbx + 0x800]
or edx, edx
jne 0x14000bc11
movsxd rcx, dword [rax + 0x3c]
sub r8d, r8d
mov ecx, dword [rax + rcx + 0x88]
add rcx, rax
mov edi, dword [rcx + 0x20]
mov r10d, dword [rcx + 0x1c]
mov esi, dword [rcx + 0x24]
mov ebp, dword [rcx + 0x18]
sub ecx, ecx
add r10, rax
add rdi, rax
add rsi, rax
cmp r8d, ebp
jae 0x14000bc0b
mov r9d, dword [rdi + r8*4]
cmp word [rax + r9], 0x775a
jne 0x14000bc06
or rcx, rcx
movzx r9d, word [rsi + r8*2]
jne 0x14000bbde
mov ecx, dword [r10 + r9*4]
add rcx, rax
jmp 0x14000bc06
mov r9d, dword [r10 + r9*4]
mov r11, rcx
add r9, rax
mov r12, r9
sub r11, r9
sub r12, rcx
cmp r9, rcx
mov r9d, r12d
cmovb r9d, r11d
lea r11d, [rdx - 1]
cmp r11d, r9d
cmovae edx, r9d
inc r8
jmp 0x14000bbb9
mov dword [rbx + 0x800], edx
pop rbx
mov eax, edx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14000bf80
Capabilities:
Hash data using djb2

Disassembly:
sub eax, eax
or rcx, rcx
je 0x14000bfcd
mov r10, rcx
mov eax, 0x1505
mov r9b, byte [r10]
test edx, edx
jne 0x14000bf9c
or r9b, r9b
jne 0x14000bfaf
ret
mov r11, r10
sub r11, rcx
cmp r11d, edx
jae 0x14000bfcd
cmp r9b, 1
adc r10, 0
cmp r9b, 0x60
jbe 0x14000bfbe
or r8d, r8d
je 0x14000bfbe
sub r9d, 0x20
imul eax, eax, 0x21
movzx r9d, r9b
inc r10
add eax, r9d
jmp 0x14000bf8f
ret

Function at 0x14000bfd0
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
movsx edx, byte [rcx]
inc rcx
test dl, dl
je 0x14000bfe6
imul eax, eax, 0x21
add eax, edx
jmp 0x14000bfd5
ret

Function at 0x14000d9c0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rsi
xor eax, eax
push rbx
mov r8b, byte [rdx + rax]
mov byte [rcx + rax], r8b
mov r8b, byte [rdx + rax + 1]
mov byte [rcx + rax + 1], r8b
mov r8b, byte [rdx + rax + 2]
mov byte [rcx + rax + 2], r8b
mov r8b, byte [rdx + rax + 3]
mov byte [rcx + rax + 3], r8b
add rax, 4
cmp rax, 0x20
jne 0x14000d9c4
mov r11d, 8
lea r10, str.cw
lea rbx, [0x1400191a0]
mov esi, r11d
movzx r9d, byte [rcx + 0x1c]
movzx r8d, byte [rcx + 0x1d]
movzx edx, byte [rcx + 0x1e]
movzx eax, byte [rcx + 0x1f]
and esi, 7
jne 0x14000da42
mov sil, byte [r10 + r8]
mov r8b, byte [r10 + rdx]
mov dl, byte [r10 + rax]
mov al, byte [r10 + r9]
mov r9d, r11d
shr r9d, 3
xor sil, byte [rbx + r9]
mov r9d, esi
jmp 0x14000da57
cmp esi, 4
jne 0x14000da57
mov r9b, byte [r10 + r9]
mov r8b, byte [r10 + r8]
mov dl, byte [r10 + rdx]
mov al, byte [r10 + rax]
xor r9b, byte [rcx]
xor r8b, byte [rcx + 1]
inc r11d
add rcx, 4
xor dl, byte [rcx - 2]
xor al, byte [rcx - 1]
mov byte [rcx + 0x1c], r9b
mov byte [rcx + 0x1d], r8b
mov byte [rcx + 0x1e], dl
mov byte [rcx + 0x1f], al
cmp r11d, 0x3c
jne 0x14000da08
pop rbx
pop rsi
ret
Function at 0x140012630
Capabilities:
Enumerate pe sections

Disassembly:
push r14
xor r14d, r14d
push r13
push r12
push rbp
push rdi
push rsi
push rbx
push rcx
pop rbx
nop
push rbx
pop rdx
nop
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
mov ecx, dword [rcx + rax + 0x88]
call 0x140012630
push rbx
nop
pop rdx
mov esi, eax
add rsi, rbx
mov ecx, dword [rsi + 0x20]
call 0x140012630
mov ecx, dword [rsi + 0x24]
nop
push rbx
pop rdx
mov r12d, eax
call 0x140012630
mov r13d, dword [rsi + 0x18]
add r12, rbx
mov edi, eax
cmp r13, r14
je 0x14000baff
mov ecx, dword [r12 + r14*4]
push rbx
nop
pop rdx
call 0x140012630
mov ebp, eax
add rbp, rbx
push rbp
nop
pop rcx
call fcn.14000bfd0
cmp eax, 0xa6caa1c5
jne 0x14000bae4
mov ecx, dword [rsi + 0x1c]
nop
push rbx
pop rdx
add rdi, rbx
call 0x140012630
movzx edx, word [rdi + r14*2]
mov eax, eax
add rax, rbx
mov ecx, dword [rax + rdx*4]
add rsp, 0x20
nop
push rbx
pop rdx
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp 0x140012630
push rbp
pop rcx
nop
call fcn.14000bfd0
mov edx, eax
lea rax, [r14 + 1]
cmp edx, 0xffe885ef
je 0x14000bab3
mov r14, rax
jmp 0x14000ba8e
add rsp, 0x20
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov eax, ecx
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
cmp eax, dword [rdx + 0x14]
jb 0x14001267a
mov r9w, word [rcx + 6]
xor ecx, ecx
cmp r9w, cx
je 0x140012678
mov r8d, dword [rdx + 0xc]
cmp eax, r8d
jb 0x140012670
mov r10d, dword [rdx + 0x10]
add r10d, r8d
cmp eax, r10d
jae 0x140012670
add eax, dword [rdx + 0x14]
sub eax, r8d
ret
inc ecx
add rdx, 0x28
jmp 0x14001264e
sub eax, eax
ret
Function at 0x14003f04e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1a8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14029a048]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x14003f07b
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dil, 1
cmp eax, 0xffffffff
jne 0x14003f1e8
mov rcx, rsi
call fcn.140164780
test al, al
je 0x14003f109
lea rcx, str.....chromeinstaller_setup_setup_main.cc
mov edx, 0x2b
int3
mov ecx, 2
call fcn.1400d72c0
test al, al
je 0x14003f19c
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....chromeinstaller_setup_setup_main.cc
lea r14, [rsp + 0x60]
mov rcx, r14
mov r8d, 0x4b6
mov r9d, 2
int3
xor edi, edi
jmp 0x14003f1e8
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140116250
mov eax, edi
add rsp, 0x1a8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400505b4
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rdx
mov edi, ecx
mov rax, qword [0x14029a048]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r8d, 0x20
call fcn.14012f75c
mov ebx, 6
cmp eax, 0x20
jne 0x14005068a
mov ecx, dword [rsi + 8]
mov rbx, qword [sym.imp.WS2_32.dll_ntohl]
call rbx
mov dword [rsi + 8], eax
mov ecx, dword [rsi + 0xc]
call rbx
mov dword [rsi + 0xc], eax
mov ecx, dword [rsi + 0x10]
call rbx
mov dword [rsi + 0x10], eax
mov ecx, dword [rsi + 0x14]
call rbx
mov dword [rsi + 0x14], eax
mov ecx, dword [rsi + 0x18]
call rbx
mov dword [rsi + 0x18], eax
mov ecx, dword [rsi + 0x1c]
call rbx
mov dword [rsi + 0x1c], eax
movaps xmm0, xmmword [0x14024a210]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx + 0x20], xmm0
movaps xmmword [rdx + 0x10], xmm0
movaps xmmword [rdx], xmm0
mov ecx, edi
call fcn.14012c4c4
mov ebx, 6
test eax, eax
jne 0x14005068a
movabs rax, 0x303146464944424d
mov ebx, 8
cmp qword [rsi], rax
jne 0x14005068a
movsxd rax, dword [rsp + 0x34]
cmp rax, 0x20
jb 0x14005068a
add rax, 0xffffffffffffffe0
mov ecx, dword [rsi + 0x14]
sub rax, rcx
jb 0x14005068a
mov ecx, dword [rsi + 0x18]
sub rax, rcx
jb 0x14005068a
mov ecx, dword [rsi + 0x1c]
cmp rax, rcx
jb 0x14005068a
setne al
movzx ebx, al
shl ebx, 3
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140116250
mov eax, ebx
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
Function at 0x140071e22
Capabilities:
Create restart manager session

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x3e0
movaps xmmword [rsp + 0x3d0], xmm6
mov ebx, edx
mov r15, rcx
mov rax, qword [0x14029a048]
xor rax, rsp
mov qword [rsp + 0x3c8], rax
mov eax, dword [0x1402af858]
mov ecx, dword [0x1402aa718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140072202
cmp qword [0x1402af850], 0
je 0x14007206c
lea rcx, [rsp + 0xb4]
mov dword [rcx], 0
xorps xmm6, xmm6
lea r8, [rsp + 0x380]
movaps xmmword [r8 + 0x30], xmm6
movaps xmmword [r8 + 0x20], xmm6
movaps xmmword [r8 + 0x10], xmm6
movaps xmmword [r8], xmm6
mov word [r8 + 0x40], 0
xor edi, edi
xor edx, edx
call sub.RstrtMgr.DLL_RmStartSession
test eax, eax
jne 0x14007217e
movaps xmmword [rsp + 0x90], xmm6
xor eax, eax
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x80], rax
movaps xmmword [rsp + 0x70], xmm6
test bl, bl
je 0x1400721af
lea rsi, [rsp + 0xb8]
mov r8d, 0x2c8
mov rcx, rsi
mov dl, 0xaa
call fcn.140118630
mov rcx, rsi
mov rdx, r15
mov r8b, 1
mov r9d, 1
int3
xor edi, edi
jmp 0x14007217e
and dil, 1
mov rcx, qword [rsp + 0x3c8]
xor rcx, rsp
call fcn.140116250
mov eax, edi
movaps xmm6, xmmword [rsp + 0x3d0]
add rsp, 0x3e0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [r15 + 0x17], 0
mov rax, r15
jns 0x1400721bc
mov rax, qword [r15]
lea rdx, [rsp + 0xb8]
mov qword [rdx], rax
lea rcx, [rsp + 0x70]
int3
lea rcx, [0x1402af858]
int3

Function at 0x1400745cb
Capabilities:
Get session information

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x14029a048]
xor rax, rsp
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x1400746ac
lea r9, [rsp + 0x40]
mov qword [r9], 0
lea rcx, [rsp + 0x3c]
mov dword [rcx], 0
mov qword [rsp + 0x20], rcx
xor ecx, ecx
mov edx, eax
mov r8d, 0x18
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x1400746ac
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
mov rdi, qword [rsp + 0x40]
mov rax, qword [0x14029d820]
and rax, rdi
cmp rax, qword [0x14029d808]
jne 0x140074655
mov rcx, rdi
call fcn.14007d730
mov ecx, 0x30
int3
mov qword [rsi], 0
jmp 0x1400746fc
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140116250
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x14007b0a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r15, rdx
mov rdi, rcx
mov rax, qword [0x14029a048]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, qword [rcx]
mov rbx, qword [rcx + 8]
cmp rbx, 2
jb 0x14007b0ee
cmp word [rax + 2], 0x3a
jne 0x14007b0ee
movzx ecx, word [rax]
and ecx, 0xffffffdf
add ecx, 0xffffffbf
cmp cx, 0x1a
jae 0x14007b0ee
mov r14d, 2
xor edx, edx
jmp 0x14007b0f3
mov dl, 1
xor r14d, r14d
mov rcx, qword [r15]
mov rbp, qword [r15 + 8]
cmp rbp, 2
jb 0x14007b11f
cmp word [rcx + 2], 0x3a
jne 0x14007b11f
movzx esi, word [rcx]
and esi, 0xffffffdf
add esi, 0xffffffa5
cmp si, 0xffe6
setae r8b
not dl
test dl, r8b
jne 0x14007b151
cmp rbx, rbp
jne 0x14007b1d1
mov bpl, 1
test rbx, rbx
je 0x14007b1d3
xor edx, edx
movzx edi, word [rax + rdx*2]
cmp di, word [rcx + rdx*2]
jne 0x14007b1d1
inc rdx
cmp rbx, rdx
jne 0x14007b136
jmp 0x14007b1d3
cmp rbx, r14
cmovae rbx, r14
cmp rbp, 2
mov esi, 2
cmovb rsi, rbp
lea rdx, [rsp + 0x30]
mov qword [rdx], rcx
mov qword [rdx + 8], rsi
lea rcx, [rsp + 0x20]
mov qword [rcx], rax
mov qword [rcx + 8], rbx
mov r8d, 1
call fcn.1400ebd70
test al, al
je 0x14007b1d1
mov rax, qword [rdi + 8]
sub rax, r14
jb 0x14007b1ef
mov rcx, qword [r15 + 8]
cmp rcx, 1
jbe 0x14007b1f2
add rcx, 0xfffffffffffffffe
cmp rax, rcx
jne 0x14007b1d1
mov bpl, 1
test rax, rax
je 0x14007b1d3
add r14, r14
add r14, qword [rdi]
mov rcx, qword [r15]
xor edx, edx
movzx ebx, word [r14 + rdx*2]
cmp bx, word [rcx + rdx*2 + 4]
jne 0x14007b1d1
inc rdx
cmp rax, rdx
jne 0x14007b1bb
jmp 0x14007b1d3
xor ebp, ebp
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140116250
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
int3
int3

Function at 0x14007c6a0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x258
mov rax, qword [0x14029a048]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov sil, 1
cmp qword [0x1402af8e8], 0
jne 0x14007c8ed
mov rcx, qword [0x1402af8c0]
test rcx, rcx
je 0x14007c831
test byte [0x14029c0f0], 1
je 0x14007c8ed
cmp byte [rcx + 0x17], 0
jns 0x14007c6f2
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1402af8e8], rax
inc rax
cmp rax, 1
ja 0x14007c8ed
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140118630
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jb 0x14007c8eb
mov rcx, qword [0x1402af8c0]
lea rdx, [rsp + 0x40]
int3
mov ecx, 0x18
int3
xor esi, esi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140116250
mov eax, esi
add rsp, 0x258
pop rdi
pop rsi
ret
Function at 0x14007f720
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x14007f767
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14007f781
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14007f75f
mov qword [rsi], rdi
call fcn.1400d72b0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x14007f797
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400d72b0
mov rcx, qword [rsi]
int3
int3

Function at 0x14007f8c0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x14029a048]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x14007f8ef
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14007f8f2
mov rcx, qword [rdi]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x14007f940
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x14007f915
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14007f918
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14007f94f
xor esi, esi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140116250
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
test bl, bl
je 0x14007f994
cmp byte [rdi + 8], 0
jne 0x14007f980
mov rcx, qword [rdi]
jmp 0x14007f989
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 8], 0
jne 0x14007f962
mov rcx, qword [rdi]
jmp 0x14007f96b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x14007f994
mov esi, dword [rsp + 0x24]
jmp 0x14007f994
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
mov edx, esi
int3

Function at 0x140080160
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor ebx, ebx
test edx, edx
sete bl
xor ecx, ecx
mov edx, ebx
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x1400801f7
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400801e1
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400801be
mov qword [rsi], rdi
call fcn.1400d72b0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 1
inc rax
cmp rax, 1
jbe 0x1400801fb
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400d72b0
mov rcx, qword [rsi]
int3
mov byte [rsi + 8], 1
int3
Function at 0x140080200
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov rbx, qword [rdx]
mov qword [rdx], rax
lea rbp, [rbx + 1]
cmp rbp, 2
jb 0x14008022a
call fcn.1400d72b0
cmp qword [rsi], rbx
je 0x14008025e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140080299
cmp rbp, 2
jb 0x140080252
mov qword [rsi], rbx
call fcn.1400d72b0
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsi]
mov byte [rsi + 8], 1
inc rbx
cmp rbx, 1
jbe 0x1400802af
mov rax, qword [rdi]
inc rax
cmp rax, 2
jb 0x14008028b
call fcn.1400d72b0
mov rcx, qword [rdi]
int3
mov rax, rsi
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400d72b0
mov rcx, qword [rsi]
int3
int3

Function at 0x140081dd0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14029a048]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov al, byte [0x1402b14d4]
test al, 1
jne 0x140081e3d
test rsi, rsi
je 0x140081e25
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140081e63
add rdi, rbx
sub rsi, rbx
jne 0x140081e03
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140116250
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1401000c0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140116250
mov rcx, rdi
mov rdx, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x140179080
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x2c]
mov dword [rcx], eax
call fcn.1400c1ea0
lea rcx, str.cryptbase.dll
xor edx, edx
mov r8d, 0x1100
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
jne 0x140081e92
int3
lea rdx, [0x140260c5c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140081eaa
int3
lea rcx, str.bcryptPrimitives.dll
xor edx, edx
mov r8d, 0x1100
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
jne 0x140081ec7
int3
lea rdx, str.ProcessPrng
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
int3
sub rsp, 0x28
lea r8, [0x1402644f0]
call fcn.1400efd80
mov eax, 1
add rsp, 0x28
ret
Function at 0x14008b28c
Capabilities:
Acquire debug privileges

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x458
mov edi, r8d
mov r12, rdx
mov rbx, rcx
mov rax, qword [0x14029a048]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rdx, str.SeDebugPrivilege
mov r8b, 1
call fcn.14008b468
lea rcx, [rsp + 0x240]
mov r8d, 0x208
xor edx, edx
call fcn.140118630
lea rcx, [rbx + 0x28]
cmp byte [rbx + 0x3f], 0
jns 0x14008b2eb
mov rcx, qword [rcx]
lea rdx, [rsp + 0x240]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
add eax, 0xfffffefc
cmp eax, 0xfffffefd
jae 0x14008b36a
mov ecx, 1
call fcn.1400d72c0
test al, al
je 0x14008b442
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....chromeinstaller_setupprocess_terminator_work_item.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x3f
mov r9d, 1
int3
test edi, edi
jle 0x14008b433
mov esi, edi
xor edi, edi
mov r14, qword [sym.imp.KERNEL32.dll_OpenProcess]
lea r13, [rsp + 0x30]
lea r15, [rsp + 0x2c]
mov r8d, dword [r12 + rdi*4]
mov ecx, 0x1001
xor edx, edx
call r14
test rax, rax
je 0x14008b40e
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rbx, 0xffffffffffffffff
je 0x14008b406
call fcn.1400d72b0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8d, 0x208
mov rcx, r13
mov dl, 0xaa
call fcn.140118630
mov dword [rsp + 0x2c], 0x104
mov rcx, rbx
xor edx, edx
mov r8, r13
mov r9, r15
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x14008b410
mov rcx, r13
lea rdx, [rsp + 0x240]
int3
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14008b427
call fcn.1400d72b0
mov rcx, rbx
int3
inc rdi
cmp rsi, rdi
jne 0x14008b387
lea rdx, str.SeDebugPrivilege
xor r8d, r8d
call fcn.14008b468
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140116250
nop
add rsp, 0x458
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400badc0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1400badfc
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400bae06
add rdi, rbx
sub rsi, rbx
jne 0x1400badda
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3

Function at 0x1400c17ee
Capabilities:
Decompress data using quicklz

Disassembly:
mov r8d, dword [rdx]
mov eax, r8d
and eax, 0xf800d000
cmp eax, 0xf0008000
sete r9b
mov eax, r8d
not eax
test eax, 0x3c00000
setne r10b
and r10b, r9b
test cl, 1
sete r9b
lea eax, [rcx + 0x100000]
cmp eax, 0x200000
setb al
and al, r9b
and al, r10b
cmp al, 1
jne 0x1400c188a
mov r9d, ecx
shr r9d, 1
and r9d, 0x7ff
and r8d, 0xfbc0d000
mov r10d, ecx
shl r10d, 6
and r10d, 0x4000000
mov r11d, ecx
shl r11d, 4
and r11d, 0x3f0000
or r11d, r10d
mov r10d, ecx
shr r10d, 5
and r10d, 0x2000
or r10d, r11d
shr ecx, 8
and ecx, 0x800
or ecx, r10d
or ecx, r9d
or ecx, r8d
mov dword [rdx], ecx
ret
Function at 0x1400c4890
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1400c48d8
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1400c48e1
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1400c48c8
mov qword [rdi], rsi
call fcn.1400d72b0
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400d72b0
mov rcx, qword [rdi]
int3