joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400733cc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
cmp dword [0x1400c9a38], 0
jne 0x14007346b
mov edx, 0x13579bdf
lea r8, [0x1400c9260]
mov r9d, 0x87654321
xor r10d, r10d
mov r11d, r9d
mov ebx, edx
lea edi, [r10 + 0x20]
sub r10d, 0x61c88647
mov ecx, r9d
sar ecx, 5
add r11d, r10d
add ebx, r10d
add ecx, ebx
lea eax, [r11 + r9*8]
xor ecx, eax
lea eax, [r10 + r9]
xor ecx, eax
add edx, ecx
mov eax, edx
sar eax, 5
add eax, r11d
lea ecx, [rbx + rdx*8]
xor ecx, eax
lea eax, [r10 + rdx]
xor ecx, eax
add r9d, ecx
sub edi, 1
jne 0x140073401
add edx, r9d
mov ecx, 0x7fff
movzx eax, dx
and ax, cx
mov word [r8], ax
add r8, 2
lea rax, [0x1400c9860]
cmp r8, rax
jb 0x1400733f5
mov dword [0x1400c9a38], 1
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x140073480
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r9, qword [rcx - 0x20]
xor esi, esi
mov r10, qword [rcx - 0x28]
mov rbx, rcx
mov r11d, esi
lea rdi, [r9 - 2]
cmp r10, rdi
jae 0x140073502
lea rbp, [0x1400c9260]
movzx eax, byte [r10 + 2]
lea r8, [r10 + 1]
movzx edx, word [rbp + rax*2 + 0x400]
movzx eax, byte [r8]
movzx eax, word [rbp + rax*2 + 0x200]
xor rdx, rax
movzx eax, byte [r10]
mov r10, r8
movzx ecx, word [rbp + rax*2]
xor rdx, rcx
movsxd rcx, r11d
movzx eax, word [rbx + rdx*2 - 0x18288]
mov word [rbx + rcx*2], ax
mov word [rbx + rdx*2 - 0x18288], r11w
inc r11d
cmp r8, rdi
jb 0x1400734b3
cmp r10, r9
jae 0x14007351a
sub r9, r10
movsxd rax, r11d
inc r11d
mov word [rbx + rax*2], si
sub r9, 1
jne 0x14007350a
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
Function at 0x14007b774
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
xor r14d, r14d
mov rbp, rcx
mov ebx, r14d
or rdi, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x14007b8c0
mov r8d, 0x104
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
nop dword [rax + rax]
test eax, eax
je 0x14007b87b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14007b87b
mov r8d, 0x104
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
je 0x14007b87b
inc rdi
cmp word [rbx + rdi*2], r14w
jne 0x14007b830
dec edi
cmp word [rbx + rdi*2], 0x5c
jne 0x14007b848
mov word [rbx + rdi*2], r14w
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
test rbx, rbx
je 0x14007b8c0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
Function at 0x14007b958
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x4e0
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
xor ebx, ebx
mov r15, rdx
mov rbp, rcx
mov rsi, rcx
mov edi, ebx
lea r14d, [rbx + 0x5c]
mov edx, r14d
lea rcx, [rsi + 2]
call sub.msvcrt.dll_wcschr
mov rsi, rax
test rax, rax
je 0x14007bae2
inc edi
cmp edi, 2
jb 0x14007b98e
mov edi, 0x104
lea r8, str._GlobalRoot
mov edx, edi
lea rcx, [rsp + 0xb0]
add rsi, 2
call fcn.1400026c0
mov r9, rsi
lea rcx, [rsp + 0xb0]
sub r9, rbp
mov r8, rbp
sar r9, 1
call fcn.14005fe3c
mov r8d, 0x32
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
je 0x14007ba48
lea r9, [rsp + 0x30]
mov r8d, edi
lea rdx, [rsp + 0x2c0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
je 0x14007ba41
cmp word [rsp + 0x2c0], bx
je 0x14007ba41
lea rdi, [rsp + 0x2c0]
jmp 0x14007ba50
lea rdi, [rsp + 0x40]
jmp 0x14007ba50
lea rdi, [rsp + 0xb0]
or rcx, 0xffffffffffffffff
mov rax, rcx
inc rax
cmp word [rdi + rax*2], bx
jne 0x14007ba57
test rax, rax
je 0x14007ba72
cmp word [rdi + rax*2 - 2], r14w
jne 0x14007ba72
mov word [rdi + rax*2 - 2], bx
mov rax, rcx
inc rax
cmp word [rdi + rax*2], bx
jne 0x14007ba75
inc rcx
cmp word [rsi + rcx*2], bx
jne 0x14007ba7e
add rax, rcx
lea r14, [rax*2 + 4]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x14007bac1
mov ebx, 0x8007000e
jmp 0x14007bade
mov r9, rdi
mov qword [rsp + 0x20], rsi
lea r8, str._ws_ws
mov rdx, r14
mov rcx, rbp
call fcn.14007b4bc
mov qword [r15], rbp
mov eax, ebx
jmp 0x14007bae7
mov eax, 0x80070057
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.140094220
mov rbx, qword [rsp + 0x520]
add rsp, 0x4e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007c244
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.ntdll.dll_RtlGetVersion]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
js 0x14007c29a
cmp dword [rsp + 0x24], 6
setae cl
mov eax, ecx
jmp 0x14007c29c
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140094220
add rsp, 0x158
ret
Function at 0x14007d2a4
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r14, rdx
xor edi, edi
and qword [rax - 0x48], rdi
xor ebx, ebx
lea rdx, [rax - 0x48]
call fcn.140024a30
mov ebp, eax
mov rsi, qword [rsp + 0x30]
test eax, eax
jns 0x14007d2e9
mov ecx, eax
call fcn.140025d30
jmp 0x14007d38b
lea r8, [rsp + 0x90]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeExW]
nop dword [rax + rax]
mov r15d, eax
test eax, eax
jne 0x14007d332
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x14007d320
mov ebp, 0x80004005
jmp 0x14007d32e
movzx ebp, ax
or ebp, 0x80070000
test eax, eax
cmovle ebp, eax
mov ecx, ebp
jmp 0x14007d2df
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14007d361
mov ebp, 0x8007000e
jmp 0x14007d32e
mov qword [rsp + 0x20], rbx
mov r9d, r15d
mov r8d, dword [rsp + 0x90]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoExW]
nop dword [rax + rax]
test eax, eax
je 0x14007d309
mov rdi, rbx
xor ebx, ebx
mov ecx, ebp
call fcn.140025d50
nop
test rbx, rbx
je 0x14007d3b9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
nop
test rsi, rsi
je 0x14007d3e7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
lea r8, [rsi - 4]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor ecx, ecx
call fcn.140025d50
nop
test ebp, ebp
jns 0x14007d3f7
mov ecx, ebp
call fcn.140025d30
jmp 0x14007d47b
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x38]
lea rdx, [0x14009ce88]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
nop dword [rax + rax]
test eax, eax
jne 0x14007d445
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x14007d435
mov ebp, 0x80004005
jmp 0x14007d3eb
movzx ebp, ax
or ebp, 0x80070000
test eax, eax
cmovle ebp, eax
jmp 0x14007d3eb
cmp dword [rsp + 0x98], 0x34
jae 0x14007d456
mov ebp, 0x8000ffff
jmp 0x14007d3eb
mov rax, qword [rsp + 0x38]
movups xmm0, xmmword [rax]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r14 + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [r14 + 0x20], xmm0
mov eax, dword [rax + 0x30]
mov dword [r14 + 0x30], eax
mov ecx, ebp
call fcn.140025d50
nop
test rdi, rdi
je 0x14007d4a9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
nop
mov eax, ebp
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007d5b0
Capabilities:
Delete registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x30
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rsi
mov rsi, r8
and qword [rax + 0x10], 0
lea r9, [rax + 0x10]
mov r8d, 2
lea rdx, str.SOFTWAREMicrosoftSQMClientWindows
mov rcx, 0xffffffff80000002
call fcn.14002a384
mov edi, eax
test eax, eax
jns 0x14007d5f7
mov ecx, eax
jmp 0x14007d627
mov rdx, rsi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
jne 0x14007d613
xor edi, edi
jmp 0x14007d62c
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
je 0x14007d62c
mov ecx, edi
call fcn.140025d30
mov ecx, edi
call fcn.140025d50
nop
cmp qword [rsp + 0x48], 0
je 0x14007d64e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
mov eax, edi
mov rsi, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14007d980
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0x90
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor ebx, ebx
mov word [rbp + 0x4b], 0x500
lea rax, [rbp + 0x2f]
mov dword [rbp + 0x47], ebx
mov qword [r11 - 0x48], rax
lea rcx, [rbp + 0x3f]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov esi, ebx
mov dword [rsp + 0x28], ebx
mov edi, ebx
mov dword [rsp + 0x20], ebx
mov qword [rbp + 0x37], rbx
mov dword [rbp + 0x3f], ebx
mov word [rbp + 0x43], 0x500
mov qword [rbp + 0x2f], rbx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x14007da4b
mov rdx, qword [rbp + 0x2f]
lea r8, [rbp + 0x27]
xor ecx, ecx
mov dword [rbp + 0x27], ebx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
je 0x14007da2b
mov esi, dword [rbp + 0x27]
jmp 0x14007da39
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop dword [rax + rax]
jmp 0x14007da59
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test esi, esi
je 0x14007da72
mov eax, 1
jmp 0x14007dae1
lea rax, [rbp + 0x37]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x47]
mov dword [rsp + 0x48], ebx
mov dl, 1
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
lea r8d, [r9 + 0x13]
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x14007dadf
mov rdx, qword [rbp + 0x37]
lea r8, [rbp + 0x27]
xor ecx, ecx
mov dword [rbp + 0x27], ebx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x37]
test eax, eax
cmovne ebx, dword [rbp + 0x27]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140094220
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14007dcfc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rdx
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x208
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x20]
xor r8d, r8d
lea rdx, [0x1400b3888]
lea rcx, [0x1400c8f20]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
nop dword [rax + rax]
xor edi, edi
test eax, eax
je 0x14007ddd4
mov esi, 0x104
lea rcx, [rsp + 0x20]
mov eax, esi
cmp word [rcx], di
je 0x14007dd78
add rcx, 2
sub rax, 1
jne 0x14007dd69
test rax, rax
je 0x14007dd85
mov r9, rsi
sub r9, rax
jmp 0x14007dd88
mov r9, rdi
test rax, rax
je 0x14007ddd4
add r9, 0xfffffffffffffffd
lea r8, [rsp + 0x20]
mov rdx, rsi
mov rcx, rbx
call fcn.14000274c
test eax, eax
js 0x14007ddd4
lea r8, str.diagerr.mdmp
mov rdx, rsi
mov rcx, rbx
call fcn.1400027e4
test eax, eax
js 0x14007ddd4
mov rax, qword [0x1400c9ad8]
lea rcx, [rsp + 0x20]
call qword [str.PN_t_]
mov eax, 1
jmp 0x14007ddd6
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140094220
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14007de04
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rdi, r9
mov r12, r8
mov r13, rdx
mov rbx, rcx
xor r15d, r15d
mov qword [r11 - 0x50], r15
or rax, 0xffffffffffffffff
mov qword [r11 - 0x40], rax
mov r14, rax
mov qword [r11 - 0x48], rax
xor eax, eax
mov qword [r11 - 0x58], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
and qword [r11 - 0x68], rax
mov dword [rsp + 0x28], 0x100
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, r13
mov rax, qword [0x1400c9ab0]
call qword [str.PN_t_]
mov rsi, rax
mov qword [rsp + 0x58], rax
cmp rax, r14
je 0x14007df85
test rbx, rbx
je 0x14007deb3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x64], rbx
and dword [rsp + 0x6c], r15d
neg rbx
sbb rdi, rdi
lea rax, [rsp + 0x60]
and rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop dword [rax + rax]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, rsi
mov edx, ebx
mov rax, qword [0x1400c9ad0]
call qword [str.PN_t_]
test eax, eax
je 0x14007df7d
lea rdx, [rsp + 0x44]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov dword [rsp + 0x40], eax
cmp eax, 0xffffffff
je 0x14007df7d
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x44]
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
nop dword [rax + rax]
mov r14, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14007df7d
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop dword [rax + rax]
mov r15, rax
mov qword [rsp + 0x48], rax
mov rdi, qword [rsp + 0xb8]
test r15, r15
jne 0x14007dfd1
cmp r14, 0xffffffffffffffff
je 0x14007dfa0
mov rcx, r14
mov rax, qword [0x1400c9ac0]
call qword [str.PN_t_]
cmp rsi, 0xffffffffffffffff
je 0x14007dfcc
mov rcx, rsi
mov rax, qword [0x1400c9ac0]
call qword [str.PN_t_]
cmp rsi, 0xffffffffffffffff
je 0x14007dfcc
mov rcx, r13
mov rax, qword [0x1400c9ad8]
call qword [str.PN_t_]
test r15, r15
je 0x14007dff7
test rdi, rdi
je 0x14007dfde
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov rax, qword [rsp + 0xc0]
test rax, rax
je 0x14007dfee
mov qword [rax], r14
test r12, r12
je 0x14007dff7
mov qword [r12], rsi
mov rax, r15
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14007e488
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
or edi, 0xffffffff
cmp dword [0x1400c5b84], edi
jne 0x14007e4b5
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
nop dword [rax + rax]
mov dword [0x1400c5b84], eax
cmp eax, edi
je 0x14007e4d8
cmp dword [0x1400c5b8c], edi
jne 0x14007e4d3
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
nop dword [rax + rax]
mov dword [0x1400c5b8c], eax
cmp eax, edi
je 0x14007e4d8
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14007f1e4
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x1400c9a68]
test eax, eax
je 0x14007f3f9
add eax, 0xffffffff
mov dword [0x1400c9a68], eax
jne 0x14007f3f9
mov rsi, qword [0x1400c9a80]
lea rbx, [0x14007e280]
and qword [0x1400c9a80], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
nop dword [rax + rax]
cmp rbx, rax
cmove rax, qword [0x1400c9a70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
nop dword [rax + rax]
mov ecx, dword [0x1400c5b84]
and qword [0x1400c9a70], 0
call qword [sym.imp.KERNEL32.dll_TlsFree]
nop dword [rax + rax]
mov ecx, dword [0x1400c5b8c]
or dword [0x1400c5b84], 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14007f309
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14007f2c1
mov rax, qword [rax]
jmp 0x14007f2ac
mov rcx, rdi
call fcn.14007f410
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x14007f2c1
mov rax, qword [rbx]
mov rdi, qword [rax + rdx*8 - 8]
mov rcx, rbx
dec rdx
call fcn.1400804a8
test rdi, rdi
jne 0x14007f298
mov rdi, qword [rbx]
test rdi, rdi
je 0x14007f2e9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov ecx, dword [0x1400c5b8c]
call qword [sym.imp.KERNEL32.dll_TlsFree]
nop dword [rax + rax]
or dword [0x1400c5b8c], 0xffffffff
lea rcx, [0x1400c9138]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rdx, qword [0x1400c9a60]
test rdx, rdx
je 0x14007f3c7
mov ecx, dword [0x1400c9a88]
xor ebx, ebx
test ecx, ecx
je 0x14007f38d
mov rdi, qword [rdx + rbx*8]
test rdi, rdi
je 0x14007f387
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rdx, qword [0x1400c9a60]
mov ecx, dword [0x1400c9a88]
inc ebx
cmp ebx, ecx
jb 0x14007f351
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, qword [0x1400c9a60]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
and qword [0x1400c9a60], 0
and dword [0x1400c9a88], 0
and dword [0x1400c9a90], 0
lea rcx, [0x1400c9138]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
test rsi, rsi
je 0x14007f3e7
mov rcx, rsi
call fcn.1400851c8
and dword [0x1400c9a7c], 0
call fcn.140081c84
mov eax, dword [0x1400c9a68]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14007f728
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov ebx, 0x208
lea rcx, [rsp + 0x40]
mov r8d, ebx
xor edx, edx
call sub.msvcrt.dll_memset
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], ebx
lea rdx, str.SYSTEMSetupPanther
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14007f7e3
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.TelemetryAssertList
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
lea ecx, [rbx + 1]
cmove ebx, ecx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x14007f805
mov r8d, 0x104
lea rdx, [rsp + 0x40]
lea rcx, str.PANTHER_ENABLE_TELASSERT
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
test eax, eax
je 0x14007f80f
lea rcx, [rsp + 0x40]
call fcn.14007f644
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140094220
add rsp, 0x260
pop rbx
ret
Function at 0x1400800f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov ecx, dword [0x1400c5b84]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400802b9
lea rcx, [0x1400c9138]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
nop
cmp qword [0x1400c9a60], rdi
jne 0x140080180
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
xor edx, edx
lea r8d, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov qword [0x1400c9a60], rax
lea ebx, [rsi + 1]
test rax, rax
je 0x14008024e
xor eax, eax
mov dword [0x1400c9a90], eax
mov dword [0x1400c9a88], ebx
jmp 0x1400801e6
mov eax, dword [0x1400c9a90]
mov ecx, dword [0x1400c9a88]
cmp eax, ecx
jne 0x1400801e1
lea ebx, [rcx + 1]
shl rbx, 3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r9, rbx
mov r8, qword [0x1400c9a60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
nop dword [rax + rax]
mov ebx, 1
test rax, rax
je 0x14008024e
mov qword [0x1400c9a60], rax
add dword [0x1400c9a88], ebx
mov eax, dword [0x1400c9a90]
jmp 0x1400801e6
mov ebx, 1
mov ecx, eax
mov rax, qword [0x1400c9a60]
and qword [rax + rcx*8], 0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
xor edx, edx
mov r8d, 0x8018
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14008024e
add rax, 0x18
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], 0x8000
mov rdx, rdi
mov ecx, dword [0x1400c5b84]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop dword [rax + rax]
test eax, eax
cmovne esi, ebx
test esi, esi
je 0x14008026d
mov edx, dword [0x1400c9a90]
mov rax, qword [0x1400c9a60]
mov qword [rax + rdx*8], rdi
add edx, ebx
mov dword [0x1400c9a90], edx
jmp 0x1400802a3
xor edx, edx
mov ecx, dword [0x1400c5b84]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor edi, edi
lea rcx, [0x1400c9138]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret