joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400118c0
Capabilities:
Write file on windows

Disassembly:
jmp 0x140018940
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x14002d048]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x1400350f3]
call fcn.1400118de
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x1400189a6
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400189ad
mov al, 1
jmp 0x140018b07
call fcn.14001127b
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx]
mov qword [rbp + 0x198], rcx
mov edx, eax
mov rcx, qword [rbp + 0x1d0]
mov rax, qword [rbp + 0x198]
call qword [rax + 0x18]
mov dword [rbp + 0x164], eax
call fcn.14001127b
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.140011785
movzx eax, al
test eax, eax
je 0x140018a08
xor al, al
jmp 0x140018b07
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x194], eax
cmp dword [rbp + 0x194], 0
je 0x140018a6d
cmp dword [rbp + 0x194], 1
je 0x140018a78
cmp dword [rbp + 0x194], 3
je 0x140018af6
jmp 0x140018b05
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x140018ac8
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x140018ac8
xor al, al
jmp 0x140018b07
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140018ae3
mov dword [rbp + 0x194], 1
jmp 0x140018aed
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x140018b07
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140018b07
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140027ba0]
call fcn.140011767
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.14001145b
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x140002d70
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x330], rbx
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov rbx, r8
mov r15, rdx
xor edi, edi
mov rax, qword [r8 + 8]
sub rax, qword [r8]
cmp rax, 0x20
jb 0x140002f7c
mov qword [rsp + 0x40], rdi
lea rcx, [rsp + 0x48]
call fcn.14000b0e0
nop
cmp qword [rax + 0x18], 8
jb 0x140002ddc
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140004170
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140002e2c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002e27
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002fa4
call fcn.140004a20
movdqa xmm0, xmmword [0x140369280]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], di
lea rdx, str.Archive
mov rsi, 0xffffffffffffffff
mov rax, rsi
inc rax
cmp word [rdx + rax*2], 0
jne 0x140002e50
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.140003a00
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [rsp + 0x7a]
movzx ecx, word [rsp + 0x78]
movzx edx, word [rsp + 0x76]
movzx r9d, word [rsp + 0x72]
movzx r8d, word [rsp + 0x70]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea rdx, str.ExceptionsLogs__04d_02d_02d_02d_02d.zip
lea rcx, [rsp + 0x40]
call fcn.1400038e0
xor edx, edx
mov r8d, 0x270
lea rcx, [rbp - 0x80]
call fcn.140268ee0
lea rcx, [rbp - 0x80]
call fcn.14000f2c0
nop
xor r9d, r9d
lea r8d, [r9 + 2]
mov rdx, qword [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.14000c060
mov r14, qword [rbx + 8]
mov rbx, qword [rbx]
cmp rbx, r14
je 0x140002f25
nop
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x140002f0d
mov r8, qword [rbx]
lea rdx, [rbp - 0x80]
call fcn.140002fb0
test eax, eax
je 0x140002f1c
inc edi
add rbx, 0x20
cmp rbx, r14
jne 0x140002f00
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.14000f110
mov rdx, qword [rsp + 0x40]
mov r8, rsi
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140002f40
mov rcx, r15
call fcn.140003740
nop
lea rcx, [rbp - 0x80]
call fcn.14000f3b0
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140002f7c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov eax, edi
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140263a60
mov rbx, qword [rsp + 0x330]
add rsp, 0x300
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14026bb04
nop
int3
Function at 0x140003b20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140003b95
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140003b95
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140003b85
nop
cmp rbx, rcx
jae 0x140003b95
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140003b70
cmp rbx, rcx
jae 0x140003b95
cmp word [rbx], 0
je 0x140003b95
mov rax, rbx
jmp 0x140003b97
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140004cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_720
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
cmp rdx, 0x10000
jae 0x1400d800b
cmp dword [rcx + 0xe8], 0
jne 0x1400d800b
movzx eax, di
mov dword [rcx + 0xe8], eax
call fcn.1400e169c
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.1400d8390
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400074d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x30], 0
mov edx, 8
lea rcx, [rsp + 0x70]
call fcn.1400043a0
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xa8]
call fcn.140006230
nop
lea rcx, [rsp + 0x70]
call fcn.140007860
movzx eax, al
test eax, eax
jne 0x1400076d7
mov rcx, qword [rsp + 0xa0]
call fcn.140007710
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
je 0x140007651
mov dword [rsp + 0x78], 0
lea rcx, [rsp + 0x70]
call fcn.140003fd0
inc eax
cdqe
shl rax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x70]
call fcn.1400078a0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, dword [rsp + 0x40]
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x30], 0
jne 0x14000764c
call fcn.140007b50
test rax, rax
je 0x14000764c
call fcn.140007b50
mov qword [rsp + 0x48], rax
lea rax, [0x140362fc0]
mov qword [rsp + 0x20], rax
lea r9, [0x140362fd0]
lea r8, [0x140363030]
mov edx, 2
mov rcx, qword [rsp + 0x48]
call fcn.140007a20
call fcn.140007b50
test rax, rax
je 0x14000764c
call fcn.140007b50
mov qword [rsp + 0x50], rax
lea rax, str.Could_not_write_to_the_message_pipe.
mov qword [rsp + 0x28], rax
lea rax, [0x140362fc8]
mov qword [rsp + 0x20], rax
lea r9, [0x140363100]
lea r8, [0x140363160]
mov edx, 2
mov rcx, qword [rsp + 0x50]
call fcn.1400078f0
jmp 0x1400076d7
call fcn.140007b50
test rax, rax
je 0x1400076d7
call fcn.140007b50
mov qword [rsp + 0x58], rax
lea rax, [0x1403631e0]
mov qword [rsp + 0x20], rax
lea r9, [0x1403631f0]
lea r8, [0x140363250]
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140007a20
call fcn.140007b50
test rax, rax
je 0x1400076d7
call fcn.140007b50
mov qword [rsp + 0x60], rax
lea rax, str.Could_not_open_the_pipe_for_writing.
mov qword [rsp + 0x28], rax
lea rax, [0x1403631e8]
mov qword [rsp + 0x20], rax
lea r9, str.Macrium::IPC::MessageClient::SendMessageNoReply
lea r8, str.e:_release_reflect_8imagemacrium.ipcmacrium.ipc.client.cpp
mov edx, 2
mov rcx, qword [rsp + 0x60]
call fcn.1400078f0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0x70]
call fcn.1400031c0
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x98
ret
Function at 0x140007710
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
xor edx, edx
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 8]
mov ecx, 0x64
div ecx
mov dword [rsp + 0x40], eax
jmp 0x140007752
mov eax, dword [rsp + 0x40]
dec eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1400077ff
mov rax, qword [rsp + 0x70]
mov rcx, rax
call fcn.140003250
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80120102
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x1400077a6
jmp 0x1400077ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 2
jne 0x1400077d5
call fcn.14000b370
movzx eax, al
cmp eax, 1
jne 0x1400077d1
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400077d3
jmp 0x1400077ff
jmp 0x1400077fa
cmp dword [rsp + 0x50], 0xe7
jne 0x1400077fa
mov rax, qword [rsp + 0x70]
mov rcx, rax
call fcn.140003250
mov edx, 0x64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
jmp 0x140007748
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x14000783d
mov dword [rsp + 0x54], 2
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x54]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x14000783d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], 0xffffffffffffffff
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x68
ret
Function at 0x140007d40
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x128]
sub rsp, 0x210
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rbp + 0x108], rax
mov r14, rcx
cmp qword [rcx + 0x30], 0
je 0x140007f4e
call fcn.1400da0e8
mov rcx, rax
test rax, rax
je 0x140007f7a
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov r8, qword [r14 + 0x10]
lea rdx, str.Logging_initialized_for__s_r_n
lea rcx, [rsp + 0x30]
call fcn.140004850
xor r15d, r15d
mov dword [rbp + 0x100], r15d
mov rdx, qword [rsp + 0x30]
mov ebx, dword [rdx - 0x10]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rax
lea r8d, [r15 + 3]
lea rcx, [rsp + 0x50]
call fcn.1400086b0
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x100]
mov r8d, ebx
mov rdx, qword [rsp + 0x50]
mov rcx, qword [r14 + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
cmp rcx, rax
je 0x140007e1b
call fcn.14026f9b4
lea rdx, str.Date_______Time______________________Level_______TID___File_________________Line____Function______Description_r_n
mov rdi, 0xffffffffffffffff
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rdx + rax*2], r15w
jne 0x140007e30
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.140003fe0
mov rdx, qword [rsp + 0x30]
mov ebx, dword [rdx - 0x10]
lea rax, [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov r8d, 3
lea rcx, [rbp - 0x20]
call fcn.1400086b0
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x100]
mov r8d, ebx
mov rdx, qword [rbp - 0x20]
mov rcx, qword [r14 + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rax, [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
cmp rcx, rax
je 0x140007e95
call fcn.14026f9b4
lea rdx, str.______________________________________________________________________________________________________________r_n
mov rax, rdi
nop
inc rax
cmp word [rdx + rax*2], r15w
jne 0x140007ea0
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.140003fe0
mov rdx, qword [rsp + 0x30]
lea rsi, [rdx - 0x18]
mov ebx, dword [rsi + 8]
lea rax, [rbp + 0x78]
mov qword [rbp + 0x70], rax
mov r8d, 3
lea rcx, [rbp + 0x70]
call fcn.1400086b0
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x100]
mov r8d, ebx
mov rdx, qword [rbp + 0x70]
mov rcx, qword [r14 + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rax, [rbp + 0x78]
mov rcx, qword [rbp + 0x70]
cmp rcx, rax
je 0x140007f09
call fcn.14026f9b4
mov dword [rsp + 0x38], r15d
lea rax, str.Logging_started
mov qword [rsp + 0x28], rax
lea r8, [0x140365718]
mov qword [rsp + 0x20], r8
mov r9, r8
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.140008360
nop
lock xadd dword [rsi + 0x10], edi
sub edi, 1
jg 0x140007f4e
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp + 0x108]
xor rcx, rsp
call fcn.140263a60
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 0x80004005
call fcn.140004710
int3
Function at 0x140008360
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r15, r9
mov r14, r8
mov r13, rdx
mov rdi, rcx
mov r12, qword [rsp + 0xe0]
mov rbp, qword [rsp + 0xe8]
mov esi, dword [rdx]
and esi, 0x1ff
mov dword [rsp + 0x40], esi
call fcn.1400da0e8
mov rcx, rax
test rax, rax
je 0x140008517
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
cmp esi, dword [rdi + 0x18]
ja 0x1400084c0
cmp dword [rdi + 0x40], 0
jne 0x1400083eb
cmp qword [rdi + 0x30], 0
je 0x1400084c0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r12
mov r9, r15
mov r8, r14
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140007f90
cmp dword [rdi + 0x40], 0
je 0x140008494
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x140008494
xor r14d, r14d
mov dword [rsp + 0x58], r14d
mov rbx, qword [rsp + 0x50]
mov esi, dword [rbx - 0x10]
cmp dword [rbx - 8], 1
jle 0x14000844c
mov edx, esi
lea rcx, [rsp + 0x50]
call fcn.1400085f0
mov rcx, qword [rdi + 0x30]
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x58]
mov r8d, esi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rsp + 0x58]
add edx, dword [rdi + 0x28]
mov dword [rdi + 0x28], edx
mov eax, dword [rdi + 0x24]
test eax, eax
je 0x140008499
shr edx, 0x14
cmp edx, eax
jb 0x140008499
mov rcx, rdi
call fcn.140008530
mov rcx, rdi
call fcn.140007b60
mov rcx, rdi
call fcn.140007d40
jmp 0x140008499
mov rbx, qword [rsp + 0x50]
cmp dword [rdi + 0x44], 0
je 0x1400084c0
cmp dword [rbx - 8], 1
jle 0x1400084b7
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x50]
call fcn.1400085f0
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rax, qword [rdi]
test rax, rax
je 0x1400084dc
mov ecx, dword [r13]
bt ecx, 9
jae 0x1400084dc
btr ecx, 9
mov rdx, rbp
call rax
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400084f9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80004005
call fcn.140004710
int3
Function at 0x140008530
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x1400085a9
mov qword [rsp + 0x58], rdi
lea r9, [rsp + 0x30]
xor edi, edi
lea rdx, str.________________________________________________________________________________r_n
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x20], rdi
lea r8d, [rdi + 0x51]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx + 0x30]
lea r9, [rsp + 0x30]
lea r8d, [rdi + 0x14]
mov qword [rsp + 0x20], rdi
lea rdx, str.Logging_terminated._n
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30], rdi
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x40
pop rbx
ret

Function at 0x140008d00
Capabilities:
Check if file exists

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x28], rdx
cmp qword [rdx + 0x10], 0
je 0x140008d80
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140008d41
mov rdx, rax
mov rcx, rbx
call fcn.1400056e0
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140008d64
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140008d80
xor r8d, r8d
lea rdx, [0x140365718]
mov rcx, rbx
call fcn.140003740
xor esi, esi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140008de2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140008ddd
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140008e09
mov rcx, r8
call fcn.140004a20
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rax, rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
call fcn.14026bb04
int3
Function at 0x14000b0e0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push rbx
sub rsp, 0x270
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], 7
mov word [rcx], ax
mov dword [rsp + 0x30], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.140268ee0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14000b190
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14000b170
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140003740
mov rcx, rbx
call fcn.14000af10
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x270
pop rbx
ret

Function at 0x14000b3b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x2a0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbp, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
movdqa xmm0, xmmword [0x140369280]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], r14w
lea rdx, [rsp + 0x58]
call fcn.1400055f0
mov dword [rsp + 0x30], 2
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x101
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b4c7
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x80]
call fcn.140268ee0
mov dword [rsp + 0x50], 0x104
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000b4bb
lea rax, [rsp + 0x80]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14000b4a0
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.140003740
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14000b505
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b500
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b526
call fcn.140004a20
mov rax, rsi
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x2a0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14026bb04
int3