joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001150
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r8d, dword [rsp + 0x20]
mov r9, rax
call fcn.140001c40
test eax, eax
jne 0x14000137b
mov rax, qword [0x14002ce18]
mov qword [rsp + 0x40], rbx
test rax, rax
jne 0x1400011a8
mov rcx, qword [0x14002cee8]
lea rdx, [0x140026f18]
call fcn.140003830
mov qword [0x14002ce18], rax
lea rcx, [0x1400267d0]
mov qword [rsp + 0x30], rdi
call rax
mov rbx, rax
test rax, rax
je 0x1400012b0
mov rax, qword [0x14002cdf0]
mov qword [rsp + 0x48], rsi
test rax, rax
jne 0x1400011ed
mov rcx, qword [0x14002cee8]
lea rdx, [0x140027080]
call fcn.140003830
mov qword [0x14002cdf0], rax
xor r9d, r9d
lea rcx, str._MessageBox
xor r8d, r8d
xor edx, edx
call rax
mov rsi, qword [str._MessageBox]
mov rdi, rax
mov rax, qword [0x14002cf40]
test rax, rax
jne 0x14000122e
mov rcx, qword [0x14002cee8]
lea rdx, [0x140027068]
call fcn.140003830
mov qword [0x14002cf40], rax
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call rax
mov rax, qword [0x14002cdf0]
test rax, rax
jne 0x14000125f
mov rcx, qword [0x14002cee8]
lea rdx, [0x140027080]
call fcn.140003830
mov qword [0x14002cdf0], rax
xor r9d, r9d
lea rcx, str._SHGetSpecialFolderPath
xor r8d, r8d
xor edx, edx
call rax
mov rsi, qword [str._SHGetSpecialFolderPath]
mov rdi, rax
mov rax, qword [0x14002cf40]
test rax, rax
jne 0x1400012a0
mov rcx, qword [0x14002cee8]
lea rdx, [0x140027068]
call fcn.140003830
mov qword [0x14002cf40], rax
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call rax
mov rsi, qword [rsp + 0x48]
call fcn.1400013e0
lea rcx, [0x1400265d0]
mov ebx, eax
call fcn.14000ef54
test rax, rax
je 0x140001347
xor ecx, ecx
call fcn.14000e500
mov rdi, rax
mov rax, qword [0x14002ce98]
test rax, rax
jne 0x1400012f8
mov rcx, qword [0x14002cee8]
lea rdx, [0x140026b88]
call fcn.140003830
mov qword [0x14002ce98], rax
lea rdx, [0x1400265e0]
mov rcx, rdi
call rax
test eax, eax
je 0x140001347
xor ecx, ecx
call fcn.14000e500
mov rdi, rax
mov rax, qword [0x14002cfd0]
test rax, rax
jne 0x140001338
mov rcx, qword [0x14002cee8]
lea rdx, [0x140026ba0]
call fcn.140003830
mov qword [0x14002cfd0], rax
xor r8d, r8d
lea rdx, [0x1400265e0]
mov rcx, rdi
call rax
mov rax, qword [0x14002cdd8]
mov rdi, qword [rsp + 0x30]
test rax, rax
jne 0x140001372
mov rcx, qword [0x14002cee8]
lea rdx, [0x140026c28]
call fcn.140003830
mov qword [0x14002cdd8], rax
call rax
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x140001a30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor edx, edx
lea rcx, [0x14002d260]
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
lea r8, [0x140026698]
mov edx, 3
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rsi, rax
test rax, rax
je 0x140001ae4
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rsi
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140001ace
mov edx, esi
mov qword [rsp + 0x38], 0
mov rcx, rax
call fcn.140002b50
test rax, rax
je 0x140001ace
mov rdx, rax
lea rcx, [0x140026698]
call fcn.140003350
mov rax, qword [rax]
jmp 0x140001adb
lea rcx, [0x140026698]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x140001bf9
lea r8, [0x1400266d8]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rsi, rax
test rax, rax
je 0x140001b6a
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rsi
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140001b58
mov edx, esi
mov qword [rsp + 0x38], 0
mov rcx, rax
call fcn.140002b50
test rax, rax
je 0x140001b58
mov rdx, rax
lea rcx, [0x1400266d8]
call fcn.140003350
mov rsi, qword [rax]
jmp 0x140001b6f
lea rcx, [0x1400266d8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
jmp 0x140001b6f
mov rsi, qword [rsp + 0x50]
lea r8, [0x1400266e8]
mov edx, 2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbp, rax
test rax, rax
je 0x140001c13
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rbp
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rbx
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140001be7
mov edx, ebp
mov qword [rsp + 0x38], 0
mov rcx, rax
call fcn.140002b50
test rax, rax
je 0x140001be7
mov rdx, rax
lea rcx, [0x1400266e8]
call fcn.140003350
mov rax, qword [rax]
jmp 0x140001bf4
lea rcx, [0x1400266e8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x140001c13
lea rdx, str.FATAL_ERROR:_Could_not_load_ffi_library
mov ecx, 0xffffffff
call fcn.140001070
mov rax, 0xffffffffffffffff
jmp 0x140001c1f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, rsi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140005c78
Capabilities:
Parse pe header

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

Function at 0x140010470
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001026c
Function at 0x140015efc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140015f2c
xor eax, eax
jmp 0x140015fef
mov rbp, rbx
cmp word [rax], si
je 0x140015f51
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140015f38
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140015f34
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400145bc
movsxd r14, eax
test eax, eax
jne 0x140015f8f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140015f25
mov rcx, r14
call fcn.1400111ec
mov rdi, rax
test rax, rax
jne 0x140015fa8
xor ecx, ecx
call fcn.1400111b0
jmp 0x140015f84
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400145bc
test eax, eax
jne 0x140015fd9
mov rcx, rdi
call fcn.1400111b0
jmp 0x140015fe3
xor ecx, ecx
call fcn.1400111b0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140018d84
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140018d9a
mov al, 1
jmp 0x140018dfa
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140018dab
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140018df8
mov ecx, dword [rcx + 0x18]
nop
call fcn.140013f2c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140018df8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140018df8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140018df8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140018dfa
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001aff8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000f4c0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001b082
cmp byte [rbp - 0x21], r15b
je 0x14001b07d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001b0b8
call fcn.1400134cc
test eax, eax
jne 0x14001b0a4
cmp byte [rbp - 0x21], r15b
je 0x14001b09c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001b0b8
cmp byte [rbp - 0x21], r15b
je 0x14001b0b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400146b0
test eax, eax
jne 0x14001b158
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000f4c0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001b0f7
cmp byte [rbp - 0x21], r15b
je 0x14001b12c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001b12c
call fcn.1400134cc
test eax, eax
jne 0x14001b118
cmp byte [rbp - 0x21], r15b
je 0x14001b111
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001b12c
cmp byte [rbp - 0x21], r15b
je 0x14001b129
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400146b0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001b158
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001b15b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001b169
mov rcx, rdi
call fcn.1400111b0
cmp byte [rbp + 0x3f], r15b
je 0x14001b178
mov rcx, qword [rbp + 0x27]
call fcn.1400111b0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14001cef0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001cf18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001cf18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2fc4d9cf0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4da6f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ff108]
test eax, eax
je 0x2fc4da78a
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ff110]
mov qword [rbp - 8], rax
jmp 0x2fc4da76e
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 0x2fc4da762
cmp qword [rbp - 0x10], 0
je 0x2fc4da762
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 0x2fc4da728
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4da78b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4da890
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 0x2fc4da8b8
mov eax, 0
jmp 0x2fc4da906
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 0x2fc4da8e1
mov eax, 0
jmp 0x2fc4da906
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 0x2fc4da901
mov eax, 0
jmp 0x2fc4da906
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4da90c
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 0x2fc4da98a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4da981
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 0x2fc4da981
mov rax, qword [rbp - 8]
jmp 0x2fc4da99f
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 0x2fc4da954
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140007080
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
mov esi, eax
movabs eax, dword [0xda8b088900409214]
test ebx, ebx
jle 0x1400070a1
mov eax, 0xff
call fcn.140002680
xor byte [rsi], al
jne 0x140007091
invalid
pop rsi
pop rbx
ret

Function at 0x14000be9c
Capabilities:
Parse credit card information

Disassembly:
sub rsp, 0x28
mov r8, rcx
mov r10d, 0x5c
mov ecx, dword [rcx + 0x80]
movzx edx, word [r8 + 0x78]
lea r11d, [r10 + 0x1f]
bt ecx, 0x16
jae 0x14000bee2
cmp edx, 0x44
je 0x14000bedb
lea eax, [rdx - 0x53]
cmp eax, 0x24
ja 0x14000bf41
movabs r9, 0x1100030011
bt r9, rax
jae 0x14000bf41
xor al, al
add rsp, 0x28
ret
cmp edx, 0x2f
ja 0x14000bf15
je 0x14000bf0e
cmp edx, 0x22
je 0x14000bf0e
cmp edx, 0x24
je 0x14000bf41
cmp edx, 0x27
jbe 0x14000bedb
cmp edx, 0x29
jbe 0x14000bf38
cmp edx, 0x2a
je 0x14000bf41
cmp edx, 0x2b
je 0x14000bf38
cmp edx, 0x2e
je 0x14000bf41
jmp 0x14000bedb
mov eax, ecx
shr eax, 0x18
jmp 0x14000bf3d
cmp edx, 0x3f
je 0x14000bf38
cmp edx, 0x5a
jbe 0x14000bedb
cmp edx, r10d
jbe 0x14000bf41
cmp edx, 0x5e
je 0x14000bf41
cmp edx, r11d
je 0x14000bf38
cmp edx, 0x7c
je 0x14000bf41
cmp edx, 0x7d
jne 0x14000bedb
mov eax, ecx
shr eax, 0x17
test al, 1
je 0x14000bedb
mov dword [r8 + 0x74], edx
mov rdx, qword [r8]
cmp rdx, qword [r8 + 0x10]
je 0x14000bf8f
cmp word [rdx], r10w
jne 0x14000bf8b
add rdx, 2
cmp rdx, qword [r8 + 0x10]
je 0x14000bf8b
test cl, 8
jne 0x14000bf70
movzx eax, word [rdx]
sub ax, 0x28
cmp ax, 1
jbe 0x14000bf88
test cl, 0x10
jne 0x14000bf8b
movzx ecx, word [rdx]
mov r9d, 0xfffd
sub cx, r11w
test r9w, cx
jne 0x14000bf8b
mov qword [r8], rdx
add qword [r8], 2
mov rcx, r8
call fcn.140009548
mov al, 1
jmp 0x14000bedd
Function at 0x140012ca0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400382f0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rdx + 0x10], 0x100
mov rbx, rdx
mov rdi, rcx
jae 0x140012d16
cmp qword [rdx + 0x18], 8
jb 0x140012cd3
mov rdx, qword [rdx]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
test eax, 0xfffffffd
je 0x140012d16
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov r8, qword [0x140033100]
lea rax, [0x140033100]
cmp r8, rax
je 0x140012d99
test byte [r8 + 0x1c], 1
je 0x140012d99
jmp 0x140012d7c
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x140012d23
mov rdx, qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
test eax, 0xfffffffd
je 0x140012d5e
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov r8, qword [0x140033100]
lea rax, [0x140033100]
cmp r8, rax
je 0x140012dd4
test byte [r8 + 0x1c], 1
je 0x140012dd4
jmp 0x140012db7
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001c630
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov rcx, rbx
call fcn.140006b48
mov rcx, qword [r8 + 0x10]
mov r9, rax
mov edx, 0x12
mov dword [rsp + 0x20], edi
call fcn.140007458
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140007130
lea rdx, [0x14002ff30]
lea rcx, [rsp + 0x30]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
mov rcx, rbx
call fcn.140006b48
mov rcx, qword [r8 + 0x10]
mov r9, rax
mov edx, 0x13
mov dword [rsp + 0x20], edi
call fcn.140007458
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140007130
lea rdx, [0x14002ff30]
lea rcx, [rsp + 0x30]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3

Function at 0x140012e00
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1400382f0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
lea rdx, [0x1400227ec]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
test eax, 0xfffffffd
je 0x140012e59
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140033100]
lea rax, [0x140033100]
cmp rcx, rax
je 0x140012e87
test byte [rcx + 0x1c], 1
je 0x140012e87
jmp 0x140012e6f
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001c630
add rsp, 0x50
pop rbx
ret
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400230a0]
mov edx, 0x14
mov r9d, ebx
call fcn.140004a40
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.140007130
lea rdx, [0x14002ff30]
lea rcx, [rsp + 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
Function at 0x140013170
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400382f0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rdx + 0x18], 8
mov r10, rcx
mov rax, qword [rdx + 0x10]
jb 0x14001319a
mov rdx, qword [rdx]
lea rdi, [rcx + 0x10]
cmp qword [rdi + 0x18], 8
mov rcx, rdi
jb 0x1400131ab
mov rcx, qword [rdi]
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rdx, rcx
mov rcx, qword [r10 + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x1400131ff
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8, qword [0x140033100]
lea rax, [0x140033100]
cmp r8, rax
je 0x140013237
test byte [r8 + 0x1c], 1
je 0x140013237
jmp 0x14001321a
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001c630
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov rcx, rdi
call fcn.140006b48
mov rcx, qword [r8 + 0x10]
mov r9, rax
mov edx, 0xe
mov dword [rsp + 0x20], ebx
call fcn.140007458
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140007130
lea rdx, [0x14002ff30]
lea rcx, [rsp + 0x30]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3

Function at 0x140013280
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400382f0]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdi, [rcx + 0x10]
mov qword [rsp + 0x30], rdx
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x1400132af
mov rdx, qword [rdi]
mov rcx, qword [rcx + 0x30]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 8
mov r9d, 0xb
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x140013302
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8, qword [0x140033100]
lea rax, [0x140033100]
cmp r8, rax
je 0x14001333a
test byte [r8 + 0x1c], 1
je 0x14001333a
jmp 0x14001331d
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001c630
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
mov rcx, rdi
call fcn.140006b48
mov rcx, qword [r8 + 0x10]
mov r9, rax
mov edx, 0xd
mov dword [rsp + 0x20], ebx
call fcn.140007458
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.140007130
lea rdx, [0x14002ff30]
lea rcx, [rsp + 0x38]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
Function at 0x140013360
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400382f0]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdi, [rcx + 0x10]
mov dword [rsp + 0x30], edx
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x14001338e
mov rdx, qword [rdi]
mov rcx, qword [rcx + 0x30]
lea rax, [rsp + 0x30]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x1400133de
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8, qword [0x140033100]
lea rax, [0x140033100]
cmp r8, rax
je 0x140013416
test byte [r8 + 0x1c], 1
je 0x140013416
jmp 0x1400133f9
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001c630
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
mov rcx, rdi
call fcn.140006b48
mov rcx, qword [r8 + 0x10]
mov r9, rax
mov edx, 0xc
mov dword [rsp + 0x20], ebx
call fcn.140007458
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.140007130
lea rdx, [0x14002ff30]
lea rcx, [rsp + 0x38]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3

Function at 0x140013440
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400382f0]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rdi, [rcx + 0x10]
mov rax, rdx
cmp qword [rdi + 0x18], 8
mov rdx, rdi
jb 0x14001346d
mov rdx, qword [rdi]
mov rcx, qword [rcx + 0x30]
mov r9d, 3
mov dword [rsp + 0x28], r8d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x1400134b8
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8, qword [0x140033100]
lea rax, [0x140033100]
cmp r8, rax
je 0x1400134f0
test byte [r8 + 0x1c], 1
je 0x1400134f0
jmp 0x1400134d3
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001c630
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
mov rcx, rdi
call fcn.140006b48
mov rcx, qword [r8 + 0x10]
mov r9, rax
mov edx, 0xb
mov dword [rsp + 0x20], ebx
call fcn.140007458
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140007130
lea rdx, [0x14002ff30]
lea rcx, [rsp + 0x30]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3