joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015b40
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1400e3480]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x140015b63
lea rax, [0x1400e3488]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x140015bab
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140015ba8
lea rax, [0x1400e34c0]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x140015bdb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140015bd8
xor ecx, ecx
mov byte [0x1400e34d9], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1400e34e2], rdx
lea r8, [0x1400e3480]
lea rbx, [0x1400e34da]
mov qword [0x1400e34f2], rdx
mov qword [0x1400e3502], rdx
mov qword [0x1400e3512], rdx
xor edx, edx
mov qword [0x1400e34da], rax
mov qword [0x1400e34ea], rax
mov qword [0x1400e34fa], rax
mov qword [0x1400e350a], rax
mov byte [0x1400e351a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140015db6
lea rcx, [0x1400e34c0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140015d01
lea rsi, [0x1400e33c0]
lea r8, [0x1400e351a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140015cad
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140015ca0
lea rcx, [0x1400e34c0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140015da3
lea rcx, [0x140015a50]
mov qword [0x1400e33c0], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1400e33c0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x1400e34c0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1400e351a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140015dd6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140015d53
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140015d40
mov rax, rdx
mov qword [0x1400e33c0], rax
lea rsi, [0x1400e33c0]
jmp 0x140015d79
cmp rdx, rsi
je 0x140015cdf
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140015d70
cmp rdx, rsi
je 0x140015cdf
mov qword [rdx + 8], rsi
lea rcx, [0x140015a50]
call sub.msvcrt.dll__onexit
jmp 0x140015cdf
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.1400159c0
xor eax, eax
jmp 0x140015cf8
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.1400159c0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.1400159c0
xor eax, eax
jmp 0x140015d5f
Function at 0x1400b5f90
Capabilities:
Hide graphical window

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x118
movabs rax, 0x5720656c706d6153
movabs rdx, 0x6c4320776f646e69
mov qword [rsp + 0x70], rax
lea r13, [rsp + 0x70]
mov r12d, r9d
mov rbx, rcx
lea rax, [0x140001c20]
mov qword [rsp + 0x78], rdx
mov edx, 0x7f00
mov qword [rsp + 0xd8], rcx
xor ecx, ecx
mov dword [rsp + 0x80], 0x737361
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0x100], r13
mov qword [rsp + 0xf0], 6
call qword [sym.imp.USER32.dll_LoadCursorA]
mov edx, 0x65
mov rcx, rbx
mov qword [rsp + 0xe8], rax
call qword [sym.imp.USER32.dll_LoadIconA]
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0xe0], rax
call qword [sym.imp.USER32.dll_RegisterClassA]
call qword [sym.imp.USER32.dll_GetDesktopWindow]
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rsp + 0x6c]
sub eax, dword [rsp + 0x64]
xor ecx, ecx
sub eax, 0xf0
mov qword [rsp + 0x50], rbx
mov r9d, 0xcf0000
lea r8, str.Wallet_Core_unpacker
mov edx, eax
mov qword [rsp + 0x58], 0
shr edx, 0x1f
mov dword [rsp + 0x38], 0xf0
add eax, edx
mov dword [rsp + 0x30], 0x1a4
mov qword [rsp + 0x48], 0
sar eax, 1
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x68]
mov qword [rsp + 0x40], 0
sub eax, dword [rsp + 0x60]
sub eax, 0x1a4
mov edx, eax
shr edx, 0x1f
add eax, edx
mov rdx, r13
sar eax, 1
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rcx, rax
test rax, rax
je 0x1400017ab
mov edx, r12d
lea rbx, [rsp + 0x90]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rsi, qword [sym.imp.USER32.dll_GetMessageA]
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov rbp, qword [sym.imp.USER32.dll_TranslateMessage]
mov qword [rsp + 0xa0], 0
mov rdi, qword [sym.imp.USER32.dll_DispatchMessageA]
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
jmp 0x14000179a
mov rcx, rbx
call rbp
mov rcx, rbx
call rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call rsi
test eax, eax
jne 0x140001790
xor eax, eax
add rsp, 0x118
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
sub rsp, 0x28
call fcn.14000ba40
mov rax, qword [0x1400be690]
xor edx, edx
mov r9d, dword [rax]
mov rax, qword [0x1400be680]
mov r8, qword [rax]
mov rax, qword [0x1400be670]
mov rcx, qword [rax]
add rsp, 0x28
jmp 0x1400015a0

Function at 0x140001d08
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001d52
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001d52
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001d52
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001d52
cmp dword [rcx + 0x84], 0xe
jbe 0x140001d52
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001d54
xor al, al
add rsp, 0x28
ret
Function at 0x1400616fc
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
cmp byte [0x14017c2c1], 0
mov qword [0x14017c2c8], rcx
je 0x14006172d
lea r8, [0x140153a84]
mov edx, 0xecf
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.140087b08
or eax, 0xffffffff
jmp 0x14006175c
and dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
nop dword [rax + rax]
mov rdx, rax
lea r8, [rsp + 0x30]
call fcn.140061d7c
cmp al, 1
jne 0x140061758
add rsp, 0x28
jmp 0x140061f14
mov eax, dword [rsp + 0x30]
add rsp, 0x28
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], r14
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14017b608]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r14d, r14d
lea r8, str.AppID
mov r9d, 0x20019
mov qword [rsp + 0x50], r14
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x58], r14
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x60], r14
call fcn.140001c08
mov ebx, eax
test eax, eax
je 0x140061f80
mov dword [0x14017c60c], eax
jmp 0x1400620d3
mov rdx, qword [rsp + 0x50]
lea r8, [0x140157260]
mov r9d, 0x20019
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
call fcn.140001c08
mov ebx, eax
test eax, eax
jne 0x1400620b5
cmp qword [rsp + 0x38], r14
jne 0x140061fd4
lea r8, str.m_hKey___0
mov edx, 0x1625
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.140087b08
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x30], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140062046
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
jbe 0x140062025
mov eax, 0xd
jmp 0x140062046
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14006203e
test al, 1
jne 0x14006201e
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r14w
je 0x140062043
jmp 0x14006201e
mov word [rbp - 0x70], r14w
mov eax, r14d
mov dword [0x14017c61c], r14d
test eax, eax
jne 0x1400620a7
lea rax, [0x14017c3f8]
mov dword [0x14017c61c], 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
lea rax, [0x1400621f0]
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], r14
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
nop dword [rax + rax]
test eax, eax
jne 0x14006209f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
jmp 0x1400620b3
mov ebx, dword [0x14017c60c]
jmp 0x1400620bb
lea rcx, [0x14017c390]
call fcn.14006117c
mov ebx, eax
mov dword [0x14017c60c], eax
cmp qword [rsp + 0x38], r14
je 0x1400620d3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
cmp qword [rsp + 0x50], r14
je 0x1400620eb
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14014bb60
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov r14, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1400d5ff4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x14017b608]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rbp - 0x59]
lea r8d, [rdx + 0x40]
call sub.msvcrt.dll_memset
mov esi, 1
lea r9, [rbx + 0x100]
mov r8d, 0x100
lea r14d, [rsi + 0xe]
sub r9, rsi
movzx ecx, byte [r9]
mov eax, ecx
shr rcx, 4
and rax, r14
add dword [rbp + rax*4 - 0x59], esi
add dword [rbp + rcx*4 - 0x59], esi
sub r8d, esi
jne 0x1400d6045
cmp dword [rbp - 0x59], 0x1ff
jge 0x1400d61fd
movaps xmm0, xmmword [rbp - 0x59]
xor ecx, ecx
movaps xmm1, xmmword [rbp - 0x49]
mov edx, r14d
movaps xmmword [rbp - 0x19], xmm0
movaps xmm0, xmmword [rbp - 0x39]
movaps xmmword [rbp - 9], xmm1
movaps xmm1, xmmword [rbp - 0x29]
movaps xmmword [rbp + 7], xmm0
movaps xmmword [rbp + 0x17], xmm1
movsxd rax, edx
add ecx, dword [rbp + rax*4 - 0x59]
test sil, cl
jne 0x1400d61fd
sar ecx, 1
sub edx, esi
jne 0x1400d6094
cmp ecx, esi
jne 0x1400d61fd
lea rax, [rbp - 0x55]
mov rcx, r14
add dword [rax], edx
mov edx, dword [rax]
lea rax, [rax + 4]
sub rcx, rsi
jne 0x1400d60b9
movsxd r11, dword [rbp - 0x1d]
mov r8d, 0x2000
movsxd rax, r8d
lea r9d, [r8 - 0x10]
sub rax, 0x10
sar rax, 5
movzx r8d, byte [rax + rbx]
shr r8d, 4
test r8d, r8d
je 0x1400d6107
movsxd rdx, dword [rbp + r8*4 - 0x59]
movzx ecx, r9w
or cx, r8w
lea eax, [rdx - 1]
mov word [rdi + rdx*2 - 2], cx
mov dword [rbp + r8*4 - 0x59], eax
lea r8d, [r9 - 0x10]
movsxd rax, r8d
sar rax, 5
movzx r9d, byte [rax + rbx]
and r9d, r14d
je 0x1400d6136
movsxd rdx, dword [rbp + r9*4 - 0x59]
movzx ecx, r8w
or cx, r9w
lea eax, [rdx - 1]
mov word [rdi + rdx*2 - 2], cx
mov dword [rbp + r9*4 - 0x59], eax
test r8d, r8d
jne 0x1400d60d0
mov r9d, 0x800
mov rbx, r11
mov edx, r9d
mov r8, r14
mov r15d, 0x8000
mov r10d, r9d
cmp edx, r9d
jle 0x1400d6171
sub edx, 2
sub r9d, esi
movzx ecx, dx
movsxd rax, r9d
or cx, r15w
mov word [rdi + rax*2], cx
cmp edx, r10d
jg 0x1400d6158
mov eax, dword [rbp + r8*4 - 0x19]
lea edx, [rax - 1]
test eax, eax
jle 0x1400d6195
sub r11d, eax
sub rbx, rsi
sub r9d, esi
sub edx, esi
movsxd rcx, r9d
movzx eax, word [rdi + rbx*2]
mov word [rdi + rcx*2], ax
jns 0x1400d6180
sub r8, rsi
mov edx, r10d
cmp r8, 0xa
jg 0x1400d6150
mov ebx, 0x400
mov r8d, ebx
jmp 0x1400d61bf
sub r8d, esi
sub edx, 2
movsxd rax, r8d
movzx ecx, dx
or cx, r15w
mov word [rdi + rax*2], cx
cmp edx, r9d
jg 0x1400d61ab
movsxd r9, r11d
test r11d, r11d
jle 0x1400d61f9
sub r9, rsi
mov edx, ebx
mov r10d, r8d
movzx r11d, word [rdi + r9*2]
mov ecx, r11d
and ecx, r14d
sar edx, cl
sub r10d, edx
sub r8d, esi
movsxd rcx, r8d
mov word [rdi + rcx*2], r11w
cmp r8d, r10d
jne 0x1400d61e4
test r9, r9
jg 0x1400d61cc
mov eax, esi
jmp 0x1400d61ff
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14014bb60
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400f11e8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov dword [rsp + 0x60], 4
mov rdi, r8
test r8, r8
jne 0x1400f1223
lea r8, str.pdwValue
mov edx, 0x46e
lea rcx, str.base_stor_blbcoresdk_smart_smartregistry.hpp
call fcn.140087b08
mov ebx, 0x80004005
jmp 0x1400f1281
mov rcx, qword [rcx + 8]
test rcx, rcx
jne 0x1400f1233
mov ebx, 0x8000ffff
jmp 0x1400f1281
and dword [r8], ebx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x1400f1274
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400f1281
cmp dword [rsp + 0x68], 4
jne 0x1400f121c
mov ecx, dword [rsp + 0x30]
mov dword [rdi], ecx
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push r14
sub rsp, 0x30
xor r14d, r14d
mov rsi, rdx
mov byte [rdx], r14b
mov rbp, rcx
lea rdx, [rax + 0x10]
mov qword [rax + 0x10], r14
call fcn.14008efa8
mov ebx, eax
test eax, eax
js 0x1400fe40a
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400fe3df
mov byte [rsi], 1
jmp 0x1400fe406
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
lea eax, [rbx + 0x7ff8fffe]
cmp eax, 1
cmovbe ebx, r14d
test ebx, ebx
jns 0x1400fe445
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x1400fe445
test byte [rcx + 0x1c], 1
je 0x1400fe445
cmp byte [rcx + 0x19], 2
jb 0x1400fe445
mov rcx, qword [rcx + 0x10]
lea r8, [0x140162628]
mov edx, 0xa
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.140005d40
cmp qword [rsp + 0x48], r14
je 0x1400fe45d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1400fe47c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rdx
mov byte [rdx], bl
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400fe4af
test al, 0x10
jne 0x1400fe508
mov byte [rdi], 1
jmp 0x1400fe508
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400fe508
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x1400fe508
test byte [rcx + 0x1c], 1
je 0x1400fe508
cmp byte [rcx + 0x19], 2
jb 0x1400fe508
mov rcx, qword [rcx + 0x10]
lea r8, [0x140162628]
mov edx, 0xb
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005d40
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [0x14017b048]
lea r14, [0x14017b048]
cmp rcx, r14
je 0x1400fe573
test byte [rcx + 0x1c], 1
je 0x1400fe573
cmp byte [rcx + 0x19], 5
jb 0x1400fe573
mov rcx, qword [rcx + 0x10]
lea r8, [0x140162628]
mov edx, 0xc
call fcn.140004c10
test rdi, rdi
jne 0x1400fe590
lea r8, str.pbIsReparsePoint___NULL
mov edx, 0xab
lea rcx, str.base_stor_blbengine_blbengutils_blbfsutils.cpp
call fcn.140087b08
mov rcx, rsi
mov byte [rdi], 0
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400fe5ea
bt eax, 0xa
jae 0x1400fe63c
mov byte [rdi], 1
mov rcx, qword [0x14017b048]
cmp rcx, r14
je 0x1400fe669
test byte [rcx + 0x1c], 1
je 0x1400fe643
cmp byte [rcx + 0x19], 4
jb 0x1400fe643
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xd]
mov r9, rsi
lea r8, [0x140162628]
call fcn.140005cd0
jmp 0x1400fe63c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x1400fe63c
mov rcx, qword [0x14017b048]
cmp rcx, r14
je 0x1400fe669
test byte [rcx + 0x1c], 1
je 0x1400fe643
cmp byte [rcx + 0x19], 2
jb 0x1400fe643
mov rcx, qword [rcx + 0x10]
lea r8, [0x140162628]
mov edx, 0xe
mov dword [rsp + 0x20], ebx
mov r9, rsi
call fcn.140005d40
mov rcx, qword [0x14017b048]
cmp rcx, r14
je 0x1400fe669
test byte [rcx + 0x1c], 1
je 0x1400fe669
cmp byte [rcx + 0x19], 5
jb 0x1400fe669
mov rcx, qword [rcx + 0x10]
lea r8, [0x140162628]
mov edx, 0xf
call fcn.140004c10
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x140148920
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x14017d424], 0
mov rbx, rcx
movups xmm0, xmmword [0x14015af68]
movdqu xmmword [rcx], xmm0
je 0x14014895b
mov ecx, dword [0x14017d428]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
je 0x14014895b
movups xmm0, xmmword [rax]
movdqu xmmword [rbx], xmm0
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14014afc8
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x14017b608]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0xd0]
xor edi, edi
mov rbp, r9
mov r15, r8
mov r13, rdx
mov r12, rcx
test r9, r9
je 0x14014b031
mov esi, dword [r14]
xor edx, edx
mov rcx, qword [0x14017d4e8]
add esi, 0xf
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14014b03b
lea edi, [rax + 0xe]
jmp 0x14014b0fa
lea rbx, [rsp + 0x48]
mov esi, 0x10
mov rdx, r13
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, [rsp + 0x30]
mov ecx, r12d
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x38]
mov r9, rbx
mov dword [rsp + 0x20], esi
mov r8d, 2
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov edx, 0x80000000
mov ecx, eax
add eax, edx
test edx, eax
jne 0x14014b09f
cmp ecx, 0x80000005
je 0x14014b09f
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov edi, eax
jmp 0x14014b0d3
test rbp, rbp
je 0x14014b0c2
mov eax, dword [rbx + 8]
cmp dword [r14], eax
jb 0x14014b0bd
mov r8d, eax
lea rdx, [rbx + 0xc]
mov rcx, rbp
call sub.msvcrt.dll_memcpy
jmp 0x14014b0c2
mov edi, 0x7a
mov eax, dword [rbx + 8]
mov dword [r14], eax
test r15, r15
je 0x14014b0d3
mov eax, dword [rbx + 4]
mov dword [r15], eax
test rbx, rbx
je 0x14014b0fa
lea rax, [rsp + 0x48]
cmp rbx, rax
je 0x14014b0fa
mov rcx, qword [0x14017d4e8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014bb60
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14014c1bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14014c208
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14014c200
cmp dword [rcx + 0x3c], edx
jl 0x14014c200
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14014c200
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14014c208
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140005040
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1400050d1
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x1400050d1
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400050d1
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1400050b5
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1400050af
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1400050b7
add rdx, 0x28
jmp 0x140005094
xor edx, edx
test rdx, rdx
jne 0x1400050c0
xor al, al
jmp 0x1400050d7
test dword [rdx + 0x24], 0x80000000
je 0x1400050cd
xor al, al
jmp 0x1400050d7
mov al, 1
jmp 0x1400050d7
xor al, al
jmp 0x1400050d7
add rsp, 0x18
ret

Function at 0x140009e6c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140009c40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009c40
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009c40
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009c40
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009c40
cmp dword [rcx + 0x84], 0xe
jbe 0x140009c40
cmp dword [rcx + 0xf8], esi
je 0x140009c40
mov ecx, r14d
call fcn.140009d88
mov ecx, 2
call fcn.14000d7e0
nop
cmp byte [0x1400255c0], 0
jne 0x140009d0a
mov r15d, 1
mov eax, r15d
xchg dword [0x1400255b0], eax
test ebx, ebx
jne 0x140009cb3
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400255b8]
cmp rcx, rax
je 0x140009caa
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140005264]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140025600]
jmp 0x140009cbf
cmp ebx, r15d
jne 0x140009cc5
lea rcx, [0x140025618]
call fcn.14000a3c0
nop
test ebx, ebx
jne 0x140009cdc
lea rdx, [0x140018420]
lea rcx, [0x140018400]
call fcn.140009b00
lea rdx, [0x140018430]
lea rcx, [0x140018428]
call fcn.140009b00
movzx eax, byte [0x1400255c0]
test esi, esi
cmove eax, r15d
mov byte [0x1400255c0], al
jmp 0x140009d0a
mov ecx, 2
call fcn.14000d834
test esi, esi
jne 0x140009d21
mov ecx, r14d
call fcn.140009d3c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140009bd0