joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028180
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 [0x1400f5040]
xor rax, rsp
mov qword [rsp + 0xc8], rax
test rcx, rcx
je 0x140028330
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
xor r8d, r8d
call fcn.14007e074
movaps xmm6, xmmword [0x1400d3a90]
lea r14, [rsp + 0x80]
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.14004ea40
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140052420
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.1400772a8
mov ecx, eax
call fcn.1400772fc
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x140028334
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 [0x1400e9610]
xor r12d, r12d
mov rcx, qword [rsp + 0x30]
add rcx, r12
mov edx, 1
mov r8, r14
mov r9, rbx
call fcn.14007dcfc
test rax, rax
je 0x1400282d3
mov r15, rax
mov rax, rdi
sub rax, r12
cmp rax, r15
jb 0x14002833f
add r15, r12
mov rcx, rbx
call fcn.14007d564
test eax, eax
je 0x140028343
mov r12, r15
mov rcx, rbx
call fcn.14007d590
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 [0x1400e9610]
lea rcx, [rsp + 0x80]
call fcn.1400524a0
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1400663c0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x140028305
mov r14d, 0xffff
jmp 0x140028271
xor ebx, ebx
jmp 0x1400282e3
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 [0x1400e9610]
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x30], xmm0
mov r12, r15
jmp 0x140028296
Function at 0x140029420
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.140029500
mov eax, dword [rsi]
mov dword [0x1400f7578], eax
test al, 1
jne 0x140029441
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x1401067d0]
test rcx, rcx
je 0x14002946f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1401067d0], 0
cmp qword [0x1401067d8], 0
jne 0x14002946f
and byte [0x1400f7578], 0xfe
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x140029481
mov qword [0x1401067d0], rax
jmp 0x140029439
mov rcx, qword [0x1401067d8]
test rcx, rcx
jne 0x1400294af
mov ecx, 0x18
call fcn.140064f80
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1401067d8], rax
mov rdx, qword [rsi + 8]
test rdx, rdx
je 0x1400294e4
call fcn.140024de0
cmp dword [rsi + 0x14], 0
jne 0x1400294d9
mov rcx, qword [0x1401067d8]
cmp byte [rcx + 0x17], 0
jns 0x1400294d3
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.1400b2d10
lea rcx, [0x1400d65dc]
lea rdx, str....._third_partylibc_srcinclude_string:2719:_assertion___s___nullptr_failed:_string::assign_received_nullptr_n
call fcn.140098a70
int3
Function at 0x14002bd10
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1400f5040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1401068e0]
test rdi, rdi
jne 0x14002bdc3
mov ecx, 0x50
call fcn.140064f80
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.140064f80
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x14002bde5
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 [0x1401068e0], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14002bdf8
mov rcx, rax
call fcn.140080af8
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.14002be10
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400663c0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400d65dc]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140098a70
lea rcx, [0x1400d65dc]
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.140098a70
int3
Function at 0x14002be10
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 [0x1400f5040]
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.140025a00
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14002bf9c
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, [0x1400e2058]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14002bff3
lea rdx, [0x1400e20a8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002bfe2
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x1400e9610]
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 0x14002bf32
test r12d, r12d
js 0x14002bfe9
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.140064f80
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 0x14002bfbc
mov rdx, qword [rbx + r15]
mov rcx, r14
call fcn.14001a940
add r14, 0x18
add r15, 8
cmp r12, r15
jne 0x14002bf0b
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14002ba80
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14002bf59
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x14002bf9c
mov rdi, qword [rsp + 0x28]
cmp rdi, rsi
je 0x14002bf94
add rdi, 0xffffffffffffffe8
jmp 0x14002bf87
mov rcx, qword [rdi]
call fcn.140064fbc
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
je 0x14002bf94
test rdi, rdi
je 0x14002bfcf
cmp byte [rdi + 0x17], 0
js 0x14002bf73
jmp 0x14002bf7b
mov rcx, rsi
call fcn.140064fbc
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400663c0
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [0x1400d65dc]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140098a70
lea rcx, [0x1400d65dc]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.140098a70
xor ebx, ebx
jmp 0x14002bebf
lea rcx, [rsp + 0x20]
call fcn.1400989e0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14002bebc
Function at 0x14002e240
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x1400f5040]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140097770
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 0x14002e2cb
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x14002e430
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14002e2b8
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14007b970
test eax, eax
je 0x14002e3c5
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 0x14002e322
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x14002e43e
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14002e30f
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14007b970
test eax, eax
je 0x14002e3f7
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 0x14002e375
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x14002e44c
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14002e366
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14007b970
test eax, eax
je 0x14002e396
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400663c0
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x14002e3a7
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x14002e377
jb 0x14002e45a
test al, al
jns 0x14002e3bb
mov rsi, qword [rsi]
cmp word [rsi + r14*2], 0x5c
jne 0x14002e375
jmp 0x14002e377
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x14002e3d6
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x14002e377
jb 0x14002e45a
mov rcx, rsi
test al, al
jns 0x14002e3e9
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x14002e2cb
jmp 0x14002e377
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x14002e408
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x14002e377
jb 0x14002e45a
mov rcx, rsi
test al, al
jns 0x14002e41f
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x14002e322
jmp 0x14002e377
dec r14
jne 0x14002e29f
jmp 0x14002e2cb
dec r14
jne 0x14002e2f6
jmp 0x14002e322
dec r14
jne 0x14002e34d
jmp 0x14002e375
lea rcx, [0x1400d65dc]
lea rdx, str....._third_partylibc_srcinclude_string:1241:_assertion___pos___size___failed:_string_index_out_of_bounds_n
call fcn.140098a70
int3
Function at 0x14002f2b0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1400f5040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140106948]
mov ecx, dword [0x140103738]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002f310
lea rsi, [0x140106940]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400663c0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140106948]
call fcn.14006500c
cmp dword [0x140106948], 0xffffffff
jne 0x14002f2ec
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140097770
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.140064f80
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140106990]
mov ecx, dword [0x140103738]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002f3d0
lea r8, [0x140106960]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14002f4d0
mov qword [0x140106940], rsi
lea rcx, [0x140106948]
call fcn.1400650c0
jmp 0x14002f2ec
lea rcx, [0x140106990]
call fcn.14006500c
cmp dword [0x140106990], 0xffffffff
jne 0x14002f3a1
xorps xmm0, xmm0
movups xmmword [0x140106980], xmm0
movups xmmword [0x140106970], xmm0
movups xmmword [0x140106960], xmm0
lea rcx, [0x140106960]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140106990]
call fcn.1400650c0
jmp 0x14002f3a1

Function at 0x14002f420
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140106990]
mov ecx, dword [0x140103738]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002f45b
movzx eax, word [0x140106960]
cmp eax, 9
jne 0x14002f4a3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x140106990]
call fcn.14006500c
cmp dword [0x140106990], 0xffffffff
jne 0x14002f445
xorps xmm0, xmm0
movups xmmword [0x140106980], xmm0
movups xmmword [0x140106970], xmm0
movups xmmword [0x140106960], xmm0
lea rcx, [0x140106960]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140106990]
call fcn.1400650c0
jmp 0x14002f445
test eax, eax
je 0x14002f456
cmp eax, 6
jne 0x14002f4b3
mov eax, 2
jmp 0x14002f456
cmp eax, 0xc
jne 0x14002f4bf
mov eax, 3
jmp 0x14002f456
mov eax, 4
jmp 0x14002f456
Function at 0x140030a00
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 0x140030af5
cmp qword [rsi], 0
jne 0x140030af5
cmp dword [rsi + 0x14], 0
jne 0x140030af5
cmp qword [rsi + 8], 0
jne 0x140030af5
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x140030a74
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140030adc
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140030a6c
mov qword [rsi], r14
call fcn.14004ea60
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x140030aae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140030ac4
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140030aa6
mov qword [rsi + 8], r14
call fcn.14004ea60
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.14004ea60
mov rcx, qword [rsi + 8]
call fcn.1400496a0
mov qword [rsi + 8], 0
jmp 0x140030a93
call fcn.14004ea60
mov rcx, qword [rsi]
call fcn.1400496a0
mov qword [rsi], 0
jmp 0x140030a5a
mov rcx, rsi
call fcn.140046200
lea rcx, [rsi + 8]
call fcn.140046200
mov qword [rsi + 0x10], 0
mov rax, qword [rsi]
jmp 0x140030a3a
Function at 0x140036340
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x1400f5040]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x1400d3a90]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x1400364bc
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x1401070e0]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.140080f4c
mov rcx, rbx
call fcn.140080af8
sub r14, rax
lea rdx, [0x1400d86cc]
mov rcx, rbx
mov r8, r14
call fcn.140080f4c
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.140097770
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 0x14003641c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140080f94
test eax, eax
je 0x1400364e0
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 0x140036457
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140080f94
test eax, eax
je 0x1400364e0
xor eax, eax
mov byte [0x140106cd9], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1400e2d56]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400364e7
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x1400e9610]
test eax, eax
je 0x1400364e7
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x1401072e0], al
mov byte [0x140106cd8], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400663c0
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x140036459
xor eax, eax
jmp 0x1400364af
Function at 0x1400367e0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x1400f5040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsx rax, byte [r8 + 0x17]
test rax, rax
jns 0x140036814
mov rax, qword [rsi + 8]
test rax, rax
je 0x14003690b
bt ebx, 8
jae 0x140036830
mov eax, ebx
and eax, 0x200
jne 0x14003690b
cmp edi, 2
lea rax, [0x140106ce0]
lea rcx, [0x140106ee0]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14003690b
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x14003690b
bt ebx, 8
jb 0x14003690b
shr ebx, 9
and ebx, 1
or bl, byte [0x1401072e0]
je 0x14003690b
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movsx r13, byte [rsi + 0x17]
test r13, r13
jns 0x14003692a
mov r14, qword [rsi]
mov r13, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov rbp, r13
sub rbp, r15
jb 0x1400368f4
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.14007b970
test eax, eax
je 0x14003692f
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x1400368d4
cmp dword [rsp + 0x2c], 0
jne 0x1400369ad
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400663c0
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, rsi
jmp 0x1400368b7
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x14003693d
test ecx, ecx
jne 0x1400368f4
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x14003696c
cmp dword [rsp + 0x2c], 2
jne 0x14003697d
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x14003697d
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
cmp cx, 0x5c
jne 0x140036996
lea r14, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x140036983
jmp 0x140036999
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov r13, rbp
jmp 0x1400368fb
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x1400369b9
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, rsi
mov r8, qword [rsp + 0x38]
call fcn.1400b05a0
jmp 0x14003690b
Function at 0x1400375c0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x140037637
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1400f76a0], rax
jne 0x14003763a
mov rsi, rcx
call fcn.14003c9b0
mov edx, 0x568
mov rcx, rax
xor r8d, r8d
call fcn.140019440
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.14005a8a0
mov ecx, dword [0x1401072ec]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x140103738]
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 0x14003b640
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 [0x1400f5040]
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.14004b850
cmp byte [rdi + 0x17], 0
jns 0x14003b681
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 0x14003b6a2
mov rcx, qword [rsp + 0x58]
call fcn.140064fbc
test rsi, rsi
je 0x14003b749
test edi, edi
je 0x14003b749
mov ecx, edi
add rcx, rcx
call fcn.140064ffc
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x58]
mov rcx, r14
call fcn.14004b850
cmp byte [r14 + 0x17], 0
jns 0x14003b6e5
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 0x14003b705
mov rcx, qword [rsp + 0x58]
call fcn.140064fbc
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x14003b767
mov rcx, rbx
call fcn.140080af8
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x58]
call fcn.14004b880
cmp byte [rsi + 0x17], 0
js 0x14003b77a
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.140065004
test edi, edi
setne bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400663c0
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400d65dc]
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.140098a70
mov rcx, qword [rsi]
call fcn.140064fbc
jmp 0x14003b730

Function at 0x14003cbd0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14010cd28], 0
jne 0x14003cc0d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14003cc00
mov dword [rdi], eax
mov dword [0x14010cd30], eax
mov qword [0x14010cd28], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x14003cd20
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 0x14003ce3c
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 0x14003ce78
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 0x14003ce80
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 0x14003ce72
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 0x14003ce84
pop rdi
pop rsi
ret
mov dl, byte [r8 + 0x19]
jmp 0x14003ce6b
xor r10d, r10d
jmp 0x14003cd7f
xor eax, eax
jmp 0x14003ce14
cmp byte [r8 + 0x1a], 0
je 0x14003ce6f
mov eax, 0x40000000
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x14003ce6f
cmp ecx, 0x666f736f
jne 0x14003ce6f
cmp edx, 0x76482074
jne 0x14003ce6f
mov byte [r8 + 0x19], 1
jmp 0x14003ce6f