joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140027964
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400279d3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400279d3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400279d3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400279d3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400279d3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400279d3
cmp dword [rcx + 0xf8], 0
je 0x1400279d3
mov ecx, ebx
call fcn.140027a84
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140027860
nop
cmp dword [rbp + 0x20], 0
je 0x140027a21
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140027a2c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140027964

Function at 0x140027b68
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400279d3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400279d3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400279d3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400279d3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400279d3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400279d3
cmp dword [rcx + 0xf8], 0
je 0x1400279d3
mov ecx, ebx
call fcn.140027a84
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140027860
nop
cmp dword [rbp + 0x20], 0
je 0x140027a21
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140027a2c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140027964
Function at 0x140038ac0
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
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140038b47
mov rsi, rbx
cmp word [rax], bp
je 0x140038b06
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140038af0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140038aec
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400366c8
mov rdi, rax
test rax, rax
je 0x140038b34
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003f640
mov rbp, rdi
xor ecx, ecx
call fcn.140034718
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003b24c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003b262
mov al, 1
jmp 0x14003b2c2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003b273
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003b2c0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140039264
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003b2c0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003b2c0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003b2c0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003b2c2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14003eef0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003ef18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003ef18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x100411cf0
Capabilities:
Encode data using xor

Disassembly:
rol dword [rdx + 0x1df57c2c], 0x36
jl 0x100411d0b
add eax, 0xbf7c48a6
push qword [rbx]
movsx rsi, byte [r12 + rsi]
invalid
xor al, 0x34
js 0x100411c93
wait
cmp byte [rcx - 0x48bce591], al
test dword [rdi], esi
xor al, 0x34
cmp byte [rbp + 0x351c58e0], 0x34
mov ebp, 0x351c58e0
xor al, 0x34
jl 0x100411caa
rcr byte [rax + 0x1c], 0x35
xor al, 0x34
xor ecx, dword [rcx + 2]
add dil, byte [r15 + 0x24bf3434]
jne 0x100411d68
xor r8d, dword [r14 - 0x40833bbc]
xor al, 0x34
Function at 0x140029b84
Capabilities:
Clear file content

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, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d124
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d124
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029cd4
cmp rax, 0xffffffffffffffff
je 0x140029cd4
xor edi, edi
test rbp, rbp
jle 0x140029c7f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fda4
mov rbx, rax
test rax, rax
jne 0x140029c0c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029c75
mov edx, 0x8000
mov ecx, r14d
call fcn.14001aac0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001de00
cmp eax, 0xffffffff
je 0x140029c55
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c1c
mov edx, r15d
mov ecx, r14d
call fcn.14001aac0
jmp 0x140029c75
cmp byte [rsi + 0x38], dil
je 0x140029c6c
cmp dword [rsi + 0x34], 5
jne 0x140029c6c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029c75
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b404
jmp 0x140029ce8
jns 0x140029ce8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d124
cmp rax, 0xffffffffffffffff
jne 0x140029ca0
cmp byte [rsi + 0x30], dil
je 0x140029ce8
mov edi, dword [rsi + 0x2c]
jmp 0x140029ce8
mov ecx, r14d
call fcn.1400195f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029ce8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029ce8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029ce1
mov eax, dword [rsi + 0x2c]
jmp 0x140029ce6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d124
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ade0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ae08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ae08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001914
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000195e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000195e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000195e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000195e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000195e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001960
xor al, al
add rsp, 0x28
ret
Function at 0x1400029c4
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140066010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rdx
mov rsi, rcx
lea rdx, str..NET_Runtime
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov r14, rax
xor r15d, r15d
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r15w
lea r8d, [r15 + 0x28]
lea rdx, str.Description:_A_.NET_application_failed._n
lea rcx, [rbp - 0x28]
call fcn.140004a58
lea r8d, [r15 + 0xd]
lea rdx, str.Application:
lea rcx, [rbp - 0x28]
call fcn.140004a58
or rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rdi + r8*2], r15w
jne 0x140002a47
mov rdx, rdi
mov rcx, rax
call fcn.140004a58
mov edi, 1
mov r8d, edi
lea rdx, [0x14004ec58]
mov rcx, rax
call fcn.140004a58
lea r8d, [rdi + 5]
lea rdx, str.Path:
lea rcx, [rbp - 0x28]
call fcn.140004a58
inc rbx
cmp word [rsi + rbx*2], r15w
jne 0x140002a87
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call fcn.140004a58
mov r8, rdi
lea rdx, [0x14004ec58]
mov rcx, rax
call fcn.140004a58
mov r8d, 9
lea rdx, str.Message:
lea rcx, [rbp - 0x28]
call fcn.140004a58
lea rdx, [0x140066540]
cmp qword [0x140066558], 8
cmovae rdx, qword [0x140066540]
mov r8, qword [0x140066550]
mov rcx, rax
call fcn.140004a58
mov r8, rdi
lea rdx, [0x14004ec58]
mov rcx, rax
call fcn.140004a58
lea rax, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rax, qword [rbp - 0x28]
mov qword [rbp - 0x30], rax
xor r8d, r8d
mov edx, edi
mov qword [rsp + 0x40], r15
lea rax, [rbp - 0x30]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r15d
mov word [rsp + 0x28], di
mov qword [rsp + 0x20], r15
mov r9d, 0x3ff
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x140002b8f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b8a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b8a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140040c5c
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140040c00
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005ddc
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbp
push rbx
push rsi
push rdi
push r13
mov rbp, rsp
sub rsp, 0x50
lea r13, [0x140068358]
mov qword [rbp - 0x20], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rdi, [rbp + 0x38]
call fcn.14000594c
mov rsi, rax
mov rcx, qword [rax]
or rcx, 1
mov qword [rsp + 0x28], rdi
and qword [rsp + 0x20], 0
mov r9, qword [rbp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf]
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
inc eax
movsxd rbx, eax
mov rdx, rbx
lea rcx, [rbp - 0x18]
call fcn.14000615c
nop
mov rcx, qword [rsi]
or rcx, 1
mov qword [rsp + 0x28], rdi
and qword [rsp + 0x20], 0
mov r9, qword [rbp + 0x30]
mov r8, rbx
mov rdx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vswprintf]
mov ecx, 0x10
mov rax, qword gs:[0x58]
mov rdi, qword [rax]
mov rax, qword [rcx + rdi]
test rax, rax
jne 0x140005ec9
mov rbx, qword [rbp - 0x18]
lea ecx, [rax + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputws]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, rax
mov ecx, 0xa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
jmp 0x140005ed3
mov rcx, qword [rbp - 0x18]
call qword [0x14004b5b0]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x140068388], 0
je 0x140005f34
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rbx, qword [0x140068380]
cmp rbx, rax
jne 0x140005f09
mov eax, 0x10
cmp qword [rax + rdi], 0
je 0x140005f34
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rbp + 0x30]
mov rdx, rbx
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vfwprintf]
mov ecx, 0xa
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140005f85
mov rax, qword [rbp - 8]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005f73
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005f73
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140040c5c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
and qword [rbp - 8], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x50
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000c754
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp qword [rcx + 0x18], 8
mov r15d, r9d
mov ebp, r8d
mov r14, rdx
mov rbx, rcx
jb 0x14000c782
mov rcx, qword [rcx]
xor edi, edi
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000c7dd
cmp qword [rbx + 0x18], 8
jb 0x14000c7be
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, str.Failed_to_map_file._CreateFileW__s__failed_with_error__d
mov r8d, eax
call fcn.140005ddc
xor eax, eax
jmp 0x14000c8c8
test r14, r14
je 0x14000c829
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14000c821
cmp qword [rbx + 0x18], 8
jb 0x14000c7fe
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, str.Failed_to_map_file._GetFileSizeEx__s__failed_with_error__d
mov r8d, eax
call fcn.140005ddc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000c7d6
mov rax, qword [rsp + 0x60]
mov qword [r14], rax
mov qword [rsp + 0x28], rdi
xor r9d, r9d
mov r8d, ebp
mov dword [rsp + 0x20], edi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbp, rax
test rax, rax
jne 0x14000c86f
cmp qword [rbx + 0x18], 8
jb 0x14000c855
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, str.Failed_to_map_file._CreateFileMappingW__s__failed_with_error__d
mov r8d, eax
call fcn.140005ddc
jmp 0x14000c8bc
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov edx, r15d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
jne 0x14000c8b0
cmp qword [rbx + 0x18], 8
jb 0x14000c898
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, str.Failed_to_map_file._MapViewOfFile__s__failed_with_error__d
mov r8d, eax
call fcn.140005ddc
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14000d8d8
Capabilities:
Query environment variable

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 r14
sub rsp, 0x20
xor r14d, r14d
mov rbx, rdx
mov qword [rdx + 0x10], r14
mov rdi, rcx
cmp qword [rdx + 0x18], 8
mov rax, rdx
jb 0x14000d90b
mov rax, qword [rdx]
xor r8d, r8d
mov word [rax], r14w
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebp, eax
test eax, eax
jne 0x14000d957
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x14000d953
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r8d, ax
mov rdx, rdi
or r8d, 0x80070000
lea rcx, str.Failed_to_read_environment_variable___s___HRESULT:_0x_X
test eax, eax
cmovle r8d, eax
call fcn.140005ddc
xor al, al
jmp 0x14000d99d
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rbp
cmovo rax, rcx
mov rcx, rax
call fcn.140040eec
mov r8d, ebp
mov rdx, rax
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000d92d
mov rdx, rsi
mov rcx, rbx
call fcn.1400049dc
mov rcx, rsi
call fcn.140040c5c
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000d9b8
Capabilities:
Create directory
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x140066010]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14000da58
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400049dc
xor edx, edx
mov rcx, rbx
call fcn.14000dc50
test al, al
je 0x14000da58
lea rdx, str..net
mov rcx, rbx
call fcn.14000657c
xor edx, edx
mov rcx, rbx
call fcn.14000dc50
test al, al
je 0x14000da26
mov al, 1
jmp 0x14000da5a
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14000da33
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000da4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000da58
xor edx, edx
mov rcx, rbx
call fcn.14000dc50
jmp 0x14000da5a
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140040c00
add rsp, 0x240
pop rbx
ret
Function at 0x1400216d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140066010]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r15b, dl
mov r14, rcx
mov qword [rsp + 0x40], rcx
xor r12d, r12d
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
lea rdx, [rsp + 0x70]
mov ebx, 0x104
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
jae 0x14002174e
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400049dc
jmp 0x1400217d7
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov rdi, r12
mov qword [rsp + 0x30], r12
mov edx, eax
test eax, eax
je 0x140021774
lea rcx, [rsp + 0x20]
call fcn.14000ec6c
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
sub rcx, rbx
sar rcx, 1
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1400217f6
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400049dc
nop
test rbx, rbx
je 0x1400217d7
sub rdi, rbx
sar rdi, 1
lea rdx, [rdi + rdi]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400217cf
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021826
mov rcx, rbx
call fcn.140040c5c
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
lea rcx, str.____Resolving_.NET_SDK_with_working_dir___s_
call fcn.140005ce4
jmp 0x140021861
test rbx, rbx
je 0x140021835
sub rdi, rbx
sar rdi, 1
lea rdx, [rdi + rdi]
mov rax, rbx
cmp rdx, 0x1000
jb 0x14002182d
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002182d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140040c5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
lea rcx, str.Failed_to_obtain_working_directory__HRESULT:_0x_X
call fcn.140005ddc
lea rcx, str.Failed_to_obtain_current_working_dir
call fcn.140005ce4
mov r8b, r15b
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.1400218e4
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1400218b7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400218b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400218b2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140040c5c
mov rax, r14
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140040c00
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x290
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140023804
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rdi, rdx
mov r14, rcx
lea rcx, str.____Begin_breadcrumb_write
call fcn.140005ce4
mov ecx, 0x90
call fcn.140040c20
mov rsi, rax
mov qword [rbp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, [0x14004e818]
mov qword [rsi], rax
lea rbx, [rsi + 0x10]
mov rdx, rdi
mov rcx, rbx
call fcn.14002351c
nop
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], rsi
cmp qword [rbx + 0x20], 0
jne 0x1400238dc
lea rcx, str.Breadcrumb_store_was_not_obtained..._skipping_write.
call fcn.140005ce4
and qword [r14], 0
and qword [r14 + 8], 0
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rsi + 8], eax
add eax, ebx
jne 0x1400238c6
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax]
call qword [0x14004b5b0]
mov eax, ebx
lock xadd dword [rsi + 0xc], eax
add eax, ebx
jne 0x1400238c6
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [0x14004b5b0]
mov rax, r14
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret
lock inc dword [rsi + 8]
mov rbx, qword [rbp - 0x10]
mov qword [rbx], rbx
mov rdi, qword [rbx + 8]
mov qword [rbx + 8], rsi
test rdi, rdi
je 0x140023930
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x14002392c
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax]
call qword [0x14004b5b0]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x14002392c
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 8]
call qword [0x14004b5b0]
mov rbx, qword [rbp - 0x10]
mov ecx, 0x10
call fcn.140040c20
mov qword [rax], rbx
lea rcx, [0x140023be0]
mov qword [rax + 8], rcx
mov qword [rbp + 0x30], rax
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140023dc0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x1400239b3
cmp dword [rbx + 0x38], 0
jne 0x1400239ac
xorps xmm0, xmm0
movaps xmm1, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x20], xmm0
movdqu xmmword [rbx + 0x30], xmm1
cmp dword [rbp - 0x18], 0
jne 0x1400239ac
lea rcx, str.Breadcrumbs_will_be_written_using_a_background_thread
call fcn.140005ce4
mov qword [r14], rbx
mov qword [r14 + 8], rsi
jmp 0x1400238c6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
and dword [rbp - 0x18], 0
mov ecx, 6
call fcn.140046a58
int3

Function at 0x14002adb0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
mov rdx, rcx
lea rcx, str.Duplicate_runtime_property_found:__s
call fcn.140005ddc
lea rcx, str.It_is_invalid_to_specify_values_for_properties_populated_by_the_hosting_layer_in_the_the_applications_.runtimeconfig.json
add rsp, 0x28
jmp fcn.140005ddc