joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14019e740
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov ebx, ecx
mov qword [rbp - 0x40], rdx
mov rsi, rdx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, ebx
mov dword [rbp - 0x44], ecx
mov rdx, rsi
mov qword [rbp - 0x4c], rdx
lea rcx, [rbp - 0x78]
call fcn.140007fd0
mov ecx, dword [rbp - 0x44]
mov rdx, qword [rbp - 0x4c]
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.140008020
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.140003a95
mov dword [rax + 0xe0], esi
mov eax, ebx
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14019ed90
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov ebx, edx
mov qword [rbp - 0x40], rcx
mov rsi, rcx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rsi
mov qword [rbp - 0x4c], rcx
mov edx, ebx
mov dword [rbp - 0x44], edx
lea rcx, [rbp - 0x78]
call fcn.140007fd0
mov rcx, qword [rbp - 0x4c]
mov edx, dword [rbp - 0x44]
call sub.KERNEL32.dll_GetSystemDirectoryW
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.140008020
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.140003a95
mov dword [rax + 0xe0], esi
mov eax, ebx
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14019fe80
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140007fd0
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.140008020
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.140003a95
mov dword [rax + 0xe0], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1401a0590
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x48], rax
mov ebx, r8d
mov qword [rbp - 0x40], rdx
mov rsi, rdx
test rcx, rcx
je 0x1401a05ca
add rcx, 0xc
mov rdi, rcx
jmp 0x1401a05cc
xor edi, edi
mov qword [rbp - 0x48], rdi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rdi
mov qword [rbp - 0x54], rcx
mov rdx, rsi
mov qword [rbp - 0x5c], rdx
mov r8d, ebx
mov dword [rbp - 0x4c], r8d
lea rcx, [rbp - 0x88]
call fcn.140007fd0
mov rcx, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x4c]
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.140008020
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
call fcn.140003a95
mov dword [rax + 0xe0], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1402110e0
Capabilities:
Get token membership

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xorps xmm4, xmm4
movups xmmword [rbp - 0x58], xmm4
xor eax, eax
mov qword [rbp - 0x48], rax
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov dword [rbp - 0x40], edx
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp + 0x20], rsi
xor edx, edx
cmp byte [rsi], 0
setne dl
mov dword [rbp - 0x40], edx
mov qword [rbp - 0x50], rcx
lea rdx, [rbp - 0x48]
cmp dword [rcx], ecx
call fcn.1401781c0
nop
lea rdi, [rbx + 0x10]
xor ecx, ecx
test rbx, rbx
cmove rdi, rcx
mov qword [rbp - 0x58], rdi
mov rcx, qword [rbp - 0x50]
mov rbx, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
lea r8, [rbp - 0x40]
mov qword [rbp - 0x60], r8
mov rcx, rbx
mov qword [rbp - 0x68], rcx
mov rdx, rdi
mov qword [rbp - 0x70], rdx
lea rcx, [rbp - 0x98]
call fcn.140007fd0
mov r8, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x70]
call sub.ADVAPI32.dll_CheckTokenMembership
mov ebx, eax
lea rcx, [rbp - 0x98]
call fcn.140008020
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor ecx, ecx
mov qword [rbp - 0x58], rcx
test ebx, ebx
setne bl
movzx ebx, bl
cmp dword [rbp - 0x40], 0
setne cl
mov rdi, qword [rbp + 0x20]
mov byte [rdi], cl
cmp byte [rbp - 0x48], 0
je 0x1402111cf
mov rcx, qword [rbp - 0x50]
cmp byte [rcx], cl
xor edx, edx
call fcn.140178200
call fcn.140003a95
mov dword [rax + 0xe0], esi
movzx eax, bl
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140300d40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x38
cmp r8d, 8
jge 0x140300ddd
xor eax, eax
cmp r8d, 4
jl 0x140300d91
add r8d, 0xfffffffc
movsx r10, word [rcx + rax*2]
movsx r9, dx
cmp r10d, r9d
je 0x140300dd8
nop dword [rax]
movsx r10, word [rcx + rax*2 + 2]
cmp r10d, r9d
je 0x140300dd1
movsx r10, word [rcx + rax*2 + 4]
cmp r10d, r9d
je 0x140300dc9
movsx r10, word [rcx + rax*2 + 6]
cmp r10d, r9d
je 0x140300dc1
add rax, 4
test r8d, r8d
jle 0x140300fba
movsx r9, dx
nop
dec r8d
movsx rdx, word [rcx + rax*2]
cmp edx, r9d
je 0x140300dd8
inc rax
test r8d, r8d
jg 0x140300da0
jmp 0x140300fba
add eax, 3
jmp 0x140300fb5
add eax, 2
jmp 0x140300fb5
inc eax
jmp 0x140300fb5
jmp 0x140300fb5
movsx r9, dx
movd xmm0, r9d
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
mov rax, rcx
lea edx, [r8 - 8]
movsxd rdx, edx
add rdx, rdx
lea r10, [rax + rdx]
movups xmm1, xmmword [rax]
pcmpeqw xmm1, xmm0
movaps xmmword [rsp + 0x20], xmm1
xorps xmm2, xmm2
pcmpeqw xmm1, xmm2
pmovmskb r9d, xmm1
cmp r9d, 0xffff
jne 0x140300ef6
add rax, 0x10
cmp rax, r10
jbe 0x140300e00
mov eax, r8d
test al, 7
je 0x140300fba
movups xmm1, xmmword [r10]
pcmpeqw xmm0, xmm1
movaps xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
pcmpeqw xmm0, xmm1
pmovmskb ecx, xmm0
cmp ecx, 0xffff
je 0x140300fba
mov rax, qword [rsp + 0x20]
mov qword [rsp + 8], rax
movzx eax, word [rsp + 8]
shr eax, 0xf
movzx ecx, word [rsp + 0xa]
shr ecx, 0xf
add ecx, ecx
or eax, ecx
movzx ecx, word [rsp + 0xc]
shr ecx, 0xf
shl ecx, 2
or ecx, eax
mov eax, ecx
movzx ecx, word [rsp + 0xe]
shr ecx, 0xf
shl ecx, 3
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x28]
mov qword [rsp], rcx
movzx ecx, word [rsp]
shr ecx, 0xf
movzx r8d, word [rsp + 2]
shr r8d, 0xf
add r8d, r8d
or ecx, r8d
movzx r8d, word [rsp + 4]
shr r8d, 0xf
shl r8d, 2
or r8d, ecx
mov ecx, r8d
movzx r8d, word [rsp + 6]
shr r8d, 0xf
shl r8d, 3
or r8d, ecx
mov ecx, r8d
shl ecx, 4
or eax, ecx
jne 0x140300fac
mov ecx, 0x20
jmp 0x140300faf
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x18], rdx
movzx edx, word [rsp + 0x18]
shr edx, 0xf
movzx r8d, word [rsp + 0x1a]
shr r8d, 0xf
add r8d, r8d
or edx, r8d
movzx r8d, word [rsp + 0x1c]
shr r8d, 0xf
shl r8d, 2
or r8d, edx
mov edx, r8d
movzx r8d, word [rsp + 0x1e]
shr r8d, 0xf
shl r8d, 3
or r8d, edx
mov edx, r8d
mov r8, qword [rsp + 0x28]
mov qword [rsp + 0x10], r8
movzx r8d, word [rsp + 0x10]
shr r8d, 0xf
movzx r10d, word [rsp + 0x12]
shr r10d, 0xf
add r10d, r10d
or r8d, r10d
movzx r10d, word [rsp + 0x14]
shr r10d, 0xf
shl r10d, 2
or r10d, r8d
mov r8d, r10d
movzx r10d, word [rsp + 0x16]
shr r10d, 0xf
shl r10d, 3
or r10d, r8d
mov r8d, r10d
shl r8d, 4
or edx, r8d
jne 0x140300f9d
mov r8d, 0x20
jmp 0x140300fa1
bsf r8d, edx
sub rax, rcx
shr rax, 1
add eax, r8d
jmp 0x140300fb5
bsf ecx, eax
shr rdx, 1
lea eax, [rdx + rcx]
add rsp, 0x38
ret
mov eax, 0xffffffff
add rsp, 0x38
ret
Function at 0x1400024a0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov rbp, r8
mov dword [rsp + 0x28], 0x80
mov rsi, rdx
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140002577
xor edx, edx
mov qword [rsp + 0x50], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140002547
mov ecx, ebx
call fcn.140002628
mov r9, rbp
mov qword [rsi], rax
mov r8d, ebx
mov qword [rsp + 0x20], 0
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140002567
mov rbx, qword [rsi]
mov rcx, rbx
call fcn.140002620
test rbx, rbx
je 0x140002547
mov qword [rsi], 0x8123
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140002552
mov rbp, qword [rsp + 0x58]
xor eax, eax
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140002f14
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002f5e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002f5e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002f5e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002f5e
cmp dword [rcx + 0x84], 0xe
jbe 0x140002f5e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002f60
xor al, al
add rsp, 0x28
ret
Function at 0x402260
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x40
test dl, 7
jne 0x4023bf
mov rsi, rcx
mov rcx, qword [rdx]
mov dword [rsp + 0x3c], 0xaaaaaaaa
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rdx, r8
mov r8d, eax
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x4022b0
mov edx, dword [rsp + 0x3c]
xor eax, eax
jmp 0x40239f
call sub.KERNEL32.dll_GetLastError
movzx ecx, ax
mov ax, 0xf
cmp ecx, 0x6c
jle 0x4022f9
cmp ecx, 0x3e4
jle 0x402340
cmp ecx, 0x6f8
je 0x40230c
cmp ecx, 0x718
je 0x40230c
cmp ecx, 0x3e5
jne 0x40239f
lea rcx, str.reached_unreachable_code
mov edx, 0x18
xor r9d, r9d
call fcn.00402230
cmp ecx, 0x20
jg 0x402321
cmp ecx, 6
je 0x402362
cmp ecx, 8
jne 0x40239f
mov word [rsp + 0x38], 0
mov dword [rsp + 0x34], 0
mov ax, 9
jmp 0x40239f
cmp ecx, 0x21
je 0x402377
cmp ecx, 0x40
jne 0x40239f
mov word [rsp + 0x38], 0
mov dword [rsp + 0x34], 0
mov ax, 0xe
jmp 0x40239f
cmp ecx, 0x6d
je 0x40238c
cmp ecx, 0x3e3
jne 0x40239f
mov word [rsp + 0x38], 0
mov dword [rsp + 0x34], 0
mov ax, 0xa
jmp 0x40239f
mov word [rsp + 0x38], 0
mov dword [rsp + 0x34], 0
mov ax, 0xb
jmp 0x40239f
mov word [rsp + 0x38], 0
mov dword [rsp + 0x34], 0
mov ax, 0xc
jmp 0x40239f
mov word [rsp + 0x38], 0
mov dword [rsp + 0x34], 0
mov ax, 8
mov qword [rsi], rdx
mov word [rsi + 8], ax
mov eax, dword [rsp + 0x34]
mov dword [rsi + 0xa], eax
movzx eax, word [rsp + 0x38]
mov word [rsi + 0xe], ax
mov rax, rsi
add rsp, 0x40
pop rsi
ret
lea rcx, [0x00444f85]
mov edx, 0x13
xor r9d, r9d
call fcn.00402230
int3
Function at 0x408bb0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
test dl, 7
jne 0x408ca0
mov rdi, r8
mov rsi, rcx
mov rbx, qword [rdx]
mov r14d, 0xffffffff
cmp r9, r14
cmovb r14, r9
lea r15, [rsp + 0x3c]
nop
mov dword [rsp + 0x3c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rdi
mov r8d, r14d
mov r9, r15
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x408c53
call sub.KERNEL32.dll_GetLastError
movzx eax, ax
cmp eax, 0x3e3
je 0x408be0
cmp eax, 0x6c
jg 0x408c39
cmp eax, 0x26
je 0x408c3e
cmp eax, 0x40
jne 0x408c62
mov word [rsp + 0x38], 0
mov dword [rsp + 0x34], 0
mov ax, 0xe
jmp 0x408c66
cmp eax, 0x6d
jne 0x408c5b
mov word [rsp + 0x38], 0
mov dword [rsp + 0x34], 0
xor eax, eax
xor ecx, ecx
jmp 0x408c66
mov ecx, dword [rsp + 0x3c]
xor eax, eax
jmp 0x408c66
cmp eax, 0x3e5
je 0x408c8c
mov ax, 0xf
mov qword [rsi], rcx
mov word [rsi + 8], ax
mov eax, dword [rsp + 0x34]
mov dword [rsi + 0xa], eax
movzx eax, word [rsp + 0x38]
mov word [rsi + 0xe], ax
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, str.reached_unreachable_code
mov edx, 0x18
xor r9d, r9d
call fcn.00402230
lea rcx, [0x00444f85]
mov edx, 0x13
xor r9d, r9d
call fcn.00402230
int3
Function at 0x423a80
Capabilities:
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
movaps xmmword [rsp + 0x260], xmm6
mov rdi, qword [rcx]
movaps xmm6, xmmword [0x00444a20]
movaps xmmword [rsp + 0x30], xmm6
movabs r14, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 4
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x28]
mov rcx, rdi
mov r9d, 8
call sub.ntdll.dll_NtQueryVolumeInformationFile
xor esi, esi
test eax, eax
jne 0x423c04
cmp dword [rsp + 0x28], 0x11
jne 0x423c04
xor esi, esi
lea rbx, [rsp + 0x54]
mov r8d, 0x20c
mov rcx, rbx
xor edx, edx
call fcn.00440060
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x20], 9
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov r8, rbx
mov r9d, 0x20c
call sub.ntdll.dll_NtQueryInformationFile
test eax, eax
je 0x423b44
cmp eax, 0xc000000d
jne 0x423c04
lea rcx, str.reached_unreachable_code
mov edx, 0x18
xor r9d, r9d
call fcn.00402230
mov eax, dword [rsp + 0x54]
add eax, 4
jb 0x423c66
cmp eax, 0x20d
jae 0x423c52
mov ecx, eax
mov rax, rcx
add rax, 0xfffffffffffffffc
je 0x423b83
test cl, 1
jne 0x423c7a
lea r14, [rsp + 0x58]
shr rax, 1
cmp rax, 6
jae 0x423b8b
jmp 0x423c02
xor eax, eax
cmp rax, 6
jb 0x423c02
lea rcx, str.msys_cygwin__pty.
cmp r14, rcx
je 0x423bbb
mov ecx, dword [r14]
mov r8d, dword [r14 + 4]
mov edx, dword [r14 + 8]
cmp r8d, 0x790073
jne 0x423bfc
cmp edx, 0x2d0073
jne 0x423bfc
cmp ecx, 0x6d005c
jne 0x423bfc
add rax, 0xfffffffffffffffd
lea rcx, [0x00446590]
jmp 0x423bd9
add r14, 2
test rax, rax
je 0x423c02
sub rax, 1
jb 0x423c52
mov sil, 1
cmp r14, rcx
je 0x423c04
cmp dword [r14], 0x70002d
jne 0x423bd0
cmp dword [r14 + 4], 0x790074
jne 0x423bd0
jmp 0x423c04
cmp rax, 8
jae 0x423c1b
xor esi, esi
mov eax, esi
movaps xmm6, xmmword [rsp + 0x260]
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
lea r9, [0x00446580]
cmp r14, r9
je 0x423bbb
xor esi, esi
cmp r8d, 0x670079
jne 0x423c04
cmp edx, 0x690077
jne 0x423c04
cmp ecx, 0x63005c
jne 0x423c04
cmp dword [r14 + 0xc], 0x2d006e
je 0x423bbb
jmp 0x423c04
lea rcx, str.index_out_of_bounds
mov edx, 0x13
xor r9d, r9d
call fcn.00402230
lea rcx, str.integer_overflow
mov edx, 0x10
xor r9d, r9d
call fcn.00402230
lea rcx, str.exact_division_produced_remainder
mov edx, 0x21
xor r9d, r9d
call fcn.00402230
int3
Function at 0x1400065d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.14000acb0
sub rsp, rax
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rsi, rdx
xor edi, edi
lea rdx, [0x14002b7a4]
call fcn.1400031a0
mov rbx, rax
test rax, rax
je 0x140006632
lea rdx, [0x14002b89c]
mov rcx, rsi
call fcn.1400031a0
mov rsi, rax
mov rcx, rbx
test rax, rax
jne 0x14000663c
call fcn.14000e444
mov eax, 0xffffffff
jmp 0x1400066d1
call fcn.14000e4dc
test eax, eax
jne 0x1400066bf
nop word [rax + rax]
mov r9, rbx
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call fcn.14000e794
test rax, rax
je 0x1400066a6
mov r9, rsi
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call fcn.14000eed4
test rax, rax
je 0x1400066a1
mov rcx, rsi
call fcn.14000e508
test eax, eax
jne 0x1400066a1
mov rcx, rbx
call fcn.14000e4dc
test eax, eax
je 0x140006650
jmp 0x1400066bf
mov rcx, rsi
jmp 0x1400066b5
mov rcx, rbx
call fcn.14000e508
test eax, eax
je 0x1400066bf
mov rcx, rbx
call fcn.1400170b4
mov edi, 0xffffffff
mov rcx, rbx
call fcn.14000e444
mov rcx, rsi
call fcn.14000e444
mov eax, edi
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000a9b0
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140006700
Capabilities:
Create directory

Disassembly:
push rdi
push r14
mov eax, 0x3058
call fcn.14000acb0
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 0x140006730
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdx + rcx], 0
jne 0x140006741
inc rax
mov qword [rsp + 0x3050], rbx
add rax, rcx
mov qword [rsp + 0x3048], rbp
mov qword [rsp + 0x3040], rsi
cmp rax, 0x1000
jae 0x140006836
mov r9, rdx
mov dword [rsp + 0x20], 0x5c
mov edx, 0x1000
lea r8, str._s_c
lea rcx, [rsp + 0x30]
call fcn.140001bd0
mov edx, 0x5c
movsxd rbp, eax
mov rcx, rdi
call fcn.14000b840
mov rbx, rax
test rax, rax
je 0x140006832
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, [0x14002d234]
mov rdx, rsi
mov rcx, rbp
call fcn.140001bd0
lea rcx, [rsp + 0x30]
call fcn.140003140
test eax, eax
jne 0x14000681c
mov r8d, 0x1000
lea rdx, [rsp + 0x1030]
lea rcx, [rsp + 0x30]
call fcn.140007800
mov rdx, qword [r14 + 0x3038]
lea rcx, [rsp + 0x1030]
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x140006836
lea rcx, [rbx + 1]
mov edx, 0x5c
call fcn.14000b840
mov rbx, rax
test rax, rax
jne 0x1400067c0
xor eax, eax
jmp 0x14000683b
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.14000a9b0
add rsp, 0x3058
pop r14
pop rdi
ret
Function at 0x1400069a0
Capabilities:
Create directory
Get disk information
Query environment variable

Disassembly:
push rdi
mov eax, 0x4040
call fcn.14000acb0
sub rsp, rax
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rsp + 0x4030], rax
xor r8d, r8d
xor edx, edx
call fcn.140007800
mov rdi, rax
test rax, rax
jne 0x1400069e6
lea rcx, str.LOADER:_failed_to_convert_runtime_tmpdir_to_a_wide_string._n
call fcn.140001e50
xor eax, eax
jmp 0x140006b67
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.140014c1c
test ebx, ebx
jne 0x140006a23
lea rcx, str.LOADER:_failed_to_expand_environment_variables_in_the_runtime_tmpdir._n
call fcn.140001e50
xor eax, eax
jmp 0x140006b5f
lea rcx, [rsp + 0x30]
call fcn.140007670
test eax, eax
je 0x140006a8f
cmp word [rsp + 0x34], 0x5c
je 0x140006a55
lea rcx, [rsp + 0x30]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140006a42
mov eax, dword [0x14002d350]
mov dword [rcx], eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 1
jg 0x140006a80
mov r8d, eax
lea rdx, [rsp + 0x30]
lea rcx, str.LOADER:_runtime_tmpdir_points_to_non_existent_drive__ls__type:__d___n
call fcn.140001e50
xor eax, eax
jmp 0x140006b5f
lea rcx, [rsp + 0x30]
call fcn.140017708
jmp 0x140006b5f
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
xor ecx, ecx
call fcn.1400179bc
mov rbx, rax
test rax, rax
jne 0x140006abc
lea rcx, str.LOADER:_failed_to_obtain_the_absolute_path_of_the_runtime_tmpdir._n
call fcn.140001e50
xor eax, eax
jmp 0x140006b5f
mov edx, 0x5c
mov rcx, rbx
call fcn.14000ba00
mov rdi, rax
test rax, rax
je 0x140006b1e
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.140006e10
xor edx, edx
lea rcx, [rsp + 0x2030]
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov edx, 0x5c
lea rcx, [rdi + 2]
call fcn.14000ba00
mov rdi, rax
test rax, rax
jne 0x140006ad1
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x140006b5c
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x140006b5c
mov r8, rbx
lea rdx, str.LOADER:_failed_to_create_runtime_tmpdir_path__ls__n
lea rcx, str.CreateDirectory
call fcn.140001ed0
mov rcx, rbx
call fcn.140014c1c
xor eax, eax
jmp 0x140006b5f
mov rax, rbx
mov rbx, qword [rsp + 0x4058]
mov rcx, qword [rsp + 0x4030]
xor rcx, rsp
call fcn.14000a9b0
add rsp, 0x4040
pop rdi
ret
Function at 0x140006b80
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x2280
call fcn.14000acb0
sub rsp, rax
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rsp + 0x2270], rax
mov rbp, rcx
lea r8, [0x14002d640]
mov r9, rcx
mov ebx, 0x1000
mov edx, ebx
lea rcx, [rsp + 0x270]
call fcn.140006e10
mov edi, eax
cmp eax, ebx
jge 0x140006cc3
dec edi
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
sub ebx, edi
call qword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140006cc3
nop
movzx edx, word [rsp + 0x4c]
movzx ecx, word [rsp + 0x4e]
cmp dx, 0x2e
jne 0x140006c27
test cx, cx
je 0x140006c93
cmp dx, dx
jne 0x140006c27
cmp cx, dx
jne 0x140006c27
cmp word [rsp + 0x50], 0
je 0x140006c93
movsxd rax, edi
lea rcx, [rsp + 0x270]
movsxd rdx, ebx
lea r9, [rsp + 0x4c]
lea r8, [0x14002d64c]
lea rcx, [rcx + rax*2]
call fcn.140006e10
cmp eax, ebx
jge 0x140006c93
mov eax, dword [rsp + 0x20]
test al, 0x10
je 0x140006c85
bt eax, 0xa
jae 0x140006c76
cmp dword [rsp + 0x44], 0xa000000c
jne 0x140006c76
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x140006c93
lea rcx, [rsp + 0x270]
call fcn.140006b80
jmp 0x140006c93
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x140006c00
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_FindClose]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
dec eax
neg eax
sbb eax, eax
jmp 0x140006cc8
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2270]
xor rcx, rsp
call fcn.14000a9b0
lea r11, [rsp + 0x2280]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret