joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800197d0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x18001983f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x180019828
mov qword [rsp + 0x38], rsi
mov rax, qword [rdi]
xor edx, edx
mov r8d, dword [rax + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18001981c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1800197f0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x180044548]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180019850
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180044550]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800198b4
mov eax, 0xa
jmp 0x180019943
test esi, esi
je 0x1800198d6
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800198f9
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800198f9
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800198f2
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800198f9
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180019960
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov r8d, dword [0x18004455c]
mov esi, ecx
xor ecx, ecx
mov ebx, ecx
test r8d, r8d
je 0x1800199a7
mov rax, qword [0x180044550]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x1800199b4
inc ebx
add rax, 0x38
cmp ebx, r8d
jb 0x180019990
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp ebx, 0xffffffff
je 0x1800199a7
test esi, esi
mov qword [rsp + 0x48], rdi
mov edx, 0xffffffff
setne cl
mov r8d, ecx
lea rcx, [rsp + 0x20]
call fcn.180019600
mov edi, eax
test eax, eax
jne 0x180019a9d
mov r9d, dword [0x18004455c]
cmp ebx, r9d
jae 0x180019a2c
nop dword [rax + rax]
mov ecx, ebx
imul rdx, rcx, 0x38
mov rcx, qword [0x180044550]
movzx r8d, byte [rdx + rcx + 0x20]
shr r8d, 1
and r8d, 1
cmp r8d, esi
je 0x180019a25
mov edx, esi
mov ecx, ebx
call fcn.180019850
mov edi, eax
test eax, eax
jne 0x180019a2c
mov r9d, dword [0x18004455c]
inc ebx
cmp ebx, r9d
jb 0x1800199f0
cmp qword [rsp + 0x20], 0
je 0x180019a9b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180019a87
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180019a78
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180019a50
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180044548]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x180019d20
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x180019d60
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180044560]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x180019d9e
cmp rsi, r14
jb 0x180019d96
cmp rsi, r15
jae 0x180019d96
cmp qword [rsi + 8], 0
jne 0x180019f67
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180019d81
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180019e32
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180019e29
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180019e29
cmp dword [rsp + 0x70], 0x10000
je 0x180019eab
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x180019e29
sub rbx, rbp
cmp rbx, r14
jae 0x180019df0
test rsi, rsi
jne 0x180019f10
cmp rdi, r15
ja 0x180019f4f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x180019f4f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180019f4f
cmp dword [rsp + 0x70], 0x10000
je 0x180019ee1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180019e62
jmp 0x180019f4f
test rbx, rbx
je 0x180019e29
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180019f10
cmp rbx, r14
jae 0x180019dd0
jmp 0x180019e32
test rdi, rdi
je 0x180019f4f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180019f10
cmp rdi, r15
jbe 0x180019e40
jmp 0x180019f4f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180019f20
mov rax, qword [0x180044560]
mov qword [rsi], rax
mov qword [0x180044560], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x140002160
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x270
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400a7470]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.14002a600
xor edi, edi
lea rdx, [0x140089e70]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
mov rcx, qword [0x1400a8288]
call fcn.140004360
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14000229d
lea rcx, [rsp + 0x30]
call fcn.140027320
nop
lea rdx, [0x140089ec0]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140025df0
mov rcx, qword [0x1400a8288]
cmp eax, 1
jbe 0x140002232
mov r8d, eax
lea rdx, [0x14008a030]
call fcn.1400041d0
jmp 0x140002290
lea rdx, [0x140089f60]
call fcn.1400041d0
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1400274d0
lea rdx, [0x140089fd8]
mov rcx, rbx
call fcn.140027a90
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140027770
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x140002279
lea edi, [rax + 1]
jmp 0x140002290
mov r8, qword [rbx]
lea rdx, [0x140089fe0]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
nop
lea rcx, [rsp + 0x30]
call fcn.140027b80
nop
jmp 0x1400022b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [0x14008a0c0]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
mov rcx, qword [0x1400a8288]
call fcn.1400043a0
mov r8d, edi
lea rdx, [0x14008a170]
mov rcx, qword [0x1400a8288]
call fcn.1400041d0
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140028060
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400041d0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
mov eax, 0x2860
call fcn.1400280a0
sub rsp, rax
mov rax, qword [0x1400a7470]
xor rax, rsp
mov qword [rsp + 0x2840], rax
cmp dword [rcx + 0x18], 0xffffffff
mov rdi, rcx
je 0x140004343
mov rcx, qword [rcx + 8]
mov edx, 0xffffffff
mov qword [rsp + 0x2858], rbx
mov qword [rsp + 0x2850], rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rbx, [rsp + 0x2880]
call fcn.140004d50
mov r9, qword [rsp + 0x2878]
lea rdx, [rsp + 0x840]
mov qword [rsp + 0x28], rbx
mov r8d, 0x7fffffff
xor ebx, ebx
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
call fcn.1400603e0
lea rcx, [rsp + 0x840]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rdi + 0x9c]
lea rdx, [0x14008bb7c]
call fcn.140048844
mov rsi, rax
test rax, rax
je 0x140004329
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0x400
lea r9, [0x14008bb88]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetTimeFormatW]
test eax, eax
je 0x1400042e8
mov eax, dword [rdi + 0x18]
lea r9, [rdi + 0x1c]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], eax
lea rdx, [0x14008bba8]
mov rcx, rsi
call fcn.140004ea0
mov rax, qword [rdi]
cmp dword [rax + 4], ebx
jle 0x140004309
mov rdx, rsi
lea rcx, [0x14008bbc8]
call fcn.14004854c
mov rax, qword [rdi]
inc ebx
cmp ebx, dword [rax + 4]
jl 0x1400042f0
mov rdx, rsi
lea rcx, [rsp + 0x840]
call fcn.14004854c
mov rcx, rsi
call fcn.140060b68
mov rcx, rsi
call fcn.1400604f0
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rsi, qword [rsp + 0x2850]
mov rbx, qword [rsp + 0x2858]
mov rcx, qword [rsp + 0x2840]
xor rcx, rsp
call fcn.140028060
add rsp, 0x2860
pop rdi
ret
Function at 0x140004450
Capabilities:
Check if file exists
Check mutex on windows
Get file attributes
Read file via mapping

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x460
mov rax, qword [0x1400a7470]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x240]
mov r8d, 0x208
call fcn.14002a600
mov r8d, 0x104
lea rdx, [rsp + 0x240]
mov rcx, rdi
call fcn.140004910
test eax, eax
je 0x140004655
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.14002a600
lea r8, [rsp + 0x240]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140034b0c
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r8, [rdi + 0x2a4]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi + 8], rax
test rax, rax
je 0x140004655
mov edx, 0xffffffff
mov qword [rsp + 0x480], rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r9d, r9d
lea rax, [rdi + 0x4ac]
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 8
lea r8d, [r9 + 4]
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x14000455f
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov qword [rdi + 8], rsi
jmp 0x14000464d
mov qword [rsp + 0x478], rbp
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi + 0x10]
cmp eax, 0xb7
sete bpl
xor esi, esi
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
lea edx, [rsi + 6]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi], rax
test rax, rax
jne 0x1400045c3
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 8]
mov qword [rdi + 0x10], rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], rsi
jmp 0x140004645
test bpl, bpl
jne 0x1400045d0
mov dword [rax], esi
mov rax, qword [rdi]
mov dword [rax + 4], esi
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400045f3
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140004680
lea rcx, [rdi + 0x9c]
mov edx, 0x104
lea r8, [rsp + 0x240]
call fcn.140034b0c
mov rcx, rdi
sub rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx + 0x1c], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140004620
mov rcx, qword [rdi]
mov eax, dword [rcx]
mov dword [rdi + 0x18], eax
inc dword [rcx]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbp, qword [rsp + 0x478]
mov rsi, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140028060
mov rbx, qword [rsp + 0x488]
add rsp, 0x460
pop rdi
ret
Function at 0x140004680
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rcx, rdx
mov r14, r8
mov rsi, rdx
xor ebx, ebx
call qword [sym.imp.SHLWAPI.dll_PathIsNetworkPathW]
test eax, eax
jne 0x140004847
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x140004847
mov qword [rsp + 0x30], rbp
mov rcx, rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140004814
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x1400046ee
cmp eax, 0xb7
jmp 0x140004823
inc r14
mov eax, 2
mul r14
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.140027f3c
mov rbp, rax
test rax, rax
je 0x14000482a
mov r8, rsi
mov rdx, r14
mov rcx, rax
call fcn.140034b0c
mov eax, 2
mul r14
cmovo rax, rdi
mov rcx, rax
call fcn.140027f3c
mov rdi, rax
test rax, rax
je 0x1400047ef
mov r8, rbp
mov rdx, r14
mov rcx, rax
call fcn.140034b0c
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov rdx, r14
mov rcx, rbp
mov r8, rax
call fcn.140034b0c
xor r8d, r8d
lea rdx, [0x140089fd8]
mov rcx, rbp
call fcn.140048510
test rax, rax
je 0x1400047ce
nop dword [rax + rax]
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400047b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400047ce
xor r8d, r8d
lea rdx, [0x140089fd8]
xor ecx, ecx
call fcn.140048510
test rax, rax
jne 0x140004790
mov rdx, rsi
mov rcx, rdi
call fcn.140035b8c
mov ecx, ebx
test eax, eax
mov ebx, 1
cmove ecx, ebx
mov ebx, ecx
mov rcx, rdi
call fcn.140027f44
mov rcx, rbp
call fcn.140027f44
mov rdi, qword [rsp + 0x38]
mov eax, ebx
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140004825
test eax, eax
jne 0x14000482a
mov ebx, 1
mov rdi, qword [rsp + 0x38]
mov eax, ebx
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000a4e0
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x8b0
mov rax, qword [0x1400a7470]
xor rax, rsp
mov qword [rsp + 0x8a0], rax
xor eax, eax
mov rsi, rcx
xor ebp, ebp
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0xa0]
mov qword [rsp + 0x68], rax
xor edx, edx
mov qword [rsp + 0x70], rax
mov r8d, 0x800
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov edi, ebp
mov qword [rsp + 0x88], rax
mov ebx, ebp
mov dword [rsp + 0x90], eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
call fcn.14002a600
mov r8, rsi
lea rcx, [rsp + 0xa0]
mov edx, 0x400
call fcn.140034b0c
lea edx, [rbp + 0x5c]
lea rcx, [rsp + 0xa0]
call fcn.140029c38
lea rcx, [rsp + 0xa0]
mov word [rax], bp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea r14d, [rbp + 8]
cmp eax, 0xffffffff
je 0x14000a5be
and eax, 0x410
cmp eax, 0x10
je 0x14000a5be
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
cmove ebx, r14d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000a651
bt eax, 0xa
jb 0x14000a626
mov qword [rsp + 0x30], rbp
lea r9, [rsp + 0x48]
mov dword [rsp + 0x28], 0x210400
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000a64b
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x14000a64b
cmp dword [rsp + 0x88], 1
jbe 0x14000a64b
mov r9d, 1
mov byte [rsp + 0x40], 1
lea r8, [rsp + 0x40]
mov rcx, rdi
lea edx, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
test eax, eax
mov ebx, r14d
cmovne ebx, ebp
cmp rdi, 0xffffffffffffffff
je 0x14000a65a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x8a0]
xor rcx, rsp
call fcn.140028060
lea r11, [rsp + 0x8b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000ae10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rdi, rdx
mov rbx, rcx
test r8b, r8b
je 0x14000ae65
mov eax, 1
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x58]
mov word [rsp + 0x50], ax
lea r8d, [rsi + 2]
mov rcx, rdi
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000af2b
cmp dword [rsp + 0x58], 2
jne 0x14000af2b
test byte [rbx + 0x818], 0x40
lea r9, [rsp + 0x58]
mov eax, esi
mov qword [rsp + 0x20], rsi
setne al
lea rdx, [rsp + 0x50]
inc ax
mov r8d, 2
mov rcx, rdi
mov word [rsp + 0x50], ax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000af2b
cmp dword [rsp + 0x58], 2
jne 0x14000af2b
movzx eax, word [rbx + 0x800]
lea r9, [rsp + 0x58]
mov r8d, 2
mov word [rsp + 0x50], ax
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000af2b
cmp dword [rsp + 0x58], 2
jne 0x14000af2b
mov r8d, dword [rbx + 0x800]
lea r9, [rsp + 0x58]
mov rdx, qword [rbx + 0x808]
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000af2b
mov eax, dword [rbx + 0x800]
cmp dword [rsp + 0x58], eax
jne 0x14000af2b
mov rdx, rdi
mov rcx, rbx
call fcn.14000da90
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 8
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000b530
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1400a7470]
xor rax, rsp
mov qword [rsp + 0x240], rax
test byte [rcx + 0x54], 1
mov rbx, rcx
je 0x14000b658
xor edi, edi
mov qword [rsp + 0x30], 0x11c
xor edx, edx
mov qword [rsp + 0x38], rdi
mov r8d, 0x100
mov dword [rsp + 0x40], edi
lea rcx, [rsp + 0x44]
call fcn.14002a600
xor eax, eax
mov word [rsp + 0x144], di
mov r8b, 1
mov dword [rsp + 0x146], eax
lea edx, [rdi + 2]
mov word [rsp + 0x14a], ax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [rdi + 2]
mov dword [rsp + 0x34], 5
mov r8, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x14000b658
lea rcx, [0x14008bd18]
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x14008bd90]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14000b607
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x20]
call rdi
test eax, eax
je 0x14000b63e
cmp dword [rsp + 0x20], 0
je 0x14000b63e
lea rcx, [0x14008bd18]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x14008bda0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000b651
lea rcx, [rbx + 0x48]
call rax
test eax, eax
je 0x14000b651
or dword [rbx + 0x50], 0x40
lea rcx, [rbx + 0x58]
mov edx, 0x400
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14000b6a1
mov eax, 8
jmp 0x14000b6ae
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, [0x14008bd70]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000b6a9
lea r9, [rsp + 0x30]
mov edx, 0x400
lea r8, [0x14008bd30]
lea rcx, [rbx + 0x58]
call fcn.14000de90
test eax, eax
js 0x14000b6a9
lea rcx, [rbx + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b6a9
or dword [rbx + 0x50], 0x20
xor eax, eax
jmp 0x14000b6ae
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140028060
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret