joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002998
Capabilities:
Delete file

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xa0
lea rsi, [rcx + 0x38]
movaps xmmword [rax - 0x28], xmm6
mov rbx, rsi
mov rax, qword [rsi + 8]
mov qword [rsp + 0x20], rbx
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
test rbx, rbx
mov rbp, qword [rsi + 8]
je 0x1400029d3
cmp rbx, rsi
je 0x1400029d8
call fcn.14001c0e0
cmp rdi, rbp
je 0x140002bc7
test rbx, rbx
jne 0x1400029eb
call fcn.14001c0e0
cmp rdi, qword [rbx + 8]
jne 0x1400029f6
call fcn.14001c0e0
lea rdx, [rdi + 0x20]
lea rcx, [rsp + 0xc8]
call fcn.140002eec
mov rbx, qword [rsp + 0xc8]
and dword [rsp + 0xc0], 0
xor eax, eax
lea rdx, [rsp + 0xc0]
mov rcx, rbx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0xc4], eax
call fcn.1400056cc
test eax, eax
jns 0x140002a7e
movaps xmm6, xmmword [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.140014cf4
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
movdqa xmmword [rsp + 0x30], xmm6
mov rcx, rsi
call fcn.14000343c
jmp 0x140002bab
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x1400029c5
call fcn.140006188
mov ecx, dword [rsp + 0xc0]
mov edx, dword [rsp + 0xc4]
shl rdx, 0x20
or rdx, rcx
movabs rcx, 0xc92a69c000
sub rax, rdx
cmp rax, rcx
jb 0x140002ba1
mov rax, qword [section..data]
lea rcx, section..data
call qword [rax + 0x18]
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0xc8]
add rax, 0x18
mov qword [rsp + 0xd0], rax
call fcn.14001379c
mov rdi, qword [rsp + 0xd0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rsp + 0x20]
movaps xmm6, xmmword [rsp + 0x20]
call fcn.140014cf4
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov rcx, rsi
movdqa xmmword [rsp + 0x40], xmm6
call fcn.14000343c
mov r11b, byte [0x140041fd5]
lea rax, [0x140042280]
neg r11b
sbb rcx, rcx
and rcx, rax
je 0x140002b7b
mov edx, 8
mov qword [rsp + 0x70], rcx
lea r8d, [rdx - 7]
call fcn.14000a820
lea rdx, str._CrashHandler__Deleted_Stale_Crash__filename__s__custom_data__s_
lea rcx, [rsp + 0x70]
mov r9, rdi
mov r8, rbx
mov dword [rsp + 0x7c], 1
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x80], 8
call fcn.140001558
lea rdx, [rdi - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140002b97
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0xc8]
jmp 0x140002bab
lea rcx, [rsp + 0x20]
call fcn.140014cf4
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jle 0x140002a66
jmp 0x140002a6f
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005664
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.1400055e0
test al, al
jne 0x140005689
mov eax, 0x80070002
jmp 0x1400056ba
mov rcx, rdi
mov ebx, 4
call fcn.140005624
lea ecx, [rbx + 1]
mov rdx, rsi
test al, al
cmove ebx, ecx
mov rcx, rdi
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400056b8
call fcn.1400098c0
jmp 0x1400056ba
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140006a70
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14003e090]
xor rax, rsp
mov qword [rsp + 0x240], rax
and word [rsp + 0x30], 0
mov ebx, ecx
mov rdi, rdx
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
call fcn.14001c940
lea r11, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
xor ecx, ecx
mov qword [rsp + 0x20], r11
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140006ae6
lea rcx, [rsp + 0x30]
call fcn.14001be70
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov r8d, eax
call fcn.140003c54
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14001cdd0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret

Function at 0x140006ef8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [section..data]
mov rbx, rcx
lea rcx, section..data
call qword [rax + 0x18]
lea rcx, str.SystemDrive
xor r8d, r8d
add rax, 0x18
xor edx, edx
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
mov edi, eax
je 0x140006f94
mov rcx, qword [rbx]
mov r8d, 1
mov edx, dword [rcx - 0xc]
sub r8d, dword [rcx - 8]
sub edx, eax
or edx, r8d
jge 0x140006f56
mov edx, eax
mov rcx, rbx
call fcn.14000422c
mov rdx, qword [rbx]
lea rcx, str.SystemDrive
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140006f75
xor eax, eax
jmp 0x140006f7e
call fcn.14001be70
test eax, eax
js 0x140006fa2
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140006fa2
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
and word [rax + rcx*2], 0
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.140001000
int3

Function at 0x140007bb8
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rsi, [rdx + 8]
xor ebx, ebx
mov rdi, rdx
cmp rsi, rbx
je 0x140007c21
cmp byte [rcx + 0x4c], bl
je 0x140007c21
lea rbp, [rcx + 8]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
cmp eax, ebx
setne al
cmp al, bl
je 0x140007c21
cmp byte [rdi + 0x4c], bl
je 0x140007c21
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
cmp eax, ebx
setne r8b
cmp r8b, bl
je 0x140007c21
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, ebx
setne al
jmp 0x140007c23
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000a03c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [section..data]
lea rcx, section..data
mov rdi, rdx
call qword [rax + 0x18]
mov ecx, 1
mov edx, 0x104
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov eax, dword [rbx - 0xc]
sub ecx, dword [rbx - 8]
sub eax, edx
or ecx, eax
jge 0x14000a088
lea rcx, [rsp + 0x50]
call fcn.14000422c
mov rbx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x23]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x14000a10b
lea rdx, [0x1400373ec]
mov rcx, rdi
call fcn.140002f7c
test rbx, rbx
jne 0x14000a0bb
xor eax, eax
jmp 0x14000a0c7
mov rcx, rbx
call fcn.14001be70
test eax, eax
js 0x14000a100
cmp eax, dword [rbx - 0xc]
jg 0x14000a100
mov dword [rbx - 0x10], eax
cdqe
lea rdx, [rbx - 0x18]
and word [rbx + rax*2], 0
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14000a0f2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x80070057
call fcn.140001000
int3
lea rdx, str.GoogleUpdateLog
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rcx, rdi
test eax, eax
jne 0x14000a153
lea rdx, [0x1400373ec]
call fcn.140002f7c
test rbx, rbx
jne 0x14000a137
xor eax, eax
jmp 0x14000a143
mov rcx, rbx
call fcn.14001be70
test eax, eax
js 0x14000a148
cmp eax, dword [rbx - 0xc]
jle 0x14000a0cc
mov ecx, 0x80070057
call fcn.140001000
int3
lea rdx, [rsp + 0x50]
call fcn.140002eec
test rbx, rbx
jne 0x14000a166
xor eax, eax
jmp 0x14000a172
mov rcx, rbx
call fcn.14001be70
test eax, eax
js 0x14000a17b
cmp eax, dword [rbx - 0xc]
jle 0x14000a0cc
mov ecx, 0x80070057
call fcn.140001000
int3
Function at 0x14000a550
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp byte [rcx + 0xaa], 1
jne 0x14000a596
lea rcx, [rsp + 0x48]
call fcn.140009998
mov rdx, qword [rax]
lea rcx, str.LOG_SYSTEM:___s_:_ERROR___Calling_the_logging_system_after_it_has_been_shut_down__n
call fcn.14000e9ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x48]
call fcn.140002ffc
xor al, al
jmp 0x14000a5e7
cmp byte [rcx + 0x58], 1
jne 0x14000a5a0
mov al, 1
jmp 0x14000a5e7
cmp byte [rcx + 0x59], 0
je 0x14000a5aa
xor al, al
jmp 0x14000a5e7
mov byte [rcx + 0x59], 1
call fcn.140009d88
cmp byte [rbx + 0x98], 0
je 0x14000a5c7
mov rcx, rbx
call fcn.14000a2c4
mov byte [rbx + 0x58], al
mov byte [rbx + 0x59], 0
mov al, 1
jmp 0x14000a5e7
add rsp, 0x30
pop rbx
ret

Function at 0x14000a620
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov al, 1
mov rbx, rcx
cmp byte [rcx + 0xaa], al
jne 0x14000a67e
lea rcx, [rsp + 0x30]
call fcn.140009998
lea rcx, str.LOG_SYSTEM:___s_:_ERROR___Calling_the_logging_system_after_it_has_been_shut_down__n
mov rdx, qword [rax]
call fcn.14000e9ec
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
add eax, 0xffffffff
test eax, eax
jg 0x14000a67a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor al, al
jmp 0x14000a6a5
cmp byte [rcx + 0x58], al
je 0x14000a6a5
lea rdi, [rcx + 0x68]
mov rcx, rdi
mov rax, qword [rdi]
call qword [rax + 8]
mov rcx, rbx
call fcn.14000a550
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 0x14000ac14
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 r15d, r8d
test rsi, rsi
mov r12d, edx
mov r14, rcx
je 0x14000ad6f
test edx, edx
jne 0x14000ac5b
cmp r9d, 2
jg 0x14000ad6f
mov rax, qword [section..data]
lea rcx, section..data
call qword [rax + 0x18]
lea rcx, section..data
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rax, qword [section..data]
call qword [rax + 0x18]
mov edi, 1
lea rbx, [rax + 0x18]
mov qword [rsp + 0xa0], rbx
mov rax, qword [r14 + 0x68]
lea rcx, [r14 + 0x68]
xor edx, edx
call qword [rax + 0x18]
test al, al
jne 0x14000acbd
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
add edi, 1
cmp edi, 0x14
jle 0x14000ac97
jmp 0x14000ad0b
mov rax, qword [rsp + 0xa8]
mov r9d, ebp
mov r8d, r15d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov edx, r12d
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.14000a904
mov r11, qword [r14 + 0x68]
lea rcx, [r14 + 0x68]
call qword [r11 + 0x10]
mov rbx, qword [rsp + 0xa0]
cmp edi, 0x14
jle 0x14000ad33
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, [0x140037b78]
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 0x14000ad50
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 0x14000ad6f
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
Function at 0x14000b038
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov dword [rcx + 8], 0x989680
mov byte [rcx + 0xc], 0
mov byte [rcx + 0xd], 0
mov byte [rcx + 0xe], r8b
mov byte [rcx + 0xf], 1
lea rax, fcn.14000b228
mov qword [rcx], rax
mov rax, qword [section..data]
mov rdi, rcx
lea rcx, section..data
mov rbx, rdx
call qword [rax + 0x18]
lea rcx, [rdi + 0x20]
mov rdx, rbx
add rax, 0x18
mov qword [rdi + 0x10], rax
and qword [rdi + 0x18], 0
call fcn.140002f7c
and qword [rdi + 0x28], 0
mov rax, qword [section..data]
lea rcx, section..data
call qword [rax + 0x18]
lea rcx, [0x140042280]
add rax, 0x18
mov qword [rdi + 0x30], rax
mov al, byte [0x140041fd5]
neg al
sbb rsi, rsi
and rsi, rcx
je 0x14000b169
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14000afbc
mov rbx, qword [rsp + 0x30]
cmp dword [rbx - 0x10], 0
je 0x14000b135
lea rdx, str.MaxLogFileSize
lea rcx, str.LoggingSettings
mov r9, rbx
mov r8d, 0x989680
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea rdx, str.LogFileWide
lea rcx, str.LoggingSettings
mov r9, rbx
mov r8d, 1
mov dword [rdi + 8], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
mov byte [rdi + 0xf], al
jmp 0x14000b140
mov dword [rdi + 8], 0x989680
mov byte [rdi + 0xf], 1
lea rdx, [rsi + 0x60]
lea rcx, [rdi + 0x30]
call fcn.140003024
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14000b169
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x14000b260
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov rbp, rcx
lea r8, [rcx + 0x20]
lea rdx, str._Google_Update_logging_mutex_
lea rcx, [rax + 0x18]
call fcn.14000bcec
or r12d, 0xffffffff
mov r9, qword [rax]
mov rsi, rax
movzx r8d, word [r9]
mov rdx, r9
jmp 0x14000b2a6
cmp r8w, 0x5c
je 0x14000b2c9
add rdx, 2
mov r8w, word [rdx]
test r8w, r8w
jne 0x14000b297
mov edx, r12d
cmp edx, r12d
jne 0x14000b2d1
lea rcx, [rsp + 0x98]
mov rdx, rax
call fcn.140002eec
jmp 0x14000b36e
sub rdx, r9
sar rdx, 1
jmp 0x14000b2af
mov rax, qword [section..data]
lea rcx, section..data
call qword [rax + 0x18]
mov rcx, qword [rsi]
xor edi, edi
lea rbx, [rax + 0x18]
mov eax, dword [rcx - 0x10]
test eax, eax
mov qword [rsp + 0x90], rbx
jle 0x14000b33d
xor ebx, ebx
test rbx, rbx
js 0x14000b44d
cmp edi, eax
jg 0x14000b44d
movzx edx, word [rbx + rcx]
cmp dx, 0x5c
je 0x14000b324
lea rcx, [rsp + 0x90]
call fcn.140007360
mov rcx, qword [rsi]
add edi, 1
add rbx, 2
mov eax, dword [rcx - 0x10]
cmp edi, eax
jl 0x14000b2fc
mov rbx, qword [rsp + 0x90]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x98]
call fcn.140002eec
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14000b36e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rsp + 0x98]
lea rcx, [rbp + 0x10]
call fcn.140003024
mov rdx, qword [rsp + 0x98]
mov eax, r12d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14000b3a3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0xa0]
mov eax, r12d
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14000b3c7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
and qword [rsp + 0x28], 0
mov edx, 0x10000000
lea rdi, [0x1400371f8]
lea rcx, [rsp + 0x20]
mov r8d, edx
mov qword [rsp + 0x20], rdi
call fcn.140006400
mov rdx, qword [rsp + 0x28]
xor eax, eax
test rdx, rdx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rax
je 0x14000b410
lea rcx, [rsp + 0x48]
call fcn.140001340
mov rax, qword [rsp + 0x50]
and dword [rsp + 0x40], 0
mov rbx, qword [rbp + 0x10]
mov dword [rsp + 0x30], 0x18
mov qword [rsp + 0x38], rax
call fcn.14000c180
mov r11, qword [0x140041fe0]
test r11, r11
lea rcx, [rsp + 0x30]
je 0x14000b458
mov r9d, 0x100001
xor r8d, r8d
mov rdx, rbx
call r11
jmp 0x14000b463
mov ecx, 0x80070057
call fcn.140001000
int3
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
test rax, rax
mov qword [rbp + 0x18], rax
je 0x14000b49c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rdi
cmp eax, 0xb7
sete bl
call fcn.140001258
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
call fcn.140001258
mov al, bl
jmp 0x14000b4bc
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rdi
call fcn.140001258
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
call fcn.140001258
xor al, al
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000b4c8
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0xf0
mov rdi, rcx
mov rcx, qword [rcx + 0x20]
lea rdx, [rax + 8]
xor esi, esi
mov dword [rax + 8], esi
call fcn.140005770
mov r11d, dword [rdi + 8]
cmp dword [rsp + 0x100], r11d
jbe 0x14000b506
mov rcx, rdi
call fcn.14000b674
mov al, byte [rdi + 0xe]
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x30], rsi
neg al
mov dword [rsp + 0x28], 0x80
sbb edx, edx
xor r9d, r9d
and edx, 2
lea r8d, [r9 + 3]
add edx, 2
mov dword [rsp + 0x20], edx
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov qword [rdi + 0x28], rax
jne 0x14000b54f
mov qword [rdi + 0x28], rsi
xor al, al
jmp 0x14000b65e
mov r9d, 0x20
lea rax, [0x1400374d0]
lea rdx, [0x1400358d0]
lea rcx, [rsp + 0x78]
lea r8d, [r9 - 0x1e]
mov qword [rsp + 0x48], rsi
mov byte [rsp + 0x50], sil
mov dword [rsp + 0x54], 2
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x70], esi
mov dword [rsp + 0x20], 0x221
call fcn.140008ba0
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov r8d, 0xc0010000
call fcn.140008de4
lea rcx, [rsp + 0x78]
mov bl, al
call fcn.140008d44
cmp bl, sil
je 0x14000b614
mov rbx, qword [rdi + 0x20]
cmp rbx, rsi
je 0x14000b614
mov rax, qword [rsp + 0x48]
cmp rax, rsi
jne 0x14000b5e9
lea rcx, [rsp + 0x40]
call fcn.140007a78
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea edx, [r9 + 1]
lea r8d, [r9 + 4]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000b652
cmp byte [rdi + 0xf], sil
je 0x14000b652
mov rcx, qword [rdi + 0x28]
lea r9, [rsp + 0x100]
lea rdx, [0x140036be8]
mov r8d, 2
mov dword [rsp + 0x100], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x40]
call fcn.140008efc
mov al, 1
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000b674
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 r8, str..bak
lea rdx, [rsi + 0x20]
lea rcx, [rsp + 0x30]
call fcn.1400057c0
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rsi + 0x20]
mov rdx, rbx
mov r8d, 0xb
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14000b6cb
call fcn.1400098c0
jmp 0x14000b6cd
xor eax, eax
test eax, eax
jns 0x14000b716
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.14000b744
test al, al
jne 0x14000b6f6
mov rcx, qword [rsi + 0x20]
mov rdx, rbx
call fcn.140005664
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14000b712
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor al, al
jmp 0x14000b734
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14000b732
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov al, 1
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000b744
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0xd0
mov rax, qword [0x14003e090]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, rcx
lea rdx, str.SYSTEMCurrentControlSetControlSession_Manager
lea rcx, [rsp + 0x50]
mov r8d, 0x62
call fcn.14001da30
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b8fd
and dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
lea rdx, str.PendingFileRenameOperations
xor r8d, r8d
mov dword [rsp + 0x34], 7
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000b8fd
cmp dword [rsp + 0x34], 7
jne 0x14000b8fd
mov ecx, dword [rsp + 0x30]
call fcn.140025ab0
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.14001c940
mov rcx, qword [rsp + 0x38]
lea r11, [rsp + 0x30]
mov qword [rsp + 0x28], r11
lea rdx, str.PendingFileRenameOperations
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000b8f5
mov esi, dword [rsp + 0x30]
shr rsi, 1
lea rax, [rsi - 2]
cmp rax, 0xffffd
ja 0x14000b8f5
cmp word [rbx + rsi*2 - 4], 0
jne 0x14000b8f5
cmp word [rbx + rsi*2 - 2], 0
jne 0x14000b8f5
lea r8, [rdi + 0x20]
lea rdx, str.___
lea rcx, [rsp + 0x40]
call fcn.14000bcec
mov rdi, qword [rsp + 0x40]
xor ebp, ebp
test rsi, rsi
je 0x14000b8c1
lea r12, [rbx + rbp*2]
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14000b8c4
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rbp, [rcx + rbp + 1]
cmp rbp, rsi
jb 0x14000b897
or ebp, 0xffffffff
cmp ebp, 0xffffffff
lea rdx, [rdi - 0x18]
setne sil
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x14000b8e8
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rcx, rbx
call fcn.14001be60
mov al, sil
jmp 0x14000b8ff
mov rcx, rbx
call fcn.14001be60
xor al, al
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14001cdd0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x14000bc6c
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x14000bc82
xor al, al
jmp 0x14000bcbd
mov edx, 0x1f4
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000bcbb
cmp eax, 0x80
je 0x14000bcbb
mov r8, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x30]
lea rcx, str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.14000e9ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [rbx + 0xd], 0
jmp 0x14000bc7e
mov al, 1
add rsp, 0x20
pop rbx
ret