joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400260a0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r12, qword [rcx + 0x10]
cmp r12, qword [rcx + 0x18]
je 0x1400260e6
mov r14, r12
test r14, r14
je 0x1400261e8
mov rax, qword [rdi]
mov qword [r14], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r15
jbe 0x140026148
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r13, rax
neg r13
shl rax, 3
mov r14, rbx
sub r14, rax
mov r15, r12
sub r15, rbx
je 0x140026134
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.14006a400
mov r12, qword [rsi + 8]
add r14, r15
mov qword [rsi + 0x10], r14
lea rax, [r12 + r13*8]
mov qword [rsi + 8], rax
jmp 0x1400260c2
mov rax, r12
sub rax, r15
sar rax, 2
cmp r12, r15
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x14002620e
lea rcx, [r13*8]
call fcn.140067598
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, r12
mov r14, rcx
sub rdx, rbx
je 0x1400261ae
lea r14, [rdx + rcx]
xor r8d, r8d
mov r9, rcx
add r9, r8
je 0x1400261e8
mov r10, qword [rbx + r8]
mov qword [r9], r10
add r8, 8
cmp rdx, r8
jne 0x140026196
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], rdx
cmp r12, rbx
je 0x1400261ce
add r12, 0xfffffffffffffff8
jne 0x1400261c1
jmp 0x1400261fb
test r15, r15
je 0x1400260c2
mov rcx, r15
call fcn.1400675d4
mov r14, qword [rsi + 0x10]
jmp 0x1400260c2
lea rcx, [0x1400cfb43]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140097ef0
lea rcx, [0x1400cfb43]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.140097ef0
call fcn.140097a90
int3
Function at 0x140027770
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.140027840
mov eax, dword [rsi]
mov dword [0x1400ee0c0], eax
test al, 1
jne 0x140027791
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x1400fd640]
test rcx, rcx
jne 0x1400277ab
mov rcx, qword [0x1400fd618]
test rcx, rcx
je 0x1400277cf
jmp 0x1400277f1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400fd640], 0
mov rcx, qword [0x1400fd618]
test rcx, rcx
jne 0x1400277f1
and byte [0x1400ee0c0], 0xfe
mov ecx, 0x18
call fcn.140067598
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1400fd618], rax
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x140027826
call fcn.140025950
cmp dword [rsi + 0x14], 0
jne 0x14002781b
mov rcx, qword [0x1400fd618]
cmp byte [rcx + 0x17], 0
jns 0x140027815
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.1400afea0
lea rcx, [0x1400cfb43]
lea rdx, str....._third_partylibc_srcinclude_string:2719:_assertion___s___nullptr_failed:_string::assign_received_nullptr_n
call fcn.140097ef0
int3
Function at 0x140029800
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1400fd688]
test rdi, rdi
jne 0x1400298b3
mov ecx, 0x50
call fcn.140067598
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.140067598
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x1400298d5
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 [0x1400fd688], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400298e8
mov rcx, rax
call fcn.140081b58
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140029900
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140068970
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400cfb43]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140097ef0
lea rcx, [0x1400cfb43]
lea rdx, str....._third_partylibc_srcinclude_string_view:267:_assertion___s___nullptr_failed:_null_pointer_passed_to_non_null_argument_of_char_traits_..._::length_n
call fcn.140097ef0
int3
Function at 0x140029900
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 [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 3
call fcn.1400304e0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x140029a8c
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, [0x1400d4238]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140029ae3
lea rdx, [0x1400d4288]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140029ad2
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x1400e0bb0]
mov rbx, rax
movsxd r12, dword [rsp + 0x3c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x30], 0
test r12, r12
je 0x140029a22
test r12d, r12d
js 0x140029ad9
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.140067598
mov r14, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
add rax, r15
mov qword [rsp + 0x30], rax
xor r15d, r15d
test r14, r14
je 0x140029aac
mov rdx, qword [rbx + r15]
mov rcx, r14
call fcn.140098740
add r14, 0x18
add r15, 8
cmp r12, r15
jne 0x1400299fb
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140029570
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x140029a49
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x140029a8c
mov rdi, qword [rsp + 0x28]
cmp rdi, rsi
je 0x140029a84
add rdi, 0xffffffffffffffe8
jmp 0x140029a77
mov rcx, qword [rdi]
call fcn.1400675d4
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
je 0x140029a84
test rdi, rdi
je 0x140029abf
cmp byte [rdi + 0x17], 0
js 0x140029a63
jmp 0x140029a6b
mov rcx, rsi
call fcn.1400675d4
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140068970
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x1400cfb43]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140097ef0
lea rcx, [0x1400cfb43]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.140097ef0
xor ebx, ebx
jmp 0x1400299af
lea rcx, [rsp + 0x20]
call fcn.140097e60
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x1400299ac
Function at 0x14002c670
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1400fd6b8]
mov ecx, dword [0x1400fa710]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002c6d0
lea rsi, [0x1400fd6b0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140068970
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1400fd6b8]
call fcn.1400676f0
cmp dword [0x1400fd6b8], 0xffffffff
jne 0x14002c6ac
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14006aab0
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.140067598
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1400fd700]
mov ecx, dword [0x1400fa710]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002c790
lea r8, [0x1400fd6d0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14002c890
mov qword [0x1400fd6b0], rsi
lea rcx, [0x1400fd6b8]
call fcn.140067788
jmp 0x14002c6ac
lea rcx, [0x1400fd700]
call fcn.1400676f0
cmp dword [0x1400fd700], 0xffffffff
jne 0x14002c761
xorps xmm0, xmm0
movups xmmword [0x1400fd6f0], xmm0
movups xmmword [0x1400fd6e0], xmm0
movups xmmword [0x1400fd6d0], xmm0
lea rcx, [0x1400fd6d0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400fd700]
call fcn.140067788
jmp 0x14002c761

Function at 0x14002c7e0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400fd700]
mov ecx, dword [0x1400fa710]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002c81b
movzx eax, word [0x1400fd6d0]
cmp eax, 9
jne 0x14002c863
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x1400fd700]
call fcn.1400676f0
cmp dword [0x1400fd700], 0xffffffff
jne 0x14002c805
xorps xmm0, xmm0
movups xmmword [0x1400fd6f0], xmm0
movups xmmword [0x1400fd6e0], xmm0
movups xmmword [0x1400fd6d0], xmm0
lea rcx, [0x1400fd6d0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400fd700]
call fcn.140067788
jmp 0x14002c805
test eax, eax
je 0x14002c816
cmp eax, 6
jne 0x14002c873
mov eax, 2
jmp 0x14002c816
cmp eax, 0xc
jne 0x14002c87f
mov eax, 3
jmp 0x14002c816
mov eax, 4
jmp 0x14002c816
Function at 0x14002f000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1400cfa80]
lea rsi, [rsp + 0x40]
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, 0x20b
call fcn.14004f710
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140050bb0
cmp byte [rdi + 0x17], 0
jns 0x14002f072
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.140050c30
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140068970
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1400cfa80]
lea rsi, [rsp + 0x40]
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, 0x233
call fcn.14004f710
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140050bb0
cmp byte [rdi + 0x17], 0
jns 0x14002f122
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.140050c30
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140068970
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x14002f170
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14006aab0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14002f20f
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.140081b58
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14004bb30
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140028f50
mov rcx, rsi
mov rdx, r14
call fcn.14004bcd0
mov rcx, r14
call fcn.14004bc60
mov rcx, rbx
call fcn.14004bc60
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140068970
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14002f240
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14006aab0
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 0x14002f2d5
cmp word [rsp + 0x70], 0
je 0x14002f2d5
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.140081b58
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.14004bb30
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140068970
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 [0x1400cfa80]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.14004baf0
mov rcx, rdi
call fcn.14002f170
test al, al
jne 0x14002f327
lea rax, [0x1400db4f6]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.14004bb30
jmp 0x14002f334
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14004bb10
lea rcx, [rsp + 0x40]
call fcn.14004bc60
jmp 0x14002f2b7
Function at 0x140032ff0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140033078
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140033062
cmp dword [rsp + 0x38], 4
jne 0x140033062
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140068970
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x140033062

Function at 0x140033080
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140068910
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.14006aab0
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140033133
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140033137
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.140025950
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140068970
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140033114
cmp eax, 2
jne 0x14003317f
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.14006aab0
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
cmp eax, 0xfffffc00
jb 0x140033186
lea rdx, [rsp + 0x40]
jmp 0x14003310a
mov edi, 0x3f4
jmp 0x140033114
mov edi, 0xea
jmp 0x140033114
Function at 0x140035ea0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x1400ec028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x58]
mov rcx, rdi
call fcn.140052dc0
cmp byte [rdi + 0x17], 0
jns 0x140035ee1
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp byte [rsp + 0x6f], 0
jns 0x140035f02
mov rcx, qword [rsp + 0x58]
call fcn.1400675d4
test rsi, rsi
je 0x140035fa9
test edi, edi
je 0x140035fa9
mov ecx, edi
add rcx, rcx
call fcn.14006760c
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x58]
mov rcx, r14
call fcn.140052dc0
cmp byte [r14 + 0x17], 0
jns 0x140035f45
mov r14, qword [rsp + 0x58]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x6f], 0
jns 0x140035f65
mov rcx, qword [rsp + 0x58]
call fcn.1400675d4
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x140035fc7
mov rcx, rbx
call fcn.140081b58
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x58]
call fcn.140052df0
cmp byte [rsi + 0x17], 0
js 0x140035fda
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.140067614
test edi, edi
setne bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140068970
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400cfb43]
lea rdx, str....._third_partylibc_srcinclude_string_view:267:_assertion___s___nullptr_failed:_null_pointer_passed_to_non_null_argument_of_char_traits_..._::length_n
call fcn.140097ef0
mov rcx, qword [rsi]
call fcn.1400675d4
jmp 0x140035f90

Function at 0x1400363b0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x140036427
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1400ee5f0], rax
jne 0x14003642a
mov rsi, rcx
call fcn.140062810
mov edx, 0x568
mov rcx, rax
xor r8d, r8d
call fcn.140036440
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.14005c630
mov ecx, dword [0x1400ff550]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1400fa710]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x148], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3
Function at 0x140039d50
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x140100378], 0
jne 0x140039d8d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140039d80
mov dword [rdi], eax
mov dword [0x140100380], eax
mov qword [0x140100378], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3

Function at 0x14003efb0
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor eax, eax
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x14003f0cc
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x14003f108
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr edi, 5
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x14003f110
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
and dil, al
mov byte [r8 + 0x16], dil
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x14003f102
mov eax, 0x80000007
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x14003f114
pop rdi
pop rsi
ret
mov dl, byte [r8 + 0x19]
jmp 0x14003f0fb
xor r10d, r10d
jmp 0x14003f00f
xor eax, eax
jmp 0x14003f0a4
cmp byte [r8 + 0x1a], 0
je 0x14003f0ff
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x14003f0ff
cmp ecx, 0x666f736f
jne 0x14003f0ff
cmp edx, 0x76482074
jne 0x14003f0ff
mov byte [r8 + 0x19], 1
jmp 0x14003f0ff
Function at 0x140062ff0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x140063088
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x140063053
call fcn.14004f730
mov rcx, qword [rsi]
call fcn.14004f740
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140063065
mov qword [rsi], rdi
call fcn.14004f730
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x14006308c
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 8], 0
int3

Function at 0x140067170
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
mov rcx, qword [rdx + 8]
test rcx, rcx
js 0x1400671ac
je 0x1400671ab
mov rdx, qword [rdx]
xor r8d, r8d
lea r9, [0x1400dcef0]
nop word [rax + rax]
movzx r10d, byte [rdx + r8]
movzx r11d, al
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc r8
cmp rcx, r8
jne 0x140067190
ret
int3

Function at 0x140067c7c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140067cc6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140067cc6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140067cc6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140067cc6
cmp dword [rcx + 0x84], 0xe
jbe 0x140067cc6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140067cc8
xor al, al
add rsp, 0x28
ret

Function at 0x140068190
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140068208
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140068208
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140068208
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400681fc
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14006821a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400681ea
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x14006820a