joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005378
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
call fcn.1400014b8
xor ebp, ebp
mov rcx, rax
test rax, rax
je 0x14000544f
mov rax, qword [rax]
call qword [rax + 0x18]
xor r8d, r8d
xor edx, edx
add rax, 0x18
mov rcx, rsi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
je 0x140005427
test eax, eax
js 0x140005444
mov rax, qword [rbx]
lea edx, [rbp + 1]
mov ecx, dword [rax - 0xc]
sub edx, dword [rax - 8]
sub ecx, edi
or edx, ecx
jge 0x1400053e9
mov edx, edi
mov rcx, rbx
call fcn.140001b34
mov rax, qword [rbx]
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140005404
mov eax, ebp
jmp 0x140005411
movsxd rdx, dword [rcx - 0xc]
call fcn.140030e18
test eax, eax
js 0x140005444
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140005444
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
jmp 0x14000542c
call fcn.14000c0dc
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, 0x80070057
call fcn.140001834
int3
mov ecx, 0x80004005
call fcn.140001834
int3

Function at 0x14000644c
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.1400014b8
xor ebp, ebp
mov rcx, rax
test rax, rax
je 0x140006517
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 0x140006522
mov r8, qword [rbx]
mov ecx, 1
mov eax, dword [r8 - 0xc]
sub ecx, dword [r8 - 8]
sub eax, edi
or ecx, eax
jge 0x1400064b6
mov edx, edi
mov rcx, rbx
call fcn.140001b34
mov r8, qword [rbx]
mov edx, edi
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
mov esi, eax
sbb eax, eax
and eax, esi
cmp eax, 0xffffffff
jne 0x1400064e3
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400064da
mov eax, ebp
jmp 0x1400064e7
movsxd rdx, dword [rcx - 0xc]
call fcn.140030e18
test eax, eax
js 0x140006522
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140006522
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
cmp esi, edi
jae 0x140006488
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.140001834
int3
mov ecx, 0x80070057
call fcn.140001834
int3
Function at 0x140006530
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.1400014b8
xor ebp, ebp
mov rcx, rax
test rax, rax
je 0x1400065f6
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 0x140006601
mov rdx, qword [rbx]
mov ecx, 1
mov eax, dword [rdx - 0xc]
sub ecx, dword [rdx - 8]
sub eax, edi
or ecx, eax
jge 0x140006598
mov edx, edi
mov rcx, rbx
call fcn.140001b34
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 0x1400065c2
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400065b9
mov eax, ebp
jmp 0x1400065c6
movsxd rdx, dword [rcx - 0xc]
call fcn.140030e18
test eax, eax
js 0x140006601
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140006601
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
cmp esi, edi
jae 0x14000656c
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.140001834
int3
mov ecx, 0x80070057
call fcn.140001834
int3

Function at 0x140006acc
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.1400069c4
test al, al
jne 0x140006af1
mov eax, 0x80070002
jmp 0x140006b22
mov rcx, rdi
mov ebx, 4
call fcn.140006a10
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 0x140006b20
call fcn.14000c0dc
jmp 0x140006b22
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140006dcc
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov r11, rcx
test edx, edx
jle 0x140006ef3
mov r10, r8
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
jmp 0x140006e4f
sub r9d, 4
js 0x140006ef3
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 0x140006de8
sub edx, 1
je 0x140006eb3
cmp edx, 1
jne 0x140006eeb
sub r9d, 3
js 0x140006ef3
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 0x140006ef3
mov byte [r10 + 3], 0x3d
jmp 0x140006ee7
sub r9d, 2
js 0x140006ef3
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 0x140006ef3
mov word [r10 + 2], 0x3d3d
add r10, 4
sub r10d, r8d
mov eax, r10d
jmp 0x140006ef5
xor eax, eax
mov rbx, qword [rsp + 8]
ret

Function at 0x1400076a8
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0x100
lea rcx, [rbp - 0x59]
mov esi, r9d
mov r15, r8
mov r14, rdx
call fcn.14000420c
xor edx, edx
mov dword [rbp - 0x31], 0x68
lea rcx, [rbp - 0x29]
lea r8d, [rdx + 0x60]
call fcn.140021320
mov rdi, qword [rbp + 0x7f]
lea rax, [rbp - 0x31]
xor ebx, ebx
mov qword [rsp + 0x48], rdi
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rbx
xor ecx, ecx
mov dword [rbp + 0xb], 0x80
mov rdx, r14
test r15, r15
jne 0x14000772a
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
jmp 0x140007737
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14000774e
call fcn.14000c0dc
mov ebx, eax
jmp 0x140007796
mov al, byte [0x140057d71]
lea rdx, [0x140057c30]
neg al
sbb rcx, rcx
and rcx, rdx
je 0x140007796
mov r8d, 1
mov qword [rbp - 0x71], rcx
mov dword [rbp - 0x65], r8d
mov dword [rbp - 0x69], 7
call fcn.140008450
mov r8d, dword [rdi + 0x10]
lea rdx, str._Started_process___u_
lea rcx, [rbp - 0x71]
mov dword [rbp - 0x61], eax
call fcn.140004194
lea rcx, [rbp - 0x59]
call fcn.1400042b8
lea r11, [rsp + 0x100]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140007b60
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
and qword [rbp + 0x58], 0
lea rax, [rbp + 0x58]
mov rdi, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
lea rdx, str.SoftwareBraveSoftwareUpdateDev_
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007bf8
and dword [rbp + 0x48], eax
lea esi, [rax + 4]
mov rcx, qword [rbp + 0x58]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
lea rax, [rbp + 0x48]
mov dword [rbp + 0x50], esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.IsEnabledLogToFile
mov dword [rbp + 0x40], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140007bf8
cmp dword [rbp + 0x40], esi
jne 0x140007bf8
cmp dword [rbp + 0x48], ebx
je 0x140007bf8
mov al, 1
jmp 0x140007bfa
xor al, al
lea rdx, [rbp - 0x10]
mov byte [rdi + 0x93], al
mov rcx, rdi
call fcn.140008b20
mov rbx, qword [rbp - 0x10]
cmp dword [rbx - 0x10], 0
je 0x140007caa
lea rsi, str.LoggingSettings
mov r9, rbx
mov rcx, rsi
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, rsi
setne al
mov byte [rdi + 0x90], al
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r9, rbx
lea rdx, str.LogToOutputDebug
test eax, eax
mov rcx, rsi
setne al
xor r8d, r8d
mov byte [rdi + 0x92], al
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r9, rbx
lea rdx, str.AppendToFile
test eax, eax
mov r8d, 1
mov rcx, rsi
setne al
mov byte [rdi + 0x94], al
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
jmp 0x140007cc1
mov byte [rdi + 0x90], 1
mov al, 1
mov byte [rdi + 0x92], 1
mov byte [rdi + 0x94], 0
mov byte [rdi + 0x95], al
cmp byte [rdi + 0x91], 0
je 0x140007cd7
mov byte [rdi + 0x92], 1
mov byte [rdi], 1
lea rax, str.LC_UTIL
mov dword [rdi + 4], 7
xor esi, esi
mov r12, qword [rsi + rax]
movsxd r15, dword [rsi + rax + 8]
test r12, r12
je 0x140007d63
cmp r15d, 9
ja 0x140007d63
lea rdx, [rbp - 8]
mov rcx, rdi
mov r14d, 1
call fcn.140008b20
mov rbx, qword [rbp - 8]
cmp dword [rbx - 0x10], 0
je 0x140007d33
mov r9, rbx
lea rcx, str.LoggingLevel
mov r8d, r14d
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r14d, eax
test r14d, r14d
mov dword [rdi + r15*8 + 4], r14d
lea rdx, [rbx - 0x18]
setne cl
or eax, 0xffffffff
mov byte [rdi + r15*8], cl
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140007d5c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rax, str.LC_UTIL
add rsi, 0x10
cmp rsi, 0x90
jb 0x140007cea
call fcn.140007674
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
mov qword [rdi + 0x98], rax
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140007d9e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140007ff0
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 0x140008040
mov ecx, 0x40
call fcn.140038700
mov rcx, rax
call fcn.14000c3ec
mov qword [rbp + 0x138], rax
test rax, rax
jne 0x140008040
mov rdx, qword [rbp + 0x58]
lea rcx, str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_ETW_log_writer
call fcn.14000c1e4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x138]
test rcx, rcx
je 0x140008066
movsxd rax, dword [rbp + 0xa8]
cmp eax, 0xf
jge 0x140008066
mov qword [rbp + rax*8 + 0xb0], rcx
inc dword [rbp + 0xa8]
cmp byte [rbp + 0x93], 0
je 0x1400081b9
cmp qword [rbp + 0x128], 0
jne 0x140008193
lea rdx, [rsp + 0x40]
call fcn.140007db0
mov rbx, qword [rsp + 0x40]
cmp dword [rbx - 0x10], 0
jne 0x1400080bc
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400081b9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1400081b9
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14000bd64
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call fcn.1400069c4
test al, al
jne 0x140008110
mov rcx, rdi
call fcn.140004bd0
test eax, eax
jns 0x140008110
or ebx, 0xffffffff
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140008105
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
jmp 0x14000809d
mov sil, byte [rbp + 0x95]
mov ecx, 0x38
call fcn.140038700
mov r8b, sil
mov rdx, rbx
mov rcx, rax
call fcn.140008ba8
mov qword [rbp + 0x128], rax
test rax, rax
jne 0x140008157
mov rdx, qword [rbp + 0x58]
lea rcx, str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
mov r8, rbx
call fcn.14000c1e4
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 0x140008174
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 0x140008193
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp + 0x128]
test rcx, rcx
je 0x1400081b9
movsxd rax, dword [rbp + 0xa8]
cmp eax, 0xf
jge 0x1400081b9
mov qword [rbp + rax*8 + 0xb0], rcx
inc dword [rbp + 0xa8]
cmp byte [rbp + 0x94], 0
je 0x14000820b
mov rcx, qword [rbp + 0x130]
test rcx, rcx
jne 0x1400081f1
mov ecx, 8
call fcn.140038700
mov rcx, rax
lea rax, fcn.140002454
mov qword [rcx], rax
mov qword [rbp + 0x130], rcx
test rcx, rcx
je 0x14000820b
movsxd rax, dword [rbp + 0xa8]
cmp eax, 0xf
jge 0x14000820b
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 0x140008224
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp byte [rcx + 0x96], 1
jne 0x14000826a
lea rcx, [rsp + 0x48]
call fcn.1400077c8
mov rdx, qword [rax]
lea rcx, str.LOG_SYSTEM:___s_:_ERROR___Calling_the_logging_system_after_it_has_been_shut_down__n
call fcn.14000c1e4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x48]
call fcn.1400018d8
xor al, al
jmp 0x1400082bb
cmp byte [rcx + 0x50], 1
jne 0x140008274
mov al, 1
jmp 0x1400082bb
cmp byte [rcx + 0x51], 0
je 0x14000827e
xor al, al
jmp 0x1400082bb
mov byte [rcx + 0x51], 1
call fcn.140007b60
cmp byte [rbx + 0x90], 0
je 0x14000829b
mov rcx, rbx
call fcn.140007ff0
mov byte [rbx + 0x50], al
mov byte [rbx + 0x51], 0
mov al, 1
jmp 0x1400082bb
add rsp, 0x30
pop rbx
ret

Function at 0x1400082c4
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 0x140008320
lea rcx, [rsp + 0x30]
call fcn.1400077c8
lea rcx, str.LOG_SYSTEM:___s_:_ERROR___Calling_the_logging_system_after_it_has_been_shut_down__n
mov rdx, qword [rax]
call fcn.14000c1e4
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 0x14000831c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor al, al
jmp 0x140008347
cmp byte [rcx + 0x50], al
je 0x140008347
lea rdi, [rcx + 0x60]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov rcx, rbx
call fcn.140008224
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 0x1400087bc
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rdi, qword [rsp + 0x90]
mov esi, r9d
mov r12d, r8d
mov ebp, edx
mov r15, rcx
test rdi, rdi
je 0x140008920
test edx, edx
jne 0x140008803
cmp r9d, 2
jg 0x140008920
call fcn.1400014b8
test rax, rax
je 0x14000893f
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
call fcn.1400014b8
test rax, rax
je 0x14000893f
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
mov ebx, 1
lea r14, [r15 + 0x60]
add rax, 0x18
mov qword [rsp + 0x90], rax
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
call qword [rax + 0x18]
test al, al
jne 0x140008872
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x14
jle 0x14000884f
jmp 0x1400088b9
mov rax, qword [rsp + 0x98]
mov r9d, esi
mov qword [rsp + 0x38], rax
mov r8d, r12d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
mov edx, ebp
lea rax, [rsp + 0x40]
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.140008534
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x10]
cmp ebx, 0x14
jle 0x1400088dc
lea rcx, str.LOG_SYSTEM:_Couldnt_acquire_lock__
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x14004c988]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140008901
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 0x140008920
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov ecx, 0x80004005
call fcn.140001834
int3
Function at 0x140008ba8
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.140008db8
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.1400014b8
test rax, rax
je 0x140008cf4
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.140005938
and qword [rdi + 0x28], 0
call fcn.1400014b8
test rax, rax
je 0x140008cf4
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
lea rcx, [0x140057c30]
mov qword [rdi + 0x30], rax
mov al, byte [0x140057d71]
neg al
sbb rsi, rsi
and rsi, rcx
je 0x140008cde
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140008b20
mov rbx, qword [rsp + 0x40]
cmp dword [rbx - 0x10], 0
je 0x140008cac
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 0x140008cb3
mov dword [rdi + 8], 0x989680
lea rdx, [rsi + 0x58]
mov byte [rdi + 0xf], bpl
lea rcx, [rdi + 0x30]
call fcn.140001858
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140008cde
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.140001834
int3
Function at 0x140009438
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.14000670c
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 0x1400094bc
call fcn.14000c0dc
test eax, eax
jns 0x1400094bc
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.1400094f0
test al, al
jne 0x1400094b7
mov rcx, qword [rdi]
mov rdx, rbx
call fcn.140006acc
xor dil, dil
jmp 0x1400094bf
mov dil, 1
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400094da
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
Function at 0x1400094f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x140055010]
xor rax, rsp
mov qword [rbp + 0x27], rax
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetControlSession_Manager]
lea rdx, [rbp - 0x49]
movaps xmm1, xmmword [0x14004ccc0]
mov rbx, rcx
movzx eax, word [0x14004cd10]
xor r12d, r12d
movaps xmmword [rbp - 0x49], xmm0
mov r9d, 0x20019
movaps xmm0, xmmword [0x14004ccd0]
xor r8d, r8d
movaps xmmword [rbp - 0x39], xmm1
mov rcx, 0xffffffff80000002
movaps xmm1, xmmword [0x14004cce0]
movaps xmmword [rbp - 0x29], xmm0
movaps xmm0, xmmword [0x14004ccf0]
movaps xmmword [rbp - 0x19], xmm1
movaps xmm1, xmmword [0x14004cd00]
mov word [rbp + 0x17], ax
lea rax, [rbp - 0x61]
movaps xmmword [rbp - 9], xmm0
movaps xmmword [rbp + 7], xmm1
mov qword [rbp - 0x61], r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400096ce
mov rcx, qword [rbp - 0x61]
lea rax, [rbp - 0x69]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x65]
xor r8d, r8d
mov qword [rsp + 0x20], r12
lea rdx, str.PendingFileRenameOperations
mov dword [rbp - 0x69], r12d
mov dword [rbp - 0x65], 7
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400096ce
cmp dword [rbp - 0x65], 7
jne 0x1400096ce
mov ecx, dword [rbp - 0x69]
call fcn.140038750
mov r8d, dword [rbp - 0x69]
xor edx, edx
mov rcx, rax
mov r14, rax
call fcn.140021320
mov rcx, qword [rbp - 0x61]
lea rax, [rbp - 0x69]
mov qword [rsp + 0x28], rax
lea rdx, str.PendingFileRenameOperations
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400096be
mov edi, dword [rbp - 0x69]
shr rdi, 1
lea rax, [rdi - 2]
cmp rax, 0xffffd
ja 0x1400096be
cmp word [r14 + rdi*2 - 4], r12w
jne 0x1400096be
cmp word [r14 + rdi*2 - 2], r12w
jne 0x1400096be
lea r8, [rbx + 0x20]
lea rdx, str.___
lea rcx, [rbp - 0x59]
call fcn.140009a74
mov rbx, qword [rbp - 0x59]
mov esi, r12d
test rdi, rdi
je 0x140009698
lea r15, [r14 + rsi*2]
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14000969b
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
inc rcx
add rsi, rcx
cmp rsi, rdi
jb 0x14000966d
or esi, 0xffffffff
cmp esi, 0xffffffff
lea rdx, [rbx - 0x18]
setne dil
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400096c1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1400096c1
mov dil, r12b
mov rcx, r14
call fcn.140020968
mov al, dil
jmp 0x1400096d0
xor al, al
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140020490
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400099f8
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x140009a0e
xor al, al
jmp 0x140009a45
mov edx, 0x1f4
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x140009a43
mov r8, qword [rbx + 0x10]
lea rcx, str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
mov rdx, qword [rbx + 0x30]
call fcn.14000c1e4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [rbx + 0xd], 0
jmp 0x140009a0a
mov al, 1
add rsp, 0x20
pop rbx
ret