joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ae070
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x103f0]
mov eax, 0x104f0
call fcn.1400e37c0
sub rsp, rax
movzx r14d, dl
mov rdi, rcx
cmp qword [rcx + 0x10], 0
jne 0x1400ae0ae
xor eax, eax
jmp 0x1400ae294
mov byte [rcx], 1
xor ebx, ebx
cmp qword [0x1401349d8], rdi
je 0x1400ae0c9
mov qword [0x1401349d8], rdi
mov dword [0x1401349e8], ebx
cmp qword [0x1401349e0], rbx
jne 0x1400ae0ec
mov ecx, 0xfa0
call fcn.1400a24c0
test rax, rax
je 0x1400ae2b1
mov qword [0x1401349e0], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
mov r8, qword [0x14012c398]
sub r8, 0xffffffffffffff80
mov rdx, rax
mov rcx, rdi
call fcn.1400ae500
mov r15, rax
test rax, rax
jne 0x1400ae11d
mov ecx, ebx
mov dword [0x1401349e8], ebx
jmp 0x1400ae123
mov ecx, dword [0x1401349e8]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
mov dword [rbp - 0x64], ebx
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x40], rbx
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x30], xmm1
test r14b, r14b
je 0x1400ae152
test r15, r15
mov byte [rbp - 0x67], 0
je 0x1400ae156
mov byte [rbp - 0x67], 1
mov r8, qword [0x1401349e0]
mov qword [rbp - 0x50], r8
mov dword [rbp - 0x48], ecx
mov rax, qword [0x14012c398]
lea rdx, [0x140106cb0]
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], rdx
test rax, rax
je 0x1400ae196
sub rax, 0xffffffffffffff80
mov qword [rsp + 0x28], rax
jmp 0x1400ae19b
mov qword [rsp + 0x28], rbx
mov qword [rbp - 0x78], rdi
mov dword [rsp + 0x20], reloc.WSOCK32.dll_recv
test ecx, ecx
setg dil
nop dword [rax]
test r15, r15
je 0x1400ae1e6
mov edx, ebx
test ecx, ecx
jle 0x1400ae1cf
mov rax, r8
nop
cmp qword [rax], rsi
je 0x1400ae1e6
inc edx
add rax, 8
cmp edx, ecx
jl 0x1400ae1c0
cmp ecx, 0x1f4
jge 0x1400ae1e6
movsxd rax, ecx
mov qword [r8 + rax*8], rsi
inc ecx
mov dword [0x1401349e8], ecx
mov dword [rbp - 0x48], ecx
lea rdx, [rsp + 0x20]
lea rcx, [0x1400ac2c0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
jne 0x1400ae21d
test dil, dil
je 0x1400ae287
mov ecx, ebx
mov dword [0x1401349e8], ebx
xor dil, dil
mov r8, qword [0x1401349e0]
jmp 0x1400ae1b0
xor edx, edx
call fcn.1400ab2d0
mov ecx, ebx
mov rbx, qword [rbp - 0x60]
mov r8, qword [0x1401349e0]
movsxd rdx, dword [0x1401349e8]
test edx, edx
jle 0x1400ae24f
mov rax, r8
nop
cmp qword [rax], rbx
je 0x1400ae267
inc ecx
add rax, 8
cmp ecx, edx
jl 0x1400ae240
cmp edx, 0x1f4
jge 0x1400ae267
mov qword [r8 + rdx*8], rbx
inc edx
mov dword [0x1401349e8], edx
mov rbx, qword [rbp - 0x60]
mov rax, qword [0x14012c398]
mov ecx, dword [rax + 0x90]
cmp ecx, 0xffffffff
jle 0x1400ae287
mov edx, 1
call fcn.140001820
mov rbx, qword [rbp - 0x60]
mov rcx, qword [rsp + 0x30]
call fcn.1400ca198
mov rax, rbx
lea r11, [rsp + 0x104f0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140011360
int3
Function at 0x1400ae2c0
Capabilities:
Enumerate gui resources
Find taskbar

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x104f0
call fcn.1400e37c0
sub rsp, rax
movzx ebp, dl
mov rdi, rcx
mov byte [rcx], 0
xor ebx, ebx
cmp qword [0x1401349d8], rcx
je 0x1400ae2fe
mov qword [0x1401349d8], rcx
mov dword [0x1401349e8], ebx
cmp qword [0x1401349e0], rbx
jne 0x1400ae321
mov ecx, 0xfa0
call fcn.1400a24c0
test rax, rax
je 0x1400ae4f9
mov qword [0x1401349e0], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
mov edx, 4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
je 0x1400ae356
nop dword [rax]
mov rsi, rax
mov edx, 4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
jne 0x1400ae340
mov r8, qword [0x14012c398]
sub r8, 0xffffffffffffff80
mov rdx, rsi
mov rcx, rdi
call fcn.1400ae500
test rax, rax
je 0x1400ae37b
mov ecx, ebx
mov dword [0x1401349e8], ebx
jmp 0x1400ae381
mov ecx, dword [0x1401349e8]
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
lea rax, [0x140106cb0]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x9c], ebx
xorps xmm0, xmm0
movdqa xmmword [rsp + 0xa0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0xd0], xmm1
test bpl, bpl
je 0x1400ae3cb
test ecx, ecx
mov byte [rsp + 0x99], 0
je 0x1400ae3d3
mov byte [rsp + 0x99], 1
mov rax, qword [0x1401349e0]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], ecx
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0xc0], rax
lea rdx, [rsp + 0x20]
lea rcx, [0x1400ae620]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x1400ae482
call qword [sym.imp.USER32.dll_GetLastActivePopup]
mov rcx, rax
xor edx, edx
call fcn.1400ab2d0
mov rdx, qword [rsp + 0xa0]
mov r8, qword [0x1401349e0]
movsxd rcx, dword [0x1401349e8]
test ecx, ecx
jle 0x1400ae450
mov rax, r8
cmp qword [rax], rdx
je 0x1400ae464
inc ebx
add rax, 8
cmp ebx, ecx
jl 0x1400ae441
cmp ecx, 0x1f4
jge 0x1400ae464
mov qword [r8 + rcx*8], rdx
inc ecx
mov dword [0x1401349e8], ecx
mov rax, qword [0x14012c398]
mov ecx, dword [rax + 0x90]
cmp ecx, 0xffffffff
jle 0x1400ae4d6
mov edx, 1
call fcn.140001820
jmp 0x1400ae4d6
mov eax, dword [0x1401349e8]
test eax, eax
je 0x1400ae4bc
cmp eax, 1
setg al
mov dword [0x1401349e8], ebx
test al, al
je 0x1400ae4d6
mov rax, qword [0x1401349e0]
mov qword [rax], rsi
mov dword [0x1401349e8], 1
xor edx, edx
mov rcx, rdi
call fcn.1400ae2c0
jmp 0x1400ae4d6
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
mov rcx, rax
xor edx, edx
call fcn.1400ab2d0
nop
mov rcx, qword [rsp + 0x30]
call fcn.1400ca198
lea r11, [rsp + 0x104f0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140011360
int3
Function at 0x1400c3d64
Capabilities:
Parse pe header

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

Function at 0x1400d86a4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400d850f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d850f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d850f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d850f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d850f
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d850f
cmp dword [rcx + 0xf8], 0
je 0x1400d850f
mov ecx, ebx
call fcn.1400d85c0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400d839c
nop
cmp dword [rbp + 0x20], 0
je 0x1400d855d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400d8568
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400d84a0
Function at 0x1400ddfb0
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 0x1400de037
mov rsi, rbx
cmp word [rax], bp
je 0x1400ddff6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400ddfe0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400ddfdc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400daba8
mov rdi, rax
test rax, rax
je 0x1400de024
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400e78c0
mov rbp, rdi
xor ecx, ecx
call fcn.1400dab6c
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 0x1400e36f0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x10015150], rbx
je 0x10007566
cmp rax, rbx
jne 0x10007559
mov edi, 1
jmp 0x10007566
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10007540
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x1000757b
lea ecx, [rax + 0x1e]
call fcn.1014c000
jmp 0x100075ba
mov eax, dword [0x10015148]
test eax, eax
jne 0x100075b0
mov dword [0x10015148], 1
lea rdx, [0x100014d0]
lea rcx, [0x100014b8]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x100075ba
mov eax, 0xff
jmp 0x10007714
mov dword [0x10014314], 1
mov eax, dword [0x10015148]
cmp eax, 1
jne 0x100075e2
lea rdx, [0x100014b0]
lea rcx, [0x10001470]
call sub.MSVCR80.dll__initterm
mov dword [0x10015148], 2
test edi, edi
jne 0x100075ef
xor eax, eax
xchg qword [0x10015150], rax
cmp qword [0x10015168], 0
je 0x10007618
lea rcx, [0x10015168]
call fcn.10007b90
test eax, eax
je 0x10007618
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x10015168]
mov rax, qword [sym.imp.MSVCR80.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
nop
nop
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x100076aa
test cl, cl
je 0x10007640
test edi, edi
jne 0x100076aa
movzx eax, byte [rbx]
test al, al
je 0x10007656
cmp al, 0x20
ja 0x10007656
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007640
test byte [rsp + 0x6c], 1
je 0x10007665
movzx r9d, word [rsp + 0x70]
jmp 0x1000766b
mov r9d, 0xa
mov r8, rbx
xor edx, edx
lea rcx, [0x10000000]
call fcn.10005300
mov dword [0x10014310], eax
cmp dword [0x100142f4], 0
jne 0x10007693
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x10014314], 0
jne 0x100076a8
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x10014310]
jmp 0x1000770d
cmp cl, 0x22
jne 0x100076bc
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.MSVCR80.dll__ismbblead]
test eax, eax
je 0x100076d2
add rbx, 1
mov qword [rsp + 0x28], rbx
add rbx, 1
mov qword [rsp + 0x28], rbx
jmp 0x10007630
jmp 0x10007714
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
sub rsp, 0x28
call fcn.10007c10
add rsp, 0x28
jmp 0x10007510
Function at 0x140006bb8
Capabilities:
Parse pe header

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

Function at 0x10fafe0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x10fafed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x10faffd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x10fafe5
lea eax, [rcx + 1]
jmp 0x10fb00b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x10fb01e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x10fb004
sub eax, 3
jb 0x10fb03e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x10fb08d
sar eax, 1
movsxd rbp, eax
jb 0x10fb074
jmp 0x10fb04c
add ebx, ebx
jne 0x10fb04a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x10fb074
inc ecx
add ebx, ebx
jne 0x10fb05a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x10fb074
call r11
adc ecx, ecx
add ebx, ebx
jne 0x10fb06d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x10fb05c
add ecx, 2
jmp 0x10fb079
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.010fafa2
jmp 0x10fafed
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xce9000]
mov eax, dword [rdi]
or eax, eax
je 0x10fb0e9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xd0bce0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x10fb099
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x10fb0e3
mov qword [rbx], rax
add rbx, 8
jmp 0x10fb0b9
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x10fb12d
cmp al, 0xef
ja 0x10fb115
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x10fb0f5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x10fb104
mov eax, dword [rdi]
add rdi, 4
jmp 0x10fb104
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x10fb181
sub rsp, 0xffffffffffffff80
jmp 0x46ca80
Function at 0x1400010a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140178478]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, byte [rdx]
mov r11, rcx
mov r10, qword [rsp + 0x88]
shl eax, 0x18
mov dword [rsp + 0x38], eax
movzx eax, word [rdx + 1]
mov dword [rsp + 0x3c], eax
mov rax, qword [rdx + 3]
add rdx, 0xb
mov qword [rsp + 0x40], rax
mov rax, qword [rcx + 8]
mov qword [r10], rax
mov rax, qword [rcx + 8]
mov qword [rsp + 0x28], r10
movzx ecx, word [rax]
mov dword [r10 + 8], ecx
lea rcx, str.ETW0
mov qword [r10 + 0x10], rdx
mov dword [r10 + 0xc], 2
movzx eax, word [rdx]
lea rdx, [rsp + 0x38]
mov dword [r10 + 0x18], eax
lea rax, [0x140143548]
sub eax, ecx
mov dword [r10 + 0x1c], 1
mov rcx, qword [r11 + 0x20]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_EventWriteTransfer]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400d24e0
add rsp, 0x58
ret
Function at 0x140007d68
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rsi, rdx
mov r12d, ecx
xorps xmm0, xmm0
movdqu xmmword [rax - 0x40], xmm0
xor r13d, r13d
mov qword [rax - 0x30], r13
mov ebx, r13d
xor edx, edx
call fcn.140013b54
mov r14, rax
lea ebp, [r13 + 1]
mov r15d, ebp
test rax, rax
je 0x140007ef1
test rbx, rbx
jne 0x140007e85
xor r9d, r9d
mov ecx, r12d
shr ecx, 4
add cx, bp
movzx r8d, cx
lea edx, [rbx + 6]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140007df6
mov rbx, r13
jmp 0x140007e69
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
test rax, rax
je 0x140007df1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140007df1
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov ecx, eax
add rcx, rdi
mov edx, r12d
and edx, 0xf
jbe 0x140007e58
cmp rdi, rcx
jae 0x140007df1
movzx eax, word [rdi]
lea rdi, [rdi + rax*2]
add rdi, 2
add edx, 0xffffffff
jne 0x140007e43
cmp rdi, rcx
jae 0x140007df1
movzx eax, word [rdi]
neg ax
sbb rbx, rbx
and rbx, rdi
mov edx, r15d
add r15d, ebp
call fcn.140013b54
mov r14, rax
test rax, rax
jne 0x140007dbe
test rbx, rbx
je 0x140007ef1
movzx edx, word [rbx]
add rdx, rbp
lea rcx, [rsp + 0x28]
call fcn.1400088f0
mov rbx, qword [rsp + 0x30]
mov r15, qword [rsp + 0x28]
sub rbx, r15
sar rbx, 1
xor edx, edx
call fcn.140013b54
mov edi, r13d
mov r14d, ebp
jmp 0x140007edd
test edi, edi
jne 0x140007ee2
mov r9d, ebx
mov r8, r15
mov edx, r12d
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
mov edi, eax
mov edx, r14d
add r14d, ebp
call fcn.140013b54
test rax, rax
jne 0x140007eb4
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.14000954c
jmp 0x140007f09
mov rax, rsi
cmp qword [rsi + 0x18], 8
jb 0x140007efe
mov rax, qword [rsi]
mov qword [rsi + 0x10], r13
mov word [rax], r13w
mov bpl, r13b
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140007f26
mov rdx, qword [rsp + 0x38]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
call fcn.14000c220
mov al, bpl
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14001b0c4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r14, r9
mov rdi, r8
mov r15, rdx
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
sub rax, rcx
mov edx, 0xffffffff
cmp rax, rdx
ja 0x14001b266
mov dword [rsp + 0x60], eax
neg eax
sbb r8, r8
and r8, rcx
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14001b126
mov rdx, qword [rdi]
mov rax, qword [r15]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jne 0x14001b160
mov rcx, qword [rbx + 8]
cmp rcx, qword [rbx]
jne 0x14001b1b1
cmp dword [rsp + 0x60], eax
jne 0x14001b167
cmp eax, 0xea
jne 0x14001b1ad
mov edx, dword [rsp + 0x60]
mov rcx, rbx
call fcn.14001cd20
mov rcx, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x14001b180
mov rdi, qword [rdi]
mov rax, qword [r15]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
mov r9, r14
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov esi, eax
test esi, esi
jne 0x14001b1e0
mov rax, qword [rsp + 0x88]
mov byte [rax], 1
mov edx, dword [rsp + 0x60]
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
cmp rdx, rax
je 0x14001b1d4
mov rcx, rbx
call fcn.14001cd20
movabs rax, 0x8000000000
jmp 0x14001b251
lea eax, [rsi - 2]
cmp eax, 1
jbe 0x14001b238
mov edx, MsiPreviewDialogW
lea rcx, str.admin_appman_appvclientintegrationintegration_store_utils.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
nop dword [rax + rax]
test rax, rax
je 0x14001b20a
inc rax
jmp 0x14001b211
lea rax, str.admin_appman_appvclientintegrationintegration_store_utils.cpp
mov rdx, rax
lea rcx, [0x14017bb60]
call fcn.140007964
shl rax, 0x34
mov ecx, esi
or rax, rcx
movabs rcx, 0xf2100000000
or rax, rcx
jmp 0x14001b251
mov rax, qword [rbx]
mov qword [rbx + 8], rax
mov rax, qword [rsp + 0x88]
mov byte [rax], 0
jmp 0x14001b1d4
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
call fcn.14001a938
nop
int3
Function at 0x14001b85c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov r10, r8
mov r11, rdx
mov r8, qword [r9]
mov rcx, qword [r9 + 8]
sub rcx, r8
mov eax, 0xffffffff
cmp rcx, rax
ja 0x14001b936
mov rax, rcx
neg rax
sbb rdx, rdx
and rdx, r8
cmp qword [r10 + 0x18], 8
jb 0x14001b8a3
mov r10, qword [r10]
mov rax, qword [r11]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rdx
mov r9d, dword [rsp + 0x70]
xor r8d, r8d
mov rdx, r10
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14001b91e
mov edx, MsiPreviewDialogW
lea rcx, str.admin_appman_appvclientintegrationintegration_store_utils.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
nop dword [rax + rax]
test rax, rax
je 0x14001b8f2
inc rax
jmp 0x14001b8f9
lea rax, str.admin_appman_appvclientintegrationintegration_store_utils.cpp
mov rdx, rax
lea rcx, [0x14017bb60]
call fcn.140007964
shl rax, 0x34
or rax, rbx
movabs rcx, 0x182100000000
or rax, rcx
jmp 0x14001b92f
movabs rax, 0x8000000000
jmp 0x14001b92f
add rsp, 0x40
pop rbx
ret
call fcn.14001a938
nop
int3

Function at 0x14001b944
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push r14
sub rsp, 0x40
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rbx, r9
mov rdi, r8
mov r14, rdx
mov rax, qword [r9 + 0x10]
inc rax
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x14001ba62
mov esi, eax
add rsi, rsi
mov rax, rsi
shr rax, 0x20
test eax, eax
jne 0x14001ba68
xor cl, cl
cmp byte [rsp + 0x70], cl
je 0x14001b9a9
mov rcx, rbx
call fcn.14001a964
mov cl, al
cmp qword [rbx + 0x18], 8
jb 0x14001b9b3
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x14001b9bd
mov rdi, qword [rdi]
mov rax, qword [r14]
movzx r9d, cl
inc r9d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14001ba3a
mov edx, MsiPreviewDialogW
lea rcx, str.admin_appman_appvclientintegrationintegration_store_utils.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
nop dword [rax + rax]
test rax, rax
je 0x14001ba0e
inc rax
jmp 0x14001ba15
lea rax, str.admin_appman_appvclientintegrationintegration_store_utils.cpp
mov rdx, rax
lea rcx, [0x14017bb60]
call fcn.140007964
shl rax, 0x34
or rax, rbx
movabs rcx, 0x1b2100000000
or rax, rcx
jmp 0x14001ba4b
movabs rax, 0x8000000000
jmp 0x14001ba4b
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
call fcn.14001a938
nop
call fcn.14001a938
int3