joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14018d080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1401d9069], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x14018d108
lea rdx, [0x1401ba9b2]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14018d170
mov rbx, qword [0x1401d8f20]
jmp 0x14018d0c5
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x14018d0c0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14017c230
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1401d8f20], rax
mov ebx, dword [rax]
mov qword [0x1401d8f20], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1401d8f20], rdx
call fcn.14018c1b0
cmp eax, ebx
jne 0x14018d1d8
mov byte [0x1401d9069], 1
jmp 0x14018d09c
cmp byte [0x1401d9068], 0
jne 0x14018d0b3
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1401d99c8], rax
call rbx
mov qword [0x1401d99c0], rax
call rbx
mov qword [0x1401d99b8], rax
call rbx
mov qword [0x1401d99b0], rax
call rbx
mov qword [0x1401d99a8], rax
call rbx
mov qword [0x1401d99a0], rax
call rbx
mov qword [0x1401d9998], rax
call rbx
mov byte [0x1401d9068], 1
mov qword [0x1401d9990], rax
jmp 0x14018d0b3
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1401969b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1401a8140
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1401a8140
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x140197682
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1401d9e88]
test eax, eax
je 0x14019771a
lea rax, [0x1401d9e60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1401d9e90]
mov qword [rbp - 8], rax
jmp 0x1401976fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1401976f2
cmp qword [rbp - 0x10], 0
je 0x1401976f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1401976b8
lea rax, [0x1401d9e60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14019771b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140197820
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140197848
mov eax, 0
jmp 0x140197896
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140197871
mov eax, 0
jmp 0x140197896
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140197891
mov eax, 0
jmp 0x140197896
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14019789c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14019791a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140197911
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140197911
mov rax, qword [rbp - 8]
jmp 0x14019792f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1401978e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400026f0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
sub rsp, 0x20
mov eax, 4
lea r11, [0x14002bb08]
cmp r8, 0x10
je 0x140002718
cmp r8, 0x20
jne 0x140002838
lea r11, str.expand_32_byte_kexpand_16_byte_k
cmp rax, 4
jne 0x14000281e
mov eax, dword [r11]
mov r10d, dword [r11 + 4]
movq xmm1, qword [r11 + 8]
movdqu xmm0, xmmword [rdx]
movdqa xmm2, xmm0
cmp r8, 0x10
je 0x14000277c
cmp r8, 0x13
jbe 0x140002852
cmp r8, 0x17
jbe 0x140002860
cmp r8, 0x1b
jbe 0x14000286e
cmp r8, 0x1f
jbe 0x14000287c
movq xmm3, qword [rdx + 0x18]
movd xmm4, dword [rdx + 0x14]
movd xmm2, dword [rdx + 0x10]
punpckldq xmm2, xmm4
punpcklqdq xmm2, xmm3
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xc
je 0x1400027a2
cmp rdx, 0x10
jne 0x1400027ba
mov edx, dword [r9]
lea rsi, [r9 + 4]
mov r8d, 0xc
mov r11d, 8
jmp 0x1400027b3
xor edx, edx
mov r8d, 8
mov r11d, 4
mov rsi, r9
mov esi, dword [rsi]
add r11, r9
jmp 0x1400027db
cmp rdx, 3
jbe 0x140002895
cmp rdx, 7
jbe 0x1400028a8
xor edx, edx
mov r8d, 4
xor esi, esi
mov r11, r9
mov r11d, dword [r11]
mov r8d, dword [r9 + r8]
mov dword [rcx], eax
mov dword [rcx + 4], r10d
punpcklqdq xmm1, xmm0
movdqu xmmword [rcx + 8], xmm1
pshufd xmm1, xmm0, 0xee
movd dword [rcx + 0x18], xmm1
pshufd xmm0, xmm0, 0xff
movd dword [rcx + 0x1c], xmm0
movdqu xmmword [rcx + 0x20], xmm2
mov dword [rcx + 0x30], edx
mov dword [rcx + 0x34], esi
mov dword [rcx + 0x38], r11d
mov dword [rcx + 0x3c], r8d
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14002bd03]
lea r8, str.C:UsersTraining.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rust_crypto_0.2.36_srccryptoutil.rsassertion_failed:_input.len____4
mov edx, 0x22
call fcn.14001cc80
ud2
lea rcx, [0x14002bab8]
lea r8, [0x14002bae0]
mov edx, 0x28
call fcn.14001cc80
ud2
lea rax, [0x14002bb18]
mov ecx, 0x14
jmp 0x140002888
lea rax, [0x14002bb30]
mov ecx, 0x18
jmp 0x140002888
lea rax, [0x14002bb48]
mov ecx, 0x1c
jmp 0x140002888
lea rax, [0x14002bb60]
mov ecx, 0x20
mov rdx, r8
mov r8, rax
call fcn.14001d070
ud2
lea r8, [0x14002bb78]
mov ecx, 4
call fcn.14001d070
ud2
lea r8, [0x14002bb90]
mov ecx, 8
call fcn.14001d070
ud2
Function at 0x140005840
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r13d, r13d
cmp r8, 0x201
jae 0x1400058e0
jmp 0x1400058cf
jae 0x1400059a0
cmp r8, 0x201
jae 0x1400058e0
lea r12, [rbp - 0x58]
mov esi, 0x200
mov r15, r8
jmp 0x140005938
sub r8, r13
sub rdi, r13
cmp rdi, r8
jae 0x14000590f
lea rcx, [rbp + 0x3c8]
mov rdx, r13
call fcn.14001c1e0
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rbp + 0x3d8], r13
mov rdi, rbx
mov r12, qword [rbp + 0x3e8]
mov rsi, r13
mov r15, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140005961
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140005a08
mov r8d, r14d
cmp r15, r8
jne 0x1400058c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140005a2b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400058cf
jmp 0x1400058e0
cmp rsi, r8
jb 0x140005a45
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.140007100
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x1400059f1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.1400025f0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rbx, rbx
jne 0x1400059d9
jmp 0x1400059f1
lea rcx, [0x14002c063]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001cc80
jmp 0x140005a5a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001d070
ud2
Function at 0x140007b20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140007b50
test ecx, ecx
jne 0x140007ba0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140007b5c
test ecx, ecx
jne 0x140007ba0
mov rcx, rdi
call fcn.140007a00
movzx eax, al
test bpl, bpl
jne 0x140007ba7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140007b93.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140007d18]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140007b93.2
xor eax, eax
test bpl, bpl
je 0x140007b6c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140007cf9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x140007bda
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140007c59
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140007c20
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x140007c3b
inc rax
dec rdi
cmp rax, 1
jne 0x140007c00
jmp 0x140007c59
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140007c3b
cmp ebx, 0x5c
je 0x140007c3b
inc rax
dec rdi
cmp rax, 1
jne 0x140007c20
jmp 0x140007c59
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140007d07
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140007c83
mov al, 9
cmp rdx, 2
je 0x140007c87
cmp rdx, 1
jne 0x140007c97
cmp byte [r8], 0x2e
jne 0x140007c97
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140007c97
mov al, 0xa
jmp 0x140007c97
cmp byte [r8], 0x2e
jne 0x140007c97
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov qword [rsi + 8], r8
mov qword [rsi + 0x10], rdx
mov byte [rsi + 0x18], al
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x140007b93.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x140007b93.2
mov ecx, 2
jmp case.0x140007b93.2
lea r8, str.library_std_srcpath.rs
call fcn.14001d060
ud2
lea r8, str.library_std_srcpath.rs
call fcn.14001d060
ud2
Function at 0x14000c460
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0x58], 0x103
mov qword [rsp + 0x60], 0
mov edx, 0xffffffff
cmp r9, rdx
cmovb rdx, r9
mov qword [rsp + 0x78], rcx
lea r9, [rsp + 0x80]
mov qword [rsp + 0x80], rax
test rcx, rcx
cmove r9, rcx
mov qword [rsp + 0x38], r9
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000c50b
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x58]
cmp eax, 0x103
je 0x14000c542
test eax, eax
js 0x14000c51c
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000c535
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xd8
pop rdi
pop rsi
ret
mov byte [rsp + 0x54], 0
mov dword [rsp + 0x50], 0
lea rax, str.I_O_error:_operation_failed_to_complete_synchronously
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 1
mov qword [rsp + 0x78], 0
lea rax, [0x14002bde8]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x68], rax
lea rax, [0x140017350]
mov qword [rsp + 0x70], rax
lea rax, [0x14002c170]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 2
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 1
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0xa8]
call fcn.140006d50
mov rcx, rax
call fcn.1400036a0
mov ecx, 7
int 0x29
ud2
Function at 0x140019e90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x140019f0a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140019f00
cmp r10, r11
jb 0x140019fa3
cmp r10, rdx
ja 0x140019fb7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140019f02
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140019ee0
jmp 0x140019f77
ja 0x140019f0a
mov r11, r10
cmp rax, r8
jne 0x140019eb2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140019f7b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140019f50
mov r8, r10
sub ecx, r9d
jns 0x140019f6e
jmp 0x140019f7d
cmp r10, rdx
je 0x140019f89
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140019f7d
xor al, 1
cmp r8, rdx
jne 0x140019f30
jmp 0x140019f7d
xor eax, eax
jmp 0x140019f7d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001cc80
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001d080
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001d070
ud2

Function at 0x14001baf4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001bb3e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001bb3e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001bb3e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001bb3e
cmp dword [rcx + 0x84], 0xe
jbe 0x14001bb3e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001bb40
xor al, al
add rsp, 0x28
ret
Function at 0x14001e370
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140109038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r12, qword [rcx + 0x10]
cmp r12, qword [rcx + 0x18]
je 0x14001e3d1
test r12, r12
je 0x14001e4e8
mov rax, qword [rdi]
mov qword [r12], rax
add qword [rsi + 0x10], 8
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14007a130
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r14
jbe 0x14001e436
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r13, rax
neg r13
shl rax, 3
mov r14, rbx
sub r14, rax
mov r15, r12
sub r15, rbx
je 0x14001e41f
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.14007bbc0
mov r12, qword [rsi + 8]
add r14, r15
mov qword [rsi + 0x10], r14
lea rax, [r12 + r13*8]
mov qword [rsi + 8], rax
mov r12, r14
jmp 0x14001e39e
mov rax, r12
sub rax, r14
sar rax, 2
cmp r12, r14
mov r15d, 1
cmovne r15, rax
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x50], rax
mov rax, r15
shr rax, 0x3d
jne 0x14001e514
lea rcx, [r15*8]
call fcn.140078b64
mov rdx, r15
and rdx, 0xfffffffffffffffc
mov rcx, r12
sub rcx, rbx
mov r9, r12
lea rdx, [rax + rdx*2]
mov r8, rdx
sub r9, rbx
je 0x14001e4b3
sar rcx, 3
lea r8, [r9 + rdx]
shl rcx, 3
xor r9d, r9d
mov r10, rdx
add r10, r9
je 0x14001e4e8
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp rcx, r9
jne 0x14001e49b
lea r9, [rax + r15*8]
mov qword [rsi], rax
lea rcx, [rsp + 0x30]
mov qword [rcx], r14
mov qword [rsi + 8], rdx
mov qword [rcx + 8], rbx
mov qword [rsi + 0x10], r8
mov qword [rcx + 0x10], r12
mov qword [rsi + 0x18], r9
mov qword [rcx + 0x18], r12
call fcn.140047f20
mov r12, qword [rsi + 0x10]
jmp 0x14001e39e
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.1400aba60
call fcn.1400ab080
int3

Function at 0x140027080
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140109038]
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 0x140027108
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x1400270f2
cmp dword [rsp + 0x38], 4
jne 0x1400270f2
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007a130
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x1400270f2
Function at 0x140027110
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14007a0d0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140109038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.14007c270
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
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 0x1400271c3
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x1400271c7
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.140026820
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14007a130
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x1400271a4
cmp eax, 2
jne 0x14002720f
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.14007c270
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 0x140027216
lea rdx, [rsp + 0x40]
jmp 0x14002719a
mov edi, 0x3f4
jmp 0x1400271a4
mov edi, 0xea
jmp 0x1400271a4

Function at 0x140027220
Capabilities:
Set registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x140109038]
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.14007a130
mov eax, esi
add rsp, 0x40
pop rsi
ret
xor r8d, r8d
test edx, edx
cmovg r8d, edx
lea rdx, str.PWALauncherResult
jmp 0x140027220
Function at 0x140027600
Capabilities:
Create thread

Disassembly:
jmp 0x140027600
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 [0x140109038]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.140078b64
mov rsi, rax
movabs r12, 0xfffffffc00000000
mov rax, r15
and rax, r12
cmp rax, qword [0x14010b548]
jne 0x14002766d
mov rcx, r15
call fcn.14005a8f0
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, [0x140027a90]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140027765
test r14, r14
je 0x1400276da
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14007a130
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 0x1400276b4
mov eax, dword [0x14011a7e0]
mov ecx, dword [0x140117750]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400277b4
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.1400348a0
movzx r8d, byte [rbx + 0x17]
test r8b, r8b
js 0x140027729
and r8d, 0x7f
jmp 0x140027733
mov r8, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
lea r14, [rsp + 0x50]
mov rcx, r14
mov rdx, rbx
call fcn.1400465e0
mov rcx, qword [0x14011a7d8]
mov rdx, r14
call fcn.140034840
cmp byte [rsp + 0x4f], 0
jns 0x14002778a
mov rcx, qword [rsp + 0x38]
call fcn.140078ba0
jmp 0x14002778a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x140027782
mov ebp, eax
cmp eax, 0x5af
je 0x140027782
cmp ebp, 0xe
jne 0x1400276e5
mov rcx, rbx
call fcn.1400c9b40
test rsi, rsi
je 0x1400276b4
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x14010b548]
jne 0x1400277a7
call fcn.14005aa30
mov rcx, rsi
call fcn.140078ba0
jmp 0x1400276b4
lea rcx, [0x14011a7e0]
call fcn.140078cc0
cmp dword [0x14011a7e0], 0xffffffff
jne 0x14002770a
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140034810
mov qword [0x14011a7d8], rax
lea rcx, [0x14011a7e0]
call fcn.140078d58
jmp 0x14002770a

Function at 0x140027f70
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 0x140027fb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140027fd1
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140027faf
mov qword [rsi], rdi
call fcn.140057470
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 0x140027fe7
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140057470
mov rcx, qword [rsi]
call fcn.140051a90
mov qword [rsi], 0
jmp 0x140027f9d
int3