joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400850b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
test rdx, rdx
jne 0x1400850ca
test r8d, r8d
jne 0x1400850c3
call fcn.1400d6f40
xor eax, eax
add rsp, 0x28
ret
mov r8d, r8d
add rsp, 0x28
jmp fcn.1400847a0

Function at 0x140086060
Capabilities:
Get session user name

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rsi, rcx
mov rax, qword [0x14037e038]
xor rax, rsp
mov qword [rsp + 0x248], rax
lea rdi, [rsp + 0x40]
mov r8d, 0x200
mov rcx, rdi
mov dl, 0xaa
call fcn.1401a41c0
lea rbx, [rsp + 0x3c]
mov dword [rbx], 0x100
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
setne al
mov ecx, dword [rbx]
test rcx, rcx
setne bl
and bl, al
je 0x1400861c2
mov r8b, byte [rsi + 0x17]
test r8b, r8b
js 0x14008619d
mov rdx, rsi
cmp ecx, 0xa
jbe 0x140086152
movzx edx, r8b
mov eax, r8d
cmp rdx, rcx
cmova rcx, rdx
mov r9d, 0xa
mov edx, 0xa
cmp rcx, 0xb
jb 0x14008610e
mov rdx, rcx
and rdx, 0xfffffffffffffffc
add rdx, 4
or rcx, 3
cmp rcx, 0xb
cmove rcx, rdx
mov rdx, rcx
test r8b, r8b
js 0x1400861cf
cmp rdx, r9
je 0x140086127
mov rcx, rsi
call fcn.140042d20
mov al, byte [rsi + 0x17]
mov rdx, rsi
test al, al
jns 0x140086152
mov rax, qword [rsi + 0x10]
mov rcx, rax
btr rcx, 0x3f
cmp rcx, 1
je 0x1400861e7
shr rax, 0x38
mov rdx, rsi
test al, al
jns 0x140086152
mov rdx, qword [rsi]
mov word [rdx], 0x2e
cmp byte [rsi + 0x17], 0
jns 0x1400861c9
mov qword [rsi + 8], 1
mov word [rdx + 2], 0
mov r8d, dword [rsp + 0x3c]
dec r8d
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14004b110
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1401a2070
mov eax, ebx
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rax, qword [rsi + 0x10]
mov rdx, rax
btr rdx, 0x3f
dec rdx
shr rax, 0x38
cmp rdx, rcx
jae 0x140086127
mov rdx, qword [rsi + 8]
jmp 0x1400860dc
call fcn.140211830
jmp 0x140086180
mov byte [rsi + 0x17], 1
jmp 0x140086165
mov rax, qword [rsi + 0x10]
mov r9, rax
btr r9, 0x3f
dec r9
shr rax, 0x38
jmp 0x140086117
mov r9, qword [rsi + 8]
mov r8d, 2
sub r8, rcx
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rdi
mov rcx, rsi
xor edx, edx
call fcn.140129830
mov qword [rsi + 8], rdi
mov al, byte [rsi + 0x17]
jmp 0x140086148
Function at 0x14008cbf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14037e038]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp edx, 0x921
jle 0x14008cc3a
cmp ebx, 0x922
je 0x14008cc5c
cmp ebx, 0xdf0
jne 0x14008cc77
lea rdi, [0x14031c780]
jmp 0x14008cc63
cmp ebx, 0x692
je 0x14008cc53
cmp ebx, 0x7da
jne 0x14008cc77
lea rdi, [0x14031c760]
jmp 0x14008cc63
lea rdi, [0x14031c750]
jmp 0x14008cc63
lea rdi, [0x14031c770]
call fcn.14007f380
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x10]
movsxd rax, dword [rax + 8]
mov ebx, dword [rdi + rax*4]
mov dword [rsp + 0x3c], ebx
mov rcx, qword [0x1403926e0]
test rcx, rcx
je 0x14008cd32
mov rax, qword [rcx]
mov rax, qword [rax + 8]
mov rdx, rsi
mov r8d, ebx
call qword [0x1403be008]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401a2070
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x3c]
call fcn.140128c00
lea rcx, [rsp + 0x30]
call fcn.140128c00
lea rcx, [rsp + 0x2c]
call fcn.140128c00
xorps xmm6, xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
cmp byte [rdi + 0x2f], 0
js 0x14008ccfb
add rdi, 0x18
jmp 0x14008ccff
mov rdi, qword [rdi + 0x18]
lea rbx, [rsp + 0x40]
mov r8d, 0x10
mov rcx, rbx
mov rdx, rdi
call fcn.1401450a0
mov rcx, rbx
call fcn.140128c00
call fcn.140211830
movups xmmword [rsi], xmm6
mov qword [rsi + 0x10], 0
jmp 0x14008cc9e
call fcn.140218240
mov rdi, rax
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x30], rax
movsxd r12, ebx
mov rcx, r12
sar rcx, 0x3f
add r12, rax
adc rcx, 0
mov eax, ecx
and eax, 1
neg rax
xor rcx, rax
jne 0x14008ce4b
test rax, rax
js 0x14008ce4b
mov rax, r12
shr rax, 0x20
jne 0x14008ce4b
mov dword [rsp + 0x2c], r12d
mov r14, qword [0x14038f0d8]
mov eax, r12d
shr eax, 4
inc eax
movzx edx, ax
mov r8d, 6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14008ccc4
mov r15, rax
mov rcx, r14
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14008ccc4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x14008ccc4
mov rbx, rax
mov rcx, r14
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
setne cl
and r12d, 0xf
je 0x14008ce19
test eax, eax
je 0x14008ce19
mov ecx, eax
mov rax, rbx
add rax, rcx
dec r12d
movzx ecx, word [rbx]
lea rbx, [rbx + rcx*2]
add rbx, 2
cmp rbx, rax
setb cl
add r12d, 0xffffffff
jae 0x14008ce19
cmp rbx, rax
jb 0x14008cdfd
test cl, cl
je 0x14008ccc4
movzx r8d, word [rbx]
test r8, r8
je 0x14008ccc4
test rbx, rbx
je 0x14008ccc4
add rbx, 2
mov rcx, rsi
mov rdx, rbx
call fcn.1401de890
jmp 0x14008cc9e
int3
Function at 0x1400adf80
Capabilities:
Initialize winhttp library

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x158
mov rsi, rcx
mov rax, qword [0x14037e038]
xor rax, rsp
mov qword [rsp + 0x150], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rcx + 0x10], rax
mov dword [rsp + 0x20], 0x10000000
mov rcx, rdx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rdi, rax
lea rax, [0x140301468]
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov byte [rsi + 0x10], 0
test rdi, rdi
je 0x1400ae0f8
lea rbx, [rsp + 0x40]
mov r8d, 0x110
mov rcx, rbx
xor edx, edx
call fcn.1401a41c0
mov dword [rbx - 0xc], 0x11c
mov r14, qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call r14
mov rcx, rax
mov edx, 1
mov r8b, 3
call r14
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call r14
movabs rcx, 0x100000006
mov qword [rbx - 8], rcx
mov word [rbx + 0x108], 0
lea rcx, [rsp + 0x34]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x1400ae0f8
lea rbx, [rsp + 0x40]
mov r8d, 0x110
mov rcx, rbx
xor edx, edx
call fcn.1401a41c0
mov dword [rbx - 0xc], 0x11c
xor ecx, ecx
mov edx, 2
mov r8b, 3
call r14
mov rcx, rax
mov edx, 1
mov r8b, 3
call r14
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call r14
movabs rcx, 0x300000006
mov qword [rbx - 8], rcx
mov word [rbx + 0x108], 0
lea rcx, [rsp + 0x34]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x1400ae0f8
lea r8, [rsp + 0x34]
mov dword [r8], 0xa80
mov rcx, rdi
mov edx, 0x54
mov r9d, 4
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401a2070
mov rax, rsi
add rsp, 0x158
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400aeff0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14037e038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov byte [rcx], 0
mov qword [rcx + 8], 0
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x40]
mov qword [rbx], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x28
mov r8, rbx
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400af0f1
mov r15, qword [rsp + 0x40]
cmp qword [rsi + 8], r15
je 0x1400af08b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1400af132
lea rax, [r15 + 1]
cmp rax, 2
jb 0x1400af083
mov qword [rsi + 8], r15
call fcn.14014c890
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8, [rsp + 0x38]
mov qword [r8], r14
xor ecx, ecx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400af10d
lea r8, [rsp + 0x48]
mov dword [r8], 1
mov rax, qword [rsp + 0x38]
mov qword [r8 + 4], rax
mov dword [r8 + 0xc], 2
lea rax, [rsp + 0x34]
mov dword [rax], 0xaaaaaaaa
lea rdx, [rsi + 0x10]
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
xor edx, edx
mov r9d, 0x10
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1400af10d
mov byte [rsi], 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401a2070
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jb 0x1400af0f1
call fcn.14014c890
mov rcx, qword [rsi + 8]
call fcn.140139570
mov qword [rsi + 8], 0
jmp 0x1400af0f1
call fcn.14014c890
mov rcx, qword [rsi + 8]
call fcn.140139570
mov qword [rsi + 8], 0
jmp 0x1400af070
Function at 0x1400b23c0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14037e038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r12, qword [rcx + 0x10]
cmp r12, qword [rcx + 0x18]
je 0x1400b2421
test r12, r12
je 0x1400b2538
mov rax, qword [rdi]
mov qword [r12], rax
add qword [rsi + 0x10], 8
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401a2070
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r14
jbe 0x1400b2486
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 0x1400b246f
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.1401a3b10
mov r12, qword [rsi + 8]
add r14, r15
mov qword [rsi + 0x10], r14
lea rax, [r12 + r13*8]
mov qword [rsi + 8], rax
mov r12, r14
jmp 0x1400b23ee
mov rax, r12
sub rax, r14
sar rax, 2
cmp r12, r14
mov r15d, 1
cmovne r15, rax
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x50], rax
mov rax, r15
shr rax, 0x3d
jne 0x1400b2564
lea rcx, [r15*8]
call fcn.1401a088c
mov rdx, r15
and rdx, 0xfffffffffffffffc
mov rcx, r12
sub rcx, rbx
mov r9, r12
lea rdx, [rax + rdx*2]
mov r8, rdx
sub r9, rbx
je 0x1400b2503
sar rcx, 3
lea r8, [r9 + rdx]
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x1400b2538
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x1400b24eb
lea r9, [rax + r15*8]
mov qword [rsi], rax
lea rcx, [rsp + 0x30]
mov qword [rcx], r14
mov qword [rsi + 8], rdx
mov qword [rcx + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rcx + 0x10], r12
mov qword [rsi + 0x18], r9
mov qword [rcx + 0x18], r12
call fcn.140248db0
mov r12, qword [rsi + 0x10]
jmp 0x1400b23ee
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.1401de150
call fcn.1401da9d0
int3
Function at 0x1400b4e80
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rsi, rcx
mov rax, qword [0x14037e038]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea r9, [rsp + 0x70]
mov qword [r9], 0
lea rcx, [0x1402f1140]
xor edx, edx
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x1400b4f69
mov rdx, qword [rsp + 0x70]
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.1401da860
movzx eax, byte [rdi + 0x17]
test al, al
js 0x1400b4ee0
and eax, 0x7f
jmp 0x1400b4eea
mov rax, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rax
test rax, rax
js 0x1400b4f75
test rdi, rdi
jne 0x1400b4f07
test rax, rax
jne 0x1400b4fa1
lea rdi, [rsp + 0x58]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.14014d2e0
mov rcx, rsi
mov rdx, rdi
call fcn.1400780a0
mov rcx, rdi
call fcn.14014d430
cmp byte [rsp + 0x47], 0
jns 0x1400b4f3d
mov rcx, qword [rsp + 0x30]
call fcn.1401a08c8
mov bl, 1
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400b4f4f
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401a2070
mov eax, ebx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
call fcn.140249aa0
mov ebx, eax
jmp 0x1400b4f3f
lea rax, str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len___static_cast_size_type__numeric_limits_difference_type_::max___
mov r8d, 0x13a
call fcn.1401de150
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len__0____s___nullptr
mov r8d, 0x13c
call fcn.1401de150
int3
Function at 0x1400b5080
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rsi, rcx
mov rax, qword [0x14037e038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x1400b50a8
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400b50e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400b5103
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1401a2070
mov rcx, rsi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
jmp fcn.1400b51e0
mov sil, 1
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1401a2070
mov eax, esi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14014c5f0
test al, al
jne 0x1400b5115
xor esi, esi
jmp 0x1400b50e6
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x265
mov r9d, 2
call fcn.14020ed80
lea rcx, [rsp + 0x68]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1401daa50
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1400b5165
and r8d, 0x7f
jmp 0x1400b516c
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.140129b00
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.140143120
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1400b519c
and r8d, 0x7f
jmp 0x1400b51a6
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1401daa50
cmp byte [rsp + 0x57], 0
jns 0x1400b51c2
mov rcx, qword [rsp + 0x40]
call fcn.1401a08c8
lea rcx, [rsp + 0x58]
call fcn.14020ee00
jmp 0x1400b5111

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

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rsi, rcx
mov rax, qword [0x14037e038]
xor rax, rsp
mov qword [rsp + 0x170], rax
cmp byte [rcx + 0x17], 0
jns 0x1400b5207
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400b5245
mov dil, 1
test al, 0x10
je 0x1400b5235
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1401a2070
mov eax, edi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14014c5f0
test al, al
je 0x1400b5253
jmp 0x1400b52ac
mov ecx, 2
call fcn.14014c5f0
test al, al
jne 0x1400b5257
xor edi, edi
jmp 0x1400b5219
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x251
mov r9d, 2
call fcn.14020ed80
lea rcx, [rsp + 0x40]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401daa50
mov rcx, rax
mov rdx, rsi
call fcn.14020fcb0
mov rcx, rdi
call fcn.14020ee00
jmp 0x1400b5253
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x255
mov r9d, 2
call fcn.140075d80
lea rcx, [rsp + 0x40]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1401daa50
mov rcx, rax
mov rdx, rsi
call fcn.14020fcb0
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.1401daa50
mov rcx, rdi
call fcn.1400763d0
jmp 0x1400b5253
Function at 0x1400b6780
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rax, qword [0x14037e038]
xor rax, rsp
mov qword [rsp + 0x30], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x28]
mov qword [rsi], rax
mov rdx, rsi
call fcn.1400b53a0
mov rax, qword [rsi]
test rax, rax
je 0x1400b67f7
mov rbx, qword [rax + 0x50]
mov r15, qword [rax + 0x58]
xor esi, esi
cmp rbx, r15
jne 0x1400b6813
lea rcx, [rsp + 0x28]
call fcn.1400b5e50
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401a2070
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 3
jmp 0x1400b67d0
mov rcx, r14
mov rdx, rbx
call fcn.1400b76b0
add r14, 0x68
mov qword [rdi + 8], r14
jmp 0x1400b6820
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], 0
je 0x1400b682b
add rbx, 0x70
cmp rbx, r15
je 0x1400b67d0
jmp 0x1400b681a
cmp byte [rbx + 0x27], 0
js 0x1400b6837
lea rcx, [rbx + 0x10]
jmp 0x1400b683b
mov rcx, qword [rbx + 0x10]
call r12
test al, 0x10
jne 0x1400b6820
mov r14, qword [rdi + 8]
cmp r14, qword [rdi + 0x10]
jb 0x1400b67fe
mov rcx, rdi
mov rdx, rbx
call fcn.1400b74e0
mov r14, rax
jmp 0x1400b680d

Function at 0x1400b6860
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rax, qword [0x14037e038]
xor rax, rsp
mov qword [rsp + 0x30], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x28]
mov qword [rsi], rax
mov rdx, rsi
call fcn.1400b53a0
mov rax, qword [rsi]
test rax, rax
je 0x1400b68d7
mov rbx, qword [rax + 0x50]
mov r15, qword [rax + 0x58]
xor esi, esi
cmp rbx, r15
jne 0x1400b68de
lea rcx, [rsp + 0x28]
call fcn.1400b5e50
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401a2070
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 3
jmp 0x1400b68b0
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], 2
jne 0x1400b691f
cmp byte [rbx + 0x27], 0
js 0x1400b68f7
lea rcx, [rbx + 0x10]
jmp 0x1400b68fb
mov rcx, qword [rbx + 0x10]
call r12
test al, 0x10
jne 0x1400b691f
mov r14, qword [rdi + 8]
cmp r14, qword [rdi + 0x10]
jae 0x1400b692a
mov rcx, r14
mov rdx, rbx
call fcn.1400b76b0
add r14, 0x68
mov qword [rdi + 8], r14
add rbx, 0x70
cmp rbx, r15
je 0x1400b68b0
jmp 0x1400b68e5
mov rcx, rdi
mov rdx, rbx
call fcn.1400b74e0
mov r14, rax
jmp 0x1400b691b
Function at 0x1400b7f00
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14037e038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1403948f8]
mov ecx, dword [0x14038f038]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400b7f60
lea rsi, [0x1403948f0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401a2070
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1403948f8]
call fcn.1401a09e0
cmp dword [0x1403948f8], 0xffffffff
jne 0x1400b7f3c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1401a41c0
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.1401a088c
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140394940]
mov ecx, dword [0x14038f038]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400b8020
lea r8, [0x140394910]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.1400b8120
mov qword [0x1403948f0], rsi
lea rcx, [0x1403948f8]
call fcn.1401a0a78
jmp 0x1400b7f3c
lea rcx, [0x140394940]
call fcn.1401a09e0
cmp dword [0x140394940], 0xffffffff
jne 0x1400b7ff1
xorps xmm0, xmm0
movups xmmword [0x140394930], xmm0
movups xmmword [0x140394920], xmm0
movups xmmword [0x140394910], xmm0
lea rcx, [0x140394910]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140394940]
call fcn.1401a0a78
jmp 0x1400b7ff1

Function at 0x1400b8070
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140394940]
mov ecx, dword [0x14038f038]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400b80ab
movzx eax, word [0x140394910]
cmp eax, 9
jne 0x1400b80f3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x140394940]
call fcn.1401a09e0
cmp dword [0x140394940], 0xffffffff
jne 0x1400b8095
xorps xmm0, xmm0
movups xmmword [0x140394930], xmm0
movups xmmword [0x140394920], xmm0
movups xmmword [0x140394910], xmm0
lea rcx, [0x140394910]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140394940]
call fcn.1401a0a78
jmp 0x1400b8095
test eax, eax
je 0x1400b80a6
cmp eax, 6
jne 0x1400b8103
mov eax, 2
jmp 0x1400b80a6
cmp eax, 0xc
jne 0x1400b810f
mov eax, 3
jmp 0x1400b80a6
mov eax, 4
jmp 0x1400b80a6
Function at 0x1400b8b90
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rdi, r9
mov r14, r8
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14037e038]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x68]
mov qword [rax], 0
mov qword [rsp + 0x20], rax
lea rcx, [0x1402f1160]
lea r9, [0x140321740]
xor edx, edx
mov r8d, 1
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400b8d45
mov qword [rsp + 0x60], 0
movzx eax, byte [r14 + 0x17]
test al, al
js 0x1400b8c02
and eax, 0x7f
jmp 0x1400b8c09
mov rax, qword [r14 + 8]
mov r14, qword [r14]
mov r15, qword [rsp + 0x68]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], rax
test rax, rax
js 0x1400b8d7b
test r14, r14
jne 0x1400b8c2f
test rax, rax
jne 0x1400b8da7
lea r14, [rsp + 0x58]
lea rdx, [rsp + 0x48]
mov rcx, r14
call fcn.1400e45c0
mov rdx, qword [r14]
mov rax, qword [r15]
mov rax, qword [rax + 0x18]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x40], rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, r15
xor r8d, r8d
xor r9d, r9d
call qword [0x1403be008]
mov ebp, eax
mov rcx, r14
call fcn.1400e4610
test ebp, ebp
js 0x1400b8d33
test bl, bl
je 0x1400b8ccb
mov rcx, qword [rsp + 0x60]
mov eax, 3
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov edx, 0xa
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x1400b8d3b
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x60], 0
mov rcx, qword [rdi]
mov qword [rdi], rax
test rcx, rcx
jne 0x1400b8d51
mov byte [rsi], 0
xor eax, eax
mov byte [rsi + 4], al
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jne 0x1400b8d60
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400b8d16
mov qword [rsp + 0x68], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1403be008]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401a2070
mov rax, rsi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov dword [rsi], 1
jmp 0x1400b8d41
mov dword [rsi], 2
mov al, 1
jmp 0x1400b8ce9
mov dword [rsi], 0
mov byte [rsi + 4], 1
jmp 0x1400b8cf6
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1403be008]
jmp 0x1400b8ce4
mov qword [rsp + 0x60], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1403be008]
jmp 0x1400b8cf6
lea rax, str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len___static_cast_size_type__numeric_limits_difference_type_::max___
mov r8d, 0x13a
call fcn.1401de150
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__len__0____s___nullptr
mov r8d, 0x13c
call fcn.1401de150
int3