joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140072400
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rbx, qword [rcx + 0x38]
mov rsi, qword [rcx + 0x40]
cmp rbx, rsi
jne 0x140072428
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14, r8
mov edi, edx
cmp dword [rbx + 0x68], edx
jne 0x1400724b0
cmp byte [rbx + 0x27], 0
jns 0x14007243e
mov rcx, qword [rbx + 0x10]
jmp 0x140072442
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1400724b0
mov r15, qword [r14 + 8]
cmp r15, qword [r14 + 0x10]
je 0x140072583
movups xmm0, xmmword [rbx]
movups xmmword [r15], xmm0
lea rcx, [r15 + 0x10]
lea rdx, [rbx + 0x10]
call fcn.1400d7a60
lea rcx, [r15 + 0x28]
cmp byte [rbx + 0x3f], 0
js 0x140072571
lea rax, [rbx + 0x28]
mov rdx, qword [rax + 0x10]
mov qword [rcx + 0x10], rdx
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
mov rax, qword [rbx + 0x60]
mov qword [r15 + 0x60], rax
movups xmm0, xmmword [rbx + 0x40]
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [r15 + 0x50], xmm1
movups xmmword [r15 + 0x40], xmm0
add r15, 0x68
mov qword [r14 + 8], r15
add rbx, 0x70
cmp rbx, rsi
je 0x14007241a
mov r15, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], edi
jne 0x14007255f
cmp byte [rbx + 0x27], 0
jns 0x1400724d9
mov rcx, qword [rbx + 0x10]
jmp 0x1400724dd
lea rcx, [rbx + 0x10]
call r15
test al, 0x10
jne 0x14007255f
mov r12, qword [r14 + 8]
cmp r12, qword [r14 + 0x10]
je 0x140072520
movups xmm0, xmmword [rbx]
movups xmmword [r12], xmm0
lea rcx, [r12 + 0x10]
lea rdx, [rbx + 0x10]
call fcn.1400d7a60
lea rcx, [r12 + 0x28]
cmp byte [rbx + 0x3f], 0
js 0x14007252d
mov rax, qword [rbx + 0x38]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rbx + 0x28]
movups xmmword [rcx], xmm0
jmp 0x14007253a
mov rcx, r14
mov rdx, rbx
call fcn.14016aef0
jmp 0x14007255f
mov rdx, qword [rbx + 0x28]
mov r8, qword [rbx + 0x30]
call fcn.1400d4770
mov rax, qword [rbx + 0x60]
mov qword [r12 + 0x60], rax
movups xmm0, xmmword [rbx + 0x40]
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [r12 + 0x50], xmm1
movups xmmword [r12 + 0x40], xmm0
add r12, 0x68
mov qword [r14 + 8], r12
add rbx, 0x70
cmp rsi, rbx
je 0x14007241a
jmp 0x1400724c4
mov rdx, qword [rbx + 0x28]
mov r8, qword [rbx + 0x30]
call fcn.1400d4770
jmp 0x14007248e
mov rcx, r14
mov rdx, rbx
call fcn.14016aef0
jmp 0x1400724b0
Function at 0x140073370
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x14021d5d0]
mov ecx, dword [0x140216fcc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400733cc
movzx eax, word [0x14021d5a0]
cmp ax, 9
jne 0x14007342e
mov esi, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401013e0
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x14021d5d0]
call fcn.140100680
cmp dword [0x14021d5d0], 0xffffffff
jne 0x1400733a5
xorps xmm0, xmm0
lea rsi, [rsp + 0x20]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rsi]
movaps xmm1, xmmword [rsi + 0x10]
movaps xmm2, xmmword [rsi + 0x20]
movups xmmword [0x14021d5c0], xmm2
movups xmmword [0x14021d5b0], xmm1
movups xmmword [0x14021d5a0], xmm0
lea rcx, [0x14021d5d0]
call fcn.140100718
jmp 0x1400733a5
xor esi, esi
test ax, ax
je 0x1400733b7
cmp ax, 6
jne 0x140073445
mov esi, 2
jmp 0x1400733b7
cmp ax, 0xc
jne 0x140073455
mov esi, 3
jmp 0x1400733b7
mov esi, 4
jmp 0x1400733b7
Function at 0x140077e50
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, rdx
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
mov al, 1
test al, al
je 0x140077f5e
mov rax, qword [rsi]
test rax, rax
jne 0x140077f65
cmp dword [rsi + 0x14], 0
jne 0x140077f63
xor eax, eax
cmp qword [rsi + 8], 0
mov edx, 0
jne 0x140077f65
mov rdi, qword [r14]
cmp rdx, rdi
je 0x140077ed9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140077f2d
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140077ecd
mov qword [rsi], rdi
call fcn.1400d9600
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi + 8]
mov rdi, qword [r14 + 8]
cmp rax, rdi
je 0x140077f12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140077f46
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140077f0a
mov qword [rsi + 8], rdi
call fcn.1400d9600
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [r14 + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [r14 + 0x14]
mov dword [rsi + 0x14], eax
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400d9600
mov rcx, qword [rsi]
call fcn.1400e0e60
mov qword [rsi], 0
jmp 0x140077ebb
call fcn.1400d9600
mov rcx, qword [rsi + 8]
call fcn.1400e0e60
mov qword [rsi + 8], 0
jmp 0x140077ef7
mov rax, qword [rsi]
jmp 0x140077f65
xor eax, eax
lea rcx, [rax + 1]
cmp rcx, 2
jae 0x140077fad
mov rcx, qword [rsi + 8]
lea rdx, [rcx + 1]
cmp rdx, 2
jae 0x140077f90
mov rdx, rax
mov qword [rsi + 0x10], 0
mov rax, rcx
jmp 0x140077e9f
call fcn.1400d9600
mov rcx, qword [rsi + 8]
call fcn.1400e0e60
mov qword [rsi + 8], 0
mov rax, qword [rsi]
xor ecx, ecx
jmp 0x140077f7d
call fcn.1400d9600
mov rcx, qword [rsi]
call fcn.1400e0e60
mov qword [rsi], 0
xor eax, eax
jmp 0x140077f6f
Function at 0x140081ab0
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
movzx eax, byte [r8 + 0x17]
test al, al
mov rcx, qword [r8]
cmovns rcx, r8
lea rdx, [rsp + 0x60]
mov qword [rdx], rcx
cmovs rax, qword [r8 + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x70]
mov rcx, rsi
call fcn.1400dd8e0
cmp byte [rsi + 0x17], 0
jns 0x140081b0b
mov rsi, qword [rsp + 0x70]
movaps xmm0, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x48]
mov rcx, rdi
call fcn.1400dd8e0
cmp byte [rdi + 0x17], 0
jns 0x140081b30
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [rsp + 0x5f], 0
jns 0x140081b4f
mov rcx, qword [rsp + 0x48]
call fcn.140100564
cmp byte [rsp + 0x87], 0
jns 0x140081b63
mov rcx, qword [rsp + 0x70]
call fcn.140100564
test esi, esi
setne bl
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1401013e0
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x140081c10
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x58]
mov rcx, rdi
call fcn.1400dd8e0
cmp byte [rdi + 0x17], 0
jns 0x140081c51
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp byte [rsp + 0x6f], 0
jns 0x140081c72
mov rcx, qword [rsp + 0x58]
call fcn.140100564
test r14, r14
je 0x140081d1e
test edi, edi
je 0x140081d1e
mov ecx, edi
add rcx, rcx
call fcn.14010059c
mov rbx, rax
movups xmm0, xmmword [rsi]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rsi, [rsp + 0x58]
mov rcx, rsi
call fcn.1400dd8e0
cmp byte [rsi + 0x17], 0
jns 0x140081cb3
mov rsi, qword [rsp + 0x58]
mov rcx, rsi
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x6f], 0
jns 0x140081cd3
mov rcx, qword [rsp + 0x58]
call fcn.140100564
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x140081d3c
mov rcx, rbx
call fcn.14011bf14
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x58]
call fcn.1400dd930
cmp byte [r14 + 0x17], 0
js 0x140081d40
mov rax, qword [rsp + 0x68]
mov qword [r14 + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [r14], xmm0
test rbx, rbx
je 0x140081d1e
mov rcx, rbx
call fcn.1401005a4
test edi, edi
setne bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401013e0
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x140081ce5
mov rcx, qword [r14]
call fcn.140100564
jmp 0x140081cff
Function at 0x140089540
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, r8
mov rbx, rdx
mov rdi, rcx
lea r15, [rcx + 0x38]
mov rcx, qword [rcx + 0x38]
test rcx, rcx
jne 0x140089630
lea rsi, [rdi + 0x30]
mov rcx, qword [rdi + 0x30]
test rcx, rcx
jne 0x140089642
mov qword [rsp + 0x20], rsi
lea rcx, [0x1401cc2a8]
lea r9, [0x1401f4490]
xor edx, edx
mov r8d, 0x17
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140089654
mov rsi, qword [rsi]
mov rcx, qword [r15]
test rcx, rcx
jne 0x140089665
mov rax, qword [rsi]
mov rcx, rsi
mov rdx, r15
call qword [rax + 0x90]
test eax, eax
js 0x140089677
cmp rdi, rbx
je 0x1400895e4
cmp byte [rdi + 0x17], 0
js 0x140089601
cmp byte [rbx + 0x17], 0
js 0x14008961f
mov rax, qword [rbx + 0x10]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
add rdi, 0x18
mov rcx, rdi
mov rdx, r14
call fcn.140048830
mov al, 1
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
movzx r8d, byte [rbx + 0x17]
test r8b, r8b
jns 0x140089612
mov r8, qword [rbx + 8]
mov rbx, qword [rbx]
mov rcx, rdi
mov rdx, rbx
call fcn.1400d6360
jmp 0x1400895e4
mov rdx, qword [rbx]
mov r8, qword [rbx + 8]
mov rcx, rdi
call fcn.1400d6490
jmp 0x1400895e4
mov qword [r15], 0
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140089565
mov qword [rsi], 0
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140089576
mov rcx, qword [rsi]
test rcx, rcx
je 0x14008968c
mov qword [rsi], 0
jmp 0x140089686
mov qword [r15], 0
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x1400895ae
mov rcx, qword [r15]
test rcx, rcx
je 0x14008968c
mov qword [r15], 0
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
jmp 0x1400895f5
Function at 0x14008c280
Capabilities:
Delete service

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x190
mov rbx, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov rcx, qword [rdx]
test rcx, rcx
je 0x14008c386
mov rsi, rdx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov dil, 1
test eax, eax
jne 0x14008c369
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov ecx, 1
call fcn.1400d9610
test al, al
je 0x14008c35e
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_installer_util_install_service_work_item_impl.cc
lea rcx, [rsp + 0x40]
mov r8d, 0x268
mov r9d, 1
call fcn.140158e40
lea rcx, [rsp + 0x50]
lea rdx, str.DeleteService_failed
mov r8d, 0x15
call fcn.1400cf4f0
mov rdi, rax
lea rbp, [rsp + 0x28]
mov rcx, rbx
mov rdx, rbp
call fcn.14008c060
cmp byte [rbp + 0x17], 0
jns 0x14008c338
mov rbp, qword [rsp + 0x28]
mov rcx, rdi
mov rdx, rbp
call fcn.140159120
cmp byte [rsp + 0x3f], 0
jns 0x14008c354
mov rcx, qword [rsp + 0x28]
call fcn.140100564
lea rcx, [rsp + 0x40]
call fcn.140158f30
cmp r14d, 0x430
sete dil
cmp qword [rsi], 0
je 0x14008c388
call fcn.1400d9600
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rsi], 0
jmp 0x14008c388
xor edi, edi
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.1401013e0
mov eax, edi
add rsp, 0x190
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x14008ceb0
Capabilities:
Create service

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1d8
mov r15, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rax, qword [rdx + 0x28]
xor esi, esi
cmp rax, qword [rdx + 0x30]
cmovne rsi, rax
cmp byte [rdx + 0x27], 0
jns 0x14008cef2
mov r14, qword [rdx + 0x10]
jmp 0x14008cef6
lea r14, [rdx + 0x10]
mov r13d, dword [rdx + 0xc]
mov r12d, dword [rdx + 4]
mov ebp, dword [rdx + 8]
lea rbx, [rsp + 0x70]
mov rcx, r15
mov rdx, rbx
call fcn.14008c060
cmp byte [rbx + 0x17], 0
jns 0x14008cf1c
mov rbx, qword [rsp + 0x70]
lea r8, [r15 + 0x20]
cmp byte [r15 + 0x37], 0
jns 0x14008cf2a
mov r8, qword [r8]
lea rdx, str._ls___ls_
lea rdi, [rsp + 0x1b8]
mov rcx, rdi
mov r9, rbx
call fcn.14004f2a0
cmp byte [rsp + 0x87], 0
jns 0x14008cf58
mov rcx, qword [rsp + 0x70]
call fcn.140100564
cmp byte [rsp + 0x1cf], 0
jns 0x14008cf6a
mov rdi, qword [rsp + 0x1b8]
lea rbx, [rsp + 0x70]
mov rcx, r15
mov rdx, rbx
call fcn.14008c060
cmp byte [rbx + 0x17], 0
jns 0x14008cf85
mov rbx, qword [rsp + 0x70]
mov rcx, qword [r15 + 0xc8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x50], rsi
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], r12d
mov rdx, rbx
mov r8, rdi
mov r9d, 0x10003
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
je 0x14008cfe0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1400d9600
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x87], 0
jns 0x14008cff4
mov rcx, qword [rsp + 0x70]
call fcn.140100564
cmp byte [rsp + 0x1cf], 0
jns 0x14008d00b
mov rcx, qword [rsp + 0x1b8]
call fcn.140100564
test rdi, rdi
je 0x14008d05f
call fcn.1400d9600
cmp qword [r15 + 0xd0], rdi
je 0x14008d101
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp qword [r15 + 0xd0], 0
je 0x14008d046
call fcn.1400d9600
mov rcx, qword [r15 + 0xd0]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [r15 + 0xd0], rdi
call fcn.1400d9600
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14008d101
mov ecx, 1
call fcn.1400d9610
test al, al
je 0x14008d101
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_installer_util_install_service_work_item_impl.cc
lea rcx, [rsp + 0x70]
mov r8d, 0x247
mov r9d, 1
call fcn.140158e40
lea rcx, [rsp + 0x80]
lea rdx, str.Failed_to_create_service
mov r8d, 0x19
call fcn.1400cf4f0
mov r14, rax
lea rbx, [rsp + 0x1b8]
mov rcx, r15
mov rdx, rbx
call fcn.14008c060
cmp byte [rbx + 0x17], 0
jns 0x14008d0d5
mov rbx, qword [rsp + 0x1b8]
mov rcx, r14
mov rdx, rbx
call fcn.140159120
cmp byte [rsp + 0x1cf], 0
jns 0x14008d0f7
mov rcx, qword [rsp + 0x1b8]
call fcn.140100564
lea rcx, [rsp + 0x70]
call fcn.140158f30
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401013e0
mov eax, ebx
add rsp, 0x1d8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14008d130
Capabilities:
Modify service

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1c8
mov rsi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rax, qword [rdx + 0x28]
xor ebx, ebx
cmp rax, qword [rdx + 0x30]
cmovne rbx, rax
cmp byte [rdx + 0x27], 0
jns 0x14008d16b
mov rdi, qword [rdx + 0x10]
jmp 0x14008d16f
lea rdi, [rdx + 0x10]
mov r9d, dword [rdx + 0xc]
mov eax, dword [rdx + 4]
mov r8d, dword [rdx + 8]
mov rcx, qword [rsi + 0xd0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], rbx
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x50], 0
mov edx, eax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov edi, eax
test eax, eax
jne 0x14008d249
mov ecx, 1
call fcn.1400d9610
test al, al
je 0x14008d249
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_installer_util_install_service_work_item_impl.cc
lea rcx, [rsp + 0x78]
mov r8d, 0x25a
mov r9d, 1
call fcn.140158e40
lea rcx, [rsp + 0x88]
lea rdx, str.Failed_to_change_service_config
mov r8d, 0x20
call fcn.1400cf4f0
mov r14, rax
lea rbx, [rsp + 0x60]
mov rcx, rsi
mov rdx, rbx
call fcn.14008c060
cmp byte [rbx + 0x17], 0
jns 0x14008d223
mov rbx, qword [rsp + 0x60]
mov rcx, r14
mov rdx, rbx
call fcn.140159120
cmp byte [rsp + 0x77], 0
jns 0x14008d23f
mov rcx, qword [rsp + 0x60]
call fcn.140100564
lea rcx, [rsp + 0x78]
call fcn.140158f30
test edi, edi
setne bl
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1401013e0
mov eax, ebx
add rsp, 0x1c8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14008e930
Capabilities:
Check os version

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x180
mov rsi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x178], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
and ecx, 0xfe
cmp ecx, 6
jb 0x14008ea0c
and eax, 0xfeff
cmp eax, 6
je 0x14008ea0c
mov eax, dword [0x14021fb08]
mov ecx, dword [0x140216fcc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14008e9d3
lea rcx, [0x14021fb08]
call fcn.140100680
cmp dword [0x14021fb08], 0xffffffff
jne 0x14008e9d3
lea rcx, [0x1401e6676]
lea rdx, str.::InitializeCriticalSectionEx
mov r8b, 1
call fcn.14008f0d0
mov qword [0x14021fb00], rax
lea rcx, [0x14021fb08]
call fcn.140100718
mov rcx, rsi
xor edx, edx
mov r8d, 0x10000000
call qword [0x14021fb00]
mov esi, eax
test eax, eax
je 0x14008ea19
test esi, esi
setne bl
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.1401013e0
mov eax, ebx
add rsp, 0x180
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov bl, 1
jmp 0x14008e9ef
mov ecx, 2
call fcn.1400d9610
test al, al
je 0x14008e9ea
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_critical_section_with_debug_info.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x21
mov r9d, 2
call fcn.140158e40
lea rcx, [rsp + 0x40]
lea rdx, [0x1401f5bac]
mov r8d, 0x1b
call fcn.1400cf4f0
mov rcx, rdi
call fcn.140158f30
jmp 0x14008e9ea

Function at 0x14008f180
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140213038]
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 0x14008f1e8
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x14008f1f1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401013e0
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x14008f1d1
int3
mov rcx, qword [rcx + 8]
jmp 0x14008f180

Function at 0x14008f200
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 [0x140213038]
xor rax, rsp
mov ecx, 0xffffffff
cmp r8, rcx
mov ebx, 0xffffffff
cmovb ebx, r8d
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12, qword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r15
test eax, eax
je 0x14008f2a8
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x14008f297
cmp eax, 0xffffffff
je 0x14008f2bc
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401013e0
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r12
cmp eax, 3
je 0x14008f246
mov eax, dword [rsp + 0x2c]
jmp 0x14008f277
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x14008f279
int3
Function at 0x14008f750
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.14008f670
test rax, rax
jne 0x14008f78f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x14008f7ab
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1401013e0
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400d9610
test al, al
je 0x14008f801
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_file_io_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0xf4
mov r9d, 2
call fcn.140158e40
lea rcx, [rsp + 0x38]
lea rdx, [0x1401f5fd6]
mov r8d, ntohl
call fcn.1400cf4f0
mov rcx, rsi
call fcn.140158f30
xor esi, esi
jmp 0x14008f78f

Function at 0x14008fc90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140213038]
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 0x14008f1e8
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x14008f1f1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401013e0
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x14008f1d1
int3
mov rcx, qword [rcx + 8]
jmp 0x14008f180
Function at 0x140093190
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14021fb48]
cmp rdi, 1
jbe 0x1400931b9
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400f34b0
lea rcx, [0x14021fb48]
call fcn.140084520
test al, al
je 0x1400931ff
mov qword [0x14021fb50], 0
lea rbx, [0x14021fb48]
lea rdi, [0x14021fb50]
mov rcx, rdi
xor edx, edx
call fcn.1400934b0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400845c0
jmp 0x1400931a7
mov rdi, qword [0x14021fb48]
jmp 0x1400931a7

Function at 0x140093350
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140216b88]
cmp ecx, 0xffffffff
je 0x140093375
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
add rsp, 0x28
ret
xor eax, eax
jmp 0x140093370

Function at 0x140093380
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140101370
sub rsp, rax
mov rax, qword [0x140213038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x140216b88]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140093434
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140093463
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140103d70
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14010059c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140103960
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.1401013e0
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.1400acc70
test al, al
je 0x140093466
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140093469
mov eax, 0xffffffff
lock cmpxchg dword [0x140216b88], ecx
jne 0x14009348e
mov ecx, dword [rsp + 0x2c]
jmp 0x1400933b8
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.1400acc70
test al, al
je 0x1400934a6
cmp dword [rsp + 0x2c], 0xffffffff
je 0x1400934a6
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14009344b
mov ecx, dword [rsp + 0x2c]
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140216b88]
mov dword [rsp + 0x2c], ecx
jmp 0x1400933b8
int3