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

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.14006c010
mov qword [rsi], 0
test rax, rax
je 0x14003ae93
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003aec7
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14003ae8b
mov qword [rsi], rbx
call fcn.14006bde0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.140060090
lea rcx, [rsi + 0x20]
call fcn.140074310
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.14006bde0
mov rcx, qword [rsi]
call fcn.14006c1a0
mov qword [rsi], 0
jmp 0x14003ae79
Function at 0x14003c710
Capabilities:
Create thread

Disassembly:
jmp 0x14003c710
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebp, r9d
mov rdi, r8
mov rsi, rdx
mov r13, rcx
xor ebx, ebx
test rcx, rcx
setne bl
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xfffffffe00000000
shl ebx, 0x10
mov ecx, 0x10
call fcn.140081638
mov r15, rax
mov rax, rsi
and rax, r12
cmp rax, qword [0x140115308]
je 0x14003c7d3
mov qword [r15], rsi
test rdi, rdi
setne byte [r15 + 8]
mov dword [r15 + 0xc], ebp
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], 0
lea r8, [0x14003cab0]
xor ecx, ecx
mov rdx, r13
mov r9, r15
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, rax
test rax, rax
je 0x14003c7dd
test rdi, rdi
je 0x14003c821
mov qword [rdi], r14
test r14, r14
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140081fe0
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rsi
call fcn.1400caee0
jmp 0x14003c76c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14003c7f6
mov edi, eax
cmp eax, 0x5af
je 0x14003c7f6
cmp edi, 0xe
jne 0x14003c82c
mov rcx, r13
call fcn.1400d0490
test r15, r15
je 0x14003c7ad
mov rcx, qword [r15]
and r12, rcx
cmp r12, qword [0x140115308]
jne 0x14003c817
call fcn.1400cafe0
mov rcx, r15
call fcn.140081674
jmp 0x14003c7ad
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14003c7ad
mov eax, dword [0x140122330]
mov ecx, dword [0x14011c824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003c89f
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov edx, edi
call fcn.14003afd0
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
cmovs rax, qword [rsi + 8]
lea rdx, [rsp + 0x50]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rcx, qword [0x140122328]
call fcn.140074870
cmp byte [rsi + 0x17], 0
jns 0x14003c7fe
mov rcx, qword [rsp + 0x38]
call fcn.140081674
jmp 0x14003c7fe
lea rcx, [0x140122330]
call fcn.140081790
cmp dword [0x140122330], 0xffffffff
jne 0x14003c84d
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.14004c0e0
mov qword [0x140122328], rax
lea rcx, [0x140122330]
call fcn.140081828
jmp 0x14003c84d
Function at 0x14003cf50
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov edi, edx
mov rsi, rcx
lea rax, str.___r_
mov qword [rcx], rax
add rcx, 8
call fcn.140065490
lea rcx, [rsi + 0x10]
call fcn.140065490
xor ebx, ebx
mov byte [rsi + 0x18], bl
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], ebx
call fcn.140065490
mov byte [rsi + 0x48], bl
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rbx
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
movups xmmword [rsi + 0xc0], xmm6
movups xmmword [rsi + 0xd0], xmm6
mov qword [rsi + 0xe0], rbx
mov ebp, 0x3f800000
mov dword [rsi + 0xe8], ebp
mov dword [rsi + 0xf0], ebx
movups xmmword [rsi + 0xf8], xmm6
movups xmmword [rsi + 0x108], xmm6
mov dword [rsi + 0x118], ebp
movups xmmword [rsi + 0x120], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x140], ebp
movups xmmword [rsi + 0x148], xmm6
movups xmmword [rsi + 0x158], xmm6
mov dword [rsi + 0x168], ebp
movups xmmword [rsi + 0x170], xmm6
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], ebp
mov qword [rsi + 0x1b0], rbx
movups xmmword [rsi + 0x198], xmm6
mov dword [rsi + 0x1a8], ebx
mov eax, dword [0x140102aec]
mov dword [rsi + 0x1b8], eax
lea rcx, [rsi + 0x1c0]
call fcn.14004c980
lea rcx, [rsi + 0x308]
movups xmmword [rsi + 0x2f0], xmm6
mov qword [rsi + 0x300], rbx
xor edx, edx
call fcn.140048f80
lea rcx, [rsi + 0x310]
xor edx, edx
call fcn.140048f80
lea rcx, [rsi + 0x318]
xor edx, edx
call fcn.140048f80
movups xmmword [rsi + 0x320], xmm6
movups xmmword [rsi + 0x330], xmm6
mov dword [rsi + 0x340], ebp
movsxd rax, edi
movups xmmword [rsi + 0x348], xmm6
movups xmmword [rsi + 0x358], xmm6
movups xmmword [rsi + 0x368], xmm6
mov byte [rsi + 0x378], bl
mov qword [rsi + 0x380], rax
mov byte [rsi + 0x388], bl
movups xmmword [rsi + 0x390], xmm6
movups xmmword [rsi + 0x3a0], xmm6
call fcn.140019a90
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x1a8], eax
cdqe
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x1a0], rax
mov rcx, rsi
call fcn.14003d190
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x14003d16f
call fcn.14004c220
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.14004c2d0
mov qword [0x1401226f0], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x140131010]
jmp 0x14003d13d
Function at 0x140041880
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 r12, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x1400418b4
mov rax, qword [r12 + 8]
test rax, rax
je 0x1400419ac
mov eax, ebx
not eax
test eax, 0x300
je 0x1400419ac
cmp edi, 2
lea rax, [0x140124220]
lea rcx, [0x140124420]
cmove rcx, rax
cmp word [rcx], 0
jne 0x1400419ac
xorps xmm0, xmm0
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsi], 0
je 0x1400419ac
cmp byte [0x140124210], 0
setne al
bt ebx, 8
jb 0x1400419ac
shr ebx, 9
and ebx, 1
or bl, al
je 0x1400419ac
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea rsi, str.SOFTWARE
cmove rsi, rax
movzx r13d, byte [r12 + 0x17]
test r13b, r13b
jns 0x140041a07
mov rbx, qword [r12]
mov r13, qword [r12 + 8]
mov r14d, 1
xor r15d, r15d
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov rdi, qword [rsi + 8]
mov rbp, r13
sub rbp, rdi
jb 0x140041999
mov rdx, qword [rsi]
mov rcx, rbx
mov r8, rdi
call fcn.140096a30
test eax, eax
je 0x1400419cb
add rsi, 0x28
inc r15
cmp r15, r14
jb 0x14004197b
cmp dword [rsp + 0x2c], 0
jne 0x140041a0f
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140081fe0
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, word [rbx + rdi*2]
cmp cx, 0x5c
je 0x1400419da
test cx, cx
jne 0x140041999
lea rax, [rbx + rdi*2]
mov edx, dword [rsi + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x140041a37
cmp dword [rsp + 0x2c], 2
jne 0x140041a48
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x140041a48
mov rbx, r12
jmp 0x14004195c
cmp byte [r12 + 0x17], 0
js 0x140041a77
mov rax, r12
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, r12
mov r8, qword [rsp + 0x38]
call fcn.140028d30
jmp 0x1400419ac
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbx
cmp cx, 0x5c
jne 0x140041a61
lea rbx, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, rbx
je 0x140041a4e
jmp 0x140041a64
mov rbx, rax
mov r14, qword [rsi + 0x20]
mov rsi, qword [rsi + 0x18]
xor r15d, r15d
mov r13, rbp
jmp 0x1400419a0
mov rax, qword [r12]
jmp 0x140041a1a
Function at 0x140043a00
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140043a27
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140043a61
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140043a80
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140081fe0
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.140043b40
mov sil, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140081fe0
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14006a7a0
test al, al
je 0x140043b37
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x265
mov r9d, 2
call fcn.1400cee70
lea rcx, [rsp + 0x60]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1400596c0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.140063da0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140043b11
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
call fcn.1400596c0
cmp byte [rsp + 0x4f], 0
jns 0x140043b2d
mov rcx, qword [rsp + 0x38]
call fcn.140081674
lea rcx, [rsp + 0x50]
call fcn.1400ceef0
xor esi, esi
jmp 0x140043a64
Function at 0x140043b40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x1a8
mov rsi, rcx
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x140043b67
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140043b99
mov dil, 1
test al, 0x10
je 0x140043c55
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140081fe0
mov eax, edi
add rsp, 0x1a8
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14006a7a0
test al, al
je 0x140043d18
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x250
mov r9d, 2
call fcn.1400cee70
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400596c0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x38]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.140063da0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140043c2a
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.1400596c0
cmp byte [rsp + 0x5f], 0
jns 0x140043c46
mov rcx, qword [rsp + 0x48]
call fcn.140081674
lea rcx, [rsp + 0x60]
call fcn.1400ceef0
jmp 0x140043d18
mov ecx, 2
call fcn.14006a7a0
test al, al
je 0x140043d18
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x254
mov r9d, 2
call fcn.140038fc0
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400596c0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.140063da0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140043cdd
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call fcn.1400596c0
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.1400596c0
cmp byte [rsp + 0x5f], 0
jns 0x140043d0e
mov rcx, qword [rsp + 0x48]
call fcn.140081674
lea rcx, [rsp + 0x60]
call fcn.140039460
xor edi, edi
jmp 0x140043b7d
Function at 0x140045e60
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x88], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
movzx eax, byte [r8 + 0x17]
test al, al
mov rcx, qword [r8]
cmovns rcx, r8
lea rdx, [rsp + 0x60]
mov qword [rdx], rcx
cmovs rax, qword [r8 + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x70]
mov rcx, rsi
call fcn.140063a40
cmp byte [rsi + 0x17], 0
jns 0x140045ebb
mov rsi, qword [rsp + 0x70]
movaps xmm0, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x48]
mov rcx, rdi
call fcn.140063a40
cmp byte [rdi + 0x17], 0
jns 0x140045ee0
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [rsp + 0x5f], 0
jns 0x140045eff
mov rcx, qword [rsp + 0x48]
call fcn.140081674
cmp byte [rsp + 0x87], 0
jns 0x140045f13
mov rcx, qword [rsp + 0x70]
call fcn.140081674
test esi, esi
setne bl
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140081fe0
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x140045fc0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x140113018]
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.140063a40
cmp byte [rdi + 0x17], 0
jns 0x140046001
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 0x140046022
mov rcx, qword [rsp + 0x58]
call fcn.140081674
test edi, edi
je 0x1400460c9
test r14, r14
je 0x1400460c9
mov ecx, edi
add rcx, rcx
call fcn.1400816ac
mov rbx, rax
movups xmm0, xmmword [rsi]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rsi, [rsp + 0x58]
mov rcx, rsi
call fcn.140063a40
cmp byte [rsi + 0x17], 0
jns 0x140046063
mov rsi, qword [rsp + 0x58]
mov rcx, rsi
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x6f], 0
jns 0x140046083
mov rcx, qword [rsp + 0x58]
call fcn.140081674
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x1400460e7
mov rcx, rbx
call fcn.14009afb0
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x58]
call fcn.140063da0
cmp byte [r14 + 0x17], 0
js 0x1400460ea
mov rax, qword [rsp + 0x68]
mov qword [r14 + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [r14], xmm0
mov rcx, rbx
call fcn.1400816b4
test edi, edi
setne bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140081fe0
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
mov rcx, qword [r14]
call fcn.140081674
jmp 0x1400460af
Function at 0x140046420
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1400f69f0]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
je 0x14004650b
lea r14, [rsp + 0x6c]
xor ebx, ebx
mov r8d, 0x110
mov rcx, r14
xor edx, edx
call fcn.140084d10
mov dword [r14 - 0xc], 0x11c
mov rdi, qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call rdi
mov rcx, rax
mov edx, 1
mov r8b, 3
call rdi
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call rdi
mov qword [r14 - 8], 6
mov word [r14 + 0x108], 0
lea rcx, [rsp + 0x60]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov edi, 0x80003
test eax, eax
je 0x140046512
xorps xmm0, xmm0
lea rbx, [rsp + 0x40]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov dword [rbx], 0x18
xor ecx, ecx
call fcn.140046570
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x140046512
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x14004651b
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rbx
mov eax, 0x200
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x30], 0
mov rcx, rsi
mov edx, edi
mov r8d, 6
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140081fe0
mov rax, rsi
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140047180
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x1400473db
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1401166a0], rax
jne 0x1400473de
mov rsi, rcx
mov edi, dword [rcx + 0xc]
add rdi, 0x2f8
mov byte [rsp + 0x3f], 0xaa
bsr rax, rdi
xor rax, 0xffffffffffffffc0
lea rcx, [0x1400ff020]
mov cl, byte [rax + rcx + 0x41]
mov rdx, rdi
shr rdx, cl
and edx, 3
lea rcx, [0x1400ff070]
mov rcx, qword [rcx + rax*8 + 0x208]
and rcx, rdi
lea rax, [rdx + rax*4]
add rax, 0x104
cmp rcx, 1
sbb rax, 0xffffffffffffffff
lea rcx, [0x1400fec08]
movzx eax, word [rcx + rax*2 + 0x200]
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x58
lea r14, [rsi + 0x50]
mov ebx, 1
xor r13d, r13d
mov rbp, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, r14
call rbp
test al, al
je 0x1400473a3
mov rax, qword [r15]
mov rbx, qword [rax]
test rbx, rbx
je 0x14004733c
mov byte [rsp + 0x3f], 0
mov rdx, qword [rbx]
test rdx, rdx
je 0x140047335
mov ecx, dword [rsi + r12*8 + 0x70]
mov rdi, rdx
bswap rdi
test edi, 0x1fc000
je 0x1400473d6
mov rbp, rdi
xor rbp, rbx
cmp rbp, 0x1fffff
ja 0x1400473d6
not rdx
cmp qword [rbx + 8], rdx
jne 0x1400473d6
prefetcht0 byte [rdi]
mov qword [rax], rdi
inc word [rax + 0x18]
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0xaa8]
mov qword [rsi + 0xaa8], rax
mov rcx, qword [rsi + 0xab0]
cmp rcx, rax
cmovae rax, rcx
mov qword [rsi + 0xab0], rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rbx
mov rdx, rsi
call fcn.1400717e0
mov ecx, dword [0x14012485c]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14011c824]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x140], rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140081fe0
mov rax, rbx
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor edi, edi
jmp 0x1400472a6
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, rdi
call fcn.140058870
test rax, rax
je 0x1400473e1
mov rbx, 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 0x1400472ad
mov eax, ebx
test ebx, ebx
jle 0x1400473b2
pause
dec eax
jne 0x1400473a9
add r13d, ebx
add ebx, ebx
cmp ebx, 0x10
mov eax, 0x10
cmovge ebx, eax
cmp r13d, 0x40
jl 0x14004723f
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14004724c
call fcn.1400ae970
int3
int3
xor ebx, ebx
jmp 0x1400472d7
Function at 0x140047e90
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140113018]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140124f30]
mov ecx, dword [0x14011c824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140047ef0
lea rsi, [0x140124f28]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140081fe0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140124f30]
call fcn.140081790
cmp dword [0x140124f30], 0xffffffff
jne 0x140047ecc
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140084d10
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
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.140081638
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140124f78]
mov ecx, dword [0x14011c824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140047fb0
lea r8, [0x140124f48]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.1400480d0
mov qword [0x140124f28], rsi
lea rcx, [0x140124f30]
call fcn.140081828
jmp 0x140047ecc
lea rcx, [0x140124f78]
call fcn.140081790
cmp dword [0x140124f78], 0xffffffff
jne 0x140047f81
xorps xmm0, xmm0
movups xmmword [0x140124f68], xmm0
movups xmmword [0x140124f58], xmm0
movups xmmword [0x140124f48], xmm0
lea rcx, [0x140124f48]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140124f78]
call fcn.140081828
jmp 0x140047f81

Function at 0x140048020
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140124f78]
mov ecx, dword [0x14011c824]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004805c
movzx ecx, word [0x140124f48]
cmp cx, 9
jne 0x1400480a4
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x140124f78]
call fcn.140081790
cmp dword [0x140124f78], 0xffffffff
jne 0x140048045
xorps xmm0, xmm0
movups xmmword [0x140124f68], xmm0
movups xmmword [0x140124f58], xmm0
movups xmmword [0x140124f48], xmm0
lea rcx, [0x140124f48]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140124f78]
call fcn.140081828
jmp 0x140048045
xor eax, eax
test cx, cx
je 0x140048057
cmp cx, 6
jne 0x1400480b8
mov eax, 2
jmp 0x140048057
cmp cx, 0xc
jne 0x1400480c5
mov eax, 3
jmp 0x140048057
mov eax, 4
jmp 0x140048057