joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d410
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14004a110]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor eax, eax
mov edi, edx
mov rbx, rcx
mov dword [rsp + 0x30], 0x104
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
test edx, edx
je 0x14000d474
mov r8, qword [rcx + 0x20]
mov rax, qword [r8]
cmp rax, r8
je 0x14000d474
nop dword [rax + rax]
mov rcx, qword [rax + 0x10]
cmp dword [rcx], edx
je 0x14000d531
mov rax, qword [rax]
cmp rax, r8
jne 0x14000d460
lea rdx, [rsp + 0x20]
mov ecx, edi
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x14000d511
mov rcx, qword [rsp + 0x20]
lea r8, [rsp + 0x28]
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x14000d511
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x14000d511
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x14000d50b
mov r10, qword [rbx + 0x20]
mov rax, qword [r10]
cmp rax, r10
je 0x14000d50b
mov rcx, qword [rax + 0x10]
lea r9, [rsp + 0x40]
add rcx, 4
sub r9, rcx
movzx r8d, word [rcx]
movzx edx, word [rcx + r9]
sub r8d, edx
jne 0x14000d4f6
add rcx, 2
test edx, edx
jne 0x14000d4e0
test r8d, r8d
je 0x14000d505
mov rax, qword [rax]
cmp rax, r10
jne 0x14000d4d0
jmp 0x14000d50b
mov rcx, qword [rax + 0x10]
mov dword [rcx], edi
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14000d521
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14000d531
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140017a00
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x14000f810
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x58
xor ecx, ecx
lea rax, [rsp + 0x60]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionControls_FolderDisplay_shellexPropertySheetHandlersigfxOSP
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000f8aa
lea rax, str.FA507C3F_30C6_4DCA_9EE5_2656072EEC14
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsp + 0x68]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x28], 0x4e
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x14000f89e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x58
ret
mov al, 1
add rsp, 0x58
ret

Function at 0x14000f8c0
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x50
xor edi, edi
lea rax, [rsp + 0x68]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionControl_PanelCplsigfxcpl.cpl
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0xf003f
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000f962
lea rax, [rsp + 0x60]
mov qword [rsp + 0x78], rbx
mov rbx, qword [rsp + 0x70]
lea r9d, [rdi + 4]
lea rdx, str.RunLevel
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x60], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x14000f955
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov al, 1
add rsp, 0x50
pop rdi
ret
Function at 0x140010bb0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0xe0
xor eax, eax
xor ebx, ebx
lea rcx, [rsp + 0x78]
lea r8d, [rbx + 0x60]
xor edx, edx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call fcn.140017a30
lea rax, [rsp + 0x50]
lea rdx, [0x14004edb0]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
xor ecx, ecx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140010c3d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0xe0
pop rbx
ret
Function at 0x140010f30
Capabilities:
Delete registry key

Disassembly:
sub rsp, 0x48
xor eax, eax
lea r8, str.SOFTWAREMicrosoftWindowsCurrentVersionControl_PanelCpls
lea rcx, [rsp + 0x20]
mov r9d, 0xf003f
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x30], rax
call fcn.140005d10
test eax, eax
jne 0x140011021
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x40], rbx
test rcx, rcx
je 0x140010f8f
mov rbx, qword [rsp + 0x20]
lea r8, str.igfxcpl.cpl
mov rdx, rbx
call fcn.140007230
jmp 0x140011007
cmp byte [0x14004d1d0], 0
jne 0x140010fda
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010fca
lea rdx, [0x140033090]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x14004d1d0], 1
mov qword [0x14004d1c8], rax
jmp 0x140010fe1
mov rax, qword [0x14004d1c8]
mov byte [0x14004d1d0], 1
jmp 0x140010fe1
mov rax, qword [0x14004d1c8]
mov rbx, qword [rsp + 0x20]
lea rdx, str.igfxcpl.cpl
mov rcx, rbx
test rax, rax
je 0x140011001
mov r8d, dword [rsp + 0x28]
xor r9d, r9d
call rax
jmp 0x140011007
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test rbx, rbx
je 0x140011015
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140011031
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add rsp, 0x48
ret

Function at 0x140011040
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0xe0
xor eax, eax
xor ebx, ebx
lea rcx, [rsp + 0x78]
lea r8d, [rbx + 0x60]
xor edx, edx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call fcn.140017a30
lea rax, [rsp + 0x50]
lea rdx, [0x14004fe90]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
xor ecx, ecx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400110cd
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0xe0
pop rbx
ret
Function at 0x1400169f0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
lea rbx, [rcx + 0x10]
xor edx, edx
mov rdi, rcx
lea r9, [0x140037140]
lea rcx, [0x14003f700]
lea r8d, [rdx + 0x17]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140016a8c
mov rcx, qword [rbx]
test rcx, rcx
je 0x140016a8c
mov rax, qword [rcx]
xor ebx, ebx
add rdi, 0x18
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
lea rdx, str.ROOTCIMV2
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [rax + 0x18]
test eax, eax
js 0x140016a8c
mov rcx, qword [rdi]
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
lea edx, [rbx + 0xa]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x14001a710
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001a726
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001a728
xor eax, eax
test eax, eax
je 0x14001a738
mov ecx, eax
call fcn.14001d220
or eax, 0xffffffff
jmp 0x14001a73a
xor eax, eax
add rsp, 0x28
ret
Function at 0x1002a321
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r12
push r13
push r14
push rbx
xor r12d, r12d
mov r8d, dword [rcx + 0x3c]
mov r8d, dword [rcx + r8 + 0x88]
mov r9d, dword [rcx + r8 + 0x18]
mov r10d, dword [rcx + r8 + 0x20]
add r10, rcx
mov r11d, dword [rcx + r8 + 0x24]
add r11, rcx
cmp r12, r9
je 0x1002a399
mov r13d, dword [r10 + r12*4]
inc r12
add r13, rcx
xor r14d, r14d
movzx rax, byte [r13 + r14]
movzx rbx, byte [rdx + r14]
cmp al, bl
jne 0x1002a34c
test al, al
je 0x1002a37e
inc r14
jmp 0x1002a362
mov eax, dword [rcx + r8 + 0x1c]
add rax, rcx
dec r12
movzx edx, word [r11 + r12*2]
mov eax, dword [rax + rdx*4]
add rax, rcx
jmp 0x1002a39b
xor eax, eax
pop rbx
pop r14
pop r13
pop r12
ret
Function at 0x1400040b0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x1400040e4
cmp word [rcx], 0x5a4d
jne 0x1400040e4
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x1400040e4
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400040e4
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003ff0
test eax, eax
jne 0x140004100
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140004060
test rax, rax
je 0x1400040f5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400048b2
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400047b0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004750
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140005370
Capabilities:
Parse pe header

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

Function at 0x140005441
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14055e5b0]
mov r8, rcx
mov rcx, r9
call fcn.140005370
test eax, eax
je 0x14000546d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140005394
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001050
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, rcx
mov r13d, 0x2000
mov ecx, r13d
mov r15, r8
mov r14, rdx
xor esi, esi
call fcn.140013db4
mov rbp, rax
test rax, rax
jne 0x1400010b7
call fcn.140013d78
lea r9, [r14 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
lea rcx, str.malloc
mov edx, dword [rax]
call fcn.1400029d0
or eax, 0xffffffff
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
mov qword [rsp + 0x50], rbx
mov ebx, dword [r14 + 0xc]
test rbx, rbx
je 0x140001150
mov qword [rsp + 0x58], rdi
nop
cmp rbx, r13
mov rdi, rbx
mov r9, r12
mov r8d, 1
cmova rdi, r13
mov rcx, rbp
mov rdx, rdi
call fcn.14000f158
cmp rax, 1
jb 0x14000112a
mov r9, r15
mov r8d, 1
mov rdx, rdi
mov rcx, rbp
call fcn.14000f898
cmp rax, 1
jb 0x140001115
sub rbx, rdi
jne 0x1400010d0
jmp 0x14000114b
call fcn.140013d78
lea r8, str.Failed_to_extract__s:_failed_to_write_data_chunk__n
lea rcx, str.fwrite
jmp 0x14000113d
call fcn.140013d78
lea r8, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
mov edx, dword [rax]
lea r9, [r14 + 0x12]
call fcn.1400029d0
or esi, 0xffffffff
mov rdi, qword [rsp + 0x58]
mov rcx, rbp
call fcn.140013da0
mov rbx, qword [rsp + 0x50]
mov eax, esi
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x140001180
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x88
xor eax, eax
mov r14, r8
mov rbx, rdx
mov qword [rsp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x58], rax
lea rdx, str.1.3.1
mov qword [rsp + 0x60], rax
lea r8d, [rax + 0x58]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rsi, r9
mov ebp, eax
call fcn.14000c1f0
mov r15d, eax
test eax, eax
je 0x140001203
lea rdx, [rbx + 0x12]
mov r8d, eax
lea rcx, str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.1400027d0
or eax, 0xffffffff
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x2000
mov qword [rsp + 0x80], r13
call fcn.140013db4
mov r13, rax
test rax, rax
jne 0x140001240
call fcn.140013d78
lea r9, [rbx + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
lea rcx, str.malloc
mov edx, dword [rax]
call fcn.1400029d0
jmp 0x1400013a6
mov ecx, 0x2000
call fcn.140013db4
mov rbp, rax
test rax, rax
jne 0x140001275
call fcn.140013d78
lea r9, [rbx + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
lea rcx, str.malloc
mov edx, dword [rax]
call fcn.1400029d0
jmp 0x1400013a6
mov qword [rsp + 0xd0], r12
mov r12d, dword [rbx + 8]
mov eax, 0x2000
mov rbx, r12
cmp r12, rax
mov r9, rdi
mov edx, 1
mov rcx, r13
cmova rbx, rax
mov r8, rbx
call fcn.14000f158
cmp rax, rbx
jne 0x14000139a
mov rcx, rdi
call fcn.14000eecc
test eax, eax
jne 0x14000139a
sub r12, rbx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r13
nop dword [rax + rax]
mov ebx, 0x2000
mov qword [rsp + 0x30], rbp
xor edx, edx
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0x20]
call fcn.14000a830
or r15d, 0xffffffff
mov edi, eax
cmp eax, 0xfffffffc
jl 0x1400012ff
cmp eax, 0xfffffffe
jle 0x140001373
cmp eax, 2
je 0x14000136c
mov ecx, dword [rsp + 0x38]
sub rbx, rcx
test r14, r14
je 0x140001334
mov r9, r14
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.14000f898
cmp rax, rbx
jne 0x14000132f
mov rcx, r14
call fcn.14000eecc
test eax, eax
je 0x14000134a
mov edi, r15d
jmp 0x140001378
test rsi, rsi
je 0x14000134a
mov r8, rbx
mov rdx, rbp
mov rcx, rsi
call fcn.14000d940
add rsi, rbx
cmp dword [rsp + 0x38], 0
je 0x1400012d0
cmp edi, 1
je 0x140001395
test r12, r12
je 0x140001373
mov rdi, qword [rsp + 0xc0]
jmp 0x140001281
mov edi, 0xfffffffd
jmp 0x140001378
cmp edi, 1
je 0x140001395
mov rdx, qword [rsp + 0xc8]
lea rcx, str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
add rdx, 0x12
mov r8d, edi
call fcn.1400027d0
jmp 0x14000139e
xor r15d, r15d
jmp 0x14000139e
or r15d, 0xffffffff
mov r12, qword [rsp + 0xd0]
lea rcx, [rsp + 0x20]
call fcn.14000c040
mov rcx, r13
call fcn.140013da0
mov rcx, rbp
call fcn.140013da0
mov r13, qword [rsp + 0x80]
mov eax, r15d
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400013e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov ebx, dword [rdx + 0xc]
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test rbx, rbx
je 0x14000143c
mov r15d, 0x2000
nop
cmp rbx, r15
mov rdi, rbx
mov r9, rbp
mov r8d, 1
cmova rdi, r15
mov rcx, rsi
mov rdx, rdi
call fcn.14000f158
cmp rax, 1
jb 0x140001457
add rsi, rdi
sub rbx, rdi
jne 0x140001410
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
call fcn.140013d78
lea r9, [r14 + 0x12]
lea r8, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
mov edx, dword [rax]
call fcn.1400029d0
or eax, 0xffffffff
jmp 0x14000143e
Function at 0x140008340
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.14000ccf0
sub rsp, rax
mov rax, qword [0x14003f020]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rsi, rdx
xor edi, edi
lea rdx, [0x14002c8b4]
call fcn.140004750
mov rbx, rax
test rax, rax
je 0x1400083a2
lea rdx, [0x14002c9ac]
mov rcx, rsi
call fcn.140004750
mov rsi, rax
mov rcx, rbx
test rax, rax
jne 0x1400083aa
call fcn.14000ee08
or eax, 0xffffffff
jmp 0x140008432
call fcn.14000eea0
test eax, eax
jne 0x140008420
mov r9, rbx
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call fcn.14000f158
test rax, rax
je 0x140008409
mov r9, rsi
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call fcn.14000f898
test rax, rax
je 0x140008404
mov rcx, rsi
call fcn.14000eecc
test eax, eax
jne 0x140008404
mov rcx, rbx
call fcn.14000eea0
test eax, eax
je 0x1400083b3
jmp 0x140008420
mov rcx, rsi
jmp 0x140008418
mov rcx, rbx
call fcn.14000eecc
test eax, eax
je 0x140008420
mov rcx, rbx
call fcn.140016188
or edi, 0xffffffff
mov rcx, rbx
call fcn.14000ee08
mov rcx, rsi
call fcn.14000ee08
mov eax, edi
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000caf0
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140008460
Capabilities:
Create directory

Disassembly:
push rdi
push r14
mov eax, 0x3058
call fcn.14000ccf0
sub rsp, rax
mov rax, qword [0x14003f020]
xor rax, rsp
mov qword [rsp + 0x3030], rax
mov r9, rdx
mov rdi, r8
or rdx, 0xffffffffffffffff
mov r14, rcx
inc rdx
cmp byte [r8 + rdx], 0
jne 0x140008490
or rcx, 0xffffffffffffffff
nop
inc rcx
cmp byte [r9 + rcx], 0
jne 0x1400084a0
inc rcx
add rcx, rdx
cmp rcx, 0x1000
jb 0x1400084c1
or eax, 0xffffffff
jmp 0x1400085ac
mov qword [rsp + 0x3050], rbx
lea r8, str._s_c
mov qword [rsp + 0x3048], rbp
lea rcx, [rsp + 0x30]
mov edx, 0x1000
mov qword [rsp + 0x3040], rsi
mov dword [rsp + 0x20], 0x5c
call fcn.140001b20
mov edx, 0x5c
movsxd rbp, eax
mov rcx, rdi
call fcn.14000df30
mov rbx, rax
test rax, rax
je 0x140008592
mov esi, 0x1000
sub rsi, rbp
lea rbp, [rsp + rbp + 0x30]
mov r9d, ebx
mov qword [rsp + 0x20], rdi
sub r9d, edi
lea r8, [0x14002e54c]
mov rdx, rsi
mov rcx, rbp
call fcn.140001b20
lea rcx, [rsp + 0x30]
call fcn.1400046f0
test eax, eax
jne 0x14000857c
mov r8d, 0x1000
lea rdx, [rsp + 0x1030]
lea rcx, [rsp + 0x30]
call fcn.1400099b0
mov rdx, qword [r14 + 0x3038]
lea rcx, [rsp + 0x1030]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400085c7
lea rcx, [rbx + 1]
mov edx, 0x5c
call fcn.14000df30
mov rbx, rax
test rax, rax
jne 0x140008520
xor eax, eax
mov rbp, qword [rsp + 0x3048]
mov rbx, qword [rsp + 0x3050]
mov rsi, qword [rsp + 0x3040]
mov rcx, qword [rsp + 0x3030]
xor rcx, rsp
call fcn.14000caf0
add rsp, 0x3058
pop r14
pop rdi
ret
or eax, 0xffffffff
jmp 0x140008594
Function at 0x1400085d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x20
mov r15, rcx
mov rsi, r8
mov ecx, 0x2000
mov rbp, rdx
xor r12d, r12d
call fcn.140013db4
mov r14, rax
test rax, rax
je 0x1400086cb
xor edx, edx
lea r8d, [r12 + 2]
mov rcx, r15
call fcn.14000f490
test eax, eax
js 0x1400086cb
mov rcx, r15
mov qword [rsp + 0x40], rbx
call fcn.140016738
mov rbx, rax
cmp rax, rsi
jb 0x1400086c6
mov qword [rsp + 0x48], rdi
nop dword [rax + rax]
cmp rbx, 0x2000
lea rdi, [rbx - 0x2000]
cmovb rdi, r12
sub rbx, rdi
cmp rbx, rsi
jb 0x1400086c1
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call fcn.14000f490
test eax, eax
js 0x1400086c1
mov r9, r15
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14000f158
cmp rax, rbx
jne 0x1400086c1
sub rbx, rsi
add rbx, 1
je 0x1400086ac
nop dword [rax]
lea rcx, [r14 - 1]
mov r8, rsi
add rcx, rbx
mov rdx, rbp
call fcn.14000e110
test eax, eax
je 0x1400086ba
sub rbx, 1
jne 0x140008690
lea rbx, [rsi - 1]
add rbx, rdi
test rdi, rdi
jne 0x140008640
jmp 0x1400086c1
lea r12, [rbx - 1]
add r12, rdi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rcx, r14
call fcn.140013da0
mov rbp, qword [rsp + 0x50]
mov rax, r12
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140008800
Capabilities:
Create directory
Get disk information
Query environment variable

Disassembly:
push rdi
mov eax, 0x4040
call fcn.14000ccf0
sub rsp, rax
mov rax, qword [0x14003f020]
xor rax, rsp
mov qword [rsp + 0x4030], rax
xor r8d, r8d
xor edx, edx
call fcn.1400099b0
mov rdi, rax
test rax, rax
jne 0x140008846
lea rcx, str.LOADER:_failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.1400028d0
xor eax, eax
jmp 0x1400089cf
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.140013da0
test ebx, ebx
jne 0x140008883
lea rcx, str.LOADER:_failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.1400028d0
xor eax, eax
jmp 0x1400089c7
lea rcx, [rsp + 0x30]
call fcn.140009820
test eax, eax
je 0x1400088ef
cmp word [rsp + 0x34], 0x5c
je 0x1400088b5
lea rcx, [rsp + 0x30]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400088a2
mov eax, dword [0x14002e670]
mov dword [rcx], eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jg 0x1400088e0
mov r8d, eax
lea rdx, [rsp + 0x30]
lea rcx, str.LOADER:_runtime_tmpdir_points_to_non_existent_drive__ls__type:__d___n
call fcn.1400028d0
xor eax, eax
jmp 0x1400089c7
lea rcx, [rsp + 0x30]
call fcn.1400167dc
jmp 0x1400089c7
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
xor ecx, ecx
call fcn.140016c78
mov rbx, rax
test rax, rax
jne 0x14000891c
lea rcx, str.LOADER:_failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.1400028d0
xor eax, eax
jmp 0x1400089c7
mov edx, 0x5c
mov rcx, rbx
call fcn.14000e1d8
mov rdi, rax
test rax, rax
je 0x14000897e
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.140002770
xor edx, edx
lea rcx, [rsp + 0x2030]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 0x5c
lea rcx, [rdi + 2]
call fcn.14000e1d8
mov rdi, rax
test rax, rax
jne 0x140008931
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400089c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400089c4
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.140002c60
mov rcx, rbx
call fcn.140013da0
xor eax, eax
jmp 0x1400089c7
mov rax, rbx
mov rbx, qword [rsp + 0x4058]
mov rcx, qword [rsp + 0x4030]
xor rcx, rsp
call fcn.14000caf0
add rsp, 0x4040
pop rdi
ret