joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a3d54
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1402c6b08]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402c11b4]
test eax, eax
je 0x1400a3d9f
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402c11b4]
test eax, eax
jne 0x1400a3da8
call fcn.140030de0
test eax, eax
je 0x1400a3dc4
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402b3530]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1400a3dcc
xor eax, eax
jmp 0x1400a3e31
test rbx, rbx
jne 0x1400a3dec
lea rcx, str.GetOpenFileNameW
call fcn.1400397a4
mov rbx, rax
test rax, rax
je 0x1400a3dff
mov qword [0x1402c6b08], rax
mov rcx, rbx
call fcn.1401c24a4
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x1400a3e14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400a3e16
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1400a3e2f
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1400a3e48
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1402c6b10]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402c11b4]
test eax, eax
je 0x1400a3e93
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402c11b4]
test eax, eax
jne 0x1400a3e9c
call fcn.140030de0
test eax, eax
je 0x1400a3eb8
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402b3530]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1400a3ec0
xor eax, eax
jmp 0x1400a3f25
test rbx, rbx
jne 0x1400a3ee0
lea rcx, str.GetSaveFileNameW
call fcn.1400397a4
mov rbx, rax
test rax, rax
je 0x1400a3ef3
mov qword [0x1402c6b10], rax
mov rcx, rbx
call fcn.1401c24a4
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x1400a3f08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400a3f0a
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1400a3f23
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140103310
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x140103500
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x140103542
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret

Function at 0x1401039f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x140103ac2
test rbx, rbx
je 0x140103ac8
test r9, r9
je 0x140103ace
and qword [r8], 0
xor r8d, r8d
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140103aab
cmp dword [rsp + 0x48], 3
jne 0x140103aab
test eax, eax
jne 0x140103aab
cmp dword [rdi], eax
je 0x140103aab
mov ecx, dword [rdi]
call fcn.1400220d0
mov qword [rbx], rax
lea r9, [rsp + 0x48]
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140103a9f
cmp dword [rsp + 0x48], 3
jne 0x140103a9f
test eax, eax
jne 0x140103a9f
mov eax, 1
jmp 0x140103aad
mov rcx, qword [rbx]
call fcn.1400220e0
and qword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.140023290
int3
call fcn.140023290
int3
call fcn.140023290
int3

Function at 0x140103e20
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140103e31
xor eax, eax
jmp 0x140103e5f
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140103e70
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140103e81
xor eax, eax
jmp 0x140103ea5
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov r9d, 3
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140165db4
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1402c9450]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402c11b4]
test eax, eax
je 0x140165dff
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402c11b4]
test eax, eax
jne 0x140165e08
call fcn.140030de0
test eax, eax
je 0x140165e24
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402b3530]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140165e2c
xor eax, eax
jmp 0x140165e91
test rbx, rbx
jne 0x140165e4c
lea rcx, str.ChooseColorW
call fcn.1400397a4
mov rbx, rax
test rax, rax
je 0x140165e5f
mov qword [0x1402c9450], rax
mov rcx, rbx
call fcn.1401c24a4
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x140165e74
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140165e76
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140165e8f
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14016ab60
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1402c95a0]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402c11b4]
test eax, eax
je 0x14016abab
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402c11b4]
test eax, eax
jne 0x14016abb4
call fcn.140030de0
test eax, eax
je 0x14016abd0
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402b3530]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14016abd8
xor eax, eax
jmp 0x14016ac3d
test rbx, rbx
jne 0x14016abf8
lea rcx, str.PrintDlgW
call fcn.1400397a4
mov rbx, rax
test rax, rax
je 0x14016ac0b
mov qword [0x1402c95a0], rax
mov rcx, rbx
call fcn.1401c24a4
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x14016ac20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14016ac22
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14016ac3b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1401daa7c
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 0x1401da90f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401da90f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401da90f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401da90f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401da90f
cmp dword [rcx + 0x84], 0xe
jbe 0x1401da90f
cmp dword [rcx + 0xf8], 0
je 0x1401da90f
mov ecx, ebx
call fcn.1401da9b0
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.1401da7a0
cmp dword [rbp + 0x20], 0
je 0x1401da95c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401da964
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401da8a8
Function at 0x1401e6cc0
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1401e69e6
call fcn.1401c98e0
mov dword [rax], 0x16
call fcn.1401c9790
jmp 0x1401e6b31
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401e6b31
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1401e6b31
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1401e6a15
lock or dword [rcx + 0x14], 0x10
jmp 0x1401e6b31
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1401e6a29
call fcn.1401eba44
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x1401e6a39
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x1401e6a3c
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.1401d91e4
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1401e643c
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1401e6b1f
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1401e6acd
mov rcx, rbx
call fcn.1401d91e4
cmp eax, 0xffffffff
je 0x1401e6ab8
mov rcx, rbx
call fcn.1401d91e4
cmp eax, 0xfffffffe
je 0x1401e6ab8
mov rcx, rbx
call fcn.1401d91e4
movsxd rdi, eax
lea r14, [0x1402cc040]
mov rcx, rbx
sar rdi, 6
call fcn.1401d91e4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1401e6abf
lea rdx, [0x1402b4de0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401e6acd
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1401e6af1
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1401e6af1
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1401e6af1
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x1401e6b0f
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x1401e6b1a
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x1401e6b36
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x1401e69b0
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
pop rsi
sub eax, 0x2eed51fd
mov esi, 0xf9505df9
popfq
push rbx
fcompi st(0)
invalid
Function at 0x2fc573740
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 0x2fc574142
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc596108]
test eax, eax
je 0x2fc5741da
lea rax, [0x2fc5960e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc596110]
mov qword [rbp - 8], rax
jmp 0x2fc5741be
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 0x2fc5741b2
cmp qword [rbp - 0x10], 0
je 0x2fc5741b2
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 0x2fc574178
lea rax, [0x2fc5960e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc5741db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc5742e0
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 0x2fc574308
mov eax, 0
jmp 0x2fc574356
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 0x2fc574331
mov eax, 0
jmp 0x2fc574356
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 0x2fc574351
mov eax, 0
jmp 0x2fc574356
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc57435c
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 0x2fc5743da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc5743d1
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 0x2fc5743d1
mov rax, qword [rbp - 8]
jmp 0x2fc5743ef
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 0x2fc5743a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001170
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r13
push r15
lea rbp, [rax - 0xfc8]
mov eax, 0x10b0
call fcn.1400085b0
sub rsp, rax
mov rax, qword [0x140017018]
xor rax, rsp
mov qword [rbp + 0xfa0], rax
xor r13d, r13d
lea r8, [0x14000d258]
mov r12d, ecx
mov qword [rsp + 0x50], r13
mov edi, 0x20019
mov dword [rsp + 0x58], r13d
mov r9d, edi
mov qword [rsp + 0x60], r13
mov rdx, 0xffffffff80000002
mov qword [rsp + 0x38], r13
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x48], r13
mov r15d, r13d
mov qword [rbp - 0x80], r13
mov dword [rbp - 0x78], r13d
mov qword [rbp - 0x70], r13
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x70], r13d
mov qword [rsp + 0x78], r13
call fcn.140003368
mov ebx, eax
test eax, eax
jne 0x14000134c
mov rdx, qword [rsp + 0x50]
lea r8, [0x14000d270]
mov r9d, edi
lea rcx, [rsp + 0x38]
call fcn.140003368
mov ebx, eax
test eax, eax
jne 0x14000133a
mov rdx, qword [rsp + 0x38]
lea r8, [0x14000d288]
mov r9d, edi
lea rcx, [rbp - 0x80]
call fcn.140003368
mov rdi, qword [rbp - 0x80]
mov ebx, eax
test eax, eax
jne 0x14000132c
mov ebx, 0x800
lea rcx, [rbp - 0x60]
mov r8d, ebx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xor edx, edx
jmp 0x1400012a2
lea rdx, str.11.361.2
inc r15d
lea rcx, [rbp - 0x60]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
je 0x1400012ba
mov ebx, 0x800
lea rcx, [rbp - 0x60]
mov r8d, ebx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov edx, r15d
mov r9d, ebx
lea r8, [rbp - 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, eax
test eax, eax
je 0x140001275
jmp 0x14000132c
mov r9d, 0x2001f
lea r8, [rbp - 0x60]
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.140003368
mov ebx, eax
test eax, eax
jne 0x14000131c
mov r15, qword [rsp + 0x68]
lea r9d, [rax + 4]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], r9d
mov rcx, r15
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], r12d
lea rdx, str.UseNewJavaPlugin
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test r15, r15
je 0x14000132c
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r13
jmp 0x140001321
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000132c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x14000133a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x38], r13
je 0x14000134c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x50], r13
je 0x14000135e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xfa0]
xor rcx, rsp
call fcn.140008620
lea r11, [rsp + 0x10b0]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop rbp
ret
Function at 0x140002f98
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140002fbe
mov r8, rdx
mov rdx, qword [rbx]
call fcn.140003a1c
jmp 0x140003025
cmp byte [0x140017388], 0
jne 0x140003002
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002ff2
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140017380], rax
jmp 0x140002ff9
mov rax, qword [0x140017380]
mov byte [0x140017388], 1
jmp 0x140003009
mov rax, qword [0x140017380]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000301f
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x140003025
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003a1c
Capabilities:
Delete registry key

Disassembly:
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 0x140003a7f
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003a93
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140003a93
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x140003a98
cmp dword [rcx + 8], 0
je 0x140003a93
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x140003a98
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret