joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140414120
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 0x140414150
xor eax, eax
jmp 0x140414213
mov rbp, rbx
cmp word [rax], si
je 0x140414175
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14041415c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140414158
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.14040ff64
movsxd r14, eax
test eax, eax
jne 0x1404141b3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140414149
mov rcx, r14
call fcn.14040b4c8
mov rdi, rax
test rax, rax
jne 0x1404141cc
xor ecx, ecx
call fcn.14040b48c
jmp 0x1404141a8
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.14040ff64
test eax, eax
jne 0x1404141fd
mov rcx, rdi
call fcn.14040b48c
jmp 0x140414207
xor ecx, ecx
call fcn.14040b48c
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 0x140414230
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1404142b7
mov rsi, rbx
cmp word [rax], bp
je 0x140414276
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140414260
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14041425c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14040b4c8
mov rdi, rax
test rax, rax
je 0x1404142a4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1403daa40
mov rbp, rdi
xor ecx, ecx
call fcn.14040b48c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1404175a0
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1403ffcb8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1403ffcb8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1404176f0
cmp rax, 0xffffffffffffffff
je 0x1404176f0
xor edi, edi
test rbp, rbp
jle 0x14041769b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14040cb98
mov rbx, rax
test rax, rax
jne 0x140417628
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140417691
mov edx, 0x8000
mov ecx, r14d
call fcn.140400364
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140408a2c
cmp eax, 0xffffffff
je 0x140417671
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140417638
mov edx, r15d
mov ecx, r14d
call fcn.140400364
jmp 0x140417691
cmp byte [rsi + 0x38], dil
je 0x140417688
cmp dword [rsi + 0x34], 5
jne 0x140417688
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140417691
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14040b48c
jmp 0x140417704
jns 0x140417704
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1403ffcb8
cmp rax, 0xffffffffffffffff
jne 0x1404176bc
cmp byte [rsi + 0x30], dil
je 0x140417704
mov edi, dword [rsi + 0x2c]
jmp 0x140417704
mov ecx, r14d
call fcn.140412124
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140417704
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x140417704
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1404176fd
mov eax, dword [rsi + 0x2c]
jmp 0x140417702
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1403ffcb8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14041a884
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.1403f281c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14041a90e
cmp byte [rbp - 0x21], r15b
je 0x14041a909
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14041a944
call fcn.14040a864
test eax, eax
jne 0x14041a930
cmp byte [rbp - 0x21], r15b
je 0x14041a928
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14041a944
cmp byte [rbp - 0x21], r15b
je 0x14041a941
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.1403f65f4
test eax, eax
jne 0x14041a9e4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1403f281c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14041a983
cmp byte [rbp - 0x21], r15b
je 0x14041a9b8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14041a9b8
call fcn.14040a864
test eax, eax
jne 0x14041a9a4
cmp byte [rbp - 0x21], r15b
je 0x14041a99d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14041a9b8
cmp byte [rbp - 0x21], r15b
je 0x14041a9b5
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.1403f65f4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14041a9e4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14041a9e7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14041a9f5
mov rcx, rdi
call fcn.14040b48c
cmp byte [rbp + 0x3f], r15b
je 0x14041aa04
mov rcx, qword [rbp + 0x27]
call fcn.14040b48c
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 0x14041dac0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14041dae8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14041dae8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400042e0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
movzx edi, dl
mov rbx, rcx
je 0x1400043ac
cmp qword [rcx + 8], 0
je 0x1400043ac
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
test dil, dil
je 0x140004350
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, dword [rbx + 0x14]
mov edx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__dup2]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fileno]
mov ecx, dword [rbx + 0x10]
mov edx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__dup2]
mov rcx, qword [0x140042048]
xor edi, edi
test rcx, rcx
je 0x14000436b
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov qword [0x140042048], rdi
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
test eax, eax
je 0x14000439b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdx, qword [rbx + 8]
lea rcx, str.ERROR:_Cant_delete_temp_file__s.__errno_d_._n
mov r8d, dword [rax]
call fcn.1400100c0
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbx + 8], rdi
mov qword [rbx], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140004a20
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
mov eax, 0x2070
call fcn.140026760
sub rsp, rax
mov rax, qword [0x140040008]
xor rax, rsp
mov qword [rsp + 0x2060], rax
mov rsi, rcx
mov rcx, rdx
call qword [sym.imp.ac1st22.dll_public:_wchar_t_const____ptr64___cdecl_AcString::kwszPtr_void_const___ptr64]
mov edx, 0x7ff
lea rcx, [rsp + 0x60]
mov r8, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
or rbx, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
mov rax, rbx
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140004a70
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jae 0x140004ba4
mov qword [rsp + 0x2090], rdi
mov rcx, rsi
xor edi, edi
mov word [rsp + rax + 0x60], di
call qword [sym.imp.ac1st22.dll_public:_wchar_t_const____ptr64___cdecl_AcString::kwszPtr_void_const___ptr64]
mov edx, 0x7ff
lea rcx, [rsp + 0x1060]
mov r8, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rax, [rsp + 0x1060]
nop word [rax + rax]
cmp word [rax + rbx*2 + 2], di
lea rbx, [rbx + 1]
jne 0x140004ad0
lea rbx, [rbx*2 + 2]
cmp rbx, 0x1000
jae 0x140004b9e
xor eax, eax
mov word [rsp + rbx + 0x1060], di
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x1060]
mov qword [rsp + 0x30], rax
mov eax, 0x614
mov word [rsp + 0x40], ax
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 2
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, 0xfffffffd
je 0x140004b6c
mov r9d, eax
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x1060]
lea rcx, str.ERROR:_Copying_folder_failed__source:__s__dest:__s___errno_d_._n
call fcn.1400100c0
jmp 0x140004b71
mov edi, 1
movzx eax, dil
mov rdi, qword [rsp + 0x2090]
mov rcx, qword [rsp + 0x2060]
xor rcx, rsp
call fcn.140024e80
mov rbx, qword [rsp + 0x2098]
add rsp, 0x2070
pop rsi
ret
call fcn.140025288
int3
call fcn.140025288
int3
Function at 0x140008450
Capabilities:
Hide graphical window

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x68
mov rax, qword [0x140040008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov esi, dword [rsp + 0xb8]
mov r14d, r9d
movzx ebp, r8b
mov rbx, rcx
test esi, esi
je 0x1400085c6
mov qword [rsp + 0x98], rdi
mov edi, dword [rsp + 0xc0]
test edi, edi
je 0x1400085be
cmp byte [rcx + 0x49], 0
je 0x1400084d0
mov eax, dword [rsp + 0xb0]
mov dword [rcx + 0x30], eax
mov rax, qword [rsp + 0xc8]
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x20], rdx
mov byte [rcx + 0x28], r8b
mov dword [rcx + 0x2c], r9d
mov dword [rcx + 0x34], esi
mov dword [rcx + 0x38], edi
mov byte [rcx + 0x48], 1
jmp 0x1400085be
cmp qword [rcx - 0x10], 0
mov qword [rsp + 0x60], r15
mov r15d, dword [rsp + 0xb0]
jne 0x14000853f
test bpl, bpl
je 0x1400085b9
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rcx - 8], rax
mov byte [rcx + 0x49], 1
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x44], r15d
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x4c], edi
call qword [sym.imp.accore.dll_class_AcApDocManager____ptr64___cdecl_acDocManagerPtr_void_]
lea rdx, str.acad.dwt
mov rcx, rax
mov r10, qword [rax]
call qword [r10 + 0xa8]
mov qword [rbx - 8], 0
mov byte [rbx + 0x49], 0
mov rcx, qword [rbx - 0x10]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400085b9
mov rcx, qword [rbx - 0x10]
mov r9d, esi
mov dword [rsp + 0x28], 1
mov r8d, r15d
mov edx, r14d
mov dword [rsp + 0x20], edi
call qword [sym.imp.USER32.dll_MoveWindow]
mov rcx, qword [rbx - 0x10]
movzx edx, bpl
call qword [sym.imp.USER32.dll_ShowWindow]
cmp byte [rbx + 0x48], 0
je 0x1400085b9
mov rax, qword [rbx + 0x40]
mov rcx, rbx
mov r10, qword [rbx]
mov r9d, dword [rbx + 0x2c]
movzx r8d, byte [rbx + 0x28]
mov rdx, qword [rbx + 0x20]
mov qword [rsp + 0x38], rax
mov eax, dword [rbx + 0x38]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0x34]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 0x30]
mov dword [rsp + 0x20], eax
mov byte [rbx + 0x48], 0
call qword [r10 + 0x28]
mov r15, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140024e80
add rsp, 0x68
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000ddd0
Capabilities:
Check if file exists

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rax, qword [0x140040008]
xor rax, rsp
mov qword [rsp + 0x40], rax
movzx esi, r8b
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rdx
lea rax, vtable.TrueTypeFontSessionHarvester.0
mov qword [rcx], rax
xor eax, eax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov dword [rcx + 0x18], 8
mov rcx, rdx
call qword [sym.imp.ac1st22.dll_public:_wchar_t_const____ptr64___cdecl_AcString::kwszPtr_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000de6b
mov rdx, rdi
lea rcx, [rsp + 0x20]
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::constructor_class_AcString_const____ptr64____ptr64]
mov rdx, rax
mov rcx, rbx
test sil, sil
je 0x14000de5d
call fcn.14000df00
jmp 0x14000de62
call fcn.14000e0f0
mov rcx, rbx
call fcn.14000e3e0
nop
mov rcx, rdi
call qword [sym.imp.ac1st22.dll_public:_void___cdecl_AcString::destructor_void____ptr64]
mov rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140024e80
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x14000f3c0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140040008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x14000f56f
cmp byte [rcx + 0x72], 0
je 0x14000f56f
mov rax, qword [rcx]
mov ebx, 0xffff
mov edx, ebx
call qword [rax + 0x18]
cmp bx, ax
jne 0x14000f41e
xor al, al
jmp 0x14000f571
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], 0
mov byte [rbp - 0x30], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.14000ff00
nop
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
nop dword [rax + rax]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rbp - 0x30]
cmovae r8, rcx
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
mov rcx, qword [rdi + 0x68]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000f48d
sub eax, 1
jne 0x14000f502
jmp 0x14000f491
mov byte [rdi + 0x72], 0
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, rcx
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x14000f4df
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x14000f50f
cmp byte [rdi + 0x72], 0
je 0x14000f513
test rbx, rbx
jne 0x14000f450
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.14000dc20
jmp 0x14000f443
sub eax, 2
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x14000f513
xor bl, bl
jmp 0x14000f515
mov bl, 1
cmp r9, 0x10
jb 0x14000f56a
lea rax, [r9 + 1]
cmp rax, 0x1000
jb 0x14000f564
test byte [rbp - 0x30], 0x1f
je 0x14000f534
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000f544
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000f554
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14000f561
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonUndo::XElementButtonUndo]
movzx eax, bl
jmp 0x14000f571
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140024e80
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140026510
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140040008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, qword [rsp + 0x80]
mov rsi, r9
mov rdi, qword [rsp + 0x88]
test rbx, rbx
je 0x140026549
test rdi, rdi
jne 0x14002654e
lea eax, [rdi + 0x57]
jmp 0x1400265be
test rdi, rdi
je 0x140026556
mov eax, dword [rdi]
mov dword [rsp + 0x30], eax
jmp 0x14002655e
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [rsp + 0x34]
test rsi, rsi
je 0x140026583
mov dword [rsi], edx
mov ecx, dword [rsp + 0x30]
test rdi, rdi
je 0x14002658e
mov dword [rdi], ecx
test eax, eax
jne 0x1400265be
test rbx, rbx
je 0x1400265bc
cmp edx, 1
jne 0x1400265d3
test ecx, ecx
je 0x1400265b9
test dl, cl
jne 0x1400265b2
mov rax, rcx
shr rax, 1
cmp word [rbx + rax*2 - 2], 0
je 0x1400265bc
mov eax, 0xd
jmp 0x1400265be
mov byte [rbx], 0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140024e80
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
cmp edx, 7
jne 0x1400265bc
test cl, 1
jne 0x1400265b2
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x1400265b2
mov rdx, rcx
shr rdx, 1
cmp word [rbx + rdx*2 - 2], 0
jne 0x1400265b2
cmp eax, 1
jbe 0x1400265bc
cmp word [rbx + rdx*2 - 4], 0
je 0x1400265bc
mov eax, 0xd
jmp 0x1400265be
Function at 0x140f74670
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f7467a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f746a3
pop rbp
sub rbp, 0x33
sub rbp, 0xf74670
sub rsp, 0x20
jmp 0x140f746c2
mov rax, 0xf74670
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffdb279068
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f746e1
jmp 0x140f746f8
and cl, ah
and ebx, 0x686854e1
push 0x60a9e920
imul ebp, dword [rax + 0x68], 0x20816920
scasd eax, dword [rdi]
test al, 0x60
push 0xffffffffaf206868
stosb byte [rdi], al
push 0xffffffff9f206868
mov ah, byte [rax]
imul ebp, dword [rcx + 0x6864e9e3], 0x69206868
cmp byte [rax], 0x38
push 0xffffffff80692068
cmp byte [rax], bh
and al, dl
insb byte [rdi], dx
cmovno ebp, dword [rax + 0x68]
push 0xffffffffd1206868
add dword [rdi + 0x686868a5], esi
push 0xffffffff81692068
and dl, dl
cmpsd dword [rsi], dword [rdi]
out 0x35, eax
scasd eax, dword [rdi]
push 0xffffffff80686868
insd dword [rdi], dx
push 0x7e816868
push 0xffffffff80a96868
push 0x59
jns 0x140f7477b
and cl, ch
test eax, 0x6868686c
and byte [rdi - 0x79129860], dl
xchg edi, eax
xchg edi, eax
xchg edi, eax
stosd dword [rdi], eax
xor byte [rdx], dh
cmp bh, byte [rax]
and al, dl
insb byte [rdi], dx
cmovno ebp, dword [rax + 0x68]
push 0xffffffffd1206868
jmp 0x1a95fb409
add dword [rdi + 0x686868a5], esi
push 0xffffffff81692068
sub byte [rbp + 0x68], 0x68
push 0x686ae581
push 0x6815803a
push 0x203f3268
loope 0x140f7475a
and byte [rcx - 0x5f], bl
and byte [rcx - 0x46], bl
jmp 0x140f74723
Function at 0x140003e30
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x140003e5e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140005bc0
cmp byte [0x14007dd30], 0
jne 0x140003ea9
lea rcx, [0x140055e38]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140003e99
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x14007dd30], 1
mov qword [0x14007dd28], rax
jmp 0x140003eb0
mov rax, qword [0x14007dd28]
mov byte [0x14007dd30], 1
jmp 0x140003eb0
mov rax, qword [0x14007dd28]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140003ecf
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140005c34
lea rcx, [0x140055e38]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je case.default.0x140005c4f
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x140005c4f
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x140005c4f
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
xchg esp, eax
xchg byte [rdx + 0x11413b91], al
cmp esp, eax
mov al, 0x63
xchg edi, eax
xchg byte [rcx], cl
mov eax, 0x4d22d0e9
invalid