joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140044ee0
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 0x140044f5f
xor r8d, r8d
call fcn.140044b34
mov rsi, rax
test rax, rax
je 0x140044fd2
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 0x140044fd2
mov esi, dword [rsp + 0x70]
lea ecx, [rsi*2 + 1]
call fcn.140019d80
mov rbp, rax
mov edx, edi
test esi, esi
je 0x140044f9f
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 0x140044f80
lea eax, [rdx + rdx]
mov byte [rax + rbp], dil
mov rax, qword [r14]
mov rbx, qword [rax + 0x110]
mov rcx, rbx
call fcn.1401d12f0
mov r9, rbp
mov r8, r12
mov rdx, r15
mov rcx, r14
call rbx
mov rcx, rbp
mov ebx, eax
call fcn.140019d78
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 0x140046e88
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 0x140046efb
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140046f0f
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140046f0f
mov rcx, rax
call fcn.1401d12f0
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 0x140046f14
cmp dword [rcx + 8], 0
je 0x140046f0f
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x140046f14
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 0x14004a1f8
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 [0x1402b4800]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402b0f78]
test eax, eax
je 0x14004a243
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402b0f78]
test eax, eax
jne 0x14004a24c
call fcn.14001b290
test eax, eax
je 0x14004a268
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402a9008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14004a270
xor eax, eax
jmp 0x14004a2d5
test rbx, rbx
jne 0x14004a290
lea rcx, str.GetOpenFileNameA
call fcn.140030864
mov rbx, rax
test rax, rax
je 0x14004a2a3
mov qword [0x1402b4800], rax
mov rcx, rbx
call fcn.1401d12f0
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 0x14004a2b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14004a2ba
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14004a2d3
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 0x14004a2ec
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 [0x1402b4808]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402b0f78]
test eax, eax
je 0x14004a337
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402b0f78]
test eax, eax
jne 0x14004a340
call fcn.14001b290
test eax, eax
je 0x14004a35c
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402a9008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14004a364
xor eax, eax
jmp 0x14004a3c9
test rbx, rbx
jne 0x14004a384
lea rcx, str.GetSaveFileNameA
call fcn.140030864
mov rbx, rax
test rax, rax
je 0x14004a397
mov qword [0x1402b4808], rax
mov rcx, rbx
call fcn.1401d12f0
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 0x14004a3ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14004a3ae
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14004a3c7
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 0x14004acec
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 [0x1402b0f78]
test eax, eax
je 0x14004ad2e
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402b0f78]
test eax, eax
jne 0x14004ad37
call fcn.14001b290
test eax, eax
je 0x14004ad53
lea rdx, [rsp + 0x50]
mov rcx, qword [0x1402a9008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x14004ad5b
xor eax, eax
jmp 0x14004ad9f
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 0x14004ad82
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14004ad84
xor esi, esi
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14004ad9d
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 0x140052bbc
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 0x140052be5
mov rdi, qword [rdx + 0x10]
jmp 0x140052c36
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 0x140052c06
call fcn.14002b89c
mov rcx, qword [rbx + 8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x140052c20
call fcn.14002b89c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x140052c36
call fcn.14002b89c
call fcn.14002f52c
cmp qword [rax + 0x68], 0
je 0x140052c50
mov rdx, rdi
mov rcx, rbp
call fcn.140051ec8
mov rdi, rax
mov edx, esi
mov rcx, rdi
call fcn.140052ebc
mov rcx, qword [rbp + 0xf8]
mov rsi, rax
test rcx, rcx
je 0x140052c77
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xf8], 0
test rsi, rsi
je 0x140052c86
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 0x140053050
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 [0x1402b4cc8]
and qword [rax + 8], rbx
xor esi, esi
mov eax, dword [0x1402b0f78]
test eax, eax
je 0x14005309c
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402b0f78]
test eax, eax
jne 0x1400530a5
call fcn.14001b290
test eax, eax
je 0x1400530c1
lea rdx, [rsp + 0x40]
mov rcx, qword [0x1402a9008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1400530cc
xor eax, eax
jmp 0x14005315b
test r14, r14
jne 0x1400530e9
lea rcx, str.CreatePropertySheetPageA
call fcn.140053368
test rax, rax
je 0x140053126
mov qword [0x1402b4cc8], rax
mov eax, dword [rdi + 4]
mov ecx, 0x4000
test ecx, eax
jne 0x14005310a
cmp dword [rdi], 0x60
jb 0x14005310a
or eax, ecx
mov dword [rdi + 4], eax
mov rax, qword [0x1402a9008]
mov qword [rdi + 0x58], rax
mov rbx, qword [0x1402b4cc8]
mov rcx, rbx
call fcn.1401d12f0
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 0x14005313d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14005313f
xor esi, esi
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x140053158
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 0x140053174
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 [0x1402b4cd0]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402b0f78]
test eax, eax
je 0x1400531bf
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402b0f78]
test eax, eax
jne 0x1400531c8
call fcn.14001b290
test eax, eax
je 0x1400531e4
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402a9008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1400531ec
xor eax, eax
jmp 0x140053251
test rbx, rbx
jne 0x14005320c
lea rcx, str.DestroyPropertySheetPage
call fcn.140053368
mov rbx, rax
test rax, rax
je 0x14005321f
mov qword [0x1402b4cd0], rax
mov rcx, rbx
call fcn.1401d12f0
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 0x140053234
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140053236
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14005324f
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 0x140053268
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 [0x1402b4cd8]
and qword [rax + 0x10], 0
xor esi, esi
mov eax, dword [0x1402b0f78]
test eax, eax
je 0x1400532b7
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402b0f78]
test eax, eax
jne 0x1400532c0
call fcn.14001b290
test eax, eax
je 0x1400532dc
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402a9008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1400532e6
or rax, 0xffffffffffffffff
jmp 0x140053350
test rbx, rbx
jne 0x140053306
lea rcx, str.PropertySheetA
call fcn.140053368
mov rbx, rax
test rax, rax
je 0x14005331b
mov qword [0x1402b4cd8], rax
mov rcx, rbx
call fcn.1401d12f0
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 0x140053332
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140053334
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14005334d
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 0x1400756f0
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 0x140075722
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140075722
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.140142864
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140075734
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 0x14007575f
mov r8, rdx
mov rdx, qword [rdi]
call fcn.140046e88
jmp 0x1400757d7
cmp byte [0x1402b6128], 0
jne 0x1400757a6
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140075796
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x1402b6120], rax
jmp 0x14007579d
mov rbx, qword [0x1402b6120]
mov byte [0x1402b6128], 1
jmp 0x1400757ad
mov rbx, qword [0x1402b6120]
test rbx, rbx
je 0x1400757cb
mov rcx, rbx
call fcn.1401d12f0
mov r8d, dword [rdi + 8]
xor r9d, r9d
mov rcx, qword [rdi]
mov rdx, rsi
call rbx
jmp 0x1400757d7
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 0x140086774
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 [0x1402b6198]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402b0f78]
test eax, eax
je 0x1400867bf
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402b0f78]
test eax, eax
jne 0x1400867c8
call fcn.14001b290
test eax, eax
je 0x1400867e4
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402a9008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1400867ec
xor eax, eax
jmp 0x140086851
test rbx, rbx
jne 0x14008680c
lea rcx, str.ImageList_GetImageCount
call fcn.14001adc8
mov rbx, rax
test rax, rax
je 0x14008681f
mov qword [0x1402b6198], rax
mov rcx, rbx
call fcn.1401d12f0
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 0x140086834
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140086836
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14008684f
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 0x14008b028
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 0x14008b059
call fcn.14002f52c
mov rdi, qword [rax + 0x18]
lea r8, [0x140216b70]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbp, rax
test rax, rax
jne 0x14008b078
xor eax, eax
jmp 0x14008b0c4
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x14008b074
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14008b0b9
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r14
mov rcx, r15
mov r8d, eax
call fcn.14008b0e0
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 0x14011a208
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 0x14011a3d8
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 0x14011a41a
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 0x14011a884
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 0x14011a956
test rbx, rbx
je 0x14011a95c
test r9, r9
je 0x14011a962
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 0x14011a93f
cmp dword [rsp + 0x48], 3
jne 0x14011a93f
test eax, eax
jne 0x14011a93f
cmp dword [rdi], eax
je 0x14011a93f
mov ecx, dword [rdi]
call fcn.140019d80
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 0x14011a933
cmp dword [rsp + 0x48], 3
jne 0x14011a933
test eax, eax
jne 0x14011a933
mov eax, 1
jmp 0x14011a941
mov rcx, qword [rbx]
call fcn.140019d78
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.14002835c
int3
call fcn.14002835c
int3
call fcn.14002835c
int3

Function at 0x14011ac88
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x14011ac99
xor eax, eax
jmp 0x14011acc7
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 0x14011acd0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x14011ace1
xor eax, eax
jmp 0x14011ad05
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 0x140180590
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 [0x1402b98a8]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402b0f78]
test eax, eax
je 0x1401805db
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402b0f78]
test eax, eax
jne 0x1401805e4
call fcn.14001b290
test eax, eax
je 0x140180600
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402a9008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140180608
xor eax, eax
jmp 0x14018066d
test rbx, rbx
jne 0x140180628
lea rcx, str.ChooseColorA
call fcn.140030864
mov rbx, rax
test rax, rax
je 0x14018063b
mov qword [0x1402b98a8], rax
mov rcx, rbx
call fcn.1401d12f0
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 0x140180650
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140180652
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14018066b
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 0x1401d0574
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 [0x1402babb8]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402b0f78]
test eax, eax
je 0x1401d05bf
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402b0f78]
test eax, eax
jne 0x1401d05c8
call fcn.14001b290
test eax, eax
je 0x1401d05e4
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402a9008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1401d05ec
xor eax, eax
jmp 0x1401d0651
test rbx, rbx
jne 0x1401d060c
lea rcx, str.PrintDlgA
call fcn.140030864
mov rbx, rax
test rax, rax
je 0x1401d061f
mov qword [0x1402babb8], rax
mov rcx, rbx
call fcn.1401d12f0
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 0x1401d0634
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1401d0636
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1401d064f
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 0x1401e5a1c
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 0x1401e57f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401e57f0
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401e57f0
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401e57f0
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401e57f0
cmp dword [rcx + 0x84], 0xe
jbe 0x1401e57f0
cmp dword [rcx + 0xf8], esi
je 0x1401e57f0
mov ecx, r14d
call fcn.1401e5938
mov ecx, 2
call fcn.1401eae08
nop
cmp byte [0x1402bb438], 0
jne 0x1401e58ba
mov r15d, 1
mov eax, r15d
xchg dword [0x1402bb428], eax
test ebx, ebx
jne 0x1401e5863
mov rdi, qword [0x1402aa768]
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 [0x1402bb430]
cmp rcx, rax
je 0x1401e585a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140006430]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1402bb568]
jmp 0x1401e586f
cmp ebx, r15d
jne 0x1401e5875
lea rcx, [0x1402bb580]
call fcn.1401e64d0
nop
test ebx, ebx
jne 0x1401e588c
lea rdx, [0x140203ac8]
lea rcx, [0x140203aa8]
call fcn.1401e6834
lea rdx, [0x140203ad8]
lea rcx, [0x140203ad0]
call fcn.1401e6834
movzx eax, byte [0x1402bb438]
test esi, esi
cmove eax, r15d
mov byte [0x1402bb438], al
jmp 0x1401e58ba
mov ecx, 2
call fcn.1401eae5c
test esi, esi
jne 0x1401e58d1
mov ecx, r14d
call fcn.1401e58ec
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 0x1401e5780