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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140149038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x40], rax
movaps xmm0, xmmword [0x14012f810]
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, 0x209
call fcn.14007b560
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140074580
cmp byte [rdi + 0x17], 0
jns 0x140049790
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.1400747c0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140098a60
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400497d0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x140149038]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14009aba0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14004986f
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400bbae0
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14007b7d0
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140050830
mov rcx, rsi
mov rdx, r14
call fcn.14007ba10
mov rcx, r14
call fcn.14007b990
mov rcx, rbx
call fcn.14007b990
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140098a60
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400498a0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140149038]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14009aba0
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 0x14004994e
cmp word [rsp + 0x70], 0
je 0x14004994e
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400bbae0
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.14007b7d0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140098a60
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14007b7b0
lea rcx, [rsp + 0x40]
call fcn.14007b990
jmp 0x140049917
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14012f810]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.14007b790
mov rcx, rdi
call fcn.1400497d0
test al, al
jne 0x140049935
lea rax, [0x140134398]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.14007b7d0
jmp 0x140049942
Function at 0x14004a7f0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [0x140149038]
xor rax, rsp
mov qword [rsp + 0xc8], rax
test rcx, rcx
je 0x14004a9b9
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
xor r8d, r8d
call fcn.1400b4248
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x80]
mov qword [r14 + 0x40], rax
movaps xmm6, xmmword [0x14012f810]
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.ReadStreamToSpanWithMaxSize
lea r8, str....._base_files_file_util.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x48
call fcn.14007b560
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140074580
xorps xmm0, xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
mov dword [r15 + 0x30], 0
mov rcx, rbx
call fcn.1400aa804
mov ecx, eax
call fcn.1400aa85c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x14004a9ae
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
cmp r14, rdi
cmovae r14, rdi
inc r14
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm6
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
mov r8, r14
call qword [0x14016d008]
xor r12d, r12d
mov rcx, qword [rsp + 0x38]
add rcx, r12
mov edx, 1
mov r8, r14
mov r9, rbx
call fcn.1400b3fc8
test rax, rax
je 0x14004a951
mov r15, rax
mov rax, rdi
sub rax, r12
cmp rax, r15
jb 0x14004a9bd
add r15, r12
mov rcx, rbx
call fcn.1400b3534
test eax, eax
je 0x14004a9c1
mov r12, r15
mov rcx, rbx
call fcn.1400b3560
test eax, eax
sete bl
mov rdi, r12
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x20]
mov r8, rdi
call qword [0x14016d008]
lea rcx, [rsp + 0x80]
call fcn.1400747c0
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140098a60
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14d, 0xffff
jmp 0x14004a8ef
xor ebx, ebx
jmp 0x14004a983
xor ebx, ebx
jmp 0x14004a961
test r12, r12
mov eax, 0x10000
cmove r14, rax
lea r8, [r15 + r14]
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea r12, [rsp + 0x20]
mov rcx, r12
call qword [0x14016d008]
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x30], xmm0
mov r12, r15
jmp 0x14004a914
Function at 0x14004f190
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.14004f250
mov eax, dword [rsi]
mov dword [0x14014c530], eax
test al, 1
jne 0x14004f1b1
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x14015b8d0]
test rcx, rcx
jne 0x14004f1cb
mov rcx, qword [0x14015b8a8]
test rcx, rcx
je 0x14004f1ef
jmp 0x14004f211
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14015b8d0], 0
mov rcx, qword [0x14015b8a8]
test rcx, rcx
jne 0x14004f211
and byte [0x14014c530], 0xfe
mov ecx, 0x18
call fcn.140097494
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x14015b8a8], rax
mov rdx, qword [rsi + 8]
call fcn.14004ff00
cmp dword [rsi + 0x14], 0
jne 0x14004f236
mov rcx, qword [0x14015b8a8]
cmp byte [rcx + 0x17], 0
jns 0x14004f230
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.1400edd20
Function at 0x140050e20
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140149038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x14015b988]
test rdi, rdi
jne 0x140050ed3
mov ecx, 0x50
call fcn.140097494
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.140097494
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x140050ef8
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 [0x14015b988], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140050ef5
mov rcx, rax
call fcn.1400bbae0
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140050f30
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140098a60
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
int3
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1400d14b0
int3
Function at 0x140050f30
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140149038]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 3
call fcn.1400485d0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14005109c
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x140134b98]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x1400510f1
lea rdx, [0x140134be8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400510df
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [0x14016d008]
mov r14, rax
movsxd r12, dword [rsp + 0x4c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
test r12, r12
je 0x1400510e7
shl r12, 3
movabs rax, 0x5555555555555551
cmp r12, rax
jae 0x140051130
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.140097494
mov rbx, rax
mov qword [rsp + 0x30], rax
add rax, r15
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov r15, rbx
test r15, r15
je 0x140051104
mov rdx, qword [r14 + r13]
mov rcx, r15
call fcn.1400d1cb0
add r15, 0x18
add r13, 8
cmp r12, r13
jne 0x14005103c
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140050c30
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14005108a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x14005109c
cmp r15, rbx
jne 0x1400510d2
mov rcx, rbx
call fcn.1400974d0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140098a60
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [r15 - 0x18]
call fcn.1400974d0
mov r15, rsi
cmp rsi, rbx
je 0x140051094
lea rsi, [r15 - 0x18]
cmp byte [r15 - 1], 0
jns 0x1400510ca
jmp 0x1400510c1
xor r14d, r14d
jmp 0x140050fe4
xor r15d, r15d
xor ebx, ebx
jmp 0x140051063
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x140050fe1
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1400d14b0
lea rcx, [rsp + 0x30]
call fcn.1400d1420
int3
Function at 0x140053490
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x140149038]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14009aba0
mov word [rdi], 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 0x140053525
mov eax, eax
inc rax
cmp rax, 1
je 0x140053525
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x1400534f1
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140053512
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400afd68
test eax, eax
je 0x14005365e
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 0x140053586
mov eax, eax
inc rax
cmp rax, 1
je 0x140053586
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x140053552
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140053573
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400afd68
test eax, eax
je 0x14005362f
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 0x1400535e3
mov eax, eax
inc rax
cmp rax, 1
je 0x1400535e3
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x1400535b3
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400535d4
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400afd68
test eax, eax
je 0x140053604
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140098a60
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx eax, byte [rsi + 0x17]
test al, al
js 0x140053611
and eax, 0x7f
jmp 0x140053615
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x1400535e5
mov rcx, rsi
mov rdx, r14
call fcn.1400e1560
cmp word [rax], 0x5c
jne 0x1400535e3
jmp 0x1400535e5
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14005363c
and eax, 0x7f
jmp 0x140053640
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x1400535e5
mov rcx, rsi
mov rdx, r14
call fcn.1400e1560
cmp word [rax], 0x5c
jne 0x140053586
jmp 0x1400535e5
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14005366b
and eax, 0x7f
jmp 0x14005366f
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x1400535e5
mov rcx, rsi
mov rdx, r14
call fcn.1400e1560
cmp word [rax], 0x5c
jne 0x140053525
jmp 0x1400535e5
Function at 0x140053e80
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140149038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x1400540ca
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x14014c560], rax
jne 0x1400540cd
mov rsi, rcx
mov r14d, dword [rcx + 8]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
cmp byte [rcx + 2], 0
sete al
bsr rdx, r14
xor rdx, 0xffffffffffffffc0
lea rcx, [0x1401347b0]
mov cl, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x140134800]
mov rcx, qword [rcx + rdx*8 + 0x208]
and rcx, r14
lea rdx, [r8 + rdx*8]
add rdx, 0x208
cmp rcx, 1
sbb rdx, 0xffffffffffffffff
lea rcx, [0x140134e38]
movzx ecx, word [rcx + rdx*2 + 0x400]
cmp cx, 0x6e
setb dl
and dl, al
movzx eax, dl
or eax, ecx
movzx eax, ax
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x48
lea rbx, [rsi + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14005404f
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x14005405c
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x140054048
lea rdx, [rsi + 0x48]
bswap rcx
mov r14d, dword [rdx + r12*8 + 0x18]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x1400540d0
mov edx, ecx
and edx, 0x1fc000
je 0x1400540d0
prefetcht0 byte [rcx]
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rdi
mov rdx, rsi
call fcn.14007e930
mov ecx, dword [0x14015b9b8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14015889c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x148], rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140098a60
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x140053fa9
mov rcx, rbx
call fcn.14007f520
jmp 0x140053f59
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.140089080
test rax, rax
je 0x1400540c3
mov rdi, rax
mov rcx, rax
and rcx, 0xffffffffffe00000
mov rdx, rax
shr rdx, 9
and edx, 0xfe0
lea rax, [rdx + rcx]
movzx ecx, byte [rdx + rcx + 0x101e]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
add rax, 0x1000
jmp 0x140053fc3
xor edi, edi
jmp 0x140053fed
int3
int3
movaps xmm0, xmmword [0x14012f810]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r8, qword [rdi]
lea rdx, str.first
mov rcx, rsi
call fcn.1400edc60
mov rcx, rsi
call fcn.140038260
mov rcx, r14
call fcn.1400f0490
int3
Function at 0x140055d40
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140149038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14015baa8]
mov ecx, dword [0x14015889c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140055da0
lea rsi, [0x14015baa0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140098a60
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14015baa8]
call fcn.1400975f0
cmp dword [0x14015baa8], 0xffffffff
jne 0x140055d7c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14009aba0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.140097494
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14015baf0]
mov ecx, dword [0x14015889c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140055e60
lea r8, [0x14015bac0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140055f60
mov qword [0x14015baa0], rsi
lea rcx, [0x14015baa8]
call fcn.140097688
jmp 0x140055d7c
lea rcx, [0x14015baf0]
call fcn.1400975f0
cmp dword [0x14015baf0], 0xffffffff
jne 0x140055e31
xorps xmm0, xmm0
movups xmmword [0x14015bae0], xmm0
movups xmmword [0x14015bad0], xmm0
movups xmmword [0x14015bac0], xmm0
lea rcx, [0x14015bac0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14015baf0]
call fcn.140097688
jmp 0x140055e31

Function at 0x140055eb0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14015baf0]
mov ecx, dword [0x14015889c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140055eeb
movzx eax, word [0x14015bac0]
cmp eax, 9
jne 0x140055f33
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x14015baf0]
call fcn.1400975f0
cmp dword [0x14015baf0], 0xffffffff
jne 0x140055ed5
xorps xmm0, xmm0
movups xmmword [0x14015bae0], xmm0
movups xmmword [0x14015bad0], xmm0
movups xmmword [0x14015bac0], xmm0
lea rcx, [0x14015bac0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14015baf0]
call fcn.140097688
jmp 0x140055ed5
test eax, eax
je 0x140055ee6
cmp eax, 6
jne 0x140055f43
mov eax, 2
jmp 0x140055ee6
cmp eax, 0xc
jne 0x140055f4f
mov eax, 3
jmp 0x140055ee6
mov eax, 4
jmp 0x140055ee6
Function at 0x1400576b0
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
jne 0x1400577a5
cmp qword [rsi], 0
jne 0x1400577a5
cmp dword [rsi + 0x14], 0
jne 0x1400577a5
cmp qword [rsi + 8], 0
jne 0x1400577a5
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x140057724
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14005778c
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14005771c
mov qword [rsi], r14
call fcn.14007b580
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14005775e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140057774
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140057756
mov qword [rsi + 8], r14
call fcn.14007b580
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
call fcn.14007b580
mov rcx, qword [rsi + 8]
call fcn.140071e60
mov qword [rsi + 8], 0
jmp 0x140057743
call fcn.14007b580
mov rcx, qword [rsi]
call fcn.140071e60
mov qword [rsi], 0
jmp 0x14005770a
mov rcx, rsi
call fcn.1400f4630
mov rax, qword [rsi]
jmp 0x1400576ea
Function at 0x14005d630
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x140149038]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x14012f810]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x14005d7ac
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x140160e80]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.1400bbf34
mov rcx, rbx
call fcn.1400bbae0
sub r14, rax
lea rdx, [0x14013067c]
mov rcx, rbx
mov r8, r14
call fcn.1400bbf34
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.14009aba0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14005d70c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400bbf7c
test eax, eax
je 0x14005d7d4
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14005d747
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400bbf7c
test eax, eax
je 0x14005d7d4
xor eax, eax
mov byte [0x140160a79], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1401391e8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005d7d0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x14016d008]
test eax, eax
je 0x14005d7d0
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x140161080], al
mov byte [0x140160a78], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140098a60
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x14005d79f
mov al, 1
jmp 0x14005d749