joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140753058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407531df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140753089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14075306f
add dl, dl
jne 0x140753096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407530f6
xor eax, eax
add dl, dl
jne 0x1407530a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407531ad
add dl, dl
jne 0x1407530b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407530c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407530d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407530dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407530ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14075307e
mov eax, 1
add dl, dl
jne 0x140753106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140753113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407530fb
sub eax, ebx
mov ebx, 1
jne 0x14075314c
mov ecx, 1
add dl, dl
jne 0x14075312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14075313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140753123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14075307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140753168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140753175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14075315d
cmp eax, 0x7d00
jae 0x14075319b
cmp eax, 0x500
jb 0x140753196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14075307e
cmp eax, 0x7f
ja 0x14075319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14075307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407531d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14075307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002c50
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, rdx
mov r13, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov byte [rcx], 1
mov qword [rcx + 8], 0
mov byte [rcx + 0x10], 0
mov eax, dword [0x140319768]
mov ecx, dword [0x140311f48]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140002e01
mov ecx, dword [0x140310d60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140002d84
movsxd rcx, dword [0x140319760]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x140319764]
jne 0x140002d84
mov rdi, qword [rax + rcx]
test rdi, rdi
je 0x140002d84
movabs r12, 0x6000000000000000
movabs r15, 0xffffffffffffff
mov rax, qword [rdi]
mov rbx, rax
and rbx, r15
and rax, r12
movabs rcx, 0x4000000000000000
cmp rax, rcx
jne 0x140002d4a
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140002d37
mov rsi, qword [rdi]
call qword [rcx + 8]
movabs rcx, 0xff00000000000000
and rcx, rsi
or rcx, rax
mov qword [rdi], rcx
movabs rax, 0xbfffffffffffffff
lock and qword [rdi], rax
mov byte [r13 + 0x10], 1
movabs rsi, 0x8000000000000001
mov qword [r13 + 8], rbx
lea rbx, [rsp + 0x20]
mov rcx, rbx
call qword [fcn.1400c45f0]
mov rax, qword [rbx]
lea rcx, [r14 + rsi]
cmp rcx, 2
jae 0x140002d8b
add rsi, rax
cmp rsi, 1
ja 0x140002dad
cmp rax, r14
je 0x140002dad
int3
mov byte [r13], 0
jmp 0x140002de1
xor ecx, ecx
mov rdx, rax
add rdx, r14
setns cl
movabs rdx, 0x7fffffffffffffff
add rdx, rcx
add rax, r14
cmovo rax, rdx
mov r14, rax
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140002dcf
mov rsi, qword [rdi]
call qword [rcx + 8]
movabs rcx, 0xff00000000000000
and rcx, rsi
or rcx, rax
mov qword [rdi], rcx
mov rax, qword [rdi]
and rax, r12
and r14, r15
or r14, rax
mov qword [rdi], r14
inc dword [rdi + 0x14]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140115e50
mov rax, r13
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140319768]
int3

Function at 0x140004b60
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140314d08]
cmp rsi, 1
jbe 0x140004ba5
mov ecx, dword [0x140310d60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140004bf7
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x140004bf7
mov rax, qword [rax + rcx]
test rax, rax
je 0x140004bf7
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140314d08]
int3
int3
Function at 0x140006b60
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x140006b9c
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 0x140006ba6
add rdi, rbx
sub rsi, rbx
jne 0x140006b7a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3

Function at 0x140006e30
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r14, r8
mov ebp, edx
mov rsi, rcx
mov ebx, dword [0x14031c6b0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test edi, edi
jne 0x140006f15
cmp rbx, 1
je 0x140006e73
mov eax, dword [rsi + 0x1518]
test eax, eax
je 0x140006e7a
xor eax, eax
jmp 0x140006f0a
mov eax, 1
lock xadd dword [rsi + 0x1518], eax
cmp eax, 0x7fffffff
je 0x140006f61
mov rcx, rsi
int3
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140006e63
int3

Function at 0x140007390
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140314cf8]
cmp rsi, 1
jbe 0x1400073d5
mov ecx, dword [0x140310d60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140007427
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x140007427
mov rax, qword [rax + rcx]
test rax, rax
je 0x140007427
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140314cf8]
int3
int3

Function at 0x140007430
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
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 0x1400074ec
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400074b9
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140007494
mov qword [rsi], rdi
call fcn.1400bb620
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 0x1400074f0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400bb620
mov r14, qword [rsi]
mov rcx, qword [0x1403198a0]
test rcx, rcx
je 0x1400074de
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi], 0
jmp 0x140007482
int3
mov byte [rsi + 8], 1
int3
Function at 0x140009e00
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x140009e49
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140009e67
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140009e41
mov qword [rsi], rdi
call fcn.1400bb620
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov word [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x140009e9a
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400bb620
mov r14, qword [rsi]
mov rcx, qword [0x1403198a0]
test rcx, rcx
je 0x140009e8c
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi], 0
jmp 0x140009e2f
int3
int3

Function at 0x14000b331
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, 0xffffffff
cmp r8, rax
mov ebx, 0xffffffff
cmovb ebx, r8d
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000b3d0
mov r15, qword [sym.imp.KERNEL32.dll_GetFileType]
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x14000b3e4
mov rcx, rdi
call r15
cmp eax, 3
jne 0x14000b409
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r12
test eax, eax
jne 0x14000b399
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x14000b3eb
cmp eax, 0xffffffff
je 0x14000b40f
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140115e50
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov eax, dword [rsp + 0x2c]
jmp 0x14000b3e9
int3

Function at 0x14000d3b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
mov eax, 0xffffffff
cmovb eax, r8d
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000d404
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
jne 0x14000d40b
int3
mov rsi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140115e50
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x14000d594
Capabilities:
Read pipe
Write pipe

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x190
mov r14, r8
mov r15, rdx
mov rdi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov rbx, qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13, qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x14000d5e2
mov rcx, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x110000
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
cmp rax, 0xffffffffffffffff
jne 0x14000d687
call r12
cmp eax, 0xe7
jne 0x14000d77c
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x14000d628
mov rcx, qword [rdi]
mov edx, 0xffffffff
call r13
test eax, eax
jne 0x14000d5d6
mov ecx, 2
call fcn.1400f34e0
test al, al
je 0x14000d7d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov r8d, 0x6b
mov r9d, 2
int3
mov rsi, rax
lea rdx, [rsp + 0x44]
mov dword [rdx], 2
mov rcx, rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x14000d7da
lea rax, [rsp + 0x40]
mov dword [rax], 0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0xc
mov rcx, rsi
mov rdx, r15
mov r8d, 0x24
mov r9, r14
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x14000d82a
mov dil, 1
cmp dword [rsp + 0x40], 0xc
je 0x14000d883
mov ecx, 2
call fcn.1400f34e0
test al, al
je 0x14000d881
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov r8d, 0x86
mov r9d, 2
int3
mov ecx, 2
call fcn.1400f34e0
test al, al
je 0x14000d7d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov r8d, 0x66
mov r9d, 2
int3
xor edi, edi
jmp 0x14000d88b
mov ecx, 2
call fcn.1400f34e0
test al, al
je 0x14000d881
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov r8d, 0x74
mov r9d, 2
int3
mov ecx, 2
call fcn.1400f34e0
test al, al
je 0x14000d881
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov r8d, 0x82
mov r9d, 2
int3
xor edi, edi
mov rcx, rsi
call fcn.140008fdc
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.140115e50
mov eax, edi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140011956
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x238
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, qword [rcx]
mov qword [rcx], 0
test rsi, rsi
jne 0x1400119af
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140115e50
nop
add rsp, 0x238
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rsi + 0x30], 0
je 0x140011a94
mov rcx, qword [rsi + 8]
xor edx, edx
xor r8d, r8d
call fcn.14017cf67
test rax, rax
jne 0x140011a41
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140011b8b
mov ecx, 2
call fcn.1400f34e0
test al, al
je 0x140011a94
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r8d, 0x20a
mov r9d, 2
int3
mov ecx, 2
call fcn.1400f34e0
test al, al
je 0x140011a94
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r8d, 0x203
mov r9d, 2
int3
xorps xmm0, xmm0
lea rax, [rsp + 0x60]
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax], xmm0
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x20], rax
xor edx, edx
mov r8d, 0xffffffff
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_UnlockFileEx]
test eax, eax
jne 0x140011b41
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
lea rcx, str.Microsoft.Crashpad.UnlockFileExFailedWithHR
int3
lea rcx, [rsi + 0x38]
int3
mov rbx, qword [rsi + 0x40]
sub rbx, qword [rsi + 0x38]
mov rdi, rbx
sar rdi, 4
movabs rax, 0x6db6db6db6db6db7
imul rdi, rax
mov dword [rsp + 0xcc], 0
movabs rax, 0x143504144
mov qword [rsp + 0xc0], rax
mov rax, rdi
shr rax, 0x20
jne 0x14001217d
mov eax, edi
lea rdx, [rsp + 0xc0]
mov dword [rdx + 8], eax
mov rcx, qword [rsi + 8]
mov r8d, 0x10
call fcn.14017adeb
test al, al
je 0x140011fce
test rbx, rbx
je 0x140011a94
movabs rcx, 0x492492492492492
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
xor eax, eax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x90], rax
movaps xmmword [rsp + 0x80], xmm0
cmp rdi, rcx
ja 0x140012192
imul rdi, rdi, 0x38
mov rcx, rdi
int3
mov ecx, 2
call fcn.1400f34e0
test al, al
je 0x140011a94
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r8d, 0x216
mov r9d, 2
int3
int3
int3
Function at 0x140017bb0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
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 0x140017bdc
call fcn.1400bb620
cmp qword [rsi], rbx
je 0x140017c10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140017c60
cmp rbp, 2
jb 0x140017c04
mov qword [rsi], rbx
call fcn.1400bb620
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsi]
mov byte [rsi + 8], 1
inc rbx
cmp rbx, 1
jbe 0x140017ca4
mov rax, qword [rdi]
inc rax
cmp rax, 2
jb 0x140017c50
call fcn.1400bb620
mov rbx, qword [rdi]
mov rcx, qword [0x1403198a0]
test rcx, rcx
je 0x140017c88
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
mov qword [rdi], 0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400bb620
mov r14, qword [rsi]
mov rcx, qword [0x1403198a0]
test rcx, rcx
je 0x140017c96
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi], 0
jmp 0x140017bf6
int3
int3
int3

Function at 0x140019890
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 [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1400198bf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400198c2
mov rcx, qword [rdi]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x140019910
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x1400198e5
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400198e8
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14001991f
xor esi, esi
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140115e50
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
test bl, bl
je 0x140019964
cmp byte [rdi + 8], 0
jne 0x140019950
mov rcx, qword [rdi]
jmp 0x140019959
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 8], 0
jne 0x140019932
mov rcx, qword [rdi]
jmp 0x14001993b
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 0x140019964
mov esi, dword [rsp + 0x24]
jmp 0x140019964
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 0x14004c6c6
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 [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x14004c6f3
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dil, 1
cmp eax, 0xffffffff
jne 0x14004c863
mov rcx, rsi
xor edx, edx
call fcn.140167d20
test al, al
je 0x14004c783
lea rcx, str..._.._chrome_installer_setup_setup_main.cc
mov edx, 0x2b
int3
mov ecx, 2
call fcn.1400f34e0
test al, al
je 0x14004c817
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_installer_setup_setup_main.cc
lea r14, [rsp + 0x60]
mov rcx, r14
mov r8d, 0x351
mov r9d, 2
int3
xor edi, edi
jmp 0x14004c863
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140115e50
mov eax, edi
add rsp, 0x1a8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400593c4
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
movaps xmmword [rsp + 0xe0], xmm6
mov r15, r8
mov rbx, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0xd8], rax
lea rdi, [rsp + 0x80]
mov dword [rdi], 0xaaaaaaaa
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 0
xor esi, esi
mov rcx, rdx
mov edx, 0x8000
mov r8d, 0x40
xor r9d, r9d
call fcn.14012939c
cmp eax, 1
sbb esi, esi
not esi
or esi, dword [rdi]
js 0x140059712
movaps xmm6, xmmword [0x1402ae190]
lea rdx, [rsp + 0xb0]
movaps xmmword [rdx + 0x10], xmm6
movaps xmmword [rdx], xmm6
mov ecx, esi
mov r8d, 0x20
call fcn.1401285a8
mov r13d, 0xffffffff
cmp eax, 0x20
jne 0x140059719
mov ecx, dword [rsp + 0xb8]
mov r12, qword [sym.imp.WS2_32.dll_ntohl]
call r12
mov dword [rsp + 0xb8], eax
mov ecx, dword [rsp + 0xbc]
call r12
mov dword [rsp + 0xbc], eax
mov ecx, dword [rsp + 0xc0]
call r12
mov dword [rsp + 0xc0], eax
mov ecx, dword [rsp + 0xc4]
call r12
mov dword [rsp + 0xc4], eax
mov ecx, dword [rsp + 0xc8]
call r12
mov dword [rsp + 0xc8], eax
mov ecx, dword [rsp + 0xcc]
call r12
mov dword [rsp + 0xcc], eax
lea rdi, [rsp + 0x80]
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
mov ecx, esi
mov rdx, rdi
call fcn.1401255f8
mov ebp, 6
test eax, eax
jne 0x14005971e
movabs rax, 0x303146464944424d
mov ebp, 8
cmp qword [rsp + 0xb0], rax
jne 0x14005971e
movsxd rax, dword [rsp + 0x94]
cmp rax, 0x20
jb 0x14005971e
add rax, 0xffffffffffffffe0
mov ecx, dword [rsp + 0xc4]
sub rax, rcx
jb 0x14005971e
mov ecx, dword [rsp + 0xc8]
sub rax, rcx
jb 0x14005971e
mov ecx, dword [rsp + 0xcc]
cmp rax, rcx
jne 0x14005971e
mov dword [rsp + 0x80], 0xaaaaaaaa
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 0
xor r14d, r14d
mov rcx, rbx
mov edx, 0x8000
mov r8d, 0x40
xor r9d, r9d
call fcn.14012939c
mov ebx, dword [rsp + 0x80]
cmp eax, 1
mov edi, 0
sbb edi, edi
not edi
or edi, ebx
js 0x14005977b
lea rdx, [rsp + 0x80]
movaps xmmword [rdx + 0x20], xmm6
movaps xmmword [rdx + 0x10], xmm6
movaps xmmword [rdx], xmm6
mov ecx, edi
call fcn.1401255f8
mov r13d, 0xffffffff
mov ebp, 6
test eax, eax
jne 0x140059789
mov ecx, dword [rsp + 0x94]
cmp ecx, dword [rsp + 0xb8]
jne 0x140059784
mov qword [rsp + 0x30], rcx
int3
mov ebp, 6
jmp 0x14005974d
mov ebp, 6
xor r14d, r14d
mov ebx, 0xffffffff
mov rcx, r14
call fcn.1400c95d0
mov ecx, esi
call fcn.14012238c
test ebx, ebx
js 0x140059740
mov ecx, ebx
call fcn.14012238c
test r13d, r13d
js 0x14005974d
mov ecx, r13d
call fcn.14012238c
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140115e50
mov eax, ebp
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ebp, 6
mov ebx, edi
jmp 0x140059726
mov ebp, 8
xor r14d, r14d
jmp 0x140059726
Function at 0x140074e53
Capabilities:
Create restart manager session

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x3f8
movaps xmmword [rsp + 0x3e0], xmm6
mov ebx, edx
mov rbp, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x3d8], rax
mov eax, dword [0x140314b68]
mov ecx, dword [0x140311f48]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007527c
cmp qword [0x140314b60], 0
je 0x1400750e7
lea rcx, [rsp + 0xc4]
mov dword [rcx], 0
xorps xmm6, xmm6
lea r8, [rsp + 0x390]
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 esi, esi
xor edx, edx
call sub.RstrtMgr.DLL_RmStartSession
test eax, eax
jne 0x140075224
movaps xmmword [rsp + 0xa0], xmm6
xor eax, eax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x90], rax
movaps xmmword [rsp + 0x80], xmm6
test bl, bl
je 0x140075252
lea rsi, [rsp + 0xc8]
mov r8d, 0x2c8
mov rcx, rsi
mov dl, 0xaa
call fcn.140117f60
mov rcx, rsi
mov qword [rsp + 0x40], rbp
mov rdx, rbp
mov r8b, 1
mov r9d, 1
int3
xor esi, esi
jmp 0x140075224
mov rcx, qword [rsp + 0x3d8]
xor rcx, rsp
call fcn.140115e50
mov eax, esi
movaps xmm6, xmmword [rsp + 0x3e0]
add rsp, 0x3f8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rbp + 0x17], 0
mov rax, rbp
jns 0x14007525f
mov rax, qword [rbp]
lea rdx, [rsp + 0xc8]
mov qword [rdx], rax
lea rcx, [rsp + 0x80]
int3
lea rcx, [0x140314b68]
int3

Function at 0x140077a7f
Capabilities:
Get session information

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x140077b44
lea r9, [rsp + 0x48]
mov qword [r9], 0
lea rcx, [rsp + 0x44]
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 0x140077b44
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x38]
mov qword [r14], rax
mov rdi, qword [rsp + 0x48]
mov ecx, 0x30
int3
mov qword [rsi], 0
jmp 0x140077b94
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140115e50
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret