joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004bf10
Capabilities:
Set registry value

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, 0x30
xor edi, edi
mov rbx, r9
mov r12, r8
mov r15, rdx
mov r14, rcx
cmp qword [rcx + 0xb0], rdi
je 0x14004bf8f
xor r8d, r8d
call fcn.14004bb64
mov rsi, rax
test rax, rax
je 0x14004c002
mov ecx, dword [rsp + 0x70]
mov r9d, 3
mov dword [rsp + 0x28], ecx
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rbx
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete dil
mov eax, edi
jmp 0x14004c002
mov esi, dword [rsp + 0x70]
lea ecx, [rsi*2 + 1]
call fcn.140020ddc
mov rbp, rax
mov edx, edi
test esi, esi
je 0x14004bfcf
mov rcx, rax
mov edx, esi
mov r8d, esi
mov al, byte [rbx]
and al, 0xf
add al, 0x41
mov byte [rcx], al
lea rcx, [rcx + 2]
mov al, byte [rbx]
inc rbx
shr al, 4
add al, 0x41
mov byte [rcx - 1], al
sub r8, 1
jne 0x14004bfb0
lea eax, [rdx + rdx]
mov byte [rax + rbp], dil
mov rax, qword [r14]
mov rbx, qword [rax + 0x110]
mov rcx, rbx
call fcn.1401d80f0
mov r9, rbp
mov r8, r12
mov rdx, r15
mov rcx, r14
call rbx
mov rcx, rbp
mov ebx, eax
call fcn.140020dd4
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret

Function at 0x14004deb8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x14004df2b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14004df3f
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x14004df3f
mov rcx, rax
call fcn.1401d80f0
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rsi
mov rcx, rbp
call rdi
jmp 0x14004df44
cmp dword [rcx + 8], 0
je 0x14004df3f
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x14004df44
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140051228
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 [0x1402d3d50]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402d04c8]
test eax, eax
je 0x140051273
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402d04c8]
test eax, eax
jne 0x14005127c
call fcn.1400222ec
test eax, eax
je 0x140051298
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402c8008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1400512a0
xor eax, eax
jmp 0x140051305
test rbx, rbx
jne 0x1400512c0
lea rcx, str.GetOpenFileNameA
call fcn.140037878
mov rbx, rax
test rax, rax
je 0x1400512d3
mov qword [0x1402d3d50], rax
mov rcx, rbx
call fcn.1401d80f0
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 0x1400512e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400512ea
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140051303
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 0x14005131c
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 [0x1402d3d58]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402d04c8]
test eax, eax
je 0x140051367
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402d04c8]
test eax, eax
jne 0x140051370
call fcn.1400222ec
test eax, eax
je 0x14005138c
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402c8008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140051394
xor eax, eax
jmp 0x1400513f9
test rbx, rbx
jne 0x1400513b4
lea rcx, str.GetSaveFileNameA
call fcn.140037878
mov rbx, rax
test rax, rax
je 0x1400513c7
mov qword [0x1402d3d58], rax
mov rcx, rbx
call fcn.1401d80f0
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 0x1400513dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400513de
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1400513f7
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 0x140051cc0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
and dword [rax - 0x18], 0
and qword [rax + 0x18], 0
xor ebx, ebx
mov eax, dword [0x1402d04c8]
test eax, eax
je 0x140051d02
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402d04c8]
test eax, eax
jne 0x140051d0b
call fcn.1400222ec
test eax, eax
je 0x140051d27
lea rdx, [rsp + 0x50]
mov rcx, qword [0x1402c8008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x140051d2f
xor eax, eax
jmp 0x140051d73
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.USER32.dll_UnregisterClassA]
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x140051d56
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140051d58
xor esi, esi
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140051d71
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140059bcc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
je 0x140059bf5
mov rdi, qword [rdx + 0x10]
jmp 0x140059c46
mov rdx, qword [rdx + 0x10]
mov r8d, 5
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x140059c16
call fcn.1400328e8
mov rcx, qword [rbx + 8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x140059c30
call fcn.1400328e8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x140059c46
call fcn.1400328e8
call fcn.140034a90
cmp qword [rax + 0x68], 0
je 0x140059c60
mov rdx, rdi
mov rcx, rbp
call fcn.140058ed8
mov rdi, rax
mov edx, esi
mov rcx, rdi
call fcn.140059ecc
mov rcx, qword [rbp + 0xf8]
mov rsi, rax
test rcx, rcx
je 0x140059c87
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xf8], 0
test rsi, rsi
je 0x140059c96
mov rdi, rsi
mov qword [rbp + 0xf8], rsi
or dword [rbx + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14005a060
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov rdi, rcx
xor ebx, ebx
mov qword [rax - 0x18], rbx
mov r14, qword [0x1402d4218]
and qword [rax + 8], rbx
xor esi, esi
mov eax, dword [0x1402d04c8]
test eax, eax
je 0x14005a0ac
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402d04c8]
test eax, eax
jne 0x14005a0b5
call fcn.1400222ec
test eax, eax
je 0x14005a0d1
lea rdx, [rsp + 0x40]
mov rcx, qword [0x1402c8008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14005a0dc
xor eax, eax
jmp 0x14005a16b
test r14, r14
jne 0x14005a0f9
lea rcx, str.CreatePropertySheetPageA
call fcn.14005a378
test rax, rax
je 0x14005a136
mov qword [0x1402d4218], rax
mov eax, dword [rdi + 4]
mov ecx, 0x4000
test ecx, eax
jne 0x14005a11a
cmp dword [rdi], 0x60
jb 0x14005a11a
or eax, ecx
mov dword [rdi + 4], eax
mov rax, qword [0x1402c8008]
mov qword [rdi + 0x58], rax
mov rbx, qword [0x1402d4218]
mov rcx, rbx
call fcn.1401d80f0
mov rcx, rdi
call rbx
mov rbx, rax
mov qword [rsp + 0x20], rax
xor edi, edi
test rbx, rbx
sete dil
test edi, edi
je 0x14005a14d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14005a14f
xor esi, esi
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x14005a168
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14005a184
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 [0x1402d4220]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402d04c8]
test eax, eax
je 0x14005a1cf
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402d04c8]
test eax, eax
jne 0x14005a1d8
call fcn.1400222ec
test eax, eax
je 0x14005a1f4
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402c8008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14005a1fc
xor eax, eax
jmp 0x14005a261
test rbx, rbx
jne 0x14005a21c
lea rcx, str.DestroyPropertySheetPage
call fcn.14005a378
mov rbx, rax
test rax, rax
je 0x14005a22f
mov qword [0x1402d4220], rax
mov rcx, rbx
call fcn.1401d80f0
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 0x14005a244
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14005a246
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14005a25f
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 0x14005a278
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
or rdi, 0xffffffffffffffff
mov qword [rax - 0x18], rdi
mov rbx, qword [0x1402d4228]
and qword [rax + 0x10], 0
xor esi, esi
mov eax, dword [0x1402d04c8]
test eax, eax
je 0x14005a2c7
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402d04c8]
test eax, eax
jne 0x14005a2d0
call fcn.1400222ec
test eax, eax
je 0x14005a2ec
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402c8008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14005a2f6
or rax, 0xffffffffffffffff
jmp 0x14005a360
test rbx, rbx
jne 0x14005a316
lea rcx, str.PropertySheetA
call fcn.14005a378
mov rbx, rax
test rax, rax
je 0x14005a32b
mov qword [0x1402d4228], rax
mov rcx, rbx
call fcn.1401d80f0
mov rcx, r14
call rbx
mov rdi, rax
mov qword [rsp + 0x20], rax
xor ebx, ebx
cmp rdi, 0xffffffffffffffff
sete bl
test ebx, ebx
je 0x14005a342
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14005a344
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14005a35d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14007c368
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
je 0x14007c39a
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14007c39a
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.1401494cc
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14007c3ac
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14007c3d7
mov r8, rdx
mov rdx, qword [rdi]
call fcn.14004deb8
jmp 0x14007c44f
cmp byte [0x1402d5678], 0
jne 0x14007c41e
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14007c40e
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x1402d5670], rax
jmp 0x14007c415
mov rbx, qword [0x1402d5670]
mov byte [0x1402d5678], 1
jmp 0x14007c425
mov rbx, qword [0x1402d5670]
test rbx, rbx
je 0x14007c443
mov rcx, rbx
call fcn.1401d80f0
mov r8d, dword [rdi + 8]
xor r9d, r9d
mov rcx, qword [rdi]
mov rdx, rsi
call rbx
jmp 0x14007c44f
mov rcx, qword [rdi]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14008d420
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 [0x1402d56e8]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402d04c8]
test eax, eax
je 0x14008d46b
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402d04c8]
test eax, eax
jne 0x14008d474
call fcn.1400222ec
test eax, eax
je 0x14008d490
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402c8008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14008d498
xor eax, eax
jmp 0x14008d4fd
test rbx, rbx
jne 0x14008d4b8
lea rcx, str.ImageList_GetImageCount
call fcn.140021e24
mov rbx, rax
test rax, rax
je 0x14008d4cb
mov qword [0x1402d56e8], rax
mov rcx, rbx
call fcn.1401d80f0
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 0x14008d4e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14008d4e2
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14008d4fb
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 0x140091da0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r15, rcx
test r8, r8
jne 0x140091dd1
call fcn.140034a90
mov rdi, qword [rax + 0x18]
lea r8, [0x14022ac40]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbp, rax
test rax, rax
jne 0x140091df0
xor eax, eax
jmp 0x140091e3c
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x140091dec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x140091e31
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r14
mov rcx, r15
mov r8d, eax
call fcn.140091e58
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140120e70
Capabilities:
Delete registry value

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

Function at 0x140121040
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_RegQueryValueExA]
xor edx, edx
test eax, eax
jne 0x140121082
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 0x1401214ec
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 0x1401215be
test rbx, rbx
je 0x1401215c4
test r9, r9
je 0x1401215ca
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_RegQueryValueExA]
test eax, eax
jne 0x1401215a7
cmp dword [rsp + 0x48], 3
jne 0x1401215a7
test eax, eax
jne 0x1401215a7
cmp dword [rdi], eax
je 0x1401215a7
mov ecx, dword [rdi]
call fcn.140020ddc
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_RegQueryValueExA]
test eax, eax
jne 0x14012159b
cmp dword [rsp + 0x48], 3
jne 0x14012159b
test eax, eax
jne 0x14012159b
mov eax, 1
jmp 0x1401215a9
mov rcx, qword [rbx]
call fcn.140020dd4
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.14002f3b0
int3
call fcn.14002f3b0
int3
call fcn.14002f3b0
int3

Function at 0x1401218f0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140121901
xor eax, eax
jmp 0x14012192f
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_RegSetValueExA]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140121938
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140121949
xor eax, eax
jmp 0x14012196d
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_RegSetValueExA]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1401871b4
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 [0x1402d8df8]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402d04c8]
test eax, eax
je 0x1401871ff
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402d04c8]
test eax, eax
jne 0x140187208
call fcn.1400222ec
test eax, eax
je 0x140187224
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402c8008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14018722c
xor eax, eax
jmp 0x140187291
test rbx, rbx
jne 0x14018724c
lea rcx, str.ChooseColorA
call fcn.140037878
mov rbx, rax
test rax, rax
je 0x14018725f
mov qword [0x1402d8df8], rax
mov rcx, rbx
call fcn.1401d80f0
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 0x140187274
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140187276
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14018728f
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 0x1401d737c
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 [0x1402da108]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402d04c8]
test eax, eax
je 0x1401d73c7
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402d04c8]
test eax, eax
jne 0x1401d73d0
call fcn.1400222ec
test eax, eax
je 0x1401d73ec
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402c8008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1401d73f4
xor eax, eax
jmp 0x1401d7459
test rbx, rbx
jne 0x1401d7414
lea rcx, str.PrintDlgA
call fcn.140037878
mov rbx, rax
test rax, rax
je 0x1401d7427
mov qword [0x1402da108], rax
mov rcx, rbx
call fcn.1401d80f0
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 0x1401d743c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1401d743e
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1401d7457
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 0x1401f09ec
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1401f07c0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401f07c0
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401f07c0
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401f07c0
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401f07c0
cmp dword [rcx + 0x84], 0xe
jbe 0x1401f07c0
cmp dword [rcx + 0xf8], esi
je 0x1401f07c0
mov ecx, r14d
call fcn.1401f0908
mov ecx, 2
call fcn.1401f2da4
nop
cmp byte [0x1402db0e0], 0
jne 0x1401f088a
mov r15d, 1
mov eax, r15d
xchg dword [0x1402db0d0], eax
test ebx, ebx
jne 0x1401f0833
mov rdi, qword [0x1402c9768]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1402db0d8]
cmp rcx, rax
je 0x1401f082a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140005dd0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1402db218]
jmp 0x1401f083f
cmp ebx, r15d
jne 0x1401f0845
lea rcx, [0x1402db230]
call fcn.1401f14a0
nop
test ebx, ebx
jne 0x1401f085c
lea rdx, [0x140217b98]
lea rcx, [0x140217b78]
call fcn.1401f1804
lea rdx, [0x140217ba8]
lea rcx, [0x140217ba0]
call fcn.1401f1804
movzx eax, byte [0x1402db0e0]
test esi, esi
cmove eax, r15d
mov byte [0x1402db0e0], al
jmp 0x1401f088a
mov ecx, 2
call fcn.1401f2df8
test esi, esi
jne 0x1401f08a1
mov ecx, r14d
call fcn.1401f08bc
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1401f0750