joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004fa4
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x140050010]
xor rax, rsp
mov qword [rbp + 0x40], rax
and qword [rsp + 0x38], 0
lea rax, [0x140047dd8]
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
movdqu xmmword [rsp + 0x28], xmm0
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 8
lea rcx, [rsp + 0x20]
mov r8, rax
call fcn.14000411c
test al, al
jne 0x14000500f
call fcn.14000ba40
mov edi, eax
jmp 0x1400050a7
lea rcx, [rsp + 0x40]
call fcn.140001fa8
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140003fc0
test al, al
jne 0x140005035
call fcn.14000ba40
mov edi, eax
jmp 0x14000509d
mov r9d, 0x12
lea rdx, [0x140047bc8]
lea rcx, [rbp - 0x40]
lea r8d, [r9 - 0x11]
call fcn.14000207c
cmp byte [rbp - 0x74], 0
je 0x14000508e
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x14000508e
cmp byte [rbp + 0xc], 0
je 0x14000508e
lea rcx, [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x14000508e
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x140005090
xor al, al
lea rcx, [rbp - 0x40]
mov byte [rbx], al
call fcn.14000223c
xor edi, edi
lea rcx, [rsp + 0x40]
call fcn.14000223c
mov rdx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
test rdx, rdx
je 0x1400050c4
test rbx, rbx
je 0x1400050d2
mov rcx, rbx
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
test rbx, rbx
je 0x1400050d2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
mov edx, 8
call fcn.14001f280
mov eax, edi
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14001ec90
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140005104
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.1400014bc
xor ebp, ebp
mov rcx, rax
test rax, rax
je 0x1400051dc
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 0x1400051b4
test eax, eax
js 0x1400051d1
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 0x140005175
mov edx, edi
mov rcx, rbx
call fcn.140001b30
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 0x140005190
mov eax, ebp
jmp 0x14000519d
movsxd rdx, dword [rcx - 0xc]
call fcn.14002be98
test eax, eax
js 0x1400051d1
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x1400051d1
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
jmp 0x1400051b9
call fcn.14000ba40
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.140001880
int3
mov ecx, 0x80004005
call fcn.140001880
int3

Function at 0x140006188
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.1400014bc
xor ebp, ebp
mov rcx, rax
test rax, rax
je 0x140006254
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 0x14000625f
mov r8, qword [rbx]
mov ecx, 1
mov eax, dword [r8 - 0xc]
sub ecx, dword [r8 - 8]
sub eax, edi
or ecx, eax
jge 0x1400061f2
mov edx, edi
mov rcx, rbx
call fcn.140001b30
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 0x14000621f
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140006216
mov eax, ebp
jmp 0x140006223
movsxd rdx, dword [rcx - 0xc]
call fcn.14002be98
test eax, eax
js 0x14000625f
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14000625f
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
cmp esi, edi
jae 0x1400061c4
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.140001880
int3
mov ecx, 0x80070057
call fcn.140001880
int3
Function at 0x14000626c
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.1400014bc
xor ebp, ebp
mov rcx, rax
test rax, rax
je 0x140006333
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 0x14000633e
mov rdx, qword [rbx]
mov ecx, 1
mov eax, dword [rdx - 0xc]
sub ecx, dword [rdx - 8]
sub eax, edi
or ecx, eax
jge 0x1400062d4
mov edx, edi
mov rcx, rbx
call fcn.140001b30
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 0x1400062fe
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400062f5
mov eax, ebp
jmp 0x140006302
movsxd rdx, dword [rcx - 0xc]
call fcn.14002be98
test eax, eax
js 0x14000633e
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14000633e
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
cmp esi, edi
jae 0x1400062a8
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.140001880
int3
mov ecx, 0x80070057
call fcn.140001880
int3

Function at 0x140006774
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov bl, r8b
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
jne 0x14000679a
xor eax, eax
jmp 0x1400067a2
mov rcx, rsi
call fcn.14002bd6c
mov r8d, eax
lea rcx, [rdi + 8]
mov rdx, rsi
call fcn.140001a24
mov r8d, dword [rsp + 0x70]
mov al, bl
movzx ecx, bl
add ecx, 3
neg al
sbb edx, edx
and qword [rsp + 0x30], 0
and edx, 0x102
mov dword [rsp + 0x28], 0x10000000
mov dword [rsp + 0x20], ecx
inc edx
mov rcx, rsi
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
jne 0x1400067f8
call fcn.14000ba40
jmp 0x14000681a
test bl, bl
je 0x14000680e
mov edx, 0x2000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1400067f1
and dword [rdi + 0x14], 0
xor bl, 1
mov byte [rdi + 0x10], bl
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1400068d8
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.140006830
test al, al
jne 0x1400068fd
mov eax, 0x80070002
jmp 0x14000692e
mov rcx, rdi
mov ebx, 4
call fcn.140006880
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 0x14000692c
call fcn.14000ba40
jmp 0x14000692e
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140006940
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, r9
and dword [rax + 0x10], 0
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
mov rdx, r8
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140006978
call fcn.14000ba40
jmp 0x140006985
test rbx, rbx
je 0x140006983
mov eax, dword [rsp + 0x48]
mov dword [rbx], eax
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x14000698c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
and dword [rax + 8], 0
mov rbx, r9
and qword [rax - 0x18], 0
lea r9, [rax + 8]
mov rdi, rcx
mov esi, r8d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400069c6
call fcn.14000ba40
jmp 0x1400069df
mov eax, dword [rsp + 0x40]
test rbx, rbx
je 0x1400069d1
mov dword [rbx], eax
add dword [rdi + 0x14], eax
sub eax, esi
neg eax
sbb eax, eax
and eax, 0x80004005
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140006c9c
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov r11, rcx
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov r10d, 0x58
mov rdx, r8
sub r9d, 4
js 0x140006daf
movzx eax, byte [r11]
sub r10d, 3
shr rax, 2
mov al, byte [rax + rbx]
mov byte [rdx], 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 [rdx + 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 [rdx + 2], al
movzx eax, byte [r11 + 2]
add r11, 3
and eax, 0x3f
mov al, byte [rax + rbx]
mov byte [rdx + 3], al
add rdx, 4
cmp r10d, 2
jg 0x140006cb4
sub r10d, 1
je 0x140006d73
cmp r10d, 1
jne 0x140006da8
sub r9d, 3
js 0x140006daf
movzx eax, byte [r11]
shr rax, 2
mov al, byte [rax + rbx]
mov byte [rdx], 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 [rdx + 1], al
movzx eax, byte [r11 + 1]
and eax, 0xf
mov al, byte [rbx + rax*4]
mov byte [rdx + 2], al
lea eax, [r9 - 1]
test eax, eax
js 0x140006daf
mov byte [rdx + 3], 0x3d
jmp 0x140006da4
sub r9d, 2
js 0x140006daf
movzx eax, byte [r11]
lea ecx, [r9 - 2]
shr rax, 2
mov al, byte [rax + rbx]
mov byte [rdx], al
movzx eax, byte [r11]
and eax, 3
add rax, rax
mov al, byte [rbx + rax*8]
mov byte [rdx + 1], al
test ecx, ecx
js 0x140006daf
mov word [rdx + 2], 0x3d3d
add rdx, 4
sub edx, r8d
mov eax, edx
jmp 0x140006db1
xor eax, eax
mov rbx, qword [rsp + 8]
ret
Function at 0x140007558
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.14001fbe0
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 0x1400075d0
and qword [rsp + 0x30], rsi
and dword [rsp + 0x28], esi
jmp 0x1400075dd
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 0x1400075f2
call fcn.14000ba40
jmp 0x140007640
mov al, byte [0x1400532c9]
lea rdx, [0x140053120]
neg al
sbb rcx, rcx
and rcx, rdx
je 0x14000763e
mov edx, 7
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x58], edx
lea r8d, [rdx - 6]
mov dword [rsp + 0x5c], r8d
call fcn.1400083ac
mov r8d, dword [rbx + 0x10]
lea rdx, str._Started_process___u_
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x60], eax
call fcn.1400041fc
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 0x140007cc4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rdx
call fcn.1400014bc
xor esi, esi
mov rcx, rax
test rax, rax
je 0x140007dc3
mov rax, qword [rax]
call qword [rax + 0x18]
lea ecx, [rsi + 1]
mov edx, 0x104
lea rbx, [rax + 0x18]
mov eax, dword [rbx - 0xc]
sub ecx, dword [rbx - 8]
sub eax, edx
or ecx, eax
mov qword [rsp + 0x40], rbx
jge 0x140007d20
lea rcx, [rsp + 0x40]
call fcn.140001b30
mov rbx, qword [rsp + 0x40]
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 0x140007d40
mov rcx, rdi
jmp 0x140007d57
lea rdx, str.CocCocUpdateLog
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rcx, rdi
test eax, eax
jne 0x140007db7
lea rdx, [0x140045cf8]
call fcn.14000575c
test rbx, rbx
jne 0x140007d6c
mov eax, esi
jmp 0x140007d7c
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.14002be98
test eax, eax
js 0x140007dce
cmp eax, dword [rbx - 0xc]
jg 0x140007dce
mov dword [rbx - 0x10], eax
lea rdx, [rbx - 0x18]
cdqe
mov word [rbx + rax*2], si
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140007da4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x48]
mov rax, rdi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea rdx, [rsp + 0x40]
call fcn.1400057e8
jmp 0x140007d63
mov ecx, 0x80004005
call fcn.140001880
int3
mov ecx, 0x80070057
call fcn.140001880
int3
Function at 0x140007f48
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x148], 0
mov rbp, rcx
jne 0x140007f98
mov ecx, 0x40
call fcn.140033484
mov rcx, rax
call fcn.14000bdd0
mov qword [rbp + 0x148], rax
test rax, rax
jne 0x140007f98
mov rdx, qword [rbp + 0x58]
lea rcx, str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_ETW_log_writer
call fcn.14000bba4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x148]
test rcx, rcx
je 0x140007fbe
movsxd rax, dword [rbp + 0xb8]
cmp eax, 0xf
jge 0x140007fbe
mov qword [rbp + rax*8 + 0xc0], rcx
inc dword [rbp + 0xb8]
cmp byte [rbp + 0x93], 0
je 0x140008114
cmp qword [rbp + 0x138], 0
jne 0x1400080ee
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.140007ddc
mov rdi, qword [rsp + 0x40]
cmp dword [rdi - 0x10], 0
jne 0x140008017
lea rdx, [rdi - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140008114
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140008114
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14000b110
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.140006830
test al, al
jne 0x14000806b
mov rcx, rbx
call fcn.14000495c
test eax, eax
jns 0x14000806b
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140008060
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
jmp 0x140007ff8
mov sil, byte [rbp + 0xa1]
mov ecx, 0x38
call fcn.140033484
mov r8b, sil
mov rdx, rdi
mov rcx, rax
call fcn.140008b10
mov qword [rbp + 0x138], rax
test rax, rax
jne 0x1400080b2
mov rdx, qword [rbp + 0x58]
lea rcx, str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
mov r8, rdi
call fcn.14000bba4
mov rcx, rax
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 0x1400080cf
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 0x1400080ee
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp + 0x138]
test rcx, rcx
je 0x140008114
movsxd rax, dword [rbp + 0xb8]
cmp eax, 0xf
jge 0x140008114
mov qword [rbp + rax*8 + 0xc0], rcx
inc dword [rbp + 0xb8]
cmp byte [rbp + 0xa0], 0
je 0x140008166
mov rcx, qword [rbp + 0x140]
test rcx, rcx
jne 0x14000814c
mov ecx, 8
call fcn.140033484
mov rcx, rax
lea rax, fcn.14000253c
mov qword [rcx], rax
mov qword [rbp + 0x140], rcx
test rcx, rcx
je 0x140008166
movsxd rax, dword [rbp + 0xb8]
cmp eax, 0xf
jge 0x140008166
mov qword [rbp + rax*8 + 0xc0], rcx
inc dword [rbp + 0xb8]
cmp dword [rbp + 0xb8], 0
mov rbx, qword [rsp + 0x50]
setg al
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008180
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp byte [rcx + 0xa2], 1
jne 0x1400081c6
lea rcx, [rsp + 0x48]
call fcn.140007664
mov rdx, qword [rax]
lea rcx, str.LOG_SYSTEM:___s_:_ERROR___Calling_the_logging_system_after_it_has_been_shut_down__n
call fcn.14000bba4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x48]
call fcn.14000198c
xor al, al
jmp 0x140008217
cmp byte [rcx + 0x50], 1
jne 0x1400081d0
mov al, 1
jmp 0x140008217
cmp byte [rcx + 0x51], 0
je 0x1400081da
xor al, al
jmp 0x140008217
mov byte [rcx + 0x51], 1
call fcn.140007a24
cmp byte [rbx + 0x90], 0
je 0x1400081f7
mov rcx, rbx
call fcn.140007f48
mov byte [rbx + 0x50], al
mov byte [rbx + 0x51], 0
mov al, 1
jmp 0x140008217
add rsp, 0x30
pop rbx
ret

Function at 0x140008220
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov al, 1
mov rbx, rcx
cmp byte [rcx + 0xa2], al
jne 0x14000827c
lea rcx, [rsp + 0x30]
call fcn.140007664
lea rcx, str.LOG_SYSTEM:___s_:_ERROR___Calling_the_logging_system_after_it_has_been_shut_down__n
mov rdx, qword [rax]
call fcn.14000bba4
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 0x140008278
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor al, al
jmp 0x1400082a3
cmp byte [rcx + 0x50], al
je 0x1400082a3
lea rdi, [rcx + 0x60]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov rcx, rbx
call fcn.140008180
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 0x140008730
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 0x140008894
test edx, edx
jne 0x140008777
cmp r9d, 2
jg 0x140008894
call fcn.1400014bc
test rax, rax
je 0x1400088b2
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
call fcn.1400014bc
test rax, rax
je 0x1400088b2
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.140009f40
test al, al
jne 0x1400087e5
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0x14
jle 0x1400087c3
jmp 0x140008830
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.1400084a0
mov rax, qword [r15]
mov rcx, r15
call qword [rax + 0x10]
mov rbx, qword [rsp + 0xa0]
cmp edi, 0x14
jle 0x140008858
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, [0x1400487d8]
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 0x140008875
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 0x140008894
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.140001880
int3
Function at 0x140008b10
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.140008d0c
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.1400014bc
test rax, rax
je 0x140008c5c
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.14000575c
and qword [rdi + 0x28], 0
call fcn.1400014bc
test rax, rax
je 0x140008c5c
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
lea rcx, [0x140053120]
mov qword [rdi + 0x30], rax
mov al, byte [0x1400532c9]
neg al
sbb rsi, rsi
and rsi, rcx
je 0x140008c46
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140008a94
mov rbx, qword [rsp + 0x40]
cmp dword [rbx - 0x10], 0
je 0x140008c14
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 0x140008c1b
mov dword [rdi + 8], 0x989680
lea rdx, [rsi + 0x58]
mov byte [rdi + 0xf], bpl
lea rcx, [rdi + 0x30]
call fcn.1400018a4
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140008c46
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.140001880
int3