joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002ea90
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.1400750a0
mov qword [rsi], 0
test rax, rax
je 0x14002eae3
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002eb17
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14002eadb
mov qword [rsi], rbx
call fcn.140072b20
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.140071a70
lea rcx, [rsi + 0x20]
call fcn.140078100
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.140072b20
mov rcx, qword [rsi]
call fcn.1400759f0
mov qword [rsi], 0
jmp 0x14002eac9

Function at 0x14002f570
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.14002f630
mov eax, dword [rsi]
mov dword [0x140179f68], eax
test al, 1
jne 0x14002f591
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x14018a298]
test rcx, rcx
jne 0x14002f5ab
mov rcx, qword [0x14018a270]
test rcx, rcx
je 0x14002f5cf
jmp 0x14002f5f1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14018a298], 0
mov rcx, qword [0x14018a270]
test rcx, rcx
jne 0x14002f5f1
and byte [0x140179f68], 0xfe
mov ecx, 0x18
call fcn.1400a7064
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x14018a270], rax
mov rdx, qword [rsi + 8]
call fcn.14002b380
cmp dword [rsi + 0x14], 0
jne 0x14002f616
mov rcx, qword [0x14018a270]
cmp byte [rcx + 0x17], 0
jns 0x14002f610
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.1400f3010
Function at 0x140031c10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x140178028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x140156180]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.PathExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1d3
call fcn.140072b00
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140079ca0
cmp byte [rdi + 0x17], 0
jns 0x140031c94
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.140079d00
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400a8490
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x140031cd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x140178028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x140156180]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.DirectoryExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1fb
call fcn.140072b00
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140079ca0
cmp byte [rdi + 0x17], 0
jns 0x140031d54
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
setne al
and edi, 0x10
shr edi, 4
and dil, al
mov rcx, rsi
call fcn.140079d00
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400a8490
mov eax, edi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x140031da0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x140178028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1400aa5c0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
add edi, 0xfffffefc
cmp edi, 0xfffffefd
jb 0x140031e43
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.1400c6010
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.140071ad0
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.14002f1d0
mov rcx, r14
mov rdx, rsi
call fcn.140071c20
mov rcx, rsi
call fcn.140071ba0
mov rcx, rbx
call fcn.140071ba0
cmp edi, 0xfffffefd
setae bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400a8490
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140031e70
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140178028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400aa5c0
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140031f05
cmp word [rsp + 0x70], 0
je 0x140031f05
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400c6010
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.140071ad0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400a8490
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140156180]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.140071a50
mov rcx, rdi
call fcn.140031da0
test al, al
je 0x140031f45
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140071ab0
jmp 0x140031f64
lea rax, [0x140159a0c]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.140071ad0
lea rcx, [rsp + 0x40]
call fcn.140071ba0
jmp 0x140031ee7
Function at 0x140032340
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x568
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140178028]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rbx, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.1400aa5c0
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.140033bf0
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140156180]
movaps xmmword [rdi], xmm0
mov rcx, rbx
mov rdx, rdi
call fcn.140033d90
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x1400323d8
mov rax, qword [rsp + 0x38]
jmp 0x1400323db
and eax, 0x7f
test rax, rax
jne 0x14003241d
lea rcx, [rsp + 0x30]
call fcn.140071ba0
lea rcx, [rsp + 0x298]
call fcn.140033ce0
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.1400a8490
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r12d, r12d
mov r8d, 0x250
mov rcx, rbx
mov dl, 0xaa
call fcn.1400aa5c0
mov rcx, r15
mov rdx, rbx
call fcn.140033d50
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x14003253f
mov rcx, rbx
call fcn.140033b40
test al, al
jne 0x1400324ed
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14003247b
mov rcx, qword [rsp + 0x30]
call r13
test eax, eax
jne 0x140032575
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r12d, r12d
cmovne ebp, r12d
mov rcx, rbx
call fcn.140019c10
mov rcx, r15
mov rdx, rbx
call fcn.140033d90
mov rcx, rdi
mov rdx, rbx
call fcn.140071c20
mov rcx, rbx
call fcn.140071ba0
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x1400324d9
mov rax, qword [rsp + 0x38]
jmp 0x1400324dc
and eax, 0x7f
mov r12d, ebp
test rax, rax
je 0x1400323e0
jmp 0x140032434
xor ebp, ebp
test r14b, r14b
je 0x14003249c
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.140032340
test eax, eax
jne 0x140032592
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x140032519
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14003249c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x14003249c
test r14b, r14b
je 0x140032555
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x14003257c
mov rcx, qword [rsp + 0x30]
jmp 0x140032581
lea rcx, [rsp + 0x48]
call fcn.140033b40
test al, al
je 0x14003258c
lea rcx, [rsp + 0x48]
call fcn.140033b40
test al, al
je 0x14003246c
xor ebp, ebp
jmp 0x14003249c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14003245c
mov edx, dword [rsp + 0x48]
jmp 0x140032544
mov ebp, eax
jmp 0x14003249c
Function at 0x1400325b0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov esi, r8d
mov r14, rdx
mov r15, rcx
mov rax, qword [0x140178028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], r12
movaps xmm0, xmmword [0x140156180]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, DllRegisterServer
call fcn.140072b00
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140079ca0
test esi, esi
js 0x1400326b8
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.1400780e0
test al, al
jne 0x1400326bf
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0xaaaaaaaa
mov rcx, qword [r15]
mov qword [rsp + 0x20], 0
mov rdx, r14
mov r8d, esi
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [rdi]
lea rcx, [rsp + 0x30]
call fcn.140078170
lea rcx, [rsp + 0x50]
call fcn.140079d00
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400a8490
mov eax, esi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14003268b
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.1400f5f50
jmp 0x140032652

Function at 0x1400326e0
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov r14, rcx
mov rax, qword [0x140178028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rsi, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], rsi
movaps xmm0, xmmword [0x140156180]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.GetLength
lea r8, str....._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0xa8
call fcn.140072b00
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140079ca0
mov qword [rbx + 8], rsi
mov qword [rbx], 0
call fcn.1400780e0
test al, al
jne 0x1400327c4
lea rdi, [rsp + 0x28]
mov qword [rdi], rsi
mov rcx, qword [r14]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rdi]
lea rcx, [rsp + 0x30]
call fcn.140078170
lea rcx, [rsp + 0x50]
call fcn.140079d00
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400a8490
mov rax, rsi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, r14
xor r9d, r9d
call fcn.1400f5f50
jmp 0x140032771
Function at 0x1400327e0
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x140178028]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x50], r15
movaps xmm0, xmmword [0x140156180]
movaps xmmword [rbx + 0x40], xmm0
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.SetLength
lea r8, str....._base_files_file_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r9d, 0xb5
call fcn.140072b00
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.140079ca0
mov qword [rdi + 8], r15
mov qword [rdi], 0
call fcn.1400780e0
test al, al
jne 0x14003290c
lea r8, [rsp + 0x28]
mov qword [r8], r15
mov rcx, qword [rsi]
xor ebx, ebx
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400328d7
mov rcx, qword [rsi]
xor ebx, ebx
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400328d7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140032928
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsi]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
lea rcx, [rsp + 0x30]
call fcn.140078170
lea rcx, [rsp + 0x50]
call fcn.140079d00
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400a8490
mov eax, ebx
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rdx, str.File::SetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9, r14
call fcn.1400f5f50
jmp 0x14003287a
xor ebx, ebx
jmp 0x1400328d7
Function at 0x140032aa0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r15d, r8d
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x140178028]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x140156180]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
lea rdx, str.DoInitialize
lea r8, str....._base_files_file_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x16f
call fcn.140072b00
mov rcx, rbp
mov rdx, rdi
xor r8d, r8d
call fcn.140079ca0
mov eax, r15d
and eax, 1
neg eax
and eax, 3
test r15b, 2
mov edx, 1
cmove edx, eax
test r15b, 4
mov ecx, 4
cmovne edx, ecx
test r15b, 8
mov ebp, 2
cmove ebp, edx
test r15b, 0x10
mov eax, 5
cmove eax, ebp
test eax, eax
je 0x140032cf9
mov edx, r15d
and edx, 0x40
shl edx, 0x18
test r15b, 0x80
cmove ecx, edx
mov edx, r15d
rol edx, 0x1a
mov edi, r15d
shl edi, 0xb
and edi, 0x20000000
mov esi, r15d
shr esi, 4
and esi, 0x10000
and edx, 0x80000100
or edx, edi
or edx, esi
or edx, ecx
mov ecx, r15d
shr ecx, 8
and ecx, 3
mov r8d, r15d
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov edi, r15d
and edi, 0x400
mov ecx, edi
shl ecx, 0x14
mov ebp, r15d
shr ebp, 3
and ebp, 0x100
or ebp, ecx
mov ecx, r15d
shr ecx, 0xb
and ecx, 2
or ecx, ebp
mov ebp, r15d
shl ebp, 0xd
and ebp, 0x4000000
or ebp, ecx
mov ecx, r15d
shl ecx, 8
and ecx, 0xa000000
or ecx, ebp
cmp byte [rbx + 0x17], 0
jns 0x140032c0b
mov rbx, qword [rbx]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], 0
mov rcx, rbx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp qword [r14], rax
je 0x140032c67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r14]
inc rax
cmp rax, 2
jae 0x140032ce0
mov rax, rbx
inc rax
cmp rax, 2
jb 0x140032c5c
mov qword [r14], rbx
call fcn.140072b20
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [r14]
inc rbx
cmp rbx, 2
jb 0x140032cbb
shr edi, 0xa
mov dword [r14 + 0x24], 0
mov byte [r14 + 0x29], dil
test r15b, 4
jne 0x140032cce
test r15b, 0xa
je 0x140032c90
mov byte [r14 + 0x28], 1
lea rcx, [rsp + 0x60]
call fcn.140079d00
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400a8490
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140032930
mov dword [r14 + 0x24], eax
jmp 0x140032c90
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [r14 + 0x28]
jmp 0x140032c90
call fcn.140072b20
mov rcx, qword [r14]
call fcn.1400759f0
mov qword [r14], 0
jmp 0x140032c48
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [r14 + 0x24], 0xffffffff
jmp 0x140032c90
Function at 0x1400350d0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x140178028]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea r14, [rsp + 0x20]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.1400aa5c0
mov word [r14], 0
lea rcx, str.PROGRAMFILES
mov rdx, r14
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14003515d
mov edi, eax
sub rdi, 1
jb 0x14003515d
cmp word [rsp + rdi*2 + 0x20], 0x5c
je 0x14003512f
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140035149
mov rcx, qword [rsi]
lea r8, [rdi + 1]
mov rdx, r14
call fcn.1400bf934
test eax, eax
je 0x14003522a
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMFILES_X86_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x1400351b5
mov edi, eax
sub rdi, 1
jb 0x1400351b5
cmp word [rsp + rdi*2 + 0x20], 0x5c
je 0x140035187
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400351a1
mov rcx, qword [rsi]
lea r8, [rdi + 1]
mov rdx, r14
call fcn.1400bf934
test eax, eax
je 0x140035238
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMW6432
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140035209
mov edi, eax
sub rdi, 1
jb 0x140035209
cmp word [rsp + rdi*2 + 0x20], 0x5c
je 0x1400351df
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400351f9
mov rcx, qword [rsi]
lea r8, [rdi + 1]
mov rdx, r14
call fcn.1400bf934
test eax, eax
je 0x140035246
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400a8490
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x140035254
mov rcx, qword [rsi + 8]
jmp 0x140035259
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x14003527b
mov rcx, qword [rsi + 8]
jmp 0x140035280
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x1400352a5
mov rcx, qword [rsi + 8]
jmp 0x1400352aa
mov ecx, eax
and ecx, 0x7f
dec rcx
mov bl, 1
cmp rcx, rdi
je 0x14003520b
mov rcx, rsi
test al, al
jns 0x14003526d
mov rcx, qword [rsi]
cmp word [rcx + rdi*2 + 2], 0x5c
jne 0x14003515d
jmp 0x14003520b
mov ecx, eax
and ecx, 0x7f
dec rcx
mov bl, 1
cmp rcx, rdi
je 0x14003520b
mov rcx, rsi
test al, al
jns 0x140035294
mov rcx, qword [rsi]
cmp word [rcx + rdi*2 + 2], 0x5c
jne 0x1400351b5
jmp 0x14003520b
mov ecx, eax
and ecx, 0x7f
dec rcx
mov bl, 1
cmp rcx, rdi
je 0x14003520b
test al, al
jns 0x1400352bf
mov rsi, qword [rsi]
cmp word [rsi + rdi*2 + 2], 0x5c
jne 0x140035209
jmp 0x14003520b
Function at 0x140037b30
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov r14d, r9d
mov rdi, r8
mov rbx, rdx
mov r15, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r12d, dword [rsp + 0xc0]
mov rax, qword [0x140178028]
xor rax, rsp
mov qword [rsp + 0x58], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.1400a7064
mov rsi, rax
mov rax, qword [0x140179fe0]
and rax, rbx
cmp rax, qword [0x140179fc8]
jne 0x140037b95
mov rcx, rbx
call fcn.140077100
mov qword [rsi], rbx
test rdi, rdi
setne byte [rsi + 8]
mov dword [rsi + 0xc], r14d
mov dword [rsi + 0x10], r12d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x140038020]
xor ecx, ecx
mov rdx, r15
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, rax
test rax, rax
je 0x140037bfd
test rdi, rdi
je 0x140037c48
mov qword [rdi], r14
test r14, r14
setne bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400a8490
mov eax, ebx
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x140037c16
mov edi, eax
cmp eax, 0x5af
je 0x140037c16
cmp edi, 0xe
jne 0x140037c53
mov rcx, r15
call fcn.1400fc640
test rsi, rsi
je 0x140037bd9
mov rcx, qword [rsi]
mov rax, qword [0x140179fe0]
and rax, rcx
cmp rax, qword [0x140179fc8]
jne 0x140037c3e
call fcn.140077240
mov rcx, rsi
call fcn.1400a70a0
jmp 0x140037bd9
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140037bd9
mov eax, dword [0x14018a368]
mov ecx, dword [0x140187544]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140037ccb
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov edx, edi
call fcn.140037450
movzx eax, byte [rbx + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rbx]
cmovns rax, rbx
cmovs rcx, qword [rbx + 8]
lea rdx, [rsp + 0x48]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
mov rcx, qword [0x14018a360]
call fcn.140079240
cmp byte [rbx + 0x17], 0
jns 0x140037c1e
mov rcx, qword [rsp + 0x30]
call fcn.1400a70a0
jmp 0x140037c1e
lea rcx, [0x14018a368]
call fcn.1400a71c0
cmp dword [0x14018a368], 0xffffffff
jne 0x140037c74
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.1400381c0
mov qword [0x14018a360], rax
lea rcx, [0x14018a368]
call fcn.1400a7258
jmp 0x140037c74

Function at 0x140039f00
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14018a450]
mov ecx, dword [0x140187544]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140039f3b
movzx eax, word [0x14018a420]
cmp eax, 9
jne 0x140039f83
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x14018a450]
call fcn.1400a71c0
cmp dword [0x14018a450], 0xffffffff
jne 0x140039f25
xorps xmm0, xmm0
movups xmmword [0x14018a440], xmm0
movups xmmword [0x14018a430], xmm0
movups xmmword [0x14018a420], xmm0
lea rcx, [0x14018a420]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14018a450]
call fcn.1400a7258
jmp 0x140039f25
test eax, eax
je 0x140039f36
cmp eax, 6
jne 0x140039f93
mov eax, 2
jmp 0x140039f36
cmp eax, 0xc
jne 0x140039f9f
mov eax, 3
jmp 0x140039f36
mov eax, 4
jmp 0x140039f36
Function at 0x14003a6f0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x14003a7dc
cmp qword [rsi], 0
jne 0x14003a7dc
cmp dword [rsi + 0x14], 0
jne 0x14003a7dc
cmp qword [rsi + 8], 0
jne 0x14003a7dc
xor eax, eax
mov rbx, qword [rdi]
cmp rax, rbx
je 0x14003a75f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003a7ae
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14003a757
mov qword [rsi], rbx
call fcn.140072b20
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rdi + 8]
cmp qword [rsi + 8], rbp
je 0x14003a799
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14003a7c4
lea rax, [rbp + 1]
cmp rax, 2
jb 0x14003a791
mov qword [rsi + 8], rbp
call fcn.140072b20
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.140072b20
mov rcx, qword [rsi]
call fcn.1400759f0
mov qword [rsi], 0
jmp 0x14003a745
call fcn.140072b20
mov rcx, qword [rsi + 8]
call fcn.1400759f0
mov qword [rsi + 8], 0
jmp 0x14003a77e
mov rcx, rsi
call fcn.1400f9e30
mov rax, qword [rsi]
jmp 0x14003a729