joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425e10
Capabilities:
Delete file
Set environment variable

Disassembly:
push rbp
push rbx
sub rsp, 0x98
mov rbp, rsp
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x80], 0
mov qword [rbp + 0x78], rbp
mov rax, qword [0x0042b3b0]
mov byte [rax], 1
nop
lea rcx, [0x00422b00]
call fcn.0040de30
nop
mov rax, qword [0x0042b0e0]
mov dword [rax], 0
mov rcx, qword [0x00422178]
mov dl, 1
call fcn.00422520
mov qword [0x00435318], rax
mov rcx, qword [0x00435318]
lea rdx, [0x004261bc]
call fcn.00422740
test al, al
je 0x426065
mov rax, qword [0x00435318]
mov rcx, qword [rax + 0x60]
lea rdx, [0x004352d4]
mov rax, qword [0x00435318]
movsxd r8, dword [rax + 0x68]
call fcn.00404e80
mov rcx, qword [0x00435318]
call fcn.00422610
mov rcx, qword [0x00435318]
lea rdx, [0x004261d0]
call fcn.00422740
test al, al
je 0x426022
lea rcx, [rbp + 0x70]
xor rdx, rdx
call fcn.00421e20
lea rcx, [0x004352f8]
mov rdx, qword [rbp + 0x70]
call fcn.00409ab0
lea rcx, [rbp + 0x60]
lea rdx, [0x004352d4]
call fcn.0040a4e0
lea rcx, [rbp + 0x68]
mov rdx, qword [0x004352f8]
mov r8, qword [rbp + 0x60]
call fcn.004218b0
lea rcx, [0x00435300]
mov rdx, qword [rbp + 0x68]
call fcn.00409ab0
mov rcx, qword [0x00435318]
mov rdx, qword [0x00435300]
call fcn.00422630
lea rcx, [rbp + 0x58]
lea rdx, [0x00421de0]
call fcn.0040d600
mov rcx, qword [rbp + 0x58]
call fcn.0040a380
mov rbx, rax
lea rcx, [rbp + 0x50]
call fcn.004216f0
mov rcx, qword [rbp + 0x50]
call fcn.0040a380
mov rcx, rbx
mov rdx, rax
call sub.kernel32.dll_SetEnvironmentVariableW
lea rcx, [rbp + 0x48]
mov rax, qword [0x0042b318]
mov rdx, qword [rax]
call fcn.0040a400
lea rcx, [0x00435310]
mov edx, 5
lea r8, [0x004261e4]
mov r9, qword [0x00435300]
lea rax, [0x0042620c]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [0x00426220]
mov qword [rsp + 0x30], rax
call fcn.0040a7f0
mov rcx, qword [0x00435310]
call fcn.00421fa0
mov rcx, qword [0x0042b0e0]
mov dword [rcx], eax
mov rcx, qword [0x00435300]
call fcn.0040a380
mov rcx, rax
call sub.kernel32.dll_DeleteFileW
jmp 0x4260a6
lea rcx, [rbp + 0x88]
lea rdx, [0x00421df0]
call fcn.0040d600
nop
mov rcx, qword [0x0042b1e0]
mov rdx, qword [rbp + 0x88]
call fcn.00406240
mov rcx, rax
call fcn.004063b0
call fcn.00404df0
nop
lea rcx, [rbp + 0x88]
call fcn.004095a0
jmp 0x4260a6
lea rcx, [rbp + 0x80]
lea rdx, [0x00421e10]
call fcn.0040d600
nop
mov rcx, qword [0x0042b1e0]
mov rdx, qword [rbp + 0x80]
call fcn.00406240
mov rcx, rax
call fcn.004063b0
call fcn.00404df0
nop
lea rcx, [rbp + 0x80]
call fcn.004095a0
mov rcx, qword [0x00435318]
call fcn.004068f0
nop
lea rcx, [rbp + 0x48]
mov edx, 6
call fcn.00409680
lea rcx, [rbp + 0x80]
mov edx, 2
call fcn.00409680
call fcn.00409200
jmp 0x4260e3
lea rsp, [rbp + 0x98]
pop rbx
pop rbp
ret
Function at 0x140001000
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
mov edx, 0x58
xor ecx, ecx
mov rbx, r8
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
xor edx, edx
mov rcx, rax
mov rbp, rax
lea r8d, [rdx + 0x58]
call fcn.140003280
or byte [rsi + 0xc2], 2
lea r9, [0x1400010b0]
mov qword [rsp + 0x38], rbx
xor r8d, r8d
mov byte [rsp + 0x30], 1
mov rdx, rsi
mov qword [rsp + 0x28], rdi
mov rcx, rbp
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_KeInitializeApc]
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_KeInsertQueueApc]
test al, al
jne 0x140001091
lea rcx, [0x140003660]
call sub.ntoskrnl.exe_DbgPrint
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140001178
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call fcn.140003280
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
test eax, eax
js 0x14000120a
cmp dword [rsp + 0x24], 0xa
jne 0x1400011c8
call fcn.140001224
jmp 0x14000120c
cmp dword [rsp + 0x24], 6
jne 0x14000120a
mov eax, dword [rsp + 0x28]
cmp eax, 3
jne 0x1400011df
call fcn.14000147c
jmp 0x14000120c
cmp eax, 2
jne 0x1400011f5
cmp byte [rsp + 0x13a], 1
jne 0x14000120a
call fcn.1400013d0
jmp 0x14000120c
cmp eax, 1
jne 0x14000120a
cmp byte [rsp + 0x13a], al
jne 0x14000120a
call fcn.14000131c
jmp 0x14000120c
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140002fe0
add rsp, 0x158
ret
Function at 0x14000167c
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, r8
mov qword [r11 - 0x50], rdx
and qword [r11 - 0x68], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
and qword [r11 - 0x58], 0
mov ecx, ecx
lea rdx, [r11 - 0x68]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x1400016e9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x1400016e9
mov eax, 0xc0000001
jmp 0x14000176d
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [rsp + 0x40]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov ebx, eax
mov dword [rsp + 0x38], eax
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140003280
mov rcx, qword [rsp + 0x40]
mov qword [rdi], rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140001760
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140002fe0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret

Function at 0x140001e68
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 8], rax
and qword [rbp - 0x50], 0
xorps xmm0, xmm0
and qword [rbp - 0x48], 0
mov qword [rbp - 0x40], rdx
lea rdx, [rbp - 0x50]
mov ecx, ecx
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140001ec3
lea rcx, [0x140003850]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
jmp 0x140001f01
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r9d, 0x8000
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x40]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
lea rcx, [rbp - 0x38]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140002fe0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rbp
ret
Function at 0x140001f80
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r15, rdx
mov edi, ecx
mov rax, cr8
xor ebx, ebx
test al, al
jne 0x1400020f9
test ecx, ecx
je 0x1400020f9
lea rdx, [0x1400037d0]
mov qword [rbp - 0x39], rbx
lea rcx, [rbp - 0x31]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rbp - 0x31]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
lea rdx, [0x140003810]
mov rsi, rax
lea rcx, [rbp - 0x31]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rbp - 0x31]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov r14, rax
test rax, rax
je 0x1400020f9
test rsi, rsi
je 0x1400020f9
lfence
mov ecx, edi
lea rdx, [rbp - 0x39]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rbp - 0x39]
test eax, eax
js 0x1400020ee
test rcx, rcx
je 0x1400020ee
lea rdx, [rbp - 1]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, qword [rbp - 0x39]
mov rax, rsi
call qword [0x1400041c0]
test rax, rax
je 0x140002091
mov eax, dword [rax + 0xc]
mov esi, dword [rax + 0x14]
mov edi, esi
xorps xmm0, xmm0
lea rcx, [rbp - 0x21]
movups xmmword [rbp - 0x21], xmm0
mov edx, dword [rdi + 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x21]
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x14000208c
mov edi, dword [rdi]
cmp rdi, rsi
je 0x1400020e0
jmp 0x14000205b
mov ebx, dword [rdi + 0x10]
jmp 0x1400020e0
mov rcx, qword [rbp - 0x39]
mov rax, r14
call qword [0x1400041c0]
mov rcx, qword [rax + 0x18]
mov rsi, qword [rcx + 0x20]
mov rdi, rsi
xorps xmm0, xmm0
lea rcx, [rbp - 0x11]
movups xmmword [rbp - 0x11], xmm0
mov rdx, qword [rdi + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov r8b, 1
lea rdx, [rbp - 0x11]
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
jne 0x1400020dc
mov rdi, qword [rdi]
cmp rdi, rsi
je 0x1400020e0
jmp 0x1400020a9
mov rbx, qword [rdi + 0x20]
lea rcx, [rbp - 1]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
jmp 0x1400020fb
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140002fe0
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002120
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x78
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r14, r9
mov ebx, r8d
mov rsi, rdx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x30], r9
and qword [rsp + 0x20], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
mov ecx, ecx
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov edi, eax
test eax, eax
jns 0x14000218c
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x14000218c
mov eax, 0xc0000001
jmp 0x1400021f7
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call fcn.140003380
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x1400021ea
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140002fe0
add rsp, 0x78
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002384
Capabilities:
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
and qword [rsp + 0x20], 0
lea rax, [rdx - 0x10001]
xorps xmm0, xmm0
mov ebx, ecx
movabs rcx, 0x7ffffffefffe
mov r14, r9
mov rdi, rdx
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
cmp rax, rcx
ja 0x1400024d4
mov edx, r8d
xor ecx, ecx
mov ebp, r8d
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rsi, rax
test rax, rax
jne 0x1400023fa
lea rcx, [0x140003830]
jmp 0x1400024db
mov r8, rbp
mov rdx, r14
mov rcx, rsi
call fcn.140003380
mov rcx, rbx
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jns 0x140002438
lea rcx, [0x140003850]
call sub.ntoskrnl.exe_DbgPrint
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1400024e0
lfence
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r8, rbp
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_MmCreateMdl]
mov rdi, rax
test rax, rax
je 0x1400024af
lfence
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmBuildMdlForNonPagedPool]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPages]
mov rbx, rax
test rax, rax
je 0x1400024a1
lfence
mov r8, rbp
mov rdx, rsi
mov rcx, rax
call fcn.140003380
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
xor ebx, ebx
jmp 0x1400024a6
mov ebx, 0xc0000001
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_IoFreeMdl]
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
jmp 0x1400024e5
lea rcx, [0x140003880]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xc0000001
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002fe0
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020514]
cmp r15, 1
jne 0x140004953
push qword [0x140020604]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x140020604]
call fcn.14000dd0c
mov rcx, qword [0x140020604]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x14002060c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205f4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push rdx
int 8
mov esp, 0xc6d5331f
or bl, byte [rsi]
push rdx
sub dword [rdx - 0x38c6dd87], ebx
invalid
invalid
mov ah, 0x9d
invalid
test dword [rdi - 0x707d1a93], 0x226c50a4
iretd
test byte [ecx - 0x38a22042], al
invalid
invalid
jrcxz 0x14003f722
mov al, 0x4a
invalid
invalid
repz ret
call 0x1639c2fa2
sub byte [0x1b870dd48], dl
sahf
sub dl, byte [rbp - 0x4b]
invalid
Function at 0x140007ce0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.14000c8c0
sub rsp, rax
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rsi, rdx
xor edi, edi
lea rdx, [0x14002b8c4]
call fcn.1400045b0
mov rbx, rax
test rax, rax
je 0x140007d42
lea rdx, [0x14002b9bc]
mov rcx, rsi
call fcn.1400045b0
mov rsi, rax
mov rcx, rbx
test rax, rax
jne 0x140007d4c
call fcn.1400100bc
mov eax, 0xffffffff
jmp 0x140007de1
call fcn.140010154
test eax, eax
jne 0x140007dcf
nop word [rax + rax]
mov r9, rbx
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call fcn.14001040c
test rax, rax
je 0x140007db6
mov r9, rsi
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call fcn.140010b4c
test rax, rax
je 0x140007db1
mov rcx, rsi
call fcn.140010180
test eax, eax
jne 0x140007db1
mov rcx, rbx
call fcn.140010154
test eax, eax
je 0x140007d60
jmp 0x140007dcf
mov rcx, rsi
jmp 0x140007dc5
mov rcx, rbx
call fcn.140010180
test eax, eax
je 0x140007dcf
mov rcx, rbx
call fcn.140017388
mov edi, 0xffffffff
mov rcx, rbx
call fcn.1400100bc
mov rcx, rsi
call fcn.1400100bc
mov eax, edi
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000c5c0
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140007e10
Capabilities:
Create directory

Disassembly:
push rdi
push r14
mov eax, 0x3058
call fcn.14000c8c0
sub rsp, rax
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rsp + 0x3030], rax
mov rdi, r8
mov r14, rcx
mov rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x140007e40
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdx + rcx], 0
jne 0x140007e51
inc rax
mov qword [rsp + 0x3050], rbx
add rax, rcx
mov qword [rsp + 0x3048], rbp
mov qword [rsp + 0x3040], rsi
cmp rax, 0x1000
jae 0x140007f46
mov r9, rdx
mov dword [rsp + 0x20], 0x5c
mov edx, 0x1000
lea r8, str._s_c
lea rcx, [rsp + 0x30]
call fcn.140001c80
mov edx, 0x5c
movsxd rbp, eax
mov rcx, rdi
call fcn.14000d480
mov rbx, rax
test rax, rax
je 0x140007f42
mov esi, 0x1000
sub rsi, rbp
lea rbp, [rsp + rbp + 0x30]
nop
mov r9d, ebx
mov qword [rsp + 0x20], rdi
sub r9d, edi
lea r8, [0x14002d55c]
mov rdx, rsi
mov rcx, rbp
call fcn.140001c80
lea rcx, [rsp + 0x30]
call fcn.140004550
test eax, eax
jne 0x140007f2c
mov r8d, 0x1000
lea rdx, [rsp + 0x1030]
lea rcx, [rsp + 0x30]
call fcn.140009400
mov rdx, qword [r14 + 0x3038]
lea rcx, [rsp + 0x1030]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140007f46
lea rcx, [rbx + 1]
mov edx, 0x5c
call fcn.14000d480
mov rbx, rax
test rax, rax
jne 0x140007ed0
xor eax, eax
jmp 0x140007f4b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x3040]
mov rbp, qword [rsp + 0x3048]
mov rbx, qword [rsp + 0x3050]
mov rcx, qword [rsp + 0x3030]
xor rcx, rsp
call fcn.14000c5c0
add rsp, 0x3058
pop r14
pop rdi
ret
Function at 0x140007f80
Capabilities:
Read file on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, rcx
mov rbp, r8
mov ecx, 0x2000
mov r14, rdx
xor r13d, r13d
call fcn.140014fb4
mov r15, rax
test rax, rax
je 0x140008093
xor edx, edx
mov r8d, 2
mov rcx, r12
call fcn.140010744
test eax, eax
js 0x140008093
mov rcx, r12
mov qword [rsp + 0x50], rbx
call fcn.140017938
mov rbx, rax
cmp rax, rbp
jb 0x14000808e
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
nop dword [rax + rax]
cmp rbx, 0x2000
lea rsi, [rbx - 0x2000]
cmovb rsi, r13
sub rbx, rsi
cmp rbx, rbp
jb 0x140008084
xor r8d, r8d
mov rdx, rsi
mov rcx, r12
call fcn.140010744
test eax, eax
js 0x140008084
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.14001040c
cmp rax, rbx
jne 0x140008084
sub rbx, rbp
add rbx, 1
je 0x14000806b
lea rdi, [r15 - 1]
add rdi, rbx
nop dword [rax]
nop dword [rax + rax]
mov r8, rbp
mov rdx, r14
mov rcx, rdi
call fcn.14002a8e0
test eax, eax
je 0x14000807d
dec rdi
sub rbx, 1
jne 0x140008050
lea rbx, [rbp - 1]
add rbx, rsi
test rsi, rsi
jne 0x140007ff0
jmp 0x140008084
lea r13, [rbx - 1]
add r13, rsi
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov rcx, r15
call fcn.140014fa0
mov rax, r13
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400081c0
Capabilities:
Create directory
Get disk information
Query environment variable

Disassembly:
push rdi
mov eax, 0x4040
call fcn.14000c8c0
sub rsp, rax
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rsp + 0x4030], rax
xor r8d, r8d
xor edx, edx
call fcn.140009400
mov rdi, rax
test rax, rax
jne 0x140008206
lea rcx, str.LOADER:_failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.140002810
xor eax, eax
jmp 0x14000838f
mov r8d, 0x1000
mov qword [rsp + 0x4058], rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rdi
mov ebx, eax
call fcn.140014fa0
test ebx, ebx
jne 0x140008243
lea rcx, str.LOADER:_failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.140002810
xor eax, eax
jmp 0x140008387
lea rcx, [rsp + 0x30]
call fcn.140009270
test eax, eax
je 0x1400082af
cmp word [rsp + 0x34], 0x5c
je 0x140008275
lea rcx, [rsp + 0x30]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140008262
mov eax, dword [0x14002d680]
mov dword [rcx], eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jg 0x1400082a0
mov r8d, eax
lea rdx, [rsp + 0x30]
lea rcx, str.LOADER:_runtime_tmpdir_points_to_non_existent_drive__ls__type:__d___n
call fcn.140002810
xor eax, eax
jmp 0x140008387
lea rcx, [rsp + 0x30]
call fcn.1400179dc
jmp 0x140008387
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
xor ecx, ecx
call fcn.140017e78
mov rbx, rax
test rax, rax
jne 0x1400082dc
lea rcx, str.LOADER:_failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.140002810
xor eax, eax
jmp 0x140008387
mov edx, 0x5c
mov rcx, rbx
call fcn.14000d640
mov rdi, rax
test rax, rax
je 0x14000833e
mov r9, rdi
mov qword [rsp + 0x20], rbx
sub r9, rbx
lea r8, str._.s
sar r9, 1
lea rcx, [rsp + 0x2030]
mov edx, 0x1000
call fcn.1400026b0
xor edx, edx
lea rcx, [rsp + 0x2030]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 0x5c
lea rcx, [rdi + 2]
call fcn.14000d640
mov rdi, rax
test rax, rax
jne 0x1400082f1
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140008384
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140008384
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rbx
lea r8, str.LOADER:_failed_to_create_runtime_tmpdir_path__ls__n
mov edx, eax
lea rcx, str.CreateDirectory
call fcn.140002c50
mov rcx, rbx
call fcn.140014fa0
xor eax, eax
jmp 0x140008387
mov rax, rbx
mov rbx, qword [rsp + 0x4058]
mov rcx, qword [rsp + 0x4030]
xor rcx, rsp
call fcn.14000c5c0
add rsp, 0x4040
pop rdi
ret