joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4728c0
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x4728d7
inc rax
cmp rax, 4
jge 0x4728ef
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x4728d4
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x472900
inc rax
cmp rax, 4
jge 0x47290e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x472937
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x47291b
jmp 0x4728fd

Function at 0x476560
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47662a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x0055ca20]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x47660f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x0047eb20]
xor ebx, ebx
mov rcx, rdx
call sym.runtime.makeslice
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call sym.syscall.encodeWTF16
inc rbx
cmp rcx, rbx
jae 0x4765fe
mov edi, 1
lea rsi, [0x0047eb20]
call sym.runtime.growslice
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004b01e8]
lea rsi, [0x004afef0]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.syscall.UTF16FromString
Function at 0x1800701e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push r14
sub rsp, 0x28
mov r14, qword [0x1800a5920]
xor ebx, ebx
test r14, r14
je 0x1800702a5
movsxd rax, dword [r14 + 0x3c]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r12
lea r12, str.fmFkmnQYD
mov ecx, dword [rax + r14 + 0x88]
add rcx, r14
mov qword [rsp + 0x20], r15
mov r15d, dword [rcx + 0x1c]
mov edi, dword [rcx + 0x20]
add r15, r14
mov ebp, dword [rcx + 0x24]
add rdi, r14
add rbp, r14
test r12d, 0xffff0000
jne 0x180070250
movzx eax, r12w
sub eax, dword [rcx + 0x10]
mov ebx, dword [r15 + rax*4]
add rbx, r14
jmp 0x180070291
mov qword [rsp + 0x48], rsi
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x18007028c
nop dword [rax]
mov ecx, dword [rdi]
mov rdx, r12
add rcx, r14
dec esi
call fcn.18008f5f0
test eax, eax
je 0x180070281
add rdi, 4
add rbp, 2
test esi, esi
jne 0x180070260
jmp 0x18007028c
movzx eax, word [rbp]
mov ebx, dword [r15 + rax*4]
add rbx, r14
mov rsi, qword [rsp + 0x48]
mov r15, qword [rsp + 0x20]
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
call rbx
xor eax, eax
add rsp, 0x28
pop r14
pop rbx
ret

Function at 0x1800702c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push r14
sub rsp, 0x28
mov r14, qword [0x1800a5920]
xor ebx, ebx
test r14, r14
je 0x180070385
movsxd rax, dword [r14 + 0x3c]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r12
lea r12, [0x18009e570]
mov ecx, dword [rax + r14 + 0x88]
add rcx, r14
mov qword [rsp + 0x20], r15
mov r15d, dword [rcx + 0x1c]
mov edi, dword [rcx + 0x20]
add r15, r14
mov ebp, dword [rcx + 0x24]
add rdi, r14
add rbp, r14
test r12d, 0xffff0000
jne 0x180070330
movzx eax, r12w
sub eax, dword [rcx + 0x10]
mov ebx, dword [r15 + rax*4]
add rbx, r14
jmp 0x180070371
mov qword [rsp + 0x48], rsi
mov esi, dword [rcx + 0x18]
test esi, esi
je 0x18007036c
nop dword [rax]
mov ecx, dword [rdi]
mov rdx, r12
add rcx, r14
dec esi
call fcn.18008f5f0
test eax, eax
je 0x180070361
add rdi, 4
add rbp, 2
test esi, esi
jne 0x180070340
jmp 0x18007036c
movzx eax, word [rbp]
mov ebx, dword [r15 + rax*4]
add rbx, r14
mov rsi, qword [rsp + 0x48]
mov r15, qword [rsp + 0x20]
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
call rbx
xor eax, eax
add rsp, 0x28
pop r14
pop rbx
ret
Function at 0x14000290c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002956
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002956
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002956
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002956
cmp dword [rcx + 0x84], 0xe
jbe 0x140002956
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002958
xor al, al
add rsp, 0x28
ret
Function at 0x140832910
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140832a97
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140832941
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140832927
add dl, dl
jne 0x14083294e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408329ae
xor eax, eax
add dl, dl
jne 0x14083295d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140832a65
add dl, dl
jne 0x14083296e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14083297b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140832988
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140832995
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408329a2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140832936
mov eax, 1
add dl, dl
jne 0x1408329be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408329cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408329b3
sub eax, ebx
mov ebx, 1
jne 0x140832a04
mov ecx, 1
add dl, dl
jne 0x1408329e6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408329f3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408329db
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140832936
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140832a20
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140832a2d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140832a15
cmp eax, 0x7d00
jae 0x140832a53
cmp eax, 0x500
jb 0x140832a4e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140832936
cmp eax, 0x7f
ja 0x140832a56
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140832936
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140832a8a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140832936
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400010e0
Capabilities:
Check if file exists
Get file attributes
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
lea rdx, [0x1402d821a]
call fcn.140002e16
lea rdx, str.EBWebViewx64EmbeddedBrowserWebView.dll
mov rcx, rsi
call fcn.140002e16
mov rcx, rsi
call fcn.140002f2c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000118a
mov rcx, rsi
call fcn.140002f2c
mov rsi, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov rcx, rax
mov edx, 0x100021
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140001168
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14000118c
lea rcx, str.WebView2:_skipped_inaccessible
mov rdi, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x1402d8280]
call rdi
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x140001260
Capabilities:
Print debug messages

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1403260c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov edx, 0x104
mov rcx, rsi
call fcn.140002ca6
mov rcx, rsi
mov rdx, rdi
call fcn.140002d36
mov rcx, rsi
call fcn.140002f2c
mov rbx, rax
mov rcx, rsi
call fcn.140002ee8
cmp rax, 3
jb 0x1400012e4
movzx eax, word [rbx + 2]
cmp ax, 0x3a
jne 0x1400012d4
cmp word [rbx + 4], 0x5c
jne 0x1400012e4
movzx eax, word [rbx]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
jae 0x1400012e4
jmp 0x1400013a1
cmp ax, 0x5c
jne 0x1400012e4
cmp word [rbx], 0x5c
je 0x1400013a1
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x20]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x1402d7ef0]
movaps xmmword [rbx], xmm0
mov rcx, rbx
call fcn.140002c38
xor ecx, ecx
mov rdx, rbx
call fcn.140001193
test eax, eax
js 0x1400013e0
lea rbx, [rsp + 0x20]
mov rcx, rbx
call fcn.140002ee8
mov r14, rax
mov rcx, rbx
call fcn.140002f2c
mov rcx, rsi
mov rdx, rax
mov r8, r14
call fcn.140002d68
mov rcx, rbx
call fcn.140002f2c
mov rcx, rax
mov dx, 0x5c
call fcn.140263850
test rax, rax
je 0x1400013f1
mov rbx, rax
lea r14, [rsp + 0x20]
mov rcx, r14
call fcn.140002f2c
sub rbx, rax
add rbx, 2
sar rbx, 1
mov rcx, r14
call fcn.140002f2c
mov rcx, rsi
mov rdx, rax
mov r8, rbx
call fcn.140002d68
mov rcx, rsi
mov rdx, rdi
call fcn.140002e16
mov rcx, r14
call fcn.140002c4a
mov rcx, rsi
call fcn.1400010e0
xor ebx, ebx
test al, al
jne 0x140001400
lea rcx, str.WebView2:_Failed_to_find_the_WebView2_client_dll_at:
mov rdi, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rdi
mov rcx, rsi
call fcn.140002f2c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x1402d8280]
call rdi
mov ebx, 0x80070002
jmp 0x140001400
mov ebx, eax
lea rcx, str.WebView2:_Failed_to_find_the_app_exe_path._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x1400013f6
mov ebx, 0x80004005
lea rcx, [rsp + 0x20]
call fcn.140002c4a
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
cmp rcx, qword [0x1403260c0]
jne 0x14000141d
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140261420
int3
Function at 0x140002823
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x260
mov rsi, r9
mov edi, r8d
mov ebx, edx
mov r15, rcx
mov rax, qword [0x1403260c0]
xor rax, rsp
mov qword [rsp + 0x258], rax
lea r14, [rsp + 0x50]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.1402938e0
mov dword [rsp + 0x3c], 0x208
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
movzx eax, dil
mov rcx, 0xffffffff80000002
sub rcx, rax
mov qword [rsp + 0x20], rdx
xor ebp, ebp
mov rdx, r15
xor r8d, r8d
mov r9d, 0x20219
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400028d9
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
cmp rcx, qword [0x1403260c0]
jne 0x1400028d3
mov eax, ebp
add rsp, 0x260
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140261420
int3
mov rdi, qword [rsp + 0x2c0]
lea rax, str.location
lea rdx, str.EBWebView
test bl, bl
cmovne rdx, rax
mov rcx, qword [rsp + 0x30]
lea r12, [rsp + 0x3c]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r14d, eax
test eax, eax
jne 0x140002991
cmp dword [rsp + 0x3c], 3
jb 0x140002991
lea r15, [rsp + 0x50]
mov rcx, rdi
mov rdx, r15
call fcn.140002d36
xor r14d, r14d
test bl, bl
je 0x140002991
mov dword [rsp + 0x3c], 0x208
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r15
lea rdx, [0x1402d85ec]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r14d, eax
test eax, eax
jne 0x140002991
cmp dword [rsp + 0x3c], 3
jb 0x140002991
lea rdx, [0x1402d821a]
mov rcx, rdi
call fcn.140002e16
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140002e16
xor r14d, r14d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
test r14d, r14d
jne 0x1400028ab
cmp dword [rsp + 0x3c], 3
jb 0x1400028ab
mov rcx, rdi
call fcn.140002f2c
mov rcx, rax
mov dx, 0x5c
call fcn.140263850
test rax, rax
je 0x140002a11
mov rbx, rax
add rbx, 2
movaps xmm0, xmmword [0x1402d7ef0]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
mov rcx, rbx
call fcn.140002720
test al, al
je 0x140002a11
test rsi, rsi
je 0x1400029fd
mov rcx, rsi
mov rdx, rbx
call fcn.140002d36
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.140002a18
mov ebp, eax
jmp 0x1400028ab
xor ebp, ebp
jmp 0x1400028ab

Function at 0x140002a18
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
xor eax, eax
lea rdx, [0x1402d85f8]
mov r8d, dword [rax + rdx]
cmp dword [rcx + rax], r8d
ja 0x140002a40
jb 0x140002a4e
add rax, 4
cmp rax, 0x10
jne 0x140002a2a
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400010e0
lea rcx, str.WebView2:_skipped_an_incompatible_version
mov rdi, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rdi
mov rcx, rsi
call fcn.140002f2c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x1402d8280]
call rdi
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x14000393d
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rdi, r9
mov rsi, r8
mov rbx, rdx
mov r14, rcx
mov r13, qword [rsp + 0xc8]
mov r15, qword [rsp + 0xc0]
mov r12, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
mov rax, qword [0x1403260c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
test r12, r12
je 0x1400039c8
mov rcx, r14
mov rdx, rbx
mov r8, rsi
mov r9, rdi
call 0x140003ab1
test al, al
je 0x140003a39
mov rcx, rdi
call fcn.140002eec
test al, al
jne 0x140003a39
mov rdx, qword [rsi]
mov rcx, r12
mov r8, r15
call fcn.140003572
mov al, 1
jmp 0x140003a3b
test rbp, rbp
je 0x140003a63
lea rax, [rsp + 0x3c]
mov dword [rax], 0
lea rcx, [rsp + 0x38]
mov dword [rcx], 4
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov rcx, r14
xor edx, edx
mov r8, rbx
mov r9d, reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140003a91
mov rcx, r14
mov rdx, rbx
mov r8, rsi
mov r9, rdi
call 0x140003ab1
test al, al
je 0x140003a39
mov rcx, qword [rsi]
test rcx, rcx
je 0x140003aad
call fcn.140276780
cmp eax, 1
jmp 0x140003a96
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
cmp rcx, qword [0x1403260c0]
jne 0x140003a5d
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140261420
int3
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140261420
mov rcx, r14
mov rdx, rbx
mov r8, rsi
mov r9, rdi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x140003ab1
cmp dword [rsp + 0x3c], 1
sete al
movzx eax, al
mov dword [rbp], eax
mov al, 1
test r13, r13
je 0x140003a3b
mov byte [r13], 1
jmp 0x140003a3b
xor eax, eax
jmp 0x140003a99
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rdi, r9
mov rsi, r8
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x1403260c0]
xor rax, rsp
mov qword [rsp + 0x248], rax
lea r15, [rsp + 0x40]
mov r8d, 0x208
mov rcx, r15
xor edx, edx
call fcn.1402938e0
lea rax, [rsp + 0x3c]
mov dword [rax], 0x208
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 0
mov rcx, r14
xor edx, edx
mov r8, rbx
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
test eax, eax
jne 0x140003b42
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140002d36
mov rcx, rdi
call fcn.140002f2c
mov qword [rsi], rax
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
cmp rcx, qword [0x1403260c0]
jne 0x140003b6a
add rsp, 0x250
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140261420
int3
Function at 0x140003ab1
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rdi, r9
mov rsi, r8
mov rbx, rdx
mov r14, rcx
mov r13, qword [rsp + 0xc8]
mov r15, qword [rsp + 0xc0]
mov r12, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
mov rax, qword [0x1403260c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
test r12, r12
je 0x1400039c8
mov rcx, r14
mov rdx, rbx
mov r8, rsi
mov r9, rdi
call 0x140003ab1
test al, al
je 0x140003a39
mov rcx, rdi
call fcn.140002eec
test al, al
jne 0x140003a39
mov rdx, qword [rsi]
mov rcx, r12
mov r8, r15
call fcn.140003572
mov al, 1
jmp 0x140003a3b
test rbp, rbp
je 0x140003a63
lea rax, [rsp + 0x3c]
mov dword [rax], 0
lea rcx, [rsp + 0x38]
mov dword [rcx], 4
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov rcx, r14
xor edx, edx
mov r8, rbx
mov r9d, reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140003a91
mov rcx, r14
mov rdx, rbx
mov r8, rsi
mov r9, rdi
call 0x140003ab1
test al, al
je 0x140003a39
mov rcx, qword [rsi]
test rcx, rcx
je 0x140003aad
call fcn.140276780
cmp eax, 1
jmp 0x140003a96
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
cmp rcx, qword [0x1403260c0]
jne 0x140003a5d
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140261420
int3
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140261420
mov rcx, r14
mov rdx, rbx
mov r8, rsi
mov r9, rdi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x140003ab1
cmp dword [rsp + 0x3c], 1
sete al
movzx eax, al
mov dword [rbp], eax
mov al, 1
test r13, r13
je 0x140003a3b
mov byte [r13], 1
jmp 0x140003a3b
xor eax, eax
jmp 0x140003a99
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rdi, r9
mov rsi, r8
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x1403260c0]
xor rax, rsp
mov qword [rsp + 0x248], rax
lea r15, [rsp + 0x40]
mov r8d, 0x208
mov rcx, r15
xor edx, edx
call fcn.1402938e0
lea rax, [rsp + 0x3c]
mov dword [rax], 0x208
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], 0
mov rcx, r14
xor edx, edx
mov r8, rbx
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
test eax, eax
jne 0x140003b42
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140002d36
mov rcx, rdi
call fcn.140002f2c
mov qword [rsi], rax
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
cmp rcx, qword [0x1403260c0]
jne 0x140003b6a
add rsp, 0x250
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140261420
int3
Function at 0x140003c18
Capabilities:
Print debug messages

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rsi, r9
mov ebp, r8d
mov r14d, edx
mov rbx, rcx
mov rax, qword [0x1403260c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140003c8e
mov rdi, rax
lea rdx, str.CreateWebViewEnvironmentWithOptionsInternal
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140003d28
mov rcx, qword [rsp + 0xb8]
mov r9, qword [rsp + 0xb0]
mov qword [rsp + 0x20], rcx
mov ecx, r14d
mov edx, ebp
mov r8, rsi
call qword [0x1402afdf8]
mov esi, eax
jmp 0x140003dad
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
lea r14, [rsp + 0x54]
mov dword [r14], esi
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1402d7ef0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.140002c38
mov edx, 4
mov rcx, r14
mov r8b, 1
mov r9, rdi
call fcn.140003b70
lea rcx, str.WebView2:_CoreWebView2Environment_failed_when_trying_to_LoadLibrary:_hr0x
mov r14, qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call r14
mov rcx, rdi
call fcn.140002f2c
mov rcx, rax
call r14
lea rcx, str._path
call r14
mov rcx, rbx
call r14
lea rcx, [0x1402d8b0e]
call r14
mov rcx, rdi
call fcn.140002c4a
jmp 0x140003dcb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
lea r14, [rsp + 0x54]
mov dword [r14], esi
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x30]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x1402d7ef0]
movaps xmmword [rbx], xmm0
mov rcx, rbx
call fcn.140002c38
mov edx, 4
mov rcx, r14
mov r8b, 1
mov r9, rbx
call fcn.140003b70
lea rcx, str.WebView2:_CoreWebView2Environment_failed_when_trying_to_call_into_EmbeddedBrowserWebView.dll._hr0x
mov r14, qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call r14
mov rcx, rbx
call fcn.140002f2c
mov rcx, rax
call r14
lea rcx, [0x1402d8b0e]
call r14
mov rcx, rbx
call fcn.140002c4a
lea rdx, str.DllCanUnloadNow
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140003dcb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
cmp rcx, qword [0x1403260c0]
jne 0x140003de9
mov eax, esi
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.140261420
int3

Function at 0x140003df0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140003e44
mov ebx, eax
mov edx, eax
mov rcx, rsi
call fcn.140002ca6
test al, al
je 0x140003e44
mov rcx, rsi
call fcn.140002f2c
mov rcx, rdi
mov rdx, rax
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, eax
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140002df4
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400404b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1b8
lea rax, [rsp + 0x130]
mov qword [rsp + 0x50], rax
lea rdx, [0x1402b2f28]
mov rcx, qword [rsp + 0x50]
call fcn.140014930
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x70]
call fcn.1400aaa00
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.14000f0c0
mov rdx, rax
lea rcx, [rsp + 0x110]
call fcn.140014930
nop
lea rcx, [rsp + 0x70]
call fcn.1400165c0
nop
lea rax, [rsp + 0x150]
mov qword [rsp + 0x78], rax
lea rdx, [0x1402b2f50]
mov rcx, qword [rsp + 0x78]
call fcn.140014930
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x98]
call fcn.1400aaa00
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.14000f0c0
mov rdx, rax
lea rcx, [rsp + 0xf0]
call fcn.140014930
nop
lea rcx, [rsp + 0x98]
call fcn.1400165c0
nop
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x3c], 4
lea rax, [rsp + 0x170]
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0xa0]
call fcn.140014890
mov qword [rsp + 0xa8], rax
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0xb8]
call fcn.1400aa390
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call fcn.14000f0c0
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0xb8]
call fcn.1400165c0
nop
cmp dword [rsp + 0x38], 0
jne 0x14004071a
lea rax, [rsp + 0x190]
mov qword [rsp + 0xc0], rax
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0xc0]
call fcn.140014890
mov qword [rsp + 0xc8], rax
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0xe8]
call fcn.1400aa390
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xd0]
call fcn.14000f0c0
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0xe8]
call fcn.1400165c0
nop
cmp dword [rsp + 0x40], 0
jne 0x14004070e
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, qword [rsp + 0x1c0]
mov ecx, dword [rsp + 0x30]
mov dword [rax + 0x6c], ecx
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0xf0]
call fcn.140016ce0
nop
lea rcx, [rsp + 0x110]
call fcn.140016ce0
mov eax, dword [rsp + 0x44]
add rsp, 0x1b8
ret