joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014a40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14001ef20
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001ef20
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140014ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1402dc144]
mov rbx, rcx
test esi, esi
jle 0x140014be0
mov rax, qword [0x1402dc148]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140014afb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140014b85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140014ae0
mov rcx, rbx
call fcn.140015500
mov rdi, rax
test rax, rax
je 0x140014c02
mov rax, qword [0x1402dc148]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140015640
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1402dc148]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140014be7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140014b7e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140014b90
add dword [0x1402dc144], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1402dc148]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140014b7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140014a40
nop dword [rax]
xor esi, esi
jmp 0x140014b08
mov rax, qword [0x1402dc148]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140014a40
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140014a40
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140015170
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1402dc1a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402dc180]
test rbx, rbx
je 0x1400151cc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400151c3
test rsi, rsi
je 0x1400151c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400151a8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140015500
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1402b61e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140015520
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140015528
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140015520
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001557d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140015574
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140015520
add rax, 0x28
cmp rax, r9
jne 0x140015560
xor eax, eax
ret

Function at 0x140015580
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402b61e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14001559f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400155a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14001559f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140015640
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1402b61e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001565f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140015668
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140082b90
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 rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140082bd8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x140082baa
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

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

Disassembly:
lea rcx, [0x1402ae5c0]
jmp 0x140016350

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

Disassembly:
lea rcx, [0x1402ae5c0]
jmp 0x140016350
Function at 0x140019e00
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor ecx, ecx
xor eax, eax
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x140019f21
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x140019f61
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr edi, 5
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x140019f57
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
and al, dil
mov byte [r8 + 0x16], al
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x140019f5b
xor ecx, ecx
mov eax, 0x80000007
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x140019f69
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x140019ef4
mov dl, byte [r8 + 0x19]
jmp 0x140019f50
xor r10d, r10d
jmp 0x140019e5f
cmp byte [r8 + 0x1a], 0
je 0x140019f54
xor ecx, ecx
mov eax, 0x40000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x140019f54
cmp ecx, 0x666f736f
jne 0x140019f54
cmp edx, 0x76482074
jne 0x140019f54
mov byte [r8 + 0x19], 1
jmp 0x140019f54
Function at 0x14001afc0
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x14010d038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x14001b20c
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x140119e50], rax
jne 0x14001b20f
mov rsi, rcx
mov r14d, dword [rcx + 8]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
cmp byte [rcx + 2], 0
sete al
bsr rdx, r14
xor rdx, 0xffffffffffffffc0
lea rcx, [0x1400f19e0]
mov cl, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x1400f1a30]
mov rcx, qword [rcx + rdx*8 + 0x208]
and rcx, r14
lea rdx, [r8 + rdx*8]
add rdx, 0x208
cmp rcx, 1
sbb rdx, 0xffffffffffffffff
lea rcx, [0x1400f11c8]
movzx ecx, word [rcx + rdx*2 + 0x400]
cmp cx, 0x6e
setb dl
and dl, al
movzx eax, dl
or eax, ecx
movzx eax, ax
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x48
lea rdi, [rsi + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14001b192
mov rax, qword [r15]
mov rbx, qword [rax]
test rbx, rbx
je 0x14001b19f
mov byte [rsp + 0x3f], 0
mov r8, qword [rbx]
test r8, r8
je 0x14001b18b
lea rdx, [rsi + 0x48]
mov rcx, r8
bswap rcx
mov r14d, dword [rdx + r12*8 + 0x18]
mov rdx, rcx
xor rdx, rbx
cmp rdx, 0x1fffff
ja 0x14001b212
mov edx, ecx
and edx, 0x1fc000
je 0x14001b212
prefetcht0 byte [rcx]
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rbx
mov rdx, rsi
call fcn.140049250
mov ecx, dword [0x14011e928]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14011c7a0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x120], rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140079460
mov rax, rbx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x14001b0ec
mov rcx, rdi
call fcn.140048e40
jmp 0x14001b099
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.140046f90
test rax, rax
je 0x14001b205
mov rbx, rax
and rax, 0xffffffffffe00000
mov ecx, ebx
shr ecx, 0xe
movzx ecx, cl
shl rcx, 5
or rcx, rax
mov rax, rcx
or rax, 0x1000
or rcx, 0x101e
movzx ecx, byte [rcx]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
jmp 0x14001b106
xor ebx, ebx
jmp 0x14001b130
int3
int3
movaps xmm0, xmmword [0x1400f0950]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
lea rdx, str.first
mov rcx, rsi
call fcn.1400acd10
mov rcx, rsi
call fcn.140018990
mov rcx, r14
call fcn.1400acd70
int3
Function at 0x14001d5e0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x140120408], 0
jne 0x14001d61d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14001d610
mov dword [rdi], eax
mov dword [0x140120410], eax
mov qword [0x140120408], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3

Function at 0x1400216c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
mov r15b, byte [rbp + 0x68]
test byte [r9 + 8], 1
jne 0x14002172b
mov dl, byte [rbp + 0x60]
movzx r8d, r15b
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
mov dword [rsp + 0x28], r8d
mov byte [rsp + 0x20], dl
mov rdx, rsi
mov r8, rdi
call qword [0x140131008]
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rsi], rdi
test al, al
jns 0x14002170d
call fcn.140077ed0
jmp 0x14002170d
lea rbx, [rbp - 0x20]
mov rcx, r9
mov rdx, rbx
call fcn.140051620
lea rdx, [0x1401241b0]
mov rcx, rbx
call fcn.140052200
mov r14, rax
mov rcx, qword [rbp - 0x20]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
test eax, eax
jne 0x14002176b
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140131008]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x1400f0950]
movaps xmmword [rbx], xmm0
mov rax, qword [r14]
xor r15b, 1
movzx ecx, r15b
mov rax, qword [rax + rcx*8 + 0x28]
mov rcx, r14
mov rdx, rbx
call qword [0x140131008]
movzx eax, byte [rbx + 0x17]
test al, al
js 0x1400217ae
mov edx, eax
and edx, 0x7f
jmp 0x1400217b2
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
test rdx, rdx
je 0x14002171d
test al, al
cmovns rcx, rbx
mov r14, rcx
jmp 0x14002180e
movzx edx, al
mov rax, qword [rdi]
mov rax, qword [rax + 0x60]
mov rcx, rdi
call qword [0x140131008]
cmp eax, 0xffffffff
jne 0x1400217e4
xor edi, edi
inc r14
movzx eax, byte [rbp - 9]
mov edx, eax
and edx, 0x7f
test al, al
mov rcx, qword [rbp - 0x20]
mov r8, rbx
cmovs rdx, qword [rbp - 0x18]
cmovs r8, rcx
add rdx, r8
cmp r14, rdx
je 0x14002171d
test rdi, rdi
je 0x1400217e2
mov al, byte [r14]
mov rcx, qword [rdi + 0x30]
cmp rcx, qword [rdi + 0x38]
je 0x1400217ca
lea rdx, [rcx + 1]
mov qword [rdi + 0x30], rdx
mov byte [rcx], al
jmp 0x1400217e4
Function at 0x1400286f0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov edi, edx
mov rsi, rcx
lea rax, [0x1400efe80]
mov qword [rcx], rax
add rcx, 8
call fcn.1400556b0
lea rcx, [rsi + 0x10]
call fcn.1400556b0
xor ebx, ebx
mov byte [rsi + 0x18], bl
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], ebx
call fcn.1400556b0
mov byte [rsi + 0x48], bl
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rbx
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
movups xmmword [rsi + 0xc0], xmm6
mov ebp, 0x3f800000
mov dword [rsi + 0xd0], ebp
mov dword [rsi + 0xd8], ebx
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], ebp
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], ebp
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x150], ebp
movups xmmword [rsi + 0x158], xmm6
movups xmmword [rsi + 0x168], xmm6
mov dword [rsi + 0x178], ebp
mov qword [rsi + 0x198], rbx
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], ebx
mov eax, dword [0x1400f705c]
mov dword [rsi + 0x1a0], eax
lea rcx, [rsi + 0x1a8]
call fcn.140034bc0
movups xmmword [rsi + 0x2e0], xmm6
movups xmmword [rsi + 0x2f0], xmm6
mov dword [rsi + 0x300], ebp
movups xmmword [rsi + 0x308], xmm6
movups xmmword [rsi + 0x318], xmm6
movups xmmword [rsi + 0x328], xmm6
mov byte [rsi + 0x338], bl
mov dword [rsi + 0x33c], edi
mov byte [rsi + 0x340], bl
movups xmmword [rsi + 0x348], xmm6
mov qword [rsi + 0x358], rbx
call fcn.140018990
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x190], eax
mov eax, eax
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x188], rax
mov edx, dword [rsi + 0x1a0]
mov rax, qword [rsi + 0x1b0]
mov rcx, rax
shr rcx, 6
test dword [0x1400f7060], edx
je 0x1400288eb
cmp rax, 0x40
mov eax, 0x3e8
cmovb rcx, rax
call fcn.14005eda0
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x14002890f
call fcn.14002aba0
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.14002ac50
mov qword [0x1401251c0], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
test dword [0x1400f7064], edx
jne 0x14002892d
test dword [0x1400f7068], edx
jne 0x140028922
cmp rax, 0x40
mov eax, 0xfa0
cmovb rcx, rax
call fcn.1400345b0
jmp 0x1400288ac
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x140131008]
jmp 0x1400288b9
cmp rax, 0x40
mov eax, 0x7a1200
jmp 0x140028904
cmp rax, 0x40
mov eax, 0x100
jmp 0x1400288a3
Function at 0x14002b6d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x14010d038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002b758
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14002b742
cmp dword [rsp + 0x38], 4
jne 0x14002b742
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140079460
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x14002b742
Function at 0x14002b760
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1058
call fcn.140079400
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14010d038]
xor rax, rsp
mov qword [rsp + 0x1050], rax
lea r14, [rsp + 0x850]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.14007b5a0
lea r9, [rsp + 0x4c]
mov dword [r9], 1
lea rax, [rsp + 0x48]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002b83b
mov eax, dword [rsp + 0x4c]
cmp eax, 1
jne 0x14002b8be
lea rbx, [rsp + 0x850]
mov rcx, rbx
call fcn.140094c58
mov rdi, rax
mov al, byte [rsi + 0x17]
test al, al
js 0x14002b8a1
cmp rdi, 0xa
jbe 0x14002b83f
movzx r9d, al
mov edx, 0xa
mov r8, rdi
sub r8, rdx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], 0
mov rcx, rsi
call fcn.140027710
jmp 0x14002b871
mov edi, eax
jmp 0x14002b873
mov rbx, rsi
test rdi, rdi
je 0x14002b860
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x850]
mov rcx, rbx
call fcn.14007aef0
mov al, byte [rsi + 0x17]
test al, al
js 0x14002b892
mov eax, edi
and al, 0x7f
mov byte [rsi + 0x17], al
mov word [rbx + rdi*2], 0
xor edi, edi
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140079460
mov eax, edi
add rsp, 0x1058
pop rbx
pop rdi
pop rsi
pop r14
ret
mov qword [rsi + 8], rdi
jmp 0x14002b86b
mov r9, qword [rsi + 8]
jmp 0x14002b813
mov rax, qword [rsi + 0x10]
mov rdx, rax
btr rdx, 0x3f
dec rdx
cmp rdx, rdi
jb 0x14002b898
shr rax, 0x38
mov rbx, qword [rsi]
jmp 0x14002b842
cmp eax, 2
jne 0x14002b961
lea rdi, [rsp + 0x50]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.14007b5a0
lea rcx, [rsp + 0x850]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x48], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x14002b96b
lea rbx, [rsp + 0x50]
mov rcx, rbx
call fcn.140094c58
mov rdi, rax
mov al, byte [rsi + 0x17]
test al, al
js 0x14002b940
cmp rdi, 0xa
ja 0x14002b80a
mov rbx, rsi
test rdi, rdi
je 0x14002b860
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x50]
jmp 0x14002b855
mov rax, qword [rsi + 0x10]
mov rdx, rax
btr rdx, 0x3f
dec rdx
cmp rdx, rdi
jb 0x14002b898
shr rax, 0x38
mov rbx, qword [rsi]
jmp 0x14002b927
mov edi, 0x3f4
jmp 0x14002b873
mov edi, 0xea
jmp 0x14002b873

Function at 0x14002b980
Capabilities:
Set registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x14010d038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x34]
mov dword [rax], r8d
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140079460
mov eax, esi
add rsp, 0x40
pop rsi
ret
xor r8d, r8d
test edx, edx
cmovg r8d, edx
lea rdx, str.PWALauncherResult
jmp 0x14002b980
Function at 0x14002bd60
Capabilities:
Create thread

Disassembly:
jmp 0x14002bd60
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r13d, dword [rsp + 0xd0]
mov rax, qword [0x14010d038]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.140077e94
mov rsi, rax
movabs r12, 0xfffffffc00000000
mov rax, r15
and rax, r12
cmp rax, qword [0x14010ddc8]
jne 0x14002bdcd
mov rcx, r15
call fcn.140045620
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r13d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x14002c1d0]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14002be41
test r14, r14
je 0x14002be36
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140079460
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14002be10
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14002be5a
mov ebp, eax
cmp eax, 0x5af
je 0x14002be5a
cmp ebp, 0xe
jne 0x14002be85
mov rcx, rbx
call fcn.1400aca10
test rsi, rsi
je 0x14002be10
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x14010ddc8]
jne 0x14002be7b
call fcn.140045770
mov rcx, rsi
call fcn.140077ed0
jmp 0x14002be10
mov eax, dword [0x140125228]
mov ecx, dword [0x14011c7a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002bf08
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.140034810
movzx r8d, byte [rbx + 0x17]
test r8b, r8b
js 0x14002bec5
and r8d, 0x7f
jmp 0x14002becf
mov r8, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
lea r14, [rsp + 0x50]
mov rcx, r14
mov rdx, rbx
call fcn.1400455a0
mov rcx, qword [0x140125220]
mov rdx, r14
call fcn.1400388a0
cmp byte [rsp + 0x4f], 0
jns 0x14002be62
mov rcx, qword [rsp + 0x38]
call fcn.140077ed0
jmp 0x14002be62
lea rcx, [0x140125228]
call fcn.140077ff0
cmp dword [0x140125228], 0xffffffff
jne 0x14002bea6
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140038870
mov qword [0x140125220], rax
lea rcx, [0x140125228]
call fcn.140078088
jmp 0x14002bea6

Function at 0x14002c4f0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x14002c537
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002c551
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14002c52f
mov qword [rsi], rdi
call fcn.14005b320
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x14002c567
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14005b320
mov rcx, qword [rsi]
call fcn.140055110
mov qword [rsi], 0
jmp 0x14002c51d
int3