joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004dd30
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14008cf20
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400e8040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1400bc700
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0x800
mov rcx, qword [rbx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x3c]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14004de1b
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x14004ddcb
mov edi, 0x3f4
cmp eax, 1
jne 0x14004de1b
lea rdx, [rsp + 0x840]
jmp 0x14004de11
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1400bc700
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x14004de1b
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14004c1b0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14008cf80
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14004de40
Capabilities:
Set registry value

Disassembly:
xor r8d, r8d
test edx, edx
cmovg r8d, edx
lea rdx, str.PWALauncherResult
jmp 0x14004de40
push rsi
sub rsp, 0x40
mov rax, qword [0x1400e8040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x34], r8d
mov rcx, qword [rcx]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14008cf80
mov eax, esi
add rsp, 0x40
pop rsi
ret

Function at 0x14004e9e0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x14004ea3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x14004ea21
call fcn.1400598b0
mov rcx, qword [rsi]
call fcn.14004da60
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14004ea33
mov qword [rsi], rdi
call fcn.1400598b0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x14004ea55
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
int3
Function at 0x14004eab0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1400e8040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 1
jne 0x14004eadf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14004eae2
mov rcx, qword [rsi]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14004eb06
mov dil, 1
test bl, bl
je 0x14004eb6d
cmp byte [rsi + 8], 1
jne 0x14004eb33
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14004eb36
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 1
jne 0x14004eb1d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14004eb20
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14004eb43
xor edi, edi
jmp 0x14004eb6d
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14004eb6d
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 1
jne 0x14004eb5c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14004eb5f
mov rcx, qword [rsi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14008cf80
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140050e70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, rcx
mov rax, qword [0x1400e8040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1400c9a30]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
lea rdx, str.PathExists
lea r8, [0x1400d5304]
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x20e
call fcn.140059890
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140065100
cmp byte [rsi + 0x17], 0
jns 0x140050ee7
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rdi
call fcn.140065180
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14008cf80
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rsi, rcx
mov rax, qword [0x1400e8040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1400c9a30]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
lea rdx, str.DirectoryExists
lea r8, [0x1400d5304]
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x236
call fcn.140059890
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140065100
cmp byte [rsi + 0x17], 0
jns 0x140050f97
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
setne al
and esi, 0x10
shr esi, 4
and sil, al
mov rcx, rdi
call fcn.140065180
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14008cf80
mov eax, esi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x140050fe0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x1400e8040]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1400bc700
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14005107f
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call fcn.1400a7388
mov qword [rsp + 0x28], rax
lea rbx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140059a10
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.14005b210
mov rcx, rsi
mov rdx, r14
call fcn.140059be0
mov rcx, r14
call fcn.140059b70
mov rcx, rbx
call fcn.140059b70
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14008cf80
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400510b0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x288
mov rsi, rcx
mov rax, qword [0x1400e8040]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400bc700
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 0x140051128
cmp word [rsp + 0x70], 0
je 0x140051128
mov qword [rsp + 0x60], rdi
mov rcx, rdi
call fcn.1400a7388
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.140059a10
jmp 0x140051197
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1400c9a30]
movaps xmmword [rsp + 0x40], xmm0
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.1400599d0
mov rcx, rdi
call fcn.140050fe0
test al, al
je 0x14005116b
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400599f0
jmp 0x14005118d
lea rax, [0x1400d5356]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 3
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140059a10
lea rcx, [rsp + 0x40]
call fcn.140059b70
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14008cf80
mov rax, rsi
add rsp, 0x288
pop rdi
pop rsi
ret
Function at 0x140052120
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [0x1400e8040]
xor rax, rsp
mov qword [rsp + 0xc8], rax
test rcx, rcx
je 0x14005221d
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
xor r8d, r8d
call fcn.1400a4900
movaps xmm6, xmmword [0x1400c9a30]
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
lea rdx, str.ReadStreamToSpanWithMaxSize
lea r8, str....._base_files_file_util.cc
lea r14, [rsp + 0x40]
mov rcx, r14
mov r9d, 0x51
call fcn.140059890
lea rcx, [rsp + 0x80]
mov rdx, r14
xor r8d, r8d
call fcn.140065100
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x70], 0
mov rcx, rbx
call fcn.14009db54
mov ecx, eax
call fcn.14009dbac
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x140052224
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
shl rax, 0x20
or rax, rcx
test rax, rax
mov r14d, 0xffff
cmovg r14, rax
jmp 0x14005222a
xor ebx, ebx
jmp 0x1400522fd
mov r14d, 0xffff
cmp r14, rdi
cmovae r14, rdi
inc r14
movaps xmmword [rsp + 0x30], xmm6
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x30]
mov r8, r14
call qword [0x1400ddbf8]
xor r13d, r13d
mov ebp, 0x10000
lea r15, [rsp + 0x20]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
add rcx, r13
mov edx, 1
mov r8, r14
mov r9, rbx
call fcn.1400a4588
test rax, rax
je 0x1400522cb
mov r12, rax
mov rax, rdi
sub rax, r13
cmp rax, r12
jb 0x1400522c4
add r12, r13
mov rcx, rbx
call fcn.1400a3df0
test eax, eax
jne 0x1400522c8
test r13, r13
cmove r14, rbp
lea r8, [r12 + r14]
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
mov rcx, r15
call qword [0x1400ddbf8]
movups xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x30], xmm0
mov r13, r12
jmp 0x140052260
xor ebx, ebx
jmp 0x1400522db
mov r13, r12
mov rcx, rbx
call fcn.1400a3e1c
test eax, eax
sete bl
mov rdi, r13
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x20]
mov r8, rdi
call qword [0x1400ddbf8]
lea rcx, [rsp + 0x80]
call fcn.140065180
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.14008cf80
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140056240
Capabilities:
Delete file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x1400e8040]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.140056450
mov eax, dword [rsi]
mov dword [0x1400ea478], eax
mov bl, 1
test al, 1
je 0x140056378
mov rcx, qword [0x1400f9268]
test rcx, rcx
je 0x1400562a0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400f9268], 0
cmp qword [0x1400f9270], 0
jne 0x1400562a0
and byte [0x1400ea478], 0xfe
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x1400562cc
movsx rcx, byte [rsi + 0x1f]
test rcx, rcx
jns 0x1400562b7
mov rcx, qword [rsi + 0x10]
test rcx, rcx
jne 0x1400563a6
mov qword [0x1400f9268], rax
jmp 0x140056378
movsx rax, byte [rsi + 0x1f]
test rax, rax
jns 0x1400562da
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400563f5
lea rdi, [rsi + 8]
mov rcx, qword [0x1400f9270]
test rcx, rcx
jne 0x140056315
mov ecx, 0x18
call fcn.14008bb48
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1400f9270], rax
cmp rcx, rdi
je 0x140056355
cmp byte [rcx + 0x17], 0
movzx r8d, byte [rsi + 0x1f]
js 0x140056340
test r8b, r8b
js 0x140056391
mov rax, qword [rdi + 0x10]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rdi]
movups xmmword [rcx], xmm0
cmp dword [rsi + 0x24], 0
jne 0x140056371
jmp 0x14005635b
test r8b, r8b
jns 0x14005634d
mov r8, qword [rsi + 0x10]
mov rdi, qword [rsi + 8]
mov rdx, rdi
call fcn.14004c330
cmp dword [rsi + 0x24], 0
jne 0x140056371
mov rcx, qword [0x1400f9270]
cmp byte [rcx + 0x17], 0
jns 0x14005636b
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1400565d0
mov ebx, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14008cf80
mov eax, ebx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
call fcn.14004c3c0
cmp dword [rsi + 0x24], 0
jne 0x140056371
jmp 0x14005635b
lea rdx, str.BaseInitLoggingImpl_built_with_NDEBUG
lea r8, str....._baselogging.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x232
call fcn.140059890
lea rdx, str.settings.log_file_path.empty__
lea r14, [rsp + 0x48]
mov rcx, r14
mov r8d, 0x7f
mov r9, rdi
call fcn.14005fc40
mov rcx, r14
call fcn.14005fe20
mov rax, qword [rsi + 0x28]
jmp 0x1400562c0
lea rdx, str.BaseInitLoggingImpl_built_with_NDEBUG
lea r8, str....._baselogging.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x238
call fcn.140059890
lea rdx, str._settings.log_file_path.empty__
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r8d, 0x7f
mov r9, rdi
call fcn.14005fc40
lea rdx, str.LOG_TO_FILE_set_but_no_log_file_path_
mov rcx, rbx
call fcn.1400565a0
mov rcx, rbx
call fcn.14005fe20
jmp 0x1400562e3
Function at 0x14005c5c0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1400e8040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1400f9378]
test rdi, rdi
jne 0x14005c674
mov ecx, 0x50
call fcn.14008bb48
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.14008bb48
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x14005c696
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x1400f9378], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14005c696
mov rcx, rax
call fcn.1400a7388
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.14005c6a0
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14008cf80
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
ud2
Function at 0x14005c6a0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1400e8040]
xor rax, rsp
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x40]
mov r8d, 3
call fcn.14004e620
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14005c849
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, [0x1400d56c8]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14005c747
lea rdx, [0x1400d5718]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005c75a
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x1400ddbf8]
jmp 0x14005c755
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
jmp 0x14005c75c
xor ebx, ebx
movsxd r12, dword [rsp + 0x3c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x30], 0
test r12, r12
je 0x14005c7d7
test r12d, r12d
js 0x14005c86b
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.14008bb48
mov r14, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
add rax, r15
mov qword [rsp + 0x30], rax
xor r15d, r15d
nop dword [rax + rax]
test r14, r14
je 0x14005c869
mov rdx, qword [rbx + r15]
mov rcx, r14
call fcn.14001f850
add r14, 0x18
add r15, 8
cmp r12, r15
jne 0x14005c7b0
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14005c380
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14005c7fe
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x14005c849
mov rdi, qword [rsp + 0x28]
cmp rdi, rsi
je 0x14005c841
add rdi, 0xffffffffffffffe8
jmp 0x14005c82c
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
je 0x14005c841
test rdi, rdi
je 0x14005c869
cmp byte [rdi + 0x17], 0
jns 0x14005c820
mov rcx, qword [rdi]
call fcn.14008bb84
jmp 0x14005c820
mov rcx, rsi
call fcn.14008bb84
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008cf80
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2
lea rcx, [rsp + 0x20]
call fcn.14001ced0
int3
Function at 0x1400608c0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x1400e8040]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400bc700
mov word [rsp + 0x20], 0
lea rcx, str.PROGRAMFILES
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14006094e
mov ebx, eax
nop
cmp word [rsp + rbx*2 + 0x1e], 0x5c
jne 0x14006092f
dec rbx
jne 0x140060920
jmp 0x14006094e
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14006093b
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, rbx
call fcn.1400a21fc
test eax, eax
je 0x140060a2a
mov word [rsp + 0x20], 0
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x20]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x1400609ae
mov ebx, eax
nop word [rax + rax]
cmp word [rsp + rbx*2 + 0x1e], 0x5c
jne 0x14006098f
dec rbx
jne 0x140060980
jmp 0x1400609ae
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14006099b
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, rbx
call fcn.1400a21fc
test eax, eax
je 0x140060a41
mov word [rsp + 0x20], 0
lea rcx, str.PROGRAMW6432
lea rdx, [rsp + 0x20]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140060a0a
mov ebx, eax
nop word [rax + rax]
cmp word [rsp + rbx*2 + 0x1e], 0x5c
jne 0x1400609ef
dec rbx
jne 0x1400609e0
jmp 0x140060a0a
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400609fb
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, rbx
call fcn.1400a21fc
test eax, eax
je 0x140060a58
xor ebp, ebp
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14008cf80
mov eax, ebp
add rsp, 0x238
pop rbx
pop rbp
pop rdi
pop rsi
ret
movsx rax, byte [rsi + 0x17]
test rax, rax
js 0x140060a6f
mov bpl, 1
mov rcx, rax
cmp rax, rbx
je 0x140060a0c
jmp 0x140060a7b
movsx rax, byte [rsi + 0x17]
test rax, rax
js 0x140060a9d
mov bpl, 1
mov rcx, rax
cmp rax, rbx
je 0x140060a0c
jmp 0x140060aad
movsx rax, byte [rsi + 0x17]
test rax, rax
js 0x140060acf
mov bpl, 1
mov rcx, rax
cmp rax, rbx
je 0x140060a0c
jmp 0x140060adf
mov rcx, qword [rsi + 8]
mov bpl, 1
cmp rcx, rbx
je 0x140060a0c
cmp rcx, rbx
jb 0x140060afe
mov rcx, rsi
test al, al
jns 0x140060a8a
mov rcx, qword [rsi]
mov bpl, 1
cmp word [rcx + rbx*2], 0x5c
jne 0x14006094e
jmp 0x140060a0c
mov rcx, qword [rsi + 8]
mov bpl, 1
cmp rcx, rbx
je 0x140060a0c
cmp rcx, rbx
jb 0x140060afe
mov rcx, rsi
test al, al
jns 0x140060abc
mov rcx, qword [rsi]
mov bpl, 1
cmp word [rcx + rbx*2], 0x5c
jne 0x1400609ae
jmp 0x140060a0c
mov rcx, qword [rsi + 8]
mov bpl, 1
cmp rcx, rbx
je 0x140060a0c
cmp rcx, rbx
jb 0x140060afe
test al, al
jns 0x140060aeb
mov rsi, qword [rsi]
mov bpl, 1
cmp word [rsi + rbx*2], 0x5c
jne 0x140060a0a
jmp 0x140060a0c
ud2
Function at 0x140062440
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1400e8040]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x38]
mov r8d, 0x118
xor edx, edx
call fcn.1400bc700
mov dword [rsp + 0x34], 0x11c
lea rcx, [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x30], 0
mov ecx, dword [rsp + 0x38]
mov edx, dword [rsp + 0x3c]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x88
call fcn.14008bb48
mov rsi, rax
mov edi, dword [rsp + 0x30]
mov eax, dword [0x1400f9420]
mov ecx, dword [0x1400f65f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006250c
lea r8, [0x1400f93f0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140062610
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14008cf80
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1400f9420]
call fcn.14008bbcc
cmp dword [0x1400f9420], 0xffffffff
jne 0x1400624d8
xorps xmm0, xmm0
movups xmmword [0x1400f9410], xmm0
movups xmmword [0x1400f9400], xmm0
movups xmmword [0x1400f93f0], xmm0
lea rcx, [0x1400f93f0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400f9420]
call fcn.14008bc80
jmp 0x1400624d8

Function at 0x140062560
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400f9420]
mov ecx, dword [0x1400f65f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400625c1
movzx eax, word [0x1400f93f0]
cmp rax, 0xc
ja case.0x1400625a0.1
lea rcx, [0x1400d7ea4]
movsxd rdx, dword [rcx + rax*4]
add rdx, rcx
jmp rdx
mov eax, 2
jmp case.0x1400625a0.0
mov eax, 1
jmp case.0x1400625a0.0
mov eax, 3
jmp case.0x1400625a0.0
mov eax, 4
add rsp, 0x28
ret
lea rcx, [0x1400f9420]
call fcn.14008bbcc
cmp dword [0x1400f9420], 0xffffffff
jne 0x140062585
xorps xmm0, xmm0
movups xmmword [0x1400f9410], xmm0
movups xmmword [0x1400f9400], xmm0
movups xmmword [0x1400f93f0], xmm0
lea rcx, [0x1400f93f0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400f9420]
call fcn.14008bc80
jmp 0x140062585
Function at 0x140066e60
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
sete cl
mov rax, qword [rsi]
test rax, rax
sete dl
and dl, cl
cmp dl, 1
jne 0x140066e97
cmp dword [rsi + 0x14], 0
jne 0x140066e97
cmp qword [rsi + 8], 0
je 0x140066f9b
lea rcx, [rax + 1]
cmp rcx, 2
jb 0x140066eb7
call fcn.1400598b0
mov rcx, qword [rsi]
call fcn.14004da60
mov qword [rsi], 0
xor eax, eax
mov rcx, qword [rsi + 8]
lea rdx, [rcx + 1]
cmp rdx, 2
jb 0x140066ee0
call fcn.1400598b0
mov rcx, qword [rsi + 8]
call fcn.14004da60
mov qword [rsi + 8], 0
mov rax, qword [rsi]
xor ecx, ecx
mov qword [rsi + 0x10], 0
mov r14, qword [rdi]
cmp rax, r14
je 0x140066f36
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x140066f18
call fcn.1400598b0
mov rcx, qword [rsi]
call fcn.14004da60
mov qword [rsi], 0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140066f2a
mov qword [rsi], r14
call fcn.1400598b0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsi + 8]
mov r14, qword [rdi + 8]
cmp rcx, r14
je 0x140066f85
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jb 0x140066f6a
call fcn.1400598b0
mov rcx, qword [rsi + 8]
call fcn.14004da60
mov qword [rsi + 8], 0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140066f7d
mov qword [rsi + 8], r14
call fcn.1400598b0
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 rdi
pop rsi
pop r14
ret
xor ecx, ecx
xor eax, eax
jmp 0x140066ee8