joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ec90
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x40ecd1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x40ecc8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x40ecd3
add rax, 0x28
cmp rax, r9
jne 0x40ecb4
xor eax, eax
repz ret

Function at 0x40ed80
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x0048cbb0]
cmp word [rbx], 0x5a4d
je 0x40eda0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call fcn.0040ec50
test eax, eax
je 0x40ed94
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.0040ec90

Function at 0x40eff0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004a79c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004a79a0]
test rbx, rbx
je 0x40f044
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40f03b
test rsi, rsi
je 0x40f03b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40f020
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004a79c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
Function at 0x40f7a0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov rdi, rcx
movsxd r12, edx
mov r13, r8
call sub.msvcrt.dll_strlen
mov rsi, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x52]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.0040f960
sub rsp, rax
movsxd r14, esi
movabs rax, 0x656d68732d636367
lea r15, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov r8, r14
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov eax, 0x326d
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
movsxd rbx, ebx
mov byte [rsp + 0x2e], 0x2d
call sub.msvcrt.dll_memcpy
lea rax, [r15 + r14 + 0x10]
lea r14d, [rsi + 0x50]
movabs rdx, 0x6161616161616161
xor ecx, ecx
mov r8, r15
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rdx
movsxd rax, r14d
xor edx, edx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + rbx + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + rbx + 0x20], 0x2d
mov rdi, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40f889
int3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x40f928
mov rcx, r12
call sub.msvcrt.dll_malloc
lea r9d, [rsi + 0x10]
mov rbx, rax
mov r10d, 0x40
bt rbx, r10
jae 0x40f8c4
mov r11d, r14d
sub r11d, r10d
movsxd r11, r11d
mov byte [r15 + r11], 0x41
sub r10d, 1
jne 0x40f8b0
mov dword [rbp - 0x54], r9d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
mov r9d, dword [rbp - 0x54]
je 0x40f925
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call fcn.0040f720
cmp rax, rbx
mov rsi, rax
je 0x40f940
mov rcx, rbx
call fcn.00419d78
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
lea rsp, [rbp - 0x48]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
lea r9d, [rsi + 0x10]
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call fcn.0040f720
mov rsi, rax
jmp 0x40f8ff
xor edx, edx
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memset
test r13, r13
je 0x40f8ff
mov rcx, rbx
call r13
jmp 0x40f8ff
Function at 0x41ab90
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x004a8508]
test rbx, rbx
je 0x41abc0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [0x004a8508]
test rax, rax
je 0x41abe4
cmp dword [rax], 0xffffffff
je 0x41ac05
add rsp, 0x20
pop rbx
ret
lea r8, [0x0041a020]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.0041fd70
mov rbx, rax
mov qword [0x004a8508], rax
jmp 0x41aba1
lea r8, [0x0041a020]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.0041fd70
mov qword [0x004a8508], rax
jmp 0x41abb5
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]

Function at 0x41b0a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rcx, qword [0x004a8510]
test rcx, rcx
je 0x41b1e0
call fcn.0041b010
mov rax, qword [0x004a8508]
test rax, rax
je 0x41b203
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x41b0e3
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.0041a9e0
test rax, rax
mov rbx, rax
je 0x41b24b
cmp qword [0x004ab050], 0
je 0x41b24b
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x68], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x60], 0xffffffffffffffff
mov dword [rbx + 0xb0], 0
mov qword [rbx + 0x28], 0
call rsi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rsi
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbx + 0x28]
mov r8, rbp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x41b252
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xb8], eax
movzx eax, byte [rbx + 0x40]
mov dword [rbx + 0xb4], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [0x004a8508]
test rax, rax
je 0x41b227
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41b252
mov rax, rbx
jmp 0x41b0da
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.0041fd70
mov rcx, rax
mov qword [0x004a8510], rax
jmp 0x41b0b8
lea r8, [0x0041a020]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.0041fd70
mov qword [0x004a8508], rax
jmp 0x41b0cd
lea r8, [0x0041a020]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.0041fd70
mov qword [0x004a8508], rax
jmp 0x41b1c8
xor eax, eax
jmp 0x41b0da
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
lea rcx, str._pthread_key_dest_shmem
xor r8d, r8d
mov edx, 8
jmp fcn.0041fd70
Function at 0x41b260
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rcx, qword [0x004a8510]
test rcx, rcx
je 0x41b1e0
call fcn.0041b010
mov rax, qword [0x004a8508]
test rax, rax
je 0x41b203
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x41b0e3
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.0041a9e0
test rax, rax
mov rbx, rax
je 0x41b24b
cmp qword [0x004ab050], 0
je 0x41b24b
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x68], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], 0xffffffffffffffff
mov qword [rbx + 0x60], 0xffffffffffffffff
mov dword [rbx + 0xb0], 0
mov qword [rbx + 0x28], 0
call rsi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rsi
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbx + 0x28]
mov r8, rbp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x41b252
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xb8], eax
movzx eax, byte [rbx + 0x40]
mov dword [rbx + 0xb4], 0
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [0x004a8508]
test rax, rax
je 0x41b227
mov rdx, rbx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41b252
mov rax, rbx
jmp 0x41b0da
lea rcx, str._pthread_tls_once_shmem
xor r8d, r8d
mov edx, 4
call fcn.0041fd70
mov rcx, rax
mov qword [0x004a8510], rax
jmp 0x41b0b8
lea r8, [0x0041a020]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.0041fd70
mov qword [0x004a8508], rax
jmp 0x41b0cd
lea r8, [0x0041a020]
lea rcx, str._pthread_tls_shmem
mov edx, 4
call fcn.0041fd70
mov qword [0x004a8508], rax
jmp 0x41b1c8
xor eax, eax
jmp 0x41b0da
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
lea rcx, str._pthread_key_dest_shmem
xor r8d, r8d
mov edx, 8
jmp fcn.0041fd70
Function at 0x41e010
Capabilities:
Check mutex on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rcx, qword [0x004a8558]
mov esi, edx
test rcx, rcx
je 0x41dfb0
call fcn.00420130
cmp dword [rbx], 0xbab1f00d
jne 0x41dfd7
mov eax, dword [rbx + 4]
test eax, eax
jle 0x41dfd7
mov eax, dword [rbx + 4]
test eax, eax
jle 0x41df63
mov eax, dword [rbx + 4]
sub eax, 1
mov dword [rbx + 4], eax
mov rcx, qword [0x004a8558]
test rcx, rcx
je 0x41df80
call fcn.004201e0
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
ret
lea r8, [0x0041dcf0]
lea rcx, str.mutex_global_shmem
mov edx, 8
call fcn.0041fd70
mov rcx, rax
mov qword [0x004a8558], rax
call fcn.004201e0
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
ret
lea rcx, str.mutex_global_shmem
lea r8, [0x0041dcf0]
mov edx, 8
call fcn.0041fd70
mov rcx, rax
mov qword [0x004a8558], rax
jmp 0x41df37
call qword [sym.imp.msvcrt.dll___iob_func]
lea r9, str.C:_crossdev_src_winpthreads_git20141130_src_mutex.c
lea rcx, [rax + 0x60]
lea r8, str._m___valid__LIFE_MUTEX____m___busy___0_
lea rdx, [0x0048c060]
mov dword [rsp + 0x20], 0x39
call sub.msvcrt.dll_fprintf
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop
lea r8, [0x0041dcf0]
lea rcx, str.mutex_global_shmem
mov edx, 8
jmp fcn.0041fd70
Function at 0x41fd70
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x80]
mov rdi, rcx
movsxd r12, edx
mov r13, r8
call sub.msvcrt.dll_strlen
mov r14, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x51]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.0040f960
sub rsp, rax
movsxd r15, r14d
movabs rax, 0x656d68732d636367
lea rsi, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov r8, r15
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov eax, 0x326d
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
movsxd rbx, ebx
mov byte [rsp + 0x2e], 0x2d
call sub.msvcrt.dll_memcpy
lea rax, [rsi + r15 + 0x10]
lea r15d, [r14 + 0x50]
movabs rdx, 0x6161616161616161
xor ecx, ecx
mov r8, rsi
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rdx
movsxd rax, r15d
xor edx, edx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + rbx + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + rbx + 0x20], 0x2d
mov rdi, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41fe59
int3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x41fef2
mov rcx, r12
add r14d, 0x10
call sub.msvcrt.dll_malloc
mov r10d, 0x40
mov rbx, rax
bt rbx, r10
jae 0x41fe94
mov r11d, r15d
sub r11d, r10d
movsxd r11, r11d
mov byte [rsi + r11], 0x41
sub r10d, 1
jne 0x41fe80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x41feef
mov rdx, rsi
movzx ecx, ax
mov r9d, r14d
mov r8d, r15d
call fcn.0041fcf0
cmp rax, rbx
mov rsi, rax
je 0x41ff09
mov rcx, rbx
call fcn.00419d78
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
lea rsp, [rbp - 0x58]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
lea r9d, [r14 + 0x10]
mov rdx, rsi
movzx ecx, ax
mov r8d, r15d
call fcn.0041fcf0
mov rsi, rax
jmp 0x41fec9
xor edx, edx
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memset
test r13, r13
je 0x41fec9
mov rcx, rbx
call r13
jmp 0x41fec9

Function at 0x421af0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x004717f0]
lea rcx, str.__terminate_handler_sh
mov edx, 8
jmp fcn.0040f7a0

Function at 0x421b10
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [0x00471800]
lea rcx, str.__unexpected_handler_sh
mov edx, 8
jmp fcn.0040f7a0
Function at 0x451bd0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
mov rcx, rbp
call fcn.00451ab0
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x451c20
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x451bea
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140005e0c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rsi, r8
mov rcx, qword [rcx]
mov rdi, rdx
cmp rdx, rcx
jb 0x140005e53
mov r9, qword [rbx + 8]
lea rax, [rdx + r8]
add r9, rcx
cmp rax, r9
jae 0x140005e53
mov rax, qword [rbx + 0x10]
add rax, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call fcn.140005dd8
mov rax, 0xfffffffffffff000
lea rdx, [rsi + 0xfff]
add rdx, rdi
lea r9, [rbx + 0x2c]
and rdx, rax
mov rcx, rdi
and rcx, rax
mov r8d, 0x40
sub rdx, rcx
mov qword [rbx], rcx
mov qword [rbx + 8], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rbx + 0x28], eax
test eax, eax
jne 0x140005e3c
xor eax, eax
jmp 0x140005e43
Function at 0x14000e018
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
lea rsi, [rcx + 0xfbc0]
mov rbx, rcx
xor edi, edi
lea r10, [r8 + 1]
mov rcx, rsi
mov r11, rdx
mov ebp, edi
call fcn.14000e2a0
or r14, 0xffffffffffffffff
jmp 0x14000e05a
cmp byte [rbx + r11 + 0xfc00], dil
je 0x14000e062
inc r11
cmp r11, r10
jb 0x14000e04d
mov r11, r14
cmp r11, r14
je 0x14000e082
lea r8, [r9 - 1]
mov rcx, rbx
lea rdx, [r11 + 1]
call fcn.14000e180
cmp rax, r14
je 0x14000e082
lea r11, [rax + 1]
jmp 0x14000e05a
lock add qword [rsi], r14
cmp r11, r14
je 0x14000e113
xor eax, eax
lock cmpxchg qword [rsi], r14
jne 0x14000e08f
mov r8, r9
mov rdx, r11
mov rcx, rbx
call fcn.14000e180
cmp rax, r14
jne 0x14000e110
mov rbp, r11
shl rbp, 6
add rbp, rbx
test r9, r9
je 0x14000e0d9
lea rcx, [rbx + 0xfc00]
add rcx, r11
lea rax, [r9 - 1]
test rax, rax
je 0x14000e0d9
mov byte [rcx], 2
inc rcx
sub rax, 1
jne 0x14000e0cd
lea rax, [r11 + r9]
mov byte [rax + rbx + 0xfbff], 1
cmp dword [rbx + 0xfbc8], edi
jne 0x14000e110
lea r9, [rsp + 0x40]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rbx + 0xfbc8], 1
xchg qword [rsi], rdi
mov rbx, qword [rsp + 0x50]
mov rax, rbp
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14001b3ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001b3f8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001b3f0
cmp dword [rcx + 0x3c], edx
jl 0x14001b3f0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14001b3f0
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 0x14001b3f8
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14003a10c
Capabilities:
Delete registry key

Disassembly:
sub rsp, 0x28
and dword [rsp + 0x40], 0
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, eax
lea rdx, [rsp + 0x40]
call fcn.14003dffc
test eax, eax
jne 0x14003a134
mov ecx, dword [rsp + 0x40]
call fcn.14003e510
mov ecx, dword [rsp + 0x40]
call fcn.14006a5bc
mov eax, dword [rsp + 0x40]
add rsp, 0x28
ret
Function at 0x14003e2e0
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x20
mov rsi, r8
xor ebx, ebx
lea r8, [rax + 0x10]
mov qword [rax + 0x20], rbx
mov qword [rax + 0x10], rbx
call fcn.1400399d4
mov edi, eax
test eax, eax
jns 0x14003e319
mov ecx, eax
call fcn.14003e510
jmp 0x14003e364
lea rdx, [rsp + 0x48]
lea rcx, str.S_1_15_2_2608634532_1453884237_1118350049_1925931850_670756941_1603938316_3764965493
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x14003e340
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de94
mov edi, eax
jmp 0x14003e310
mov rax, qword [rsp + 0x38]
cmp qword [rax], rbx
je 0x14003e362
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
mov ecx, 1
cmovne ebx, ecx
mov dword [rsi], ebx
mov ecx, edi
call fcn.14006a5bc
lea rcx, [rsp + 0x38]
call fcn.14003b77c
lea rcx, [rsp + 0x48]
call fcn.14003bafc
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14003e614
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x20
mov rcx, rdx
xor ebx, ebx
lea rdx, [rax + 0x20]
mov qword [rax + 0x20], rbx
mov dword [rax + 8], ebx
mov rdi, r8
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
jne 0x14003e659
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de94
mov ecx, eax
mov ebx, eax
call fcn.14003e510
jmp 0x14003e675
mov rdx, qword [rsp + 0x48]
lea r8, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x14003e641
mov eax, dword [rsp + 0x30]
mov dword [rdi], eax
mov ecx, ebx
call fcn.14006a5bc
lea rcx, [rsp + 0x48]
call fcn.14003bafc
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400403c4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x1f]
sub rsp, 0xf0
mov rax, qword [0x1405f8008]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rax, qword [rbp + 0x7f]
mov rdi, r9
mov qword [rbp - 0x79], rcx
mov r12, r8
lea rcx, [rsp + 0x38]
mov qword [rbp - 0x61], rax
mov rbx, rdx
call fcn.14003ab7c
lea rcx, [rbp - 0x71]
call fcn.14003ab7c
xor r13d, r13d
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], r13
call fcn.140108b74
cmp dword [rdi + 0xc], 2
mov dword [rbp - 0x59], 0x4f004f
mov dword [rbp - 0x55], 0x42
mov dword [rbp - 0x51], 0x4f004f
mov dword [rbp - 0x4d], 0x54
mov dword [rbp - 0x39], 0x410056
mov dword [rbp - 0x35], 0x49004c
mov dword [rbp - 0x31], 0x490044
mov dword [rbp - 0x2d], 0x590054
mov word [rbp - 0x29], r13w
mov dword [rbp - 0x49], 0x4f004e
mov dword [rbp - 0x45], 0x45004e
mov word [rbp - 0x41], r13w
mov dword [rbp - 0x21], 0x73006d
mov dword [rbp - 0x1d], 0x740066
mov dword [rbp - 0x19], 0x73003a
mov dword [rbp - 0x15], 0x2f006c
mov dword [rbp - 0x11], 0x690074
mov dword [rbp - 0xd], 0x65006d
mov dword [rbp - 9], 0x2f0072
mov dword [rbp - 5], 0x730025
mov dword [rbp - 1], 0x25002f
mov dword [rbp + 3], 0x2f0073
mov dword [rbp + 7], 0x730025
mov dword [rbp + 0xb], 0x25002f
mov dword [rbp + 0xf], 0x73
je 0x140040505
cmp dword [rdi + 0xc], 6
je 0x1400404fb
cmp dword [rdi + 0xc], 9
je 0x1400404f1
mov ebx, 0x80070057
mov ecx, ebx
call fcn.14003e510
jmp 0x1400405e2
mov rdi, qword [rdi + 0x48]
lea r14, [rbp - 0x39]
jmp 0x14004050d
lea r14, [rbp - 0x59]
lea rdi, [rbp - 0x49]
jmp 0x14004050d
mov rdi, qword [rdi + 0x40]
lea r14, [rbp - 0x51]
mov edx, 0x3b
lea r8, [rsp + 0x38]
mov rcx, rbx
lea r9d, [rdx - 0x3a]
call fcn.14007a0cc
mov ebx, eax
test eax, eax
jns 0x14004052d
mov ecx, eax
jmp 0x1400404e7
test rdi, rdi
je 0x1400405d5
mov esi, r13d
cmp dword [rsp + 0x3c], r13d
jle 0x1400405d5
mov r13, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140109bbc
mov r9, qword [rbp - 0x79]
lea rdx, [rbp - 0x21]
movsxd rax, esi
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rdi
mov r8, r14
mov rax, qword [r13 + rax*8]
mov qword [rsp + 0x20], rax
call fcn.14003ca40
mov ebx, eax
test eax, eax
js 0x140040529
test r12, r12
je 0x140040598
mov rdx, r12
lea rcx, [rsp + 0x48]
call fcn.14003c944
mov ebx, eax
test eax, eax
js 0x140040529
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x30]
call fcn.14003f2d8
mov ebx, eax
test eax, eax
js 0x140040529
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x71]
call fcn.14003c930
mov ebx, eax
test eax, eax
js 0x140040529
inc esi
cmp esi, dword [rsp + 0x3c]
jl 0x140040549
mov rcx, qword [rbp - 0x61]
lea rdx, [rbp - 0x71]
call fcn.1401c3f64
mov ecx, ebx
call fcn.14006a5bc
lea rcx, [rsp + 0x48]
call fcn.14003b3a0
lea rcx, [rsp + 0x30]
call fcn.14003ba98
lea rcx, [rbp - 0x71]
call fcn.1401c3b58
lea rcx, [rsp + 0x38]
call fcn.1401c3b58
mov eax, ebx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14001af80
add rsp, 0xf0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400413a0
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
sub rsp, 0x20
and qword [rsp + 0x48], 0
lea r9, [rsp + 0x48]
mov r8d, 2
call fcn.14003a1c8
mov dword [rsp + 0x40], eax
mov ebx, eax
test eax, eax
jns 0x1400413ce
mov ecx, eax
jmp 0x1400413f6
mov rcx, qword [rsp + 0x48]
lea rdx, str.ReferralId
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, eax
lea rdx, [rsp + 0x40]
call fcn.14003dffc
mov ebx, dword [rsp + 0x40]
test eax, eax
jne 0x1400413fb
mov ecx, ebx
call fcn.14003e510
mov ecx, ebx
call fcn.14006a5bc
lea rcx, [rsp + 0x48]
call fcn.14003bae4
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x1400615b8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1405f8008]
xor rax, rsp
mov qword [rsp + 0x240], rax
and qword [rsp + 0x20], 0
mov rsi, rdx
mov ebx, 0x104
lea rdx, [rsp + 0x30]
mov r8d, ebx
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test eax, eax
jne 0x14006161c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003de94
mov ebx, eax
mov ecx, eax
call fcn.14003e510
jmp 0x140061676
cmp edi, ebx
ja 0x140061635
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14003f2d8
mov ebx, eax
test eax, eax
jns 0x140061676
jmp 0x140061613
mov rdx, rdi
lea r8, [rsp + 0x20]
call fcn.140077640
mov ebx, eax
test eax, eax
js 0x140061613
mov rbp, qword [rsp + 0x20]
mov r8d, edi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140061604
cmp eax, edi
je 0x14006166d
mov ebx, 0x8007007a
mov ecx, ebx
jmp 0x140061615
and qword [rsp + 0x20], 0
mov qword [rsi], rbp
mov ecx, ebx
call fcn.14006a5bc
lea rcx, [rsp + 0x20]
call fcn.14003ba98
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14001af80
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1400622a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1405f8008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rax, rdx
mov dword [rbp - 0x30], 0x25002f
xor edi, edi
mov dword [rbp - 0x2c], 0x2e0058
mov dword [rsp + 0x30], edi
lea rdx, str._d._d._d._d
mov dword [rsp + 0x28], 0x4000
xor r9d, r9d
mov rcx, rax
mov dword [rbp - 0x28], 0x580025
lea r8d, [rdi + 0xa]
mov dword [rbp - 0x24], 0x25002e
mov dword [rbp - 0x20], 0x2e0058
mov dword [rbp - 0x1c], 0x580025
mov dword [rbp - 0x18], 0x25002e
mov dword [rbp - 0x14], 0x58
mov dword [rsp + 0x20], 0x2800
call fcn.140077700
mov ebx, eax
test eax, eax
jns 0x140062334
mov ecx, eax
call fcn.14003e510
mov ecx, ebx
call fcn.14006a5bc
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14001af80
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret