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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
sub rsp, 0x38
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x1400d6f50
test rdx, rdx
je 0x1400d6f50
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r14d, eax
mov dword [rsp + 0x70], r14d
and qword [rsp + 0x78], 0
mov eax, 2
mul r14
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140106180
mov rbx, rax
mov qword [rsp + 0x78], rax
jmp 0x1400d6e82
test rbx, rbx
jne 0x1400d6ec0
lea rax, [0x14014dd40]
mov rcx, qword [0x14014dd40]
cmp rcx, rax
je 0x1400d6eb6
test byte [rcx + 0x1c], 1
je 0x1400d6eb6
lea edx, [rbx + 0xb]
mov r9d, r14d
lea r8, [0x140128590]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov edi, 0x8007000e
jmp 0x1400d6f4c
mov r8d, r14d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1400d6f2f
lea rax, [0x14014dd40]
mov rcx, qword [0x14014dd40]
cmp rcx, rax
je 0x1400d6f10
test byte [rcx + 0x1c], 1
je 0x1400d6f10
call sub.KERNEL32.dll_GetLastError
mov r9d, eax
mov edx, SafeArrayGetDim
lea r8, [0x140128590]
mov rcx, qword [0x14014dd40]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
call sub.KERNEL32.dll_GetLastError
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
jmp 0x1400d6f3e
mov rdx, rbx
mov rcx, rsi
call fcn.1400d96cc
xor ebx, ebx
xor edi, edi
test rbx, rbx
je 0x1400d6f4c
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, edi
jmp 0x1400d6f83
lea rax, [0x14014dd40]
mov rcx, qword [0x14014dd40]
cmp rcx, rax
je 0x1400d6f7e
test byte [rcx + 0x1c], 1
je 0x1400d6f7e
mov edx, 0xa
lea r8, [0x140128590]
mov rcx, qword [rcx + 0x10]
call fcn.140003614
mov eax, 0x80070057
add rsp, 0x38
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400d729c
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor edi, edi
mov rbx, rcx
mov word [rsp + 0x30], di
test rcx, rcx
je 0x1400d7471
mov word [rcx], di
mov rdx, rcx
mov ecx, 0x104
call sub.KERNEL32.dll_GetTempPathW
test eax, eax
je 0x1400d7413
cmp word [rbx], di
je 0x1400d7413
mov rcx, rbx
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1400d7301
and eax, 0x10
jne 0x1400d7349
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400d7349
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d7341
test byte [rcx + 0x1c], 1
je 0x1400d7341
mov rcx, qword [rcx + 0x10]
lea r8, [0x140128590]
mov edx, reloc.OLEAUT32.dll_SafeArrayUnlock
mov r9, rbx
call fcn.140003638
mov word [rbx], di
jmp 0x1400d7450
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.KERNEL32.dll_GetLongPathNameW
dec eax
cmp eax, 0x102
ja 0x1400d73bf
lea r8, [rsp + 0x30]
mov edx, 0x104
mov rcx, rbx
call fcn.140036ea4
mov ebx, eax
test eax, eax
jns 0x1400d740f
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d746d
test byte [rcx + 0x1c], 1
je 0x1400d746d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140128590]
mov edx, reloc.OLEAUT32.dll_SafeArrayAccessData
mov r9d, ebx
call fcn.1400036d4
jmp 0x1400d746d
call sub.KERNEL32.dll_GetLastError
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
mov eax, 0x80004005
test r9d, r9d
cmovns r9d, eax
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d740f
test byte [rcx + 0x1c], 2
je 0x1400d740f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140128590]
mov edx, reloc.Cabinet.dll_FDIDestroy
call fcn.1400036d4
mov ebx, edi
jmp 0x1400d746d
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d7450
test byte [rcx + 0x1c], 1
je 0x1400d7450
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [0x14014dd40]
lea r8, [0x140128590]
mov r9d, eax
mov edx, reloc.Cabinet.dll_FDICreate
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
call sub.KERNEL32.dll_GetLastError
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov eax, ebx
jmp 0x1400d74a4
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d749f
test byte [rcx + 0x1c], 1
je 0x1400d749f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140128590]
mov edx, SafeArrayAccessData
call fcn.140003614
mov eax, 0x80070057
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140106ed0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x1400d74cc
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov edi, edx
mov rbp, rcx
call sub.KERNEL32.dll_GetTickCount
and dword [rsp + 0x20], 0
or r9d, 0xffffffff
xor r8d, r8d
mov rdx, rbx
mov ecx, edi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
mov ebx, eax
call sub.KERNEL32.dll_GetTickCount
mov rcx, qword [0x14014dd40]
lea rdx, [0x14014dd40]
cmp rcx, rdx
je 0x1400d754e
test byte [rcx + 0x1c], 4
je 0x1400d754e
cmp eax, esi
jb 0x1400d752e
sub eax, esi
jmp 0x1400d7532
sub eax, esi
dec eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x140128590]
mov edx, DispGetParam
mov dword [rsp + 0x20], eax
mov r9, rbp
call fcn.1400056b0
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400d756c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x30
and dword [rbp + 0x58], 0
mov esi, r9d
mov rbx, qword [rbp + 0x50]
mov r14, r8
mov dword [rbp + 0x48], r9d
mov rdi, rcx
mov dword [rbp + 0x30], 4
mov qword [rbp + 0x38], rcx
test rbx, rbx
je 0x1400d75a2
and dword [rbx], 0
lea rax, [rbp + 0x38]
mov r9d, 0x101
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400d75e8
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x58]
lea rax, [rbp + 0x48]
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400d75fc
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x1400d7611
jmp 0x1400d760d
cmp dword [rbp + 0x58], 4
jne 0x1400d7608
cmp dword [rbp + 0x30], 4
je 0x1400d761f
mov ecx, 0x8007065d
test ecx, ecx
jns 0x1400d761f
mov dword [rbp + 0x48], esi
test rbx, rbx
je 0x1400d761f
mov dword [rbx], 1
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x1400d7633
cmp rcx, rdi
je 0x1400d7633
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rbp + 0x48]
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400d7648
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x30
mov rdi, 0xffffffff80000002
mov dword [rbp + 0x38], 8
xor ebx, ebx
mov qword [rbp + 0x28], rdi
lea rax, [rbp + 0x28]
mov qword [rbp + 0x30], rbx
mov rcx, rdi
mov dword [rbp + 0x48], ebx
mov r9d, 0x101
mov qword [r11 - 0x28], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftSQMClientWindows
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400d76b9
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x1400d76f8
mov qword [rbp + 0x30], rbx
jmp 0x1400d7706
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x48]
lea rax, [rbp + 0x30]
xor r8d, r8d
lea rdx, str.TelemetryProtocolServerRoles
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400d76a1
cmp dword [rbp + 0x48], 0xb
jne 0x1400d76f3
cmp dword [rbp + 0x38], 8
je 0x1400d7706
mov ecx, 0x8007065d
mov rax, qword [rbp + 0x30]
test ecx, ecx
cmovs rax, rbx
mov qword [rbp + 0x30], rax
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x1400d771a
cmp rcx, rdi
je 0x1400d771a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbp + 0x30]
add rsp, 0x30
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400d79c0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x238]
sub rsp, 0x320
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rsi, rcx
xor r14d, r14d
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x40], r14d
xor edx, edx
mov r8d, 0x24c
lea rcx, [rsp + 0x44]
call sub.msvcrt.dll_memset
lea edx, [r14 + 0x40]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x3f
ja 0x1400d7a62
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x20]
call fcn.1400d8f6c
mov ebx, eax
test eax, eax
js 0x1400d7a7f
lea rdx, str._DB
lea rcx, [rsp + 0x20]
call fcn.1400d9104
mov ebx, eax
jmp 0x1400d7a7f
call sub.KERNEL32.dll_GetLastError
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
test ebx, ebx
jns 0x1400d7ac1
lea rax, [0x14014dd40]
mov rcx, qword [0x14014dd40]
cmp rcx, rax
je 0x1400d7bb3
test byte [rcx + 0x1c], 1
je 0x1400d7bb3
mov edx, 0x45
mov r9d, ebx
lea r8, [0x140128590]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
jmp 0x1400d7bb3
lea rdx, str.drivers.mrk
lea rcx, [rsp + 0x20]
call fcn.1400d9104
mov ebx, eax
test eax, eax
jns 0x1400d7b00
lea rax, [0x14014dd40]
mov rcx, qword [0x14014dd40]
cmp rcx, rax
je 0x1400d7bb3
test byte [rcx + 0x1c], 1
je 0x1400d7bb3
mov edx, 0x46
jmp 0x1400d7aa9
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
or rcx, 0xffffffffffffffff
cmp rax, rcx
jne 0x1400d7b26
mov ebx, 0x80070490
jmp 0x1400d7bb3
mov word [rbp + 0x172], r14w
lea rax, [rsp + 0x6c]
inc rcx
cmp word [rax + rcx*2], r14w
jne 0x1400d7b33
sub ecx, 1
movsxd rax, ecx
js 0x1400d7b60
cmp word [rsp + rax*2 + 0x6c], 0x2e
je 0x1400d7b57
dec ecx
sub rax, 1
jns 0x1400d7b45
jmp 0x1400d7b60
movsxd rax, ecx
mov word [rsp + rax*2 + 0x6c], r14w
lea rdx, [rsp + 0x6c]
mov rcx, rsi
call fcn.1400d8f6c
mov ebx, eax
test eax, eax
jns 0x1400d7ba6
lea rax, [0x14014dd40]
mov rcx, qword [0x14014dd40]
cmp rcx, rax
je 0x1400d7ba9
test byte [rcx + 0x1c], 1
je 0x1400d7ba9
mov edx, 0x47
mov r9d, ebx
lea r8, [0x140128590]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
jmp 0x1400d7ba9
mov ebx, r14d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.1400d9748
mov eax, ebx
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140106ed0
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400dc9ac
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xor r15d, r15d
lea rax, [rbp - 0x10]
mov r14, rdx
mov qword [rbp - 0x10], r15
lea rdx, str.SOFTWAREMicrosoftTelemetryClientOEMInfo
mov dword [rbp + 0x48], r15d
mov r9d, 0x101
mov dword [rbp + 0x30], r15d
xor r8d, r8d
mov dword [rbp + 0x40], r15d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400dca1a
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400dcb95
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x58], r15
xor r9d, r9d
mov qword [rsp + 0x50], r15
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor edx, edx
lea rax, [rbp + 0x30]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1400dca07
cmp dword [rbp + 0x48], r15d
jne 0x1400dca72
mov ebx, r15d
jmp 0x1400dcb95
mov eax, dword [rbp + 0x30]
inc eax
mov ecx, eax
mov dword [rbp + 0x30], eax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140106180
mov rsi, rax
test rax, rax
jne 0x1400dcaa9
mov ebx, 0x8007000e
jmp 0x1400dcb95
mov ecx, dword [rbp + 0x40]
add ecx, 2
mov eax, ecx
and eax, 1
add ecx, eax
mov dword [rbp + 0x40], ecx
call fcn.140106180
mov rdi, rax
test rax, rax
jne 0x1400dcad0
mov ebx, 0x8007000e
jmp 0x1400dcb7e
mov ebx, r15d
cmp dword [rbp + 0x48], r15d
jbe 0x1400dcb7b
mov r8d, dword [rbp + 0x30]
xor edx, edx
add r8, r8
mov rcx, rsi
call sub.msvcrt.dll_memset
mov r8d, dword [rbp + 0x40]
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
mov eax, dword [rbp + 0x30]
lea r9, [rbp - 0x1c]
mov rcx, qword [rbp - 0x10]
mov r8, rsi
mov dword [rbp - 0x1c], eax
mov edx, ebx
mov eax, dword [rbp + 0x40]
mov dword [rbp - 0x20], eax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_RegEnumValueW]
test eax, eax
jne 0x1400dcb70
cmp dword [rbp - 0x18], 1
jne 0x1400dcb70
lea rdx, str.OEMOptionalInfoId
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x1400dcb70
mov eax, dword [rbp - 0x20]
lea rcx, [r14 + 8]
shr rax, 1
mov r8, rdi
mov rdx, rsi
mov word [rdi + rax*2 - 2], r15w
call fcn.1400db078
inc ebx
cmp ebx, dword [rbp + 0x48]
jb 0x1400dcadd
mov ebx, r15d
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
test rdi, rdi
je 0x1400dcb95
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400dcba4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400df834
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push r12
push r14
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rbx, rcx
lea rax, [0x140118d20]
mov qword [rcx], rax
xor r14d, r14d
mov qword [rcx + 0x38], r14
mov qword [rcx + 0x40], r14
mov qword [rcx + 0x48], r14
mov qword [rcx + 0x50], r14
mov qword [rcx + 0x58], r14
mov qword [rcx + 0x60], r14
mov dword [rcx + 0x68], r14d
add rcx, 8
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [rbp + 0x20], r14d
lea rdx, str.TP_LOGGER_MAX_SESSION_LOGS
lea rcx, [rbp + 0x20]
call fcn.1400e17d4
mov r12, 0xffffffff80000002
test eax, eax
jns 0x1400df8cd
mov qword [rsp + 0x20], r14
mov r9d, dword [rbp + 0x20]
lea r8, str.LoggerMaxSessionLogs
lea rdx, str.SOFTWAREMicrosoftTelemetryClientDebug
mov rcx, r12
call fcn.1400d756c
jmp 0x1400df8d0
mov eax, r14d
mov dword [rbx + 0x60], eax
mov dword [rbp + 0x20], r14d
lea rdx, str.TP_LOGGER_ENABLED
lea rcx, [rbp + 0x20]
call fcn.1400e1868
test eax, eax
jns 0x1400df90b
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, str.LoggerEnabled
lea rdx, str.SOFTWAREMicrosoftTelemetryClientDebug
mov rcx, r12
call fcn.1400d756c
jmp 0x1400df90e
mov eax, r14d
mov dword [rbx + 0x64], eax
mov dword [rbp + 0x20], r14d
lea rdx, str.TP_LOGGER_BINARY_DUMP_ENABLED
lea rcx, [rbp + 0x20]
call fcn.1400e1868
test eax, eax
jns 0x1400df949
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, str.LoggerBinaryDumpEnabled
lea rdx, str.SOFTWAREMicrosoftTelemetryClientDebug
mov rcx, r12
call fcn.1400d756c
jmp 0x1400df94c
mov eax, r14d
mov dword [rbx + 0x68], eax
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], r14
xor r8d, r8d
xor edx, edx
lea rcx, str.TP_LOGGER_DIRECTORY
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
lea edx, [rsi - 1]
cmp edx, 0x7ffe
ja 0x1400df9b4
mov ecx, esi
add rcx, rcx
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400df9b4
mov r8d, esi
mov rdx, rax
lea rcx, str.TP_LOGGER_DIRECTORY
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400df9ab
cmp eax, esi
jae 0x1400df9ab
mov edx, 1
jmp 0x1400dfa07
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov esi, 1
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], r14d
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, str.LoggerDirectory
lea rdx, str.SOFTWAREMicrosoftTelemetryClientDebug
mov rcx, r12
call fcn.1400d772c
test eax, eax
jns 0x1400df9f8
mov edx, esi
lea rcx, [rbp - 0x18]
call fcn.1400d9748
mov rdi, r14
jmp 0x1400dfa10
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.msvcrt.dll__wcsdup]
mov rdi, rax
mov edx, esi
lea rcx, [rbp - 0x18]
call fcn.1400d9748
mov qword [rbx + 0x30], rdi
mov rax, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
Function at 0x1400dfab8
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x20
xor esi, esi
mov rbx, rcx
test r8, r8
je 0x1400dfb33
mov edx, 0x104
call qword [sym.imp.msvcrt.dll_wcscpy_s]
test eax, eax
je 0x1400dfae2
mov eax, 0x8007007a
jmp 0x1400dfb28
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], si
jne 0x1400dfae6
movsxd rcx, eax
mov edx, 0x5c
cmp word [rbx + rcx*2 - 2], dx
je 0x1400dfb0a
inc eax
cmp eax, 0x104
jae 0x1400dfadb
mov dword [rbx + rcx*2], edx
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400dfb26
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400dfb45
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rsi
ret
mov rdx, rcx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1400dfb5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x1400dfb28
cmp eax, 0x104
jae 0x1400dfadb
lea r8, str.TpLogger_
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcscat_s]
test eax, eax
je 0x1400dfb0a
mov eax, 0x80004005
jmp 0x1400dfb28
Function at 0x1400e1614
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rax, qword [rcx]
xor ebp, ebp
mov rsi, r9
mov rdi, r8
mov r9, rdx
mov rbx, rcx
test rax, rax
je 0x1400e164d
mov word [rax], bp
mov dword [rcx + 0xc], ebp
lea rdx, [rsp + 0x40]
mov r14d, pe_nt_image_headers64
mov rcx, r9
mov r8d, r14d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1400e1681
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
jmp 0x1400e169c
cdqe
cmp rax, r14
jae 0x1400e16a0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400d8f6c
test eax, eax
mov ecx, ebp
cmovs ecx, eax
test ecx, ecx
jns 0x1400e1713
mov r14d, 1
lea rdx, str.SOFTWAREMicrosoftTelemetryClientDebug
mov dword [rsp + 0x30], r14d
xor r9d, r9d
mov dword [rsp + 0x28], ebp
mov r8, rdi
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rbx
call fcn.1400d772c
mov ecx, eax
test eax, eax
jns 0x1400e1713
mov dword [rsp + 0x30], r14d
lea rdx, str.SOFTWAREMicrosoftTelemetryClient
mov dword [rsp + 0x28], ebp
xor r9d, r9d
mov r8, rdi
mov qword [rsp + 0x20], rbx
mov rcx, 0xffffffff80000002
call fcn.1400d772c
mov ecx, eax
test eax, eax
jns 0x1400e1713
mov rdx, rsi
mov rcx, rbx
call fcn.1400d8f6c
test eax, eax
mov ecx, eax
cmovns ecx, r14d
mov eax, ecx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140106ed0
add rsp, 0x250
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400e17d4
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x230
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rsp + 0x220], rax
and dword [rcx], 0
mov rax, rdx
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov rcx, rax
mov r8d, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1400e1827
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x1400e1847
cdqe
cmp rax, 0x100
jb 0x1400e1838
mov eax, 0x8007007a
jmp 0x1400e1847
lea rcx, [rsp + 0x20]
call qword [sym.imp.msvcrt.dll__wtoi]
mov dword [rbx], eax
xor eax, eax
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140106ed0
add rsp, 0x230
pop rbx
ret

Function at 0x1400e1868
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x230
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rax, rdx
mov rdi, rcx
xor ebx, ebx
lea rdx, [rsp + 0x20]
mov dword [rcx], ebx
mov r8d, pe_nt_image_headers64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1400e18c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x1400e18e5
cdqe
cmp rax, 0x100
jb 0x1400e18d1
mov eax, 0x8007007a
jmp 0x1400e18e5
lea rcx, [rsp + 0x20]
call qword [sym.imp.msvcrt.dll__wtoi]
test eax, eax
setne bl
xor eax, eax
mov dword [rdi], ebx
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140106ed0
mov rbx, qword [rsp + 0x250]
add rsp, 0x230
pop rdi
ret
Function at 0x1400e190c
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor ebx, ebx
lea rax, [rcx + 0x48]
mov qword [rax + 0x30], rbx
mov rdi, rcx
mov dword [rax + 0x38], ebx
xor edx, edx
mov qword [rax + 0x28], rax
mov r8d, 0x110
lea rax, [rcx + 0x88]
mov qword [rax + 0x30], rbx
mov dword [rax + 0x38], ebx
mov qword [rax + 0x28], rax
lea rax, [rcx + 0xc8]
mov qword [rax + 0x30], rbx
mov dword [rax + 0x38], ebx
mov qword [rax + 0x28], rax
mov qword [rcx + 0x108], rbx
mov qword [rcx + 0x110], rbx
mov qword [rcx + 0x138], rbx
mov qword [rcx + 0x140], rbx
mov qword [rcx + 0x390], rbx
mov qword [rcx + 0x398], rbx
mov qword [rcx + 0x3a0], rbx
mov qword [rcx + 0x3a8], rbx
or dword [rcx + 0x350], 0xffffffff
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
mov qword [rcx + 0x10], rbx
mov qword [rcx + 0x18], rbx
mov qword [rcx + 0x20], rbx
mov qword [rcx + 0x28], rbx
mov qword [rcx + 0x30], rbx
mov qword [rcx + 0x368], rbx
mov qword [rcx + 0x370], rbx
mov qword [rcx + 0x378], rbx
mov qword [rcx + 0x380], rbx
mov qword [rcx + 0x118], rbx
mov qword [rcx + 0x120], rbx
mov qword [rcx + 0x128], rbx
mov dword [rcx + 0x130], ebx
mov dword [rcx + 0x388], ebx
lea rcx, [rsp + 0x24]
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call sub.KERNEL32.dll_GetVersionExW
test eax, eax
jne 0x1400e1a5f
mov rax, qword [0x14014dd40]
lea rcx, [0x14014dd40]
cmp rax, rcx
je 0x1400e1a67
test byte [rax + 0x1c], 1
je 0x1400e1a67
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [0x14014dd40]
lea edx, [rbx + 0x3e]
mov r9d, eax
lea r8, [0x140128590]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
jmp 0x1400e1a67
cmp dword [rsp + 0x24], 6
setae bl
mov dword [rdi + 0x40], ebx
mov rax, rdi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140106ed0
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret