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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x98
mov rax, qword [0x1403532b0]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov eax, dword [rcx + 0x10]
mov rdi, r9
mov r15, qword [rbp + 0x7f]
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test eax, eax
jne 0x1401f74ec
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [rbx + 0x10]
cmp eax, 1
jne 0x1401f750b
mov rcx, qword [rbx + 8]
mov r9d, edi
mov r8, r14
mov qword [rsp + 0x20], r15
mov rdx, rsi
call sub.ntdll.dll_NtReadVirtualMemory
mov eax, dword [rbx + 0x10]
cmp eax, 2
jne 0x1401f75fd
mov eax, dword [rbx]
mov edx, 0x3533
xor eax, 0x8fea0644
mov dword [rbp - 0x31], 0xca92ca91
mov dword [rbp - 9], eax
mov eax, 0xfcb3e314
xor rsi, rax
mov dword [rbp - 0x2d], 0xca8ccae1
mov rax, rdi
mov qword [rbp - 1], rsi
xor rax, 0x544becbe
mov dword [rbp - 0x29], 0xcaa0caa6
xor esi, esi
mov qword [rbp + 7], rax
mov dword [rbp - 0x11], esi
mov eax, esi
mov word [rbp - 0x19], si
mov dword [rbp - 0x25], 0xcae6cae7
mov dword [rbp - 0x21], 0xcae7caa3
mov dword [rbp - 0x1d], 0xcae0cae4
mov byte [rbp - 0x17], 1
nop word [rax + rax]
movzx ecx, ax
sub cx, dx
xor word [rbp + rax*2 - 0x31], cx
inc rax
cmp rax, 0xc
jb 0x1401f7580
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
lea rcx, [rbp - 0x31]
xor edx, edx
mov byte [rbp - 0x17], sil
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401f75fd
mov qword [rsp + 0x38], rsi
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 9]
mov dword [rsp + 0x28], edi
mov r9d, Ordinal_26
mov edx, 0x22240e
mov qword [rsp + 0x20], r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1401f7b40
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1401f79a0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x98
mov rax, qword [0x1403532b0]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov eax, dword [rcx + 0x10]
mov rdi, r9
mov r15, qword [rbp + 0x7f]
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test eax, eax
jne 0x1401f79ec
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [rbx + 0x10]
cmp eax, 1
jne 0x1401f7a0b
mov rcx, qword [rbx + 8]
mov r9d, edi
mov r8, r14
mov qword [rsp + 0x20], r15
mov rdx, rsi
call sub.ntdll.dll_NtWriteVirtualMemory
mov eax, dword [rbx + 0x10]
cmp eax, 2
jne 0x1401f7afd
mov eax, dword [rbx]
mov edx, 0x3533
xor eax, 0x8fea0644
mov dword [rbp - 0x31], 0xca92ca91
mov dword [rbp - 9], eax
mov eax, 0xfcb3e314
xor rsi, rax
mov dword [rbp - 0x2d], 0xca8ccae1
mov rax, rdi
mov qword [rbp - 1], rsi
xor rax, 0x544becbe
mov dword [rbp - 0x29], 0xcaa0caa6
xor esi, esi
mov qword [rbp + 7], rax
mov dword [rbp - 0x11], esi
mov eax, esi
mov word [rbp - 0x19], si
mov dword [rbp - 0x25], 0xcae6cae7
mov dword [rbp - 0x21], 0xcae7caa3
mov dword [rbp - 0x1d], 0xcae0cae4
mov byte [rbp - 0x17], 1
nop word [rax + rax]
movzx ecx, ax
sub cx, dx
xor word [rbp + rax*2 - 0x31], cx
inc rax
cmp rax, 0xc
jb 0x1401f7a80
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
lea rcx, [rbp - 0x31]
xor edx, edx
mov byte [rbp - 0x17], sil
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401f7afd
mov qword [rsp + 0x38], rsi
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 9]
mov dword [rsp + 0x28], edi
mov r9d, Ordinal_26
mov edx, 0x22240a
mov qword [rsp + 0x20], r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.1401f7b40
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x165030
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
je 0x165040
jne 0x165040
sub rsp, 0x28
mov rax, qword [rdx]
cmp dword [rax + 0x8c], 0
je 0x1650eb
mov rsi, qword [rdx + 8]
mov edi, dword [rax + 0x88]
cmp dword [rdi + rsi + 0x18], 0
je 0x165088
jne 0x165088
je 0x490a51b6
add r12, rsi
add rbx, rsi
je 0x1650eb
cmp dword [rsi + rdi + 0x14], 0
je 0x1650eb
mov r15, r8
mov r13, rcx
mov ebx, dword [rsi + rdi + 0x20]
mov r12d, dword [rsi + rdi + 0x24]
je 0x165069
jne 0x165069
je 0x74d9afeb
and eax, 0x44e92375
mov esi, dword [rcx + rax]
Function at 0x172790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x1727c0
mov eax, dword [rax + 0x20]
mov dword [rdi + 0x38], eax
mov rcx, rbx
mov rdx, rsi
call r15
mov rcx, rdi
jmp 0x172870
xor r14d, r14d
xor edx, edx
jmp 0x1728ff
mov rax, qword [rcx]
jmp 0x17280b
push r15
je 0x1728f6
jne 0x1728f6
add byte [rax], al
add byte [rax], al
nop word cs:[rax + rax]
nop dword [rax]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
jmp 0x1728de
mov rcx, rbp
jmp 0x1728b1
mov r15, qword [sym.imp.itmkl_beo_UteNpt2HgazewrUmZvtjloS]
je 0x1727d2
jne 0x1727d2
jmp 0xffffffffff18b34d
mov rax, qword [rcx]
call qword [rax + 0x30]
jmp 0x172796
call qword [rax + 8]
je 0x172914
jne 0x172914
jmp 0x17d508
jmp 0x1728cc
call qword [rax + 0x20]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
call qword [rax + 8]
test eax, eax
je 0x17287d
jne 0x17287d
por mm3, qword [rdx - 0x17]
je 0x1727ed
jne 0x1727ed
je 0xffffffff8426d62d
jmp 0x172821
sub rsp, 0x28
mov rdi, rcx
je 0x17290b
jmp 0x172932
push rdi
push rbp
push rbx
jmp 0x172845
je 0x172920
mov rax, qword [rcx]
jmp 0x1727ad
call fcn.00173060
jmp 0x17295e
jmp 0xcfac90
je 0x17293b
je 0x17294f
jne 0x17294f
je 0xffffffff8d9b3819
je 0x172925
add byte [rax], al
add byte [rax - 0x75], cl
outsd dx, dword [rsi]
adc byte [rdi], cl
test ch, cl
add byte [rax], al
add byte [rdi], cl
test edi, eax
add byte [rax], al
add byte [rax - 0x7b], cl
leave
mov rbp, qword [rdi + 0x10]
je 0x17296f
jne 0x17296f
test rcx, rcx
jmp 0x17285e
call qword [rax + 0x18]
lea edx, [rax + 1]
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x20]
mov rcx, qword [rdi + 0x10]
jmp 0x1727bb
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [rax + 0x30]
test rax, rax
je 0x17293b
mov rcx, qword [rdi + 0x10]
je 0x172801
jne 0x172801
push r14
push rsi
jmp 0x172857
je 0x172842
jne 0x172842
mov rcx, qword [rcx + 0x10]
je 0x1728a8
jne 0x1728a8
jmp 0x102e99d
test eax, eax
jmp 0x172918
jne 0x1727e0
jmp 0x17293b
xor r14d, r14d
jmp 0x17293b
je 0x172935
jne 0x172935
jmp 0x17287c
jne 0x17290b
jmp 0x18e77a
mov r14d, 1
mov eax, r14d
jmp 0x172942
je 0x17281b
jne 0x17281b
jmp 0x3876b69b
lea rbx, [rdi + 0x38]
lea rsi, [rdi + 0x3c]
jmp 0x1727f5
cmp eax, 1
je 0x172892
jne 0x172892
je 0x5cb4bb
mov rax, qword [rbp]
jmp 0x172838
invalid
add al, ah
dec dword [rbp + 0x29]
imul r9, rbx, 0xa2c13
Function at 0x188de0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
lea rax, [rdx + 0x10]
cmp r8d, 0x100
cmovne rax, rdx
lea r8, str.expand_32_byte_kexpand_16_byte_k
lea r9, [0x0019fbe0]
cmove r9, r8
mov edx, dword [rax]
mov dword [rcx + 0x20], edx
mov edx, dword [rax + 4]
mov dword [rcx + 0x24], edx
mov edx, dword [rax + 8]
mov dword [rcx + 0x28], edx
mov eax, dword [rax + 0xc]
mov dword [rcx + 0x2c], eax
mov dword [rcx], 0x61707865
mov rax, qword [r9 + 4]
mov qword [rcx + 4], rax
mov eax, dword [r9 + 0xc]
mov dword [rcx + 0xc], eax
ret
Function at 0x18ee90
Capabilities:
Hash data using sha512

Disassembly:
test rcx, rcx
je 0x18ef1b
mov qword [rcx + 0x48], 0
mov qword [rcx], 0
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx + 8], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 0x10], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x18], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x20], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x28], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x30], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x38], rax
mov eax, 1
ret
Function at 0x18f940
Capabilities:
Encrypt data using curve25519

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
mov edx, 0x20
mov rcx, r8
mov r8, rsi
call fcn.0018f6b0
and byte [rsi], 0xf8
mov al, byte [rsi + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [rsi + 0x1f], al
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov rdx, rsi
call fcn.0018c300
mov rcx, rdi
mov rdx, rbx
call fcn.0018c280
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret
Function at 0x18f9a0
Capabilities:
Encrypt data using curve25519

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x198
mov qword [rsp + 0x28], rcx
xor eax, eax
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
mov byte [rsp + rax + 0x30], cl
add rax, 1
cmp rax, 0x20
jne 0x18f9c0
and byte [rsp + 0x30], 0xf8
mov al, byte [rsp + 0x4f]
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x4f], al
lea rbp, [rsp + 0x140]
mov rcx, rbp
call fcn.00189700
lea rbx, [rsp + 0x170]
mov rcx, rbx
call fcn.00189390
lea rsi, [rsp + 0xb0]
mov rcx, rsi
mov rdx, rbp
mov r8, rbx
call fcn.001893b0
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.0018b630
mov rcx, rbx
mov rdx, rbx
call fcn.00189990
mov rcx, rbp
mov rdx, rsi
mov r8, rbx
call fcn.0018a130
lea rcx, [rsp + 0x80]
call fcn.00189390
lea rdi, [rsp + 0x110]
mov rcx, rdi
call fcn.00189370
lea rcx, [rsp + 0x50]
mov rdx, rbp
call fcn.001896e0
lea r14, [rsp + 0xe0]
mov rcx, r14
call fcn.00189390
mov r13d, 0xfe
xor r15d, r15d
nop word cs:[rax + rax]
nop
mov ebp, r15d
mov eax, r13d
shr rax, 3
movzx r15d, byte [rsp + rax + 0x30]
mov ecx, r13d
and cl, 7
shr r15d, cl
and r15d, 1
xor ebp, r15d
lea rsi, [rsp + 0x80]
mov rcx, rsi
lea r12, [rsp + 0x50]
mov rdx, r12
mov r8d, ebp
call fcn.00189540
mov rcx, rdi
mov rdx, r14
mov r8d, ebp
call fcn.00189540
lea rbp, [rsp + 0xb0]
mov rcx, rbp
mov rdx, r12
mov r8, r14
call fcn.0018b630
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
call fcn.0018b630
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.001893b0
mov rcx, rdi
mov rdx, r12
mov r8, r14
call fcn.001893b0
mov rcx, r14
mov rdx, rbp
mov r8, rsi
call fcn.0018a130
mov rcx, rdi
mov rdx, rdi
mov r8, rbx
call fcn.0018a130
mov rcx, rbp
mov rdx, rbx
call fcn.00189c20
mov rcx, rbx
mov rdx, rsi
call fcn.00189c20
mov rcx, r12
mov rdx, r14
mov r8, rdi
call fcn.001893b0
mov rcx, rdi
mov rdx, r14
mov r8, rdi
call fcn.0018b630
mov rcx, rsi
mov rdx, rbx
mov r8, rbp
call fcn.0018a130
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.0018b630
mov rcx, rdi
mov rdx, rdi
call fcn.00189c20
mov rcx, r14
mov rdx, rbx
call fcn.0018ac70
mov rcx, r12
mov rdx, r12
call fcn.00189c20
mov rcx, rbp
mov rdx, rbp
mov r8, r14
call fcn.001893b0
mov rcx, r14
lea rdx, [rsp + 0x140]
mov r8, rdi
call fcn.0018a130
mov rcx, rdi
mov rdx, rbx
mov r8, rbp
call fcn.0018a130
add r13d, 0xffffffff
cmp r13d, 0xffffffff
jne 0x18fa90
lea rsi, [rsp + 0x80]
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov r8d, r15d
call fcn.00189540
lea rdi, [rsp + 0x110]
lea rdx, [rsp + 0xe0]
mov rcx, rdi
mov r8d, r15d
call fcn.00189540
mov rcx, rdi
mov rdx, rdi
call fcn.00189990
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.0018a130
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call fcn.0018a9a0
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140044b90
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, [0x14012ed48]
mov qword [rcx], rax
add rcx, 8
call fcn.140072350
lea rcx, [rsi + 0x10]
call fcn.140072350
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.140072350
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 [0x140135ce8]
mov dword [rsi + 0x1a0], eax
lea rcx, [rsi + 0x1a8]
call fcn.140054600
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.140038260
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 [0x140135cec], edx
je 0x140044d8b
cmp rax, 0x40
mov eax, 0x3e8
cmovb rcx, rax
call fcn.140081e60
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x140044daf
call fcn.140046f00
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.140046fb0
mov qword [0x14015b720], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
test dword [0x140135cf0], edx
jne 0x140044dc2
test dword [0x140135cf4], edx
jne 0x140044dd0
cmp rax, 0x40
mov eax, 0xfa0
cmovb rcx, rax
call fcn.1400543e0
jmp 0x140044d4c
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x14016d008]
jmp 0x140044d59
cmp rax, 0x40
mov eax, 0x100
jmp 0x140044d43
cmp rax, 0x40
mov eax, 0x7a1200
jmp 0x140044da4
Function at 0x140046680
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 2
cmp rdx, 1
jne 0x1400466b0
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x1400466e7
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140071840
lea rax, [rdx - 1]
test rdx, rax
jne 0x1400466be
mov rdi, rdx
jmp 0x140046695
mov rcx, rdx
call fcn.14006d080
mov rdi, rax
jmp 0x140046695
mov rcx, rdx
call fcn.14006d080
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jb 0x14004669e
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
jae 0x1400466df
mov rax, qword [rsi + 0x18]
test rax, rax
jns 0x140046709
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x14004670e
cvtsi2ss xmm0, rax
divss xmm0, dword [rsi + 0x20]
call fcn.1400b1b4c
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x140121008]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rbx, 3
jb 0x1400466cb
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov r8, rax
shr r8, 2
and rax, rcx
and r8, rcx
add r8, rax
mov rax, r8
shr rax, 4
add rax, r8
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rax, rcx
shr rax, 0x38
cmp eax, 1
ja 0x1400466cb
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rdx, 2
cmovb rax, rdx
jmp 0x1400466d3

Function at 0x140047860
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140149038]
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 + 8]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400478e9
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x1400478d3
cmp dword [rsp + 0x38], 4
jne 0x1400478d3
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140098a60
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x1400478d3
Function at 0x1400478f0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140098a00
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140149038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.14009aba0
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx + 8]
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 0x1400479b4
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x1400479b8
lea rcx, [rsp + 0x840]
call fcn.1400bbae0
lea rdx, [rsp + 0x840]
mov rcx, rsi
mov r8, rax
call fcn.140043e40
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140098a60
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140047995
cmp eax, 2
jne 0x140047a0d
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.14009aba0
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x140047a14
lea rcx, [rsp + 0x40]
call fcn.1400bbae0
lea rdx, [rsp + 0x40]
jmp 0x140047988
mov edi, 0x3f4
jmp 0x140047995
mov edi, 0xea
jmp 0x140047995

Function at 0x140047a20
Capabilities:
Set registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x140149038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x34]
mov dword [rax], r8d
mov rcx, qword [rcx + 8]
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.140098a60
mov eax, esi
add rsp, 0x40
pop rsi
ret
xor r8d, r8d
test edx, edx
cmovg r8d, edx
lea rdx, str.PWALauncherResult
jmp 0x140047a20
Function at 0x140047e90
Capabilities:
Create thread

Disassembly:
jmp 0x140047e90
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 [0x140149038]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.140097494
mov rsi, rax
movabs r12, 0xfffffffc00000000
mov rax, r15
and rax, r12
cmp rax, qword [0x1401585c8]
je 0x140047f5e
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, [0x140048340]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140047f73
test r14, r14
je 0x140047f68
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140098a60
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, r15
call fcn.140069a70
jmp 0x140047ef5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140047f38
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x140047f8c
mov ebp, eax
cmp eax, 0x5af
je 0x140047f8c
cmp ebp, 0xe
jne 0x140047fb7
mov rcx, rbx
call fcn.1400f4280
test rsi, rsi
je 0x140047f38
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x1401585c8]
jne 0x140047fad
call fcn.140069bc0
mov rcx, rsi
call fcn.1400974d0
jmp 0x140047f38
mov eax, dword [0x14015b788]
mov ecx, dword [0x14015889c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004802f
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.14004c2d0
movzx eax, byte [rbx + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rbx]
cmovns rax, rbx
cmovs rcx, qword [rbx + 8]
lea rdx, [rsp + 0x50]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
mov rcx, qword [0x14015b780]
call fcn.140057230
cmp byte [rbx + 0x17], 0
jns 0x140047f94
mov rcx, qword [rsp + 0x38]
call fcn.1400974d0
jmp 0x140047f94
lea rcx, [0x14015b788]
call fcn.1400975f0
cmp dword [0x14015b788], 0xffffffff
jne 0x140047fd8
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140057200
mov qword [0x14015b780], rax
lea rcx, [0x14015b788]
call fcn.140097688
jmp 0x140047fd8

Function at 0x140048980
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 0x1400489c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400489e1
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400489bf
mov qword [rsi], rdi
call fcn.14007b580
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 0x1400489f7
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14007b580
mov rcx, qword [rsi]
call fcn.140071e60
mov qword [rsi], 0
jmp 0x1400489ad
int3