joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4033a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00409900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004098e0]
test rbx, rbx
je 0x4033f4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x4033eb
test r12, r12
je 0x4033eb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4033d0
lea rcx, [0x00409900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x403620
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x403630
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x403640
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x403685
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x40367c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x403687
add rax, 0x28
cmp rax, r9
jne 0x403668
xor eax, eax
ret

Function at 0x403730
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00405b10]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x4037a9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4037a9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x4037a6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x40379d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x4037a9
add r8, 0x28
cmp r8, r9
jne 0x403788
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x403890
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00405b10]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x4038ff
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4038ff
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x4038fd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x4038f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403908
add rax, 0x28
cmp rax, r9
jne 0x4038e0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x403920
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00405b10]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x403998
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403998
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x403998
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x403998
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x40398c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x4039a0
add rdx, 0x28
cmp rdx, r10
jne 0x403978
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x4039b0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x4039be
mov edx, dword [rax + 0xc]
test edx, edx
je 0x403995
test r8d, r8d
jg 0x4039a8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x14000276c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x1e0
mov rax, qword [0x14004a300]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rbp, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r14d, r14d
mov edi, eax
test eax, eax
je 0x14000283d
lea rcx, str.NTDLL.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1400027c7
lea rcx, str.VssTrace:_ERROR:_NTDLL.DLL_not_loaded_yet__n
jmp 0x140002837
lea rdx, [0x14003f9b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x1400027e8
lea rcx, str.VssTrace:_ERROR:_NTDLL_swprintf_not_found__n
jmp 0x140002837
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9, rbp
lea rdx, str.VssTrace_pid:__d_:_ERROR_calling__s____GetLastError____0x_08lx__operation___s__m_dwTlsContextIndex__0x_08lx_._Returning_FALSE_in_DllMain..._n
mov r8d, eax
lea rcx, [rsp + 0x40]
mov eax, dword [0x14004a320]
mov dword [rsp + 0x30], eax
mov rax, rbx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], edi
call qword [0x14002f5e0]
test eax, eax
jns 0x140002829
lea rcx, str.VssTrace:_ERROR:_NTDLL_StringCchPrintfW_failed__n
jmp 0x140002837
mov word [rsp + 0x1ce], r14w
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14002c700
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14000286c
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rbx, rcx
cmp dword [rcx], 0
je 0x1400021f9
mov eax, 0x8000ffff
jmp 0x14000228b
add rcx, 0x28
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14002f5e0]
nop
call fcn.140001d2c
and qword [rsp + 0x58], 0
lea rax, [0x14003fc78]
mov qword [rsp + 0x50], rax
mov r9d, 1
mov dword [rbx], r9d
lea rax, [rbx + 0x10]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r8, [0x14003fbd0]
xor edx, edx
lea rcx, [0x140002720]
call qword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
mov ecx, eax
test eax, eax
je 0x140002275
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x14000228b
xor eax, eax
jmp 0x14000228b
add rsp, 0x70
pop rbx
ret
sub rsp, 0x28
mov eax, 1
lock xadd dword [0x14004c2c0], eax
inc eax
cmp eax, 1
jne 0x1400028cf
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14004a320], eax
cmp eax, 0xffffffff
jne 0x14000289e
lea rdx, [0x14003f878]
jmp 0x1400028b3
xor edx, edx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400028bf
lea rdx, [0x14003f8b8]
lea rcx, str.DLL_PROCESS_ATTACH
call fcn.14000276c
lea rcx, [0x14004a340]
add rsp, 0x28
jmp 0x1400021d8
xor eax, eax
add rsp, 0x28
ret
Function at 0x140002a1c
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, dword [0x14004a320]
mov rbx, rcx
mov rdx, rcx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140002a58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rbx
lea rcx, str.TlsSetValue__d___p__failed:__d
mov r9d, eax
mov edx, edi
call fcn.140002754
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140004408
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
xor ebx, ebx
mov r14, rdx
mov dword [rcx + 8], ebx
mov rdi, rcx
test r8, r8
jne 0x140004431
mov r8, qword [rdx + 8]
mov qword [rcx + 0x28], r8
mov rax, qword [rdx]
mov qword [rcx + 0x10], rax
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x18], rax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x20], eax
mov eax, dword [rdx + 0x1c]
mov dword [rcx + 0x24], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
or dword [rdi + 4], 0xffffffff
xorps xmm0, xmm0
mov ecx, dword [0x14004a320]
mov dword [rdi + 0x34], eax
mov eax, dword [r14 + 0x20]
mov dword [rdi + 0x38], eax
mov dword [rdi], ebx
mov qword [rdi + 0x60], rbx
movups xmmword [rdi + 0x40], xmm0
movups xmmword [rdi + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x140004499
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140004499
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call fcn.140002a1c
test eax, eax
js 0x1400044ab
mov qword [rdi + 0x60], rsi
jmp 0x1400044af
mov rsi, qword [rdi + 0x60]
test rsi, rsi
je 0x1400044b9
mov ebx, dword [rsi + 0x30]
inc ebx
mov dword [rdi + 0x30], ebx
lea rdx, str.ENTER
cmp dword [rdi + 0x38], 0xff
mov r8d, 0xa0
mov rcx, rdi
cmovne r8d, dword [rdi + 0x38]
xor r9d, r9d
call fcn.1400049e4
mov rcx, r14
call fcn.14000417c
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140004508
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rsi, rcx
lea rbx, [rcx + 0x40]
mov edi, 4
mov rcx, qword [rbx]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rbx], 0
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x140004523
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov r8d, 0x88888889
sub ebx, dword [rsi + 0x34]
mov eax, 0x10624dd3
mul ebx
mov eax, r8d
mov r10d, ebx
mov r11d, edx
shr r11d, 6
mul r11d
imul ecx, r11d, 0x3e8
shr edx, 5
imul eax, edx, 0x3c
sub r10d, ecx
sub r11d, eax
mov eax, 0x45e7b273
mul ebx
mov eax, r8d
mov r9d, edx
shr r9d, 0xe
mul r9d
mov eax, 0x95217cb1
shr edx, 5
imul ecx, edx, 0x3c
mul ebx
sub r9d, ecx
mov eax, r8d
mov ecx, edx
mov r8d, 0xa0
shr ecx, 0x15
mul ecx
shr edx, 5
imul eax, edx, 0x3c
lea rdx, str.EXIT
sub ecx, eax
mov eax, dword [rsi + 8]
cmp dword [rsi + 0x38], 0xff
mov dword [rsp + 0x48], eax
cmovne r8d, dword [rsi + 0x38]
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], r9d
lea r9, str.Time_spent:__02ld:_02ld:_02ld__04ld__total:__x__HRESULT:__x
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.140004ae8
mov rcx, qword [rsi + 0x60]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
jmp fcn.140002a1c
Function at 0x140004668
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x840]
sub rsp, 0x940
mov rax, qword [0x14004a300]
xor rax, rsp
mov qword [rbp + 0x830], rax
mov eax, dword [0x14004c2c0]
mov rdi, rcx
neg eax
sbb ecx, ecx
and ecx, dword [0x14004a364]
cmp ecx, dword [rdi + 4]
je 0x14000485b
xor r15d, r15d
mov dword [rdi + 4], ecx
cmp dword [0x14004c2c0], r15d
je 0x14000473d
mov ecx, dword [rdi + 0x24]
mov ebx, r15d
mov eax, dword [0x14004b910]
bt eax, ecx
jae 0x140004736
mov r14, qword [rdi + 0x28]
lea rsi, [rcx + rcx*8]
lea r13, [0x14004b930]
shl rsi, 4
lea rdx, [r13 + 0x78]
add rdx, rsi
lea rcx, [rbp - 8]
call fcn.140002af0
mov rcx, rax
mov rdx, r14
call fcn.140001d8c
test eax, eax
je 0x14000470e
lea eax, [r15 + 1]
jmp 0x140004739
lea rdx, [r13 + 0x60]
add rdx, rsi
lea rcx, [rbp + 0x10]
call fcn.140002af0
mov rcx, rax
mov rdx, r14
call fcn.140001d8c
test eax, eax
je 0x140004736
mov ebx, 1
mov eax, ebx
jmp 0x140004739
mov eax, r15d
test eax, eax
jne 0x14000477b
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x14000474f
call fcn.140004658
mov ebx, eax
jmp 0x14000477b
cmp dword [0x14004c2c0], r15d
je 0x140004778
cmp dword [0x14004a340], r15d
je 0x140004778
cmp dword [0x14004a344], r15d
je 0x140004778
cmp dword [0x14004a324], r15d
mov ebx, 1
jne 0x14000477b
mov ebx, r15d
mov dword [rdi], ebx
mov eax, dword [rdi + 4]
cmp dword [0x14004a330], eax
je 0x14000485b
xor edx, edx
lea rcx, [rbp + 0x30]
mov r8d, 0x800
call sub.msvcrt.dll_memset
lea rdx, [rbp + 0x30]
call fcn.140004f94
lea rax, str.base_stor_vssmodules_trace_fntracer.cpp
mov dword [rsp + 0x68], 0x24f
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x78]
lea rax, str.CVssFunctionTracer::UpdateLocalIsTracingEnabledFlag
mov dword [rsp + 0x6c], 0xb
mov qword [rsp + 0x58], rax
mov esi, 0x78
lea rax, str.TRCTRCC
mov dword [rsp + 0x70], 0xff
mov r8d, esi
mov qword [rsp + 0x60], rax
xor edx, edx
mov dword [rbp - 0x10], 0x1000000
call sub.msvcrt.dll_memset
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rdi + 4]
lea r8, str.TRACING_STARTED
mov dword [rsp + 0x48], ecx
lea rdx, [rsp + 0x50]
mov ecx, dword [0x14004a330]
mov r9d, esi
mov dword [rsp + 0x40], ecx
lea rcx, [rbp + 0x30]
mov qword [rsp + 0x38], rcx
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
lea rax, str.Tracing_started_or_updated._PID_d__CommandLine__s___UserName__s_._SQN__d_____d_
mov qword [rsp + 0x20], rax
call fcn.140004bb4
mov eax, dword [rdi + 4]
mov dword [0x14004a330], eax
mov rcx, qword [rbp + 0x830]
xor rcx, rsp
call fcn.14002c700
lea r11, [rsp + 0x940]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x14000488c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
cmp dword [0x14004c2c0], 0
mov rbp, r8
mov r14d, edx
mov rdi, rcx
je 0x1400049c8
cmp dword [0x14004a340], 0
je 0x1400049c8
cmp dword [0x14004a344], 0
je 0x1400049c8
mov ecx, dword [0x14004a320]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400048ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400048ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
test rbx, rbx
je 0x14000490c
mov edx, dword [rdi + 0x1c]
mov rcx, rbx
call fcn.140004610
test eax, eax
je 0x1400049c8
mov esi, dword [rbx + 0x30]
lea rdx, [0x14003ef00]
mov ecx, 0x3ea
call fcn.14002c89c
mov rbx, rax
test rax, rax
jne 0x14000492e
lea rcx, str.StaticTrace_failed_due_to_out_of_memory_condition
jmp 0x14000498b
and qword [rsp + 0x50], 0
lea rax, [rsp + 0xb0]
and qword [rsp + 0x58], 0
lea r9, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x58]
mov rax, qword [rsp + 0xa8]
mov edx, 0x1f4
mov rcx, rbx
mov qword [rsp + 0x28], rax
call fcn.140003a2c
cmp qword [rsp + 0x50], 1
jne 0x140004988
mov rax, qword [rsp + 0x58]
mov ecx, 0x2e
mov dword [rax - 4], 0x2e002e
mov word [rax - 6], cx
mov rcx, rbx
mov eax, dword [rdi + 0x1c]
mov r9d, esi
mov r8d, dword [rdi + 0x18]
mov rdx, qword [rdi + 0x10]
mov qword [rsp + 0x40], rcx
lea rcx, str.STATIC
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], rcx
mov rcx, qword [rdi]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], eax
call fcn.140002944
mov rcx, rbx
call fcn.14002bfcc
mov rcx, rdi
call fcn.14000417c
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140007830
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rbx, rcx
lea r14, str.base_stor_vssmodules_registry_registry.cxx
mov qword [rsp + 0x48], r14
lea r15, str.CVssRegistryValueIterator::ReadCurrentValueDetails
mov qword [rsp + 0x50], r15
lea r12, str.REGREGSC
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], 0x45e
mov dword [rsp + 0x64], 0xb
mov edi, 0xff
mov dword [rsp + 0x68], edi
xor esi, esi
mov dword [rbp - 0x18], 0x1000000
xor edx, edx
lea r8d, [rsi + 0x78]
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x10]
call fcn.140004408
nop
cmp byte [rbx + 0x31], sil
je 0x140007a01
mov r8, qword [rbx + 0x20]
test r8, r8
je 0x140007a01
cmp byte [rbx + 0x30], sil
je 0x140007905
lea rcx, [rbp - 0x10]
call fcn.140004508
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov eax, dword [rbx + 0x28]
mov dword [rbp + 0x90], eax
lea rax, [rbx + 0x2c]
lea rcx, [rbx + 0x10]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x90]
mov edx, dword [rbx + 0xc]
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test eax, eax
je 0x14000796a
mov dword [rsp + 0x30], 0xff
mov r9, r15
mov r8, r12
mov rdx, r14
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x28], 0xb
cmp eax, 0x103
jne 0x1400079a8
jmp 0x140007973
mov byte [rbx + 0x30], 1
jmp 0x1400078e0
mov dword [rsp + 0x20], 0x47e
call fcn.1400040a8
mov ecx, dword [rbx + 8]
mov dword [rsp + 0x28], ecx
mov ecx, dword [rbx + 0xc]
mov dword [rsp + 0x20], ecx
lea r9, str.Unexpected_error:_dwIndex_out_of_scope__lu__lu
mov r8d, 0x8000ffff
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.140005908
int3
mov dword [rsp + 0x20], 0x47a
call fcn.1400040a8
mov rdx, rax
lea rcx, [rbx + 0x18]
call fcn.140006668
movzx r8d, di
or r8d, 0x80070000
test edi, edi
cmovle r8d, edi
mov ecx, dword [rbp + 0x90]
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rax
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x28], eax
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
lea r9, str.RegEnumValue__p__lu__p__lu_..._
lea rcx, [rbp - 0x10]
call fcn.140005908
int3
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], 0xb
mov dword [rsp + 0x20], 0x462
mov r9, r15
mov r8, r12
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.1400040a8
lea r9, str.Unexpected_error:_noninitialized_iterator
mov r8d, 0x8000ffff
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.140005908
int3
Function at 0x140007fa4
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x14004a300]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140007fe6
cmp dword [rsp + 0x24], 6
jb 0x140007fe6
cmp dword [rsp + 0x28], 2
jb 0x140007fe6
xor al, al
jmp 0x140007fe8
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14002c700
add rsp, 0x158
ret
Function at 0x140013f28
Capabilities:
Get token privileges

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14004a300]
xor rax, rsp
mov qword [rbp - 8], rax
xor esi, esi
mov rbx, rcx
mov edi, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x28]
lea edx, [rsi + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140014043
lea r8, [rbp - 0x20]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140013fe3
mov rax, qword [rbp - 0x20]
xor ecx, ecx
mov qword [rbp - 0x14], rax
mov dword [rbp - 0x18], 1
mov dword [rbp - 0xc], 3
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp - 0x28]
lea r8, [rbp - 0x18]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
cmovne edi, esi
test edi, edi
jne 0x140013fe3
mov r8d, eax
lea rcx, str.AdjustTokenPrivileges_for__s_failed_with__d
mov rdx, rbx
call sub.msvcrt.dll_wprintf
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r9 + 3]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [rbp - 0x30]
lea rdx, [0x14003ef00]
call fcn.14002c89c
mov r9d, dword [rbp - 0x30]
mov rbx, rax
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
mov r8, rbx
mov qword [rsp + 0x20], rax
mov edx, 3
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, rbx
call fcn.14002bfcc
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14002c700
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140015300
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14004a300]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.msvcrt.dll_memset
or rbx, 0xffffffffffffffff
mov rax, rbx
xor ebp, ebp
inc rax
cmp word [rdi + rax*2], bp
jne 0x140015342
test rax, rax
je 0x1400153bf
mov rax, rbx
inc rax
cmp word [rdi + rax*2], bp
jne 0x140015353
cmp rax, 0x103
jae 0x1400153bf
inc rbx
cmp word [rdi + rbx*2], bp
jne 0x140015364
mov r8, rdi
lea rcx, [rsp + 0x20]
mov edi, 0x104
mov edx, edi
call fcn.140001344
test eax, eax
js 0x1400153bf
cmp word [rsp + rbx*2 + 0x1e], 0x5c
je 0x1400153a6
lea rdx, [rbx + 2]
lea r8, [0x14003f0d0]
lea rcx, [rsp + 0x20]
call fcn.1400038d8
test eax, eax
js 0x1400153bf
mov r8d, edi
lea rcx, [rsp + 0x20]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x1400153bf
mov al, 1
jmp 0x1400153c1
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14002c700
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x140015540
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
and qword [rax - 0x28], 0
mov r14, rdx
mov dword [rax - 0x30], 0x80
mov edx, 0x80000000
xor r9d, r9d
mov dword [rax - 0x38], 3
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14001558a
xor eax, eax
jmp 0x14001568b
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test eax, eax
jne 0x1400155a6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140015583
test dil, 1
je 0x1400155c5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, edi
lea rcx, str.Invalid_file_lenght__lu_for_backup_document_file_n
call sub.msvcrt.dll_wprintf
jmp 0x140015583
mov ebp, edi
shr ebp, 1
mov ecx, ebp
add rcx, rcx
call qword [sym.imp.msvcrt.dll_malloc]
mov rsi, rax
mov rcx, rbx
test rax, rax
jne 0x1400155f3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Failed_to_allocate_memory_for_backup_document_buffer_n
call sub.msvcrt.dll_wprintf
jmp 0x140015583
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
test eax, eax
jne 0x140015625
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
jmp 0x140015583
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, dword [rsp + 0x70]
je 0x140015652
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov r8d, dword [rsp + 0x70]
lea rcx, str.Backup_document_file_is_supposed_to_have__lu_bytes_but_only__lu_bytes_are_read_n
mov edx, edi
call sub.msvcrt.dll_wprintf
jmp 0x140015583
mov rcx, qword [r14]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
and qword [r14], 0
mov r8d, ebp
mov rdx, rsi
mov rcx, r14
call fcn.14000a054
test eax, eax
je 0x140015686
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
lea rcx, str.Failed_to_copy_from_temporary_buffer_into_Backup_Document_XML_string_n
jmp 0x1400155ec
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret