joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009a470
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x14049f3c0]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x31], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x21], xmm1
mov r8d, reloc.WS2_32.dll_inet_addr
lea rdx, str.MBAMWsc.exe
lea rcx, [rbp - 0x31]
call fcn.140031e00
nop
lea r8, [rbp - 0x31]
mov rdx, rbx
lea rcx, [rbp + 0x2f]
call fcn.1400a2f80
nop
lea rcx, [rbp - 0x31]
call fcn.1400166f0
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
mov r8d, socket
lea rdx, str.MBAMWsc_Legacy.exe
lea rcx, [rbp - 0x11]
call fcn.140031e00
nop
lea r8, [rbp - 0x11]
mov rdx, rbx
lea rcx, [rbp + 0xf]
call fcn.1400a2f80
nop
lea rcx, [rbp - 0x11]
call fcn.1400166f0
xor r8d, r8d
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0xf]
call fcn.1400b93b0
test al, al
je 0x14009a65a
cmp dword [rbp - 0x39], 0
jne 0x14009a65a
call fcn.14001ef60
mov rcx, rax
call fcn.1400b1f70
lea rcx, [rbp + 0xf]
cmp eax, 0xc
jb 0x14009a55a
xor r8d, r8d
xor edx, edx
call fcn.1400ba850
jmp 0x14009a65a
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 7
cmova rdx, qword [rbp + 0x2f]
cmp qword [rbp + 0x27], 7
cmova rcx, qword [rbp + 0xf]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14009a65a
lea rdx, str.Error:_Failed_to_move_file
lea rcx, [0x1404b5d00]
call fcn.140034a00
mov rbx, rax
lea rdx, [rbp + 0xf]
lea rcx, [rbp - 0x31]
call fcn.1400a3bc0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14009a5b8
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140035a10
lea rdx, str._to
mov rcx, rax
call fcn.140034a00
mov rbx, rax
lea rdx, [rbp + 0x2f]
lea rcx, [rbp - 0x11]
call fcn.1400a3bc0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14009a5f1
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140035a10
lea rdx, str.._Error
mov rcx, rax
call fcn.140034a00
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140033380
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140035dd0
movzx edx, al
mov rcx, rbx
call fcn.140035860
mov rcx, rbx
call fcn.14002eff0
nop
lea rcx, [rbp - 0x11]
call fcn.140016400
nop
lea rcx, [rbp - 0x31]
call fcn.140016400
nop
lea rcx, [rbp + 0xf]
call fcn.1400166f0
nop
lea rcx, [rbp + 0x2f]
call fcn.1400166f0
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1402ba9b0
mov rbx, qword [rsp + 0xc8]
add rsp, 0xb0
pop rbp
ret
Function at 0x14009ef60
Capabilities:
Initialize winhttp library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14049f3c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x18], 7
jbe 0x14009ef83
mov rcx, qword [rcx]
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rdi, rax
test rax, rax
jne 0x14009f055
lea rcx, [rsp + 0x30]
call fcn.14009ece0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 7
jbe 0x14009efc0
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404b3c00]
call fcn.140060f60
lea rdx, str.D:JenkinsworkspaceN_SUCommon_VS2022_srcSUCommonSetupUtilities.cpp
mov rcx, rax
call fcn.140049e60
mov rcx, rax
lea rdx, [0x14041b3dc]
call fcn.140049e60
mov edx, 0x234
mov rcx, rax
call fcn.1400476f0
mov rcx, rax
lea rdx, str.:_Error_on_WinHttpOpen:
call fcn.140049e60
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14001f120
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002fc90
movzx edx, ax
mov rcx, rbx
call fcn.140072fb0
mov rcx, rbx
call fcn.14002eff0
nop
lea rcx, [rsp + 0x30]
call fcn.1400166f0
xor eax, eax
jmp 0x14009f0f7
mov dword [rsp + 0x54], 0x2a0
mov dword [rsp + 0x50], 0xaa0
mov r9d, 4
lea r8, [rsp + 0x50]
lea edx, [r9 + 0x50]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x14009f0f4
lea r9d, [rax + 4]
lea r8, [rsp + 0x54]
lea edx, [rax + 0x54]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x14009f0f4
lea rdx, str.Error_on_WinHttpSetOption_SECURE_PROTOCOLS_:
lea rcx, [0x1404b3c00]
call fcn.140049e60
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14001f120
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.14002fc90
movzx edx, ax
mov rcx, rbx
call fcn.140072fb0
mov rcx, rbx
call fcn.14002eff0
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x14009f0f7
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1402ba9b0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1400b2080
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r13
push rbp
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14049f3c0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r13d, edx
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x70]
call fcn.14030b3a0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x140445990]
movdqu xmmword [rsp + 0x60], xmm1
xor edi, edi
mov word [rsp + 0x50], di
mov word [rsp + 0x40], di
mov word [rsp + 0x44], di
mov word [rsp + 0x4c], di
mov word [rsp + 0x48], di
movzx esi, di
movzx r15d, di
movzx r14d, di
mov edx, 0x100
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400b2131
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8d, [rdi + 0x13]
lea rdx, str.C:WindowsSystem32
jmp 0x1400b214f
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], si
jne 0x1400b2140
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140031b60
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.wintrust.dll
lea rcx, [rsp + 0x50]
call fcn.14002be20
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.1400ba000
test al, al
je 0x1400b220c
lea eax, [r13 - 6]
mov ebx, 1
cmp eax, ebx
jbe 0x1400b21c2
cmp r13d, 5
jne 0x1400b21d6
mov r15d, 0x1773
mov r14d, 0x504b
jmp 0x1400b21d1
movzx edi, bx
mov r15d, 0x1db1
mov r14d, 0x5f3e
mov esi, 6
cmp word [rsp + 0x40], si
jne 0x1400b21f4
cmp word [rsp + 0x44], di
jne 0x1400b21f4
cmp word [rsp + 0x48], r15w
jne 0x1400b21f4
cmp word [rsp + 0x4c], r14w
je 0x1400b2203
mov eax, 0xff
cmovb ebx, eax
not bl
shr bl, 7
jmp 0x1400b220e
xor bl, bl
not bl
shr bl, 7
jmp 0x1400b220e
xor bl, bl
lea rcx, [rsp + 0x50]
call fcn.1400166f0
movzx eax, bl
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1402ba9b0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r13, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400b2330
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x14049f3c0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
xor edx, edx
mov ecx, 0x40000002
xor edi, edi
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400b23a3
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x18
jne 0x1400b23df
mov ecx, edi
inc edi
cmp ecx, 0x32
jae 0x1400b23d9
lea ecx, [rax + 0x1a]
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov ecx, 0x40000002
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400b2370
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x1400b2456
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x1400b2432
mov eax, dword [rsp + 0x48]
mov dword [rdx], eax
add qword [rbx + 8], 4
jmp 0x1400b243f
cmp rsi, 0xffffffffffffffff
jne 0x1400b23a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14001e910
mov dword [rsp + 0x38], ebx
lea rcx, str.CreateToolhelp32Snapshot_call_failed_with_error___d_._Cannot_enumerate_processes_on_this_system_
mov qword [rsp + 0x30], rcx
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonProcessUtils.cpp
lea rcx, str.ProcessUtils
mov r9d, 0x9f
mov r10, qword [rax]
lea rdx, str.mb::common::system::ProcessUtils::EnumerateProcesses
mov qword [rsp + 0x28], rcx
mov rcx, rax
mov dword [rsp + 0x20], 4
call qword [r10 + 0x20]
mov eax, ebx
jmp 0x1400b2461
lea r8, [rsp + 0x48]
mov rcx, rbx
call fcn.1400869b0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x1400b23c2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1402ba9b0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400b2490
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x14049f3c0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor ebx, ebx
lea rdi, [0x1404b6c00]
mov qword [rsp + 0x20], rdi
mov rcx, rdi
call fcn.14013d170
nop
xorps xmm0, xmm0
movups xmmword [0x1404b6c28], xmm0
mov qword [0x1404b6c38], rbx
mov qword [0x1404b6c40], 7
mov word [0x1404b6c28], bx
movups xmmword [0x1404b6c48], xmm0
mov qword [0x1404b6c58], rbx
mov qword [0x1404b6c60], 7
mov word [0x1404b6c48], bx
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14005f980
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x80]
call fcn.14030b3a0
mov edx, 0x104
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1400b256a
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x140445990]
movdqu xmmword [rsp + 0x48], xmm1
mov word [rsp + 0x38], bx
jmp 0x1400b2580
mov r8d, eax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x38]
call fcn.14002ebe0
nop
mov r9d, 2
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140047e80
mov rdx, rax
lea rcx, [0x1404b6c28]
call fcn.14002eb40
lea rcx, [rsp + 0x60]
call fcn.1400166f0
nop
lea rcx, [rsp + 0x38]
call fcn.1400166f0
cmp qword [0x1404b6c38], 2
jne 0x1400b2604
lea rdx, [0x1404b6c28]
lea rcx, [rsp + 0x60]
call fcn.140031cb0
lea rdx, [0x1404b6c48]
mov rcx, rax
call fcn.1400b99c0
test al, al
je 0x1400b2604
mov r8d, 1
lea rdx, [0x140428268]
lea rcx, [0x1404b6c48]
call fcn.14002be20
nop
lea rcx, [rsp + 0x30]
call fcn.14005f960
nop
mov rax, rdi
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1402ba9b0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x2a0
pop rdi
ret
Function at 0x1400b4bf0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x60
mov rax, qword [0x14049f3c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor r14d, r14d
mov rsi, rdx
cmp qword [rcx + 0x18], 0xf
mov rbx, rcx
mov dword [rsp + 0x54], r14d
jbe 0x1400b4c20
mov rcx, qword [rcx]
mov edx, dword [rbx + 0x10]
lea rax, [rsp + 0x54]
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x98], rdi
lea r8d, [r9 + 6]
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x1400b4d5c
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x1400b4d5c
mov rbp, qword [rsi + 8]
mov edi, eax
mov rdx, qword [rsi]
mov rcx, rbp
sub rcx, rdx
mov byte [rsp + 0x50], r14b
cmp rax, rcx
jae 0x1400b4c86
add rax, rdx
jmp 0x1400b4cba
jbe 0x1400b4cbe
mov rax, qword [rsi + 0x10]
sub rax, rdx
cmp rdi, rax
jbe 0x1400b4ca6
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, rsi
call fcn.1400a0710
jmp 0x1400b4cbe
sub rdi, rcx
xor edx, edx
mov r8, rdi
mov rcx, rbp
call fcn.14030b3a0
lea rax, [rdi + rbp]
mov qword [rsi + 8], rax
cmp qword [rbx + 0x18], 0xf
mov rcx, rbx
jbe 0x1400b4ccb
mov rcx, qword [rbx]
mov r9, qword [rsi]
lea rax, [rsp + 0x54]
mov edx, dword [rbx + 0x10]
mov r8d, 6
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x1400b4d58
call fcn.14001e910
mov rdi, rax
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 0xf
jbe 0x1400b4d14
mov rbx, qword [rbx]
mov dword [rsp + 0x40], eax
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonCrypto.cpp
mov qword [rsp + 0x38], rbx
lea rax, str.CryptStringToBinaryA_failed_for__hs._Error__u
mov qword [rsp + 0x30], rax
lea rdx, str.mb::common::crypto::DecodeBase64CertString
lea rax, str.Crypto
mov r9d, 0x3c6
mov qword [rsp + 0x28], rax
mov rcx, rdi
mov dword [rsp + 0x20], 1
call rsi
jmp 0x1400b4dc5
mov al, 1
jmp 0x1400b4dc7
call fcn.14001e910
mov ebp, dword [rsp + 0x54]
mov rdi, rax
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 0xf
jbe 0x1400b4d7f
mov rbx, qword [rbx]
mov dword [rsp + 0x48], ebp
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonCrypto.cpp
mov dword [rsp + 0x40], eax
lea rdx, str.mb::common::crypto::DecodeBase64CertString
mov qword [rsp + 0x38], rbx
lea rax, str.CryptStringToBinaryA_returned_invalid_size_for__hs._Error__u_Size__u
mov qword [rsp + 0x30], rax
mov r9d, 0x3bf
lea rax, str.Crypto
mov rcx, rdi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
call rsi
xor al, al
mov rdi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1402ba9b0
add rsp, 0x60
pop r14
pop rsi
pop rbx
ret
Function at 0x1400b8580
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14049f3c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xor r8d, r8d
lea edx, [r8 + 0x16]
lea rcx, [rsp + 0x40]
call fcn.1400ff9b0
nop
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jne 0x1400b86a0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400b860b
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400b860b
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400b860b
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov rdx, qword [rsi + 0x10]
call fcn.1400b75a0
mov rbx, rax
lea rax, vtable.mb::common::system::ScopedAny_void____ptr64__int____cdecl___void____ptr64___int___cdecl_CloseHandle_void____ptr64___2__0__0_.0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rbx
lea rcx, [rbx + 1]
test rcx, 0xfffffffffffffffe
jne 0x1400b8710
mov rdi, qword [rsi + 0x10]
test rdi, rdi
je 0x1400b869b
mov rax, qword [rdi]
mov rbp, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsi + 0x18]
cmp qword [rdx + 0x18], 7
jbe 0x1400b8665
mov rdx, qword [rdx]
mov dword [rsp + 0x38], eax
lea rax, str.Failed_to_duplicate_required_token._Error:__u.
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 2
mov r9d, 0x1be
lea r8, str.D:JenkinsworkspaceN_MBCommon_vs2022_srcmbcommonTokenUtilities.cpp
lea rdx, str.mb::common::system::Impersonator::ImpersonateSystemIfNeeded
mov rcx, rdi
call rbp
xor dil, dil
jmp 0x1400b871e
mov dword [rsp + 0x50], 0
lea r8, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x1400b85ce
cmp dword [rsp + 0x50], 1
sete bpl
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400b8703
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400b8703
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400b8703
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bpl, bpl
je 0x1400b860b
mov al, 1
jmp 0x1400b8735
mov rdx, rbx
mov rcx, rsi
call fcn.1400b8380
movzx edi, al
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400b8731
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1402ba9b0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400b93b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x40
cmp qword [rcx + 0x10], 0
mov r14, r8
mov rbx, rdx
mov rbp, rcx
jne 0x1400b93e3
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
mov qword [rsp + 0x50], rsi
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov qword [rsp + 0x58], rdi
xor sil, sil
call fcn.1400c0c30
cmp qword [rax + 0x18], 7
jbe 0x1400b9407
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rsp + 0x20]
mov edi, eax
call fcn.1400166f0
cmp edi, 0xffffffff
je 0x1400b946a
mov rcx, rbp
mov sil, 1
call fcn.1400c0fb0
test al, al
je 0x1400b9438
mov dword [rbx], 2
jmp 0x1400b9489
bt edi, 0xa
jae 0x1400b945c
mov dword [rbx], 3
test r14, r14
je 0x1400b9489
test dil, 0x10
mov eax, 0
setne al
inc eax
mov dword [r14], eax
jmp 0x1400b9489
movzx eax, dil
shr eax, 4
and eax, 1
mov dword [rbx], eax
jmp 0x1400b9489
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1400b9480
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1400b9489
mov sil, 1
mov dword [rbx], 4
mov rdi, qword [rsp + 0x58]
movzx eax, sil
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400b99c0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14049f3c0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
lea rdx, [0x1404327fc]
lea rcx, [rsp + 0x20]
call fcn.140031ed0
nop
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400a4d30
mov rdi, qword [rbx + 0x10]
cmp rdi, rax
cmovb rax, rdi
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400b9a29
mov rcx, qword [rbx]
sub rdi, rax
lea rdx, [rcx + rax*2]
lea r8, [rdi*2 + 2]
call fcn.14030ac20
mov qword [rbx + 0x10], rdi
lea rcx, [rsp + 0x20]
call fcn.1400166f0
lea rdx, [0x140428268]
lea rcx, [rsp + 0x20]
call fcn.140031ed0
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400a4820
nop
lea rcx, [rsp + 0x20]
call fcn.1400166f0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.14030b3a0
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400b9a94
mov rcx, qword [rbx]
mov r8d, 0x104
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x1400b9ab5
mov rcx, rbx
call fcn.1400166f0
xor al, al
jmp 0x1400b9ae4
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400b9ac1
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140031b60
nop
mov rcx, rbx
call fcn.1400166f0
mov al, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1402ba9b0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400ba430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
sub rsp, 0x40
cmp qword [rcx + 0x10], 0
mov rsi, rcx
jne 0x1400ba448
xor al, al
add rsp, 0x40
pop rsi
ret
mov qword [rsp + 0x50], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x58], rdi
mov rdx, rsi
xor dil, dil
call fcn.1400c0c30
cmp qword [rax + 0x18], 7
jbe 0x1400ba46c
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rsp + 0x20]
mov ebx, eax
call fcn.1400166f0
cmp ebx, 0xffffffff
mov rbx, qword [rsp + 0x50]
je 0x1400ba4a5
mov rcx, rsi
mov dil, 1
call fcn.1400c0fb0
movzx eax, dil
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1400ba4bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1400ba4be
mov dil, 1
movzx eax, dil
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rsi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x1400ba561
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400c0c30
cmp qword [rax + 0x18], 7
jbe 0x1400ba4fb
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rsp + 0x20]
mov edi, eax
call fcn.1400166f0
cmp edi, 0xffffffff
je 0x1400ba550
mov rcx, rbx
call fcn.1400c0fb0
test al, al
je 0x1400ba528
mov eax, 2
jmp 0x1400ba53f
bt edi, 0xa
jae 0x1400ba535
mov eax, 3
jmp 0x1400ba53f
movzx eax, dil
shr eax, 4
and eax, 1
test eax, eax
jne 0x1400ba561
mov al, 1
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1400ba561
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x58]
xor al, al
add rsp, 0x40
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x1400ba600
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400c0c30
cmp qword [rax + 0x18], 7
jbe 0x1400ba59b
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rsp + 0x20]
mov edi, eax
call fcn.1400166f0
cmp edi, 0xffffffff
je 0x1400ba5ef
mov rcx, rbx
call fcn.1400c0fb0
test al, al
je 0x1400ba5c8
mov eax, 2
jmp 0x1400ba5df
bt edi, 0xa
jae 0x1400ba5d5
mov eax, 3
jmp 0x1400ba5df
movzx eax, dil
shr eax, 4
and eax, 1
cmp eax, 1
jne 0x1400ba600
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x1400ba600
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x58]
xor al, al
add rsp, 0x40
pop rdi
ret