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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140058120
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400ea040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.140089530
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 0x140023c33
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140023c37
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.140023390
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140058180
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140023c14
mov edi, 0x3f4
cmp eax, 2
jne 0x140023c14
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.140089530
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 0x140023c14
lea rdx, [rsp + 0x40]
jmp 0x140023c0a

Function at 0x140024230
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 0x140024277
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140024291
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14002426f
mov qword [rsi], rdi
call fcn.140048ab0
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 0x1400242a7
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140048ab0
mov rcx, qword [rsi]
call fcn.140045480
mov qword [rsi], 0
jmp 0x14002425d
int3

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1400ea040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1400cd960]
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, [0x1400d73d0]
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x20d
call fcn.140048a90
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14002e170
cmp byte [rdi + 0x17], 0
jns 0x140024b12
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14002e1f0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140058180
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x140026cc0
Capabilities:
Delete file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x1400ea040]
xor rax, rsp
mov qword [rsp + 0x50], rax
call fcn.140026e80
mov eax, dword [rsi]
mov dword [0x1400ec478], eax
mov bl, 1
test al, 1
jne 0x140026d07
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140058180
mov eax, ebx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [0x1400fb2e8]
test rcx, rcx
je 0x140026d35
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400fb2e8], 0
cmp qword [0x1400fb2f0], 0
jne 0x140026d35
and byte [0x1400ec478], 0xfe
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x140026d5e
movsx rcx, byte [rsi + 0x1f]
test rcx, rcx
jns 0x140026d4c
mov rcx, qword [rsi + 0x10]
test rcx, rcx
jne 0x140026dd7
mov qword [0x1400fb2e8], rax
jmp 0x140026cee
movsx rax, byte [rsi + 0x1f]
test rax, rax
jns 0x140026d6c
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140026e26
lea rdi, [rsi + 8]
mov rcx, qword [0x1400fb2f0]
test rcx, rcx
jne 0x140026da7
mov ecx, 0x18
call fcn.140056d40
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1400fb2f0], rax
mov rdx, rdi
call fcn.14001c970
cmp dword [rsi + 0x24], 0
jne 0x140026dcb
mov rcx, qword [0x1400fb2f0]
cmp byte [rcx + 0x17], 0
jns 0x140026dc5
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1400a69f0
mov ebx, eax
jmp 0x140026cee
lea rdx, str.BaseInitLoggingImpl_built_with_NDEBUG
lea r8, str....._baselogging.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x231
call fcn.140048a90
lea rdx, str.settings.log_file_path.empty__
lea r14, [rsp + 0x48]
mov rcx, r14
mov r8d, 0x7f
mov r9, rdi
call fcn.1400aa080
mov rcx, r14
call fcn.1400aa290
mov rax, qword [rsi + 0x28]
jmp 0x140026d55
lea rdx, str.BaseInitLoggingImpl_built_with_NDEBUG
lea r8, str....._baselogging.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r9d, 0x237
call fcn.140048a90
lea rdx, str._settings.log_file_path.empty__
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r8d, 0x7f
mov r9, rdi
call fcn.1400aa080
lea rdx, str.LOG_TO_FILE_set_but_no_log_file_path_
mov rcx, rbx
call fcn.1400a69c0
mov rcx, rbx
call fcn.1400aa290
jmp 0x140026d75
Function at 0x1400285e0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1400ea040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1400fb3f8]
test rdi, rdi
jne 0x140028693
mov ecx, 0x50
call fcn.140056d40
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.140056d40
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x1400286b5
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 [0x1400fb3f8], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400286b5
mov rcx, rax
call fcn.1400728b8
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.1400286c0
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140058180
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
ud2
Function at 0x1400286c0
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 [0x1400ea040]
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.140023f60
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x140028848
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, [0x1400d7778]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14002887b
lea rdx, [0x1400d77c8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002886a
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x1400df678]
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 0x1400287e2
test r12d, r12d
js 0x140028871
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.140056d40
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 0x140028868
mov rdx, qword [rbx + r15]
mov rcx, r14
call fcn.14001a750
add r14, 0x18
add r15, 8
cmp r12, r15
jne 0x1400287bb
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400283b0
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x140028809
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x140028848
mov rdi, qword [rsp + 0x28]
cmp rdi, rsi
je 0x140028840
add rdi, 0xffffffffffffffe8
test rdi, rdi
je 0x140028868
cmp byte [rdi + 0x17], 0
jns 0x140028834
mov rcx, qword [rdi]
call fcn.140056d7c
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
jne 0x140028821
mov rcx, rsi
call fcn.140056d7c
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140058180
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2
xor ebx, ebx
jmp 0x14002876f
lea rcx, [rsp + 0x20]
call fcn.14008a9f0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14002876c
Function at 0x14002b650
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x1400ea040]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140089530
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 0x14002b6db
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x14002b840
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14002b6c8
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14006d730
test eax, eax
je 0x14002b7d5
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 0x14002b732
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x14002b84e
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14002b71f
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14006d730
test eax, eax
je 0x14002b807
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 0x14002b785
mov r14d, eax
cmp word [rsp + r14*2 + 0x1e], 0x5c
je 0x14002b85c
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14002b776
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14006d730
test eax, eax
je 0x14002b7a6
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140058180
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 0x14002b7b7
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x14002b787
jb 0x14002b86a
test al, al
jns 0x14002b7cb
mov rsi, qword [rsi]
cmp word [rsi + r14*2], 0x5c
jne 0x14002b785
jmp 0x14002b787
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x14002b7e6
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x14002b787
jb 0x14002b86a
mov rcx, rsi
test al, al
jns 0x14002b7f9
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x14002b6db
jmp 0x14002b787
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x14002b818
mov rcx, qword [rsi + 8]
mov bl, 1
cmp rcx, r14
je 0x14002b787
jb 0x14002b86a
mov rcx, rsi
test al, al
jns 0x14002b82f
mov rcx, qword [rsi]
cmp word [rcx + r14*2], 0x5c
jne 0x14002b732
jmp 0x14002b787
dec r14
jne 0x14002b6af
jmp 0x14002b6db
dec r14
jne 0x14002b706
jmp 0x14002b732
dec r14
jne 0x14002b75d
jmp 0x14002b785
ud2
Function at 0x14002c9b0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1400ea040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1400fb458]
mov ecx, dword [0x1400f8648]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002ca10
lea rsi, [0x1400fb450]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140058180
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1400fb458]
call fcn.140056dcc
cmp dword [0x1400fb458], 0xffffffff
jne 0x14002c9ec
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140089530
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, 0x88
call fcn.140056d40
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1400fb4a0]
mov ecx, dword [0x1400f8648]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14002cae7
lea rcx, [0x1400fb4a0]
call fcn.140056dcc
cmp dword [0x1400fb4a0], 0xffffffff
jne 0x14002cae7
xorps xmm0, xmm0
movups xmmword [0x1400fb490], xmm0
movups xmmword [0x1400fb480], xmm0
movups xmmword [0x1400fb470], xmm0
lea rcx, [0x1400fb470]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400fb4a0]
call fcn.140056e80
lea r8, [0x1400fb470]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14002cbd0
mov qword [0x1400fb450], rsi
lea rcx, [0x1400fb458]
call fcn.140056e80
jmp 0x14002c9ec

Function at 0x14002cb20
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400fb4a0]
mov ecx, dword [0x1400f8648]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14002cb8b
lea rcx, [0x1400fb4a0]
call fcn.140056dcc
cmp dword [0x1400fb4a0], 0xffffffff
jne 0x14002cb8b
xorps xmm0, xmm0
movups xmmword [0x1400fb490], xmm0
movups xmmword [0x1400fb480], xmm0
movups xmmword [0x1400fb470], xmm0
lea rcx, [0x1400fb470]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1400fb4a0]
call fcn.140056e80
movzx eax, word [0x1400fb470]
cmp eax, 9
jne 0x14002cba1
mov eax, 1
add rsp, 0x28
ret
test eax, eax
je 0x14002cb9c
cmp eax, 6
jne 0x14002cbb1
mov eax, 2
jmp 0x14002cb9c
cmp eax, 0xc
jne 0x14002cbbd
mov eax, 3
jmp 0x14002cb9c
mov eax, 4
jmp 0x14002cb9c
Function at 0x140035f90
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x1400ea040]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x1400cd960]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x14003610c
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x1400fbb80]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.140072d0c
mov rcx, rbx
call fcn.1400728b8
sub r14, rax
lea rdx, [0x1400ce05e]
mov rcx, rbx
mov r8, r14
call fcn.140072d0c
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.140089530
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 0x14003606c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140072d54
test eax, eax
je 0x140036130
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 0x1400360a7
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140072d54
test eax, eax
je 0x140036130
xor eax, eax
mov byte [0x1400fb779], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1400d8f32]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140036137
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x1400df678]
test eax, eax
je 0x140036137
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x1400fbd80], al
mov byte [0x1400fb778], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140058180
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x1400360a9
xor eax, eax
jmp 0x1400360ff
Function at 0x140036320
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 [0x1400ea040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsx rax, byte [r8 + 0x17]
test rax, rax
jns 0x140036354
mov rax, qword [rsi + 8]
test rax, rax
je 0x14003644b
bt ebx, 8
jae 0x140036370
mov eax, ebx
and eax, 0x200
jne 0x14003644b
cmp edi, 2
lea rax, [0x1400fb780]
lea rcx, [0x1400fb980]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14003644b
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 0x14003644b
bt ebx, 8
jb 0x14003644b
shr ebx, 9
and ebx, 1
or bl, byte [0x1400fbd80]
je 0x14003644b
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movsx r13, byte [rsi + 0x17]
test r13, r13
jns 0x14003646a
mov r14, qword [rsi]
mov r13, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov rbp, r13
sub rbp, r15
jb 0x140036434
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.14006d730
test eax, eax
je 0x14003646f
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x140036414
cmp dword [rsp + 0x2c], 0
jne 0x1400364ea
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140058180
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 0x1400363f7
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x14003647d
test ecx, ecx
jne 0x140036434
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x1400364a9
cmp dword [rsp + 0x2c], 2
jne 0x1400364ba
lea rdx, str.WOW6432Node
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
jmp 0x1400364ba
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], r14
cmp cx, 0x5c
jne 0x1400364d3
lea r14, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x1400364c0
jmp 0x1400364d6
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov r13, rbp
jmp 0x14003643b
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x1400364f6
mov rax, qword [rsi]
cmp qword [rsp + 0x30], 0
je 0x14003652c
mov rbx, qword [rsp + 0x38]
sub rbx, rax
sar rbx, 1
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.1400728b8
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
mov r9, rax
call fcn.1400231a0
jmp 0x14003644b
ud2
Function at 0x140037140
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x1400371b7
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1400ec560], rax
jne 0x1400371ba
mov rsi, rcx
call fcn.14003a6d0
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.14002ec20
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.14004dd90
mov ecx, dword [0x1400fbd8c]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1400f8648]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x140], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3
Function at 0x14003ac00
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.140058120
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x1400ea040]
xor rax, rsp
mov qword [rsp + 0x10048], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400cd960]
movaps xmmword [rdi], xmm0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.140025ab0
test rsi, rsi
jne 0x14003acab
cmp byte [rsp + 0x47], 0
js 0x14003ac68
lea rcx, [rsp + 0x30]
jmp 0x14003ac6d
mov rcx, qword [rsp + 0x30]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
cmp byte [rsp + 0x47], 0
jns 0x14003ac8e
mov rcx, qword [rsp + 0x30]
call fcn.140056d7c
mov rcx, qword [rsp + 0x10048]
xor rcx, rsp
call fcn.140058180
mov eax, ebx
add rsp, 0x10050
pop rbx
pop rdi
pop rsi
ret
lea rbx, [rsp + 0x4a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.140089530
cmp byte [rsp + 0x47], 0
jns 0x14003accc
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
je 0x14003ac7d
cmp eax, 0x7fff
jae 0x14003acfd
mov edx, eax
lea rcx, [rsp + 0x4a]
mov r8, rsi
call fcn.1400a59f0
jmp 0x14003ac7d
int3

Function at 0x14003bde0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x1401020b0], 0
jne 0x14003be1d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14003be10
mov dword [rdi], eax
mov dword [0x1401020b8], eax
mov qword [0x1401020b0], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x140043000
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14004305e
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140043048
lea rax, [rsi + 1]
cmp rax, 2
jb case.default.0x140043041
mov qword [rdi], rsi
call fcn.140048ab0
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140048ab0
mov rcx, qword [rdi]
call fcn.140045480
mov qword [rdi], 0
jmp 0x140043026
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
invalid
retf
sbb cl, ch
sbb cl, ch
jb 0x1401c0df5
fdivrp st(3)
push qword [rbp - 0x16040301]
in al, 0x21
mov ch, 0xce
adc ebp, ebp
pop rsp
invalid