joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400061a8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.14000144c
xor ebp, ebp
mov rcx, rax
test rax, rax
je 0x14000626f
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov esi, 0x103
mov qword [rbx], rax
lea edi, [rsi + 1]
test edi, edi
js 0x14000627a
mov rdx, qword [rbx]
mov ecx, 1
mov eax, dword [rdx - 0xc]
sub ecx, dword [rdx - 8]
sub eax, edi
or ecx, eax
jge 0x140006210
mov edx, edi
mov rcx, rbx
call fcn.140001a54
mov rdx, qword [rbx]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
mov esi, eax
sbb eax, eax
and eax, esi
cmp eax, 0xffffffff
jne 0x14000623a
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140006231
mov eax, ebp
jmp 0x14000623e
movsxd rdx, dword [rcx - 0xc]
call fcn.14002d1c8
test eax, eax
js 0x14000627a
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14000627a
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
cmp esi, edi
jae 0x1400061e4
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400017a4
int3
mov ecx, 0x80070057
call fcn.1400017a4
int3

Function at 0x1400066ac
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call fcn.1400065a4
test al, al
jne 0x1400066d1
mov eax, 0x80070002
jmp 0x140006702
mov rcx, rdi
mov ebx, 4
call fcn.1400065f0
test al, al
lea ecx, [rbx + 1]
mov rdx, rsi
cmove ebx, ecx
mov rcx, rdi
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140006700
call fcn.14000b9b8
jmp 0x140006702
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000699c
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov r11, rcx
test edx, edx
jle 0x140006ac3
mov r10, r8
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
jmp 0x140006a1f
sub r9d, 4
js 0x140006ac3
movzx eax, byte [r11]
shr rax, 2
mov al, byte [rax + rbx]
mov byte [r10], al
movzx eax, byte [r11 + 1]
movzx ecx, byte [r11]
shr eax, 4
and ecx, 3
shl ecx, 4
add ecx, eax
mov al, byte [rcx + rbx]
mov byte [r10 + 1], al
movzx eax, byte [r11 + 2]
movzx ecx, byte [r11 + 1]
shr eax, 6
and ecx, 0xf
lea eax, [rax + rcx*4]
mov al, byte [rax + rbx]
mov byte [r10 + 2], al
movzx eax, byte [r11 + 2]
add r11, 3
and eax, 0x3f
mov al, byte [rax + rbx]
mov byte [r10 + 3], al
add r10, 4
sub edx, 3
cmp edx, 2
jg 0x1400069b8
sub edx, 1
je 0x140006a83
cmp edx, 1
jne 0x140006abb
sub r9d, 3
js 0x140006ac3
movzx eax, byte [r11]
shr rax, 2
mov al, byte [rax + rbx]
mov byte [r10], al
movzx ecx, byte [r11]
movzx eax, byte [r11 + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
add ecx, eax
mov al, byte [rcx + rbx]
mov byte [r10 + 1], al
movzx eax, byte [r11 + 1]
and eax, 0xf
mov al, byte [rbx + rax*4]
mov byte [r10 + 2], al
lea eax, [r9 - 1]
test eax, eax
js 0x140006ac3
mov byte [r10 + 3], 0x3d
jmp 0x140006ab7
sub r9d, 2
js 0x140006ac3
movzx eax, byte [r11]
shr rax, 2
mov al, byte [rax + rbx]
mov byte [r10], al
movzx eax, byte [r11]
and eax, 3
add rax, rax
mov cl, byte [rbx + rax*8]
mov byte [r10 + 1], cl
lea ecx, [r9 - 2]
test ecx, ecx
js 0x140006ac3
mov word [r10 + 2], 0x3d3d
add r10, 4
sub r10d, r8d
mov eax, r10d
jmp 0x140006ac5
xor eax, eax
mov rbx, qword [rsp + 8]
ret

Function at 0x1400072b8
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0xe0
mov rbp, rdx
mov dword [rax - 0x78], 0x68
xor edx, edx
lea rcx, [rax - 0x70]
mov rsi, r8
mov edi, r9d
lea r8d, [rdx + 0x60]
call fcn.140021750
mov rbx, qword [rsp + 0x110]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rbx
xor ecx, ecx
mov qword [rsp + 0x40], rax
xor r9d, r9d
and qword [rsp + 0x38], rcx
xor r8d, r8d
mov dword [rsp + 0xac], 0x80
mov rdx, rbp
test rsi, rsi
jne 0x140007330
and qword [rsp + 0x30], rsi
and dword [rsp + 0x28], esi
jmp 0x14000733d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140007352
call fcn.14000b9b8
jmp 0x1400073a1
mov al, byte [0x140055b09]
lea rdx, [0x140055b10]
neg al
sbb rcx, rcx
and rcx, rdx
je 0x14000739f
mov r8d, 1
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x5c], r8d
mov dword [rsp + 0x58], 7
call fcn.140007fc8
mov r8d, dword [rbx + 0x10]
lea rdx, str._Started_process___u_
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x60], eax
call fcn.140004120
xor eax, eax
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140007774
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x20
lea rdx, [rsp + 0x50]
mov rdi, rcx
call fcn.140008698
mov rbx, qword [rsp + 0x50]
cmp dword [rbx - 0x10], 0
je 0x140007852
lea rbp, str.LoggingSettings
mov r9, rbx
mov rcx, rbp
lea rdx, str.EnableLogging
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r9, rbx
lea rdx, str.ShowTime
test eax, eax
mov r8d, 1
mov rcx, rbp
setne al
mov byte [rdi + 0x90], al
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r9, rbx
lea rdx, str.LogToFile
test eax, eax
mov rcx, rbp
setne al
xor r8d, r8d
mov byte [rdi + 0x92], al
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r9, rbx
lea rdx, str.LogToOutputDebug
test eax, eax
mov rcx, rbp
setne al
xor r8d, r8d
mov byte [rdi + 0x93], al
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r9, rbx
lea rdx, str.AppendToFile
test eax, eax
mov r8d, 1
mov rcx, rbp
setne al
mov byte [rdi + 0x94], al
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
jmp 0x14000786b
mov byte [rdi + 0x90], 1
mov al, 1
mov word [rdi + 0x92], 1
mov byte [rdi + 0x94], 0
mov byte [rdi + 0x95], al
cmp byte [rdi + 0x91], 0
je 0x140007881
mov byte [rdi + 0x92], 1
mov byte [rdi], 1
lea rax, str.LC_UTIL
mov dword [rdi + 4], 7
xor r14d, r14d
mov r15, qword [r14 + rax]
test r15, r15
je 0x14000790d
movsxd r12, dword [r14 + rax + 8]
cmp r12d, 9
ja 0x14000790d
lea rdx, [rsp + 0x58]
mov rcx, rdi
mov ebp, 1
call fcn.140008698
mov rbx, qword [rsp + 0x58]
cmp dword [rbx - 0x10], 0
je 0x1400078de
mov r9, rbx
lea rcx, str.LoggingLevel
mov r8d, ebp
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebp, eax
test ebp, ebp
mov dword [rdi + r12*8 + 4], ebp
lea rdx, [rbx - 0x18]
setne cl
or eax, 0xffffffff
mov byte [rdi + r12*8], cl
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140007906
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rax, str.LC_UTIL
add r14, 0x10
cmp r14, 0x90
jb 0x140007895
call fcn.140007284
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov qword [rdi + 0x98], rax
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140007949
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14000795c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, rdx
call fcn.14000144c
xor r14d, r14d
test rax, rax
je 0x140007b5b
mov r8, qword [rax]
mov rcx, rax
call qword [r8 + 0x18]
lea ebp, [r14 + 1]
mov ecx, ebp
lea rbx, [rax + 0x18]
mov eax, dword [rbx - 0xc]
sub ecx, dword [rbx - 8]
sub eax, 0x104
or ecx, eax
mov qword [rsp + 0x60], rbx
jge 0x1400079be
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140001a54
mov rbx, qword [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x23]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x1400079ec
lea rcx, [rsp + 0x50]
lea rdx, [0x140047ce8]
call fcn.1400055c0
jmp 0x140007a0f
lea rdx, str.GoogleUpdateLog
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x50]
test eax, eax
je 0x1400079de
lea rdx, [rsp + 0x60]
call fcn.14000564c
test rbx, rbx
jne 0x140007a19
mov eax, r14d
jmp 0x140007a2d
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.14002d1c8
test eax, eax
js 0x140007b50
cmp eax, dword [rbx - 0xc]
jg 0x140007b50
mov dword [rbx - 0x10], eax
lea rdx, [rbx - 0x18]
cdqe
mov word [rbx + rax*2], r14w
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, ebp
jg 0x140007a59
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x50]
cmp dword [rbx - 0x10], r14d
jne 0x140007a95
call fcn.14000144c
test rax, rax
je 0x140007b5b
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
lea rdx, [rbx - 0x18]
mov qword [rsi], rax
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, ebp
jmp 0x140007b25
mov eax, dword [rbx - 0xc]
sub ebp, dword [rbx - 8]
sub eax, 0x104
or ebp, eax
jge 0x140007ab8
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.140001a54
mov rbx, qword [rsp + 0x50]
lea rdx, str.GoogleUpdate.log
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
sete bpl
test rbx, rbx
jne 0x140007ad8
mov eax, r14d
jmp 0x140007ae8
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.14002d1c8
test eax, eax
js 0x140007b50
cmp eax, dword [rbx - 0xc]
jg 0x140007b50
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r14w
test bpl, bpl
je 0x140007b41
call fcn.14000144c
test rax, rax
je 0x140007b5b
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsi], rax
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140007b30
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x58]
mov rax, rsi
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14000564c
jmp 0x140007b16
mov ecx, 0x80070057
call fcn.1400017a4
int3
mov ecx, 0x80004005
call fcn.1400017a4
int3
Function at 0x140007b68
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x138], 0
mov rbp, rcx
jne 0x140007bb8
mov ecx, 0x40
call fcn.140034324
mov rcx, rax
call fcn.14000bd48
mov qword [rbp + 0x138], rax
test rax, rax
jne 0x140007bb8
mov rdx, qword [rbp + 0x58]
lea rcx, str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_ETW_log_writer
call fcn.14000bb1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x138]
test rcx, rcx
je 0x140007bde
movsxd rax, dword [rbp + 0xa8]
cmp eax, 0xf
jge 0x140007bde
mov qword [rbp + rax*8 + 0xb0], rcx
inc dword [rbp + 0xa8]
cmp byte [rbp + 0x93], 0
je 0x140007d31
cmp qword [rbp + 0x128], 0
jne 0x140007d0b
lea rdx, [rsp + 0x40]
call fcn.14000795c
mov rbx, qword [rsp + 0x40]
cmp dword [rbx - 0x10], 0
jne 0x140007c34
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140007d31
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140007d31
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14000b648
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call fcn.1400065a4
test al, al
jne 0x140007c88
mov rcx, rdi
call fcn.140004880
test eax, eax
jns 0x140007c88
or ebx, 0xffffffff
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140007c7d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
jmp 0x140007c15
mov sil, byte [rbp + 0x95]
mov ecx, 0x38
call fcn.140034324
mov r8b, sil
mov rdx, rbx
mov rcx, rax
call fcn.140008714
mov qword [rbp + 0x128], rax
test rax, rax
jne 0x140007ccf
mov rdx, qword [rbp + 0x58]
lea rcx, str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
mov r8, rbx
call fcn.14000bb1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or ebx, 0xffffffff
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140007cec
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x40]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140007d0b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp + 0x128]
test rcx, rcx
je 0x140007d31
movsxd rax, dword [rbp + 0xa8]
cmp eax, 0xf
jge 0x140007d31
mov qword [rbp + rax*8 + 0xb0], rcx
inc dword [rbp + 0xa8]
cmp byte [rbp + 0x94], 0
je 0x140007d83
mov rcx, qword [rbp + 0x130]
test rcx, rcx
jne 0x140007d69
mov ecx, 8
call fcn.140034324
mov rcx, rax
lea rax, fcn.140002460
mov qword [rcx], rax
mov qword [rbp + 0x130], rcx
test rcx, rcx
je 0x140007d83
movsxd rax, dword [rbp + 0xa8]
cmp eax, 0xf
jge 0x140007d83
mov qword [rbp + rax*8 + 0xb0], rcx
inc dword [rbp + 0xa8]
cmp dword [rbp + 0xa8], 0
mov rbx, qword [rsp + 0x50]
setg al
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007d9c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp byte [rcx + 0x96], 1
jne 0x140007de2
lea rcx, [rsp + 0x48]
call fcn.1400073c4
mov rdx, qword [rax]
lea rcx, str.LOG_SYSTEM:___s_:_ERROR___Calling_the_logging_system_after_it_has_been_shut_down__n
call fcn.14000bb1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x48]
call fcn.1400018b0
xor al, al
jmp 0x140007e33
cmp byte [rcx + 0x50], 1
jne 0x140007dec
mov al, 1
jmp 0x140007e33
cmp byte [rcx + 0x51], 0
je 0x140007df6
xor al, al
jmp 0x140007e33
mov byte [rcx + 0x51], 1
call fcn.140007774
cmp byte [rbx + 0x90], 0
je 0x140007e13
mov rcx, rbx
call fcn.140007b68
mov byte [rbx + 0x50], al
mov byte [rbx + 0x51], 0
mov al, 1
jmp 0x140007e33
add rsp, 0x30
pop rbx
ret

Function at 0x140007e3c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov al, 1
mov rbx, rcx
cmp byte [rcx + 0x96], al
jne 0x140007e98
lea rcx, [rsp + 0x30]
call fcn.1400073c4
lea rcx, str.LOG_SYSTEM:___s_:_ERROR___Calling_the_logging_system_after_it_has_been_shut_down__n
mov rdx, qword [rax]
call fcn.14000bb1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140007e94
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor al, al
jmp 0x140007ebf
cmp byte [rcx + 0x50], al
je 0x140007ebf
lea rdi, [rcx + 0x60]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov rcx, rbx
call fcn.140007d9c
mov rdx, qword [rdi]
mov rcx, rdi
mov bl, al
call qword [rdx + 0x10]
mov al, bl
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140008334
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rsi, qword [rsp + 0xa0]
mov ebp, r9d
mov r12d, r8d
mov r14d, edx
mov r13, rcx
test rsi, rsi
je 0x140008498
test edx, edx
jne 0x14000837b
cmp r9d, 2
jg 0x140008498
call fcn.14000144c
test rax, rax
je 0x1400084b6
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
call fcn.14000144c
test rax, rax
je 0x1400084b6
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
mov edi, 1
lea r15, [r13 + 0x60]
lea rbx, [rax + 0x18]
mov qword [rsp + 0xa0], rbx
xor edx, edx
mov rcx, r15
call fcn.140009c24
test al, al
jne 0x1400083e9
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x14
jle 0x1400083c7
jmp 0x140008434
mov rax, qword [rsp + 0xa8]
mov r9d, ebp
mov qword [rsp + 0x38], rax
mov r8d, r12d
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
mov edx, r14d
lea rax, [rsp + 0x40]
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.1400080ac
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x10]
mov rbx, qword [rsp + 0xa0]
cmp edi, 0x14
jle 0x14000845c
lea rcx, str.LOG_SYSTEM:_Couldnt_acquire_lock__
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x14004b288]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140008479
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x40]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140008498
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400017a4
int3
Function at 0x140008714
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
and word [rcx + 0xc], 0
lea rax, fcn.140008910
mov ebp, 1
mov qword [rcx], rax
mov byte [rcx + 0xf], bpl
mov rbx, rdx
mov rdi, rcx
mov dword [rcx + 8], 0x989680
mov byte [rcx + 0xe], r8b
call fcn.14000144c
test rax, rax
je 0x140008860
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rcx, [rdi + 0x20]
mov rdx, rbx
add rax, 0x18
mov qword [rdi + 0x10], rax
and qword [rdi + 0x18], 0
call fcn.1400055c0
and qword [rdi + 0x28], 0
call fcn.14000144c
test rax, rax
je 0x140008860
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
lea rcx, [0x140055b10]
mov qword [rdi + 0x30], rax
mov al, byte [0x140055b09]
neg al
sbb rsi, rsi
and rsi, rcx
je 0x14000884a
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140008698
mov rbx, qword [rsp + 0x40]
cmp dword [rbx - 0x10], 0
je 0x140008818
mov r9, rbx
lea rdx, str.MaxLogFileSize
mov r8d, 0x989680
lea rcx, str.LoggingSettings
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r9, rbx
lea rdx, str.LogFileWide
lea rcx, str.LoggingSettings
mov dword [rdi + 8], eax
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne bpl
jmp 0x14000881f
mov dword [rdi + 8], 0x989680
lea rdx, [rsi + 0x58]
mov byte [rdi + 0xf], bpl
lea rcx, [rdi + 0x30]
call fcn.1400017c8
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000884a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x48]
mov rax, rdi
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.1400017a4
int3
Function at 0x140008948
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r15, rcx
lea r8, [rcx + 0x20]
lea rcx, [rbp + 0x50]
lea rdx, str._Google_Update_logging_mutex_
call fcn.140009458
or r12d, 0xffffffff
mov r14, rax
xor edi, edi
mov r9, qword [rax]
mov rdx, r9
movzx r8d, word [r9]
jmp 0x140008995
cmp r8w, 0x5c
je 0x1400089b4
add rdx, 2
movzx r8d, word [rdx]
test r8w, r8w
jne 0x140008986
mov edx, r12d
cmp edx, r12d
jne 0x1400089bc
mov rdx, r14
lea rcx, [rbp + 0x48]
call fcn.14000564c
jmp 0x140008a48
sub rdx, r9
sar rdx, 1
jmp 0x14000899e
call fcn.14000144c
mov rcx, rax
test rax, rax
je 0x140008b5f
mov rax, qword [rax]
call qword [rax + 0x18]
mov esi, edi
lea rbx, [rax + 0x18]
mov rax, qword [r14]
mov qword [rbp + 0x40], rbx
cmp dword [rax - 0x10], edi
jle 0x140008a1f
mov rbx, rdi
test rbx, rbx
js 0x140008b54
cmp esi, dword [rax - 0x10]
jg 0x140008b54
movzx edx, word [rbx + rax]
cmp dx, 0x5c
je 0x140008a10
lea rcx, [rbp + 0x40]
call fcn.14000574c
mov rax, qword [r14]
inc esi
add rbx, 2
cmp esi, dword [rax - 0x10]
jl 0x1400089e8
mov rbx, qword [rbp + 0x40]
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x48]
call fcn.14000564c
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140008a48
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rbp + 0x48]
lea rcx, [r15 + 0x10]
call fcn.1400017c8
mov rdx, qword [rbp + 0x48]
mov eax, r12d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140008a75
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbp + 0x50]
mov eax, r12d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140008a95
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rsi, [0x14004a988]
mov qword [rbp - 0x38], rdi
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x40], rsi
call fcn.140004218
mov rdx, qword [rbp - 0x38]
mov rax, rdi
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rax
test rdx, rdx
je 0x140008ace
lea rcx, [rbp - 0x18]
call fcn.14000394c
mov rax, qword [rbp - 0x10]
mov rbx, qword [r15 + 0x10]
mov dword [rbp - 0x30], 0x18
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], edi
call fcn.140009a14
mov rax, qword [0x140055838]
lea rcx, [rbp - 0x30]
test rax, rax
je 0x140008b05
mov r9d, 0x100001
xor r8d, r8d
mov rdx, rbx
call rax
jmp 0x140008b10
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [r15 + 0x18], rax
test rax, rax
je 0x140008b28
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete dil
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x18], rsi
call fcn.140003874
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x40], rsi
call fcn.140003874
mov al, dil
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070057
call fcn.1400017a4
int3
mov ecx, 0x80004005
call fcn.1400017a4
int3
Function at 0x140008e08
Capabilities:
Move file
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
lea rcx, str.LOG_SYSTEM:_trying_to_move_log_file_to_backup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdi, [rsi + 0x20]
mov rdx, rdi
lea r8, str..bak
lea rcx, [rsp + 0x30]
call fcn.14000639c
mov rbx, qword [rsp + 0x30]
mov r8d, 0xb
mov rcx, qword [rdi]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140008e61
call fcn.14000b9b8
jmp 0x140008e63
xor eax, eax
test eax, eax
jns 0x140008e90
lea rcx, str.LOG_SYSTEM:_failed_to_move_log_file_to_backup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rsi
call fcn.140008ec4
test al, al
jne 0x140008e8b
mov rcx, qword [rdi]
mov rdx, rbx
call fcn.1400066ac
xor dil, dil
jmp 0x140008e93
mov dil, 1
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140008eae
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rbx, qword [rsp + 0x38]
mov al, dil
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret