joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018be0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r14, r9
mov rdi, r8
mov rsi, rdx
mov r15, rcx
xor r12d, r12d
mov dword [rax - 0x28], r12d
or r8d, 0xffffffff
xor edx, edx
mov rcx, r9
call sym.WmiApSrv.exe_public:_void___cdecl_CHStringArray::SetSize_int__int____ptr64
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140018d38
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140018d38
cmp dword [rsp + 0x34], 7
jne 0x140018d38
add eax, 2
mov dword [rsp + 0x30], eax
mov ecx, eax
call fcn.140001284
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140018d38
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, rdi
mov rdx, rsi
mov rcx, r15
call sym.WmiApSrv.exe_private:_unsigned_long_int___cdecl_CRegistry::GetCurrentRawKeyValue_struct_HKEY______ptr64__unsigned_short_int_const____ptr64__void____ptr64__unsigned_long_int____ptr64__unsigned_long_int____ptr64____ptr64
test eax, eax
je 0x140018cc5
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov qword [rsp + 0x38], r12
mov eax, 0x80040153
jmp 0x140018d3d
cmp dword [rsp + 0x34], 7
je 0x140018ce7
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov qword [rsp + 0x38], r12
mov eax, 0x80040153
jmp 0x140018d3d
mov rsi, rbx
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rbx + rdi*2], r12w
jne 0x140018cee
test edi, edi
je 0x140018d25
mov r8, rsi
mov edx, dword [r14 + 8]
mov rcx, r14
call sym.WmiApSrv.exe_public:_void___cdecl_CHStringArray::SetAtGrow_int__unsigned_short_int_const____ptr64____ptr64
lea eax, [rdi + 1]
movsxd rcx, eax
lea rsi, [rsi + rcx*2]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rsi + rdi*2], r12w
jne 0x140018d19
jmp 0x140018cf8
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
xor eax, eax
jmp 0x140018d3d
mov eax, 0x80040153
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
ret

Function at 0x140018d80
Capabilities:
Query or enumerate registry value

Disassembly:
mov r9, r8
mov r8, rdx
mov rdx, qword [rcx + 8]
jmp sym.WmiApSrv.exe_public:_unsigned_long_int___cdecl_CRegistry::GetCurrentKeyValue_struct_HKEY______ptr64__unsigned_short_int_const____ptr64__class_CHString____ptr64____ptr64

Function at 0x140018da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r9, r8
mov r8, rdx
mov rdx, qword [rcx + 8]
jmp sym.WmiApSrv.exe_public:_unsigned_long_int___cdecl_CRegistry::GetCurrentKeyValue_struct_HKEY______ptr64__unsigned_short_int_const____ptr64__class_CHStringArray____ptr64____ptr64
Function at 0x140018dc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [rsp + 0x68]
mov r10, r8
mov qword [rsp + 0x28], rax
mov rcx, rdx
mov qword [rsp + 0x20], r9
xor r8d, r8d
mov r9, qword [rsp + 0x60]
mov rdx, r10
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
add rsp, 0x38
ret

Function at 0x140018e80
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14002bed8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rdx
mov edx, dword [rcx + 0x20]
cmp edx, dword [rcx + 0x234]
jb 0x140018eb4
mov eax, 0x103
jmp 0x140018f0a
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
and qword [rsp + 0x28], 0
mov rcx, qword [rcx + 8]
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov edi, eax
mov rcx, rbx
test eax, eax
jne 0x140018f03
lea rdx, [rsp + 0x50]
call fcn.140016110
jmp 0x140018f08
call sym.WmiApSrv.exe_public:_void___cdecl_CHString::Empty_void____ptr64
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140002010
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret

Function at 0x140019a90
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov ecx, 4
mov rax, r8
mov dword [rsp + 0x28], ecx
mov r10, rdx
mov qword [rsp + 0x20], r9
xor r8d, r8d
mov r9d, ecx
mov rdx, rax
mov rcx, r10
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
add rsp, 0x38
ret

Function at 0x140019ad0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rcx, r9
mov rbx, r9
mov rdi, r8
mov rsi, rdx
call sym.WmiApSrv.exe_protected:_struct_CHStringData____ptr64___cdecl_CHString::GetData_void_const___ptr64
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov ecx, dword [rax + 4]
mov rax, qword [rbx]
lea ecx, [rcx*2 + 2]
mov dword [rsp + 0x28], ecx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140019b40
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, r9
mov r12, r8
mov r13, rdx
xor ebx, ebx
xor edi, edi
cmp dword [r9 + 8], ebx
jle 0x140019ba7
mov r8d, edi
lea rdx, [rsp + 0x88]
mov rcx, rsi
call sym.WmiApSrv.exe_public:_class_CHString___cdecl_CHStringArray::GetAt_int____ptr64
lea rcx, [rsp + 0x88]
call sym.WmiApSrv.exe_protected:_struct_CHStringData____ptr64___cdecl_CHString::GetData_void_const___ptr64
mov ecx, dword [rax + 4]
lea ebx, [rbx + rcx*2]
add ebx, 2
lea rcx, [rsp + 0x88]
call sym.WmiApSrv.exe_public:_void___cdecl_CHString::destructor_void____ptr64
inc edi
cmp edi, dword [rsi + 8]
jl 0x140019b6a
mov eax, 2
add ebx, eax
mov r14d, ebx
mul r14
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140001284
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140019bea
and dword [rsp + 0x30], eax
lea rdx, [0x1400261c8]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll__CxxThrowException
nop
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
xor r15d, r15d
xor r14d, r14d
cmp r14d, dword [rsi + 8]
jge 0x140019c5f
mov r8d, r14d
lea rdx, [rsp + 0x88]
mov rcx, rsi
call sym.WmiApSrv.exe_public:_class_CHString___cdecl_CHStringArray::GetAt_int____ptr64
nop
xor edx, edx
lea rcx, [rsp + 0x88]
call sym.WmiApSrv.exe_public:_unsigned_short_int____ptr64___cdecl_CHString::GetBuffer_int____ptr64
mov edx, ebx
sub edx, r15d
lea rcx, [rdi + r15*2]
mov r8, rax
call fcn.140005370
lea rcx, [rsp + 0x88]
call sym.WmiApSrv.exe_protected:_struct_CHStringData____ptr64___cdecl_CHString::GetData_void_const___ptr64
mov ecx, dword [rax + 4]
inc ecx
add r15d, ecx
lea rcx, [rsp + 0x88]
call sym.WmiApSrv.exe_public:_void___cdecl_CHString::destructor_void____ptr64
inc r14d
jmp 0x140019bfe
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
mov r9d, 7
xor r8d, r8d
mov rdx, r12
mov rcx, r13
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
and qword [rsp + 0x38], 0
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140019d60
Capabilities:
Set registry value

Disassembly:
mov r9, r8
mov r8, rdx
mov rdx, qword [rcx + 8]
jmp sym.WmiApSrv.exe_public:_unsigned_long_int___cdecl_CRegistry::SetCurrentKeyValue_struct_HKEY______ptr64__unsigned_short_int_const____ptr64__class_CHStringArray____ptr64____ptr64
Function at 0x140019d80
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rcx, r9
mov rbx, r9
mov rdi, r8
mov rsi, rdx
call sym.WmiApSrv.exe_protected:_struct_CHStringData____ptr64___cdecl_CHString::GetData_void_const___ptr64
mov r9d, 2
xor r8d, r8d
mov rdx, rdi
mov ecx, dword [rax + 4]
mov rax, qword [rbx]
lea ecx, [rcx*2 + 2]
mov dword [rsp + 0x28], ecx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140019f60
Capabilities:
Query or enumerate registry key

Disassembly:
sub rsp, 0x48
xor ecx, ecx
mov rax, r9
mov qword [rsp + 0x38], rcx
lea r9, [rsp + 0x70]
mov qword [rsp + 0x30], rcx
mov r10d, r8d
mov qword [rsp + 0x28], rcx
mov r11, rdx
mov qword [rsp + 0x20], rcx
mov r8, rax
mov rcx, r11
mov edx, r10d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
add rsp, 0x48
ret

Function at 0x140019fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rsp + 0x90]
mov r10, r9
mov r9, qword [rsp + 0x70]
mov r11d, r8d
mov qword [rsp + 0x38], rax
mov rcx, rdx
mov rax, qword [rsp + 0x88]
mov r8, r10
mov qword [rsp + 0x30], rax
mov edx, r11d
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
nop dword [rax + rax]
add rsp, 0x40
pop rbx
ret

Function at 0x14001a100
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rsp + 0x70]
mov r10, r9
mov r9, qword [rsp + 0x60]
mov r11, r8
mov qword [rsp + 0x28], rax
mov rcx, rdx
mov rax, qword [rsp + 0x68]
mov r8, r10
mov rdx, r11
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
add rsp, 0x30
pop rbx
ret

Function at 0x14001a150
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rsp + 0x70]
mov r10d, r9d
mov r9d, dword [rsp + 0x60]
mov r11, r8
mov dword [rsp + 0x28], eax
mov rcx, rdx
mov rax, qword [rsp + 0x68]
mov r8d, r10d
mov rdx, r11
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
add rsp, 0x30
pop rbx
ret
Function at 0x14173dd40
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14173dd4d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14173dd5d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14173dd45
lea eax, [rcx + 1]
jmp 0x14173dd6b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14173dd7e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14173dd64
sub eax, 3
jb 0x14173dd9e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14173dded
sar eax, 1
movsxd rbp, eax
jb 0x14173ddd4
jmp 0x14173ddac
add ebx, ebx
jne 0x14173ddaa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14173ddd4
inc ecx
add ebx, ebx
jne 0x14173ddba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14173ddd4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14173ddcd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14173ddbc
add ecx, 2
jmp 0x14173ddd9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14173dd02
jmp 0x14173dd4d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x15ca00
mov dl, 0x34
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14173de39
cmp rsi, rcx
jae 0x14173de41
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14173de20
cmp al, 0x8f
ja 0x14173de20
cmp byte [rsi - 2], 0xf
je 0x14173de26
sub al, 0xe8
cmp al, 1
ja 0x14173de0a
cmp rsi, rcx
jae 0x14173de41
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14173de10
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14173de41
lodsb al, byte [rsi]
jmp 0x14173de20
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x168f000]
mov eax, dword [rdi]
or eax, eax
je 0x14173deaa
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x174845c]
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 0x14173de4e
jns 0x14173de83
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14173de8d
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 0x14173dea4
mov qword [rbx], rax
add rbx, 8
jmp 0x14173de6e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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 0x14173df02
sub rsp, 0xffffffffffffff80
jmp 0x1400692b0
Function at 0x1407d10b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407d1237
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 0x1407d10e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d10c7
add dl, dl
jne 0x1407d10ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d114e
xor eax, eax
add dl, dl
jne 0x1407d10fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d1205
add dl, dl
jne 0x1407d110e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d111b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d1128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d1135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407d1142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407d10d6
mov eax, 1
add dl, dl
jne 0x1407d115e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d116b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d1153
sub eax, ebx
mov ebx, 1
jne 0x1407d11a4
mov ecx, 1
add dl, dl
jne 0x1407d1186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407d1193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d117b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d10d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407d11c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407d11cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d11b5
cmp eax, 0x7d00
jae 0x1407d11f3
cmp eax, 0x500
jb 0x1407d11ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d10d6
cmp eax, 0x7f
ja 0x1407d11f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d10d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407d122a
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 0x1407d10d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140027de0
Capabilities:
Clear file content

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, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b784
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b784
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027f30
cmp rax, 0xffffffffffffffff
je 0x140027f30
xor edi, edi
test rbp, rbp
jle 0x140027edb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dd70
mov rbx, rax
test rax, rax
jne 0x140027e68
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027ed1
mov edx, 0x8000
mov ecx, r14d
call fcn.140015928
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c460
cmp eax, 0xffffffff
je 0x140027eb1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027e78
mov edx, r15d
mov ecx, r14d
call fcn.140015928
jmp 0x140027ed1
cmp byte [rsi + 0x38], dil
je 0x140027ec8
cmp dword [rsi + 0x34], 5
jne 0x140027ec8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027ed1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019e48
jmp 0x140027f44
jns 0x140027f44
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b784
cmp rax, 0xffffffffffffffff
jne 0x140027efc
cmp byte [rsi + 0x30], dil
je 0x140027f44
mov edi, dword [rsi + 0x2c]
jmp 0x140027f44
mov ecx, r14d
call fcn.140016f28
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027f44
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027f44
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027f3d
mov eax, dword [rsi + 0x2c]
jmp 0x140027f42
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b784
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140004000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x38
and rsp, 0xfffffffffffffff0
movabs rcx, 0x140004062
movabs rax, sym.imp.KERNEL32.dll_LoadLibraryA
call qword [rax]
movabs rdx, 0x14000406b
mov rcx, rax
movabs rax, sym.imp.KERNEL32.dll_GetProcAddress
call qword [rax]
xor ecx, ecx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov r9, rcx
movabs r8, 0x140004078
mov rdx, rcx
call rax
leave
jmp loc.140001000
Function at 0x14004a47c
Capabilities:
Terminate process

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, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14009b408], rbx
je 0x14004a4e3
cmp rax, rbx
jne 0x14004a4d6
mov ebx, 1
mov esi, ebx
jmp 0x14004a4e8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14004a4bb
mov ebx, 1
mov eax, dword [0x14009b410]
cmp eax, ebx
jne 0x14004a500
mov edi, AtlInternalQueryInterface
mov ecx, edi
call fcn.14012e000
jmp 0x14004a56c
mov eax, dword [0x14009b410]
test eax, eax
jne 0x14004a561
mov dword [0x14009b410], ebx
lea r15, [0x140051d58]
lea rdi, [0x140051d40]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14004a553
test eax, eax
jne 0x14004a557
cmp qword [rdi], r14
je 0x14004a548
mov rax, qword [rdi]
mov rcx, qword [0x140051cb8]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14004a52a
test eax, eax
je 0x14004a567
mov eax, 0xff
jmp 0x14004a6c2
mov dword [0x14009a724], ebx
mov edi, AtlInternalQueryInterface
mov eax, dword [0x14009b410]
cmp eax, ebx
jne 0x14004a593
lea rdx, [0x140051d38]
lea rcx, [0x140051cc0]
call sub.msvcrt.dll__initterm
mov dword [0x14009b410], 2
test esi, esi
jne 0x14004a5a1
mov rax, r14
xchg qword [0x14009b408], rax
cmp qword [0x14009b428], r14
je 0x14004a5d4
lea rcx, [0x14009b428]
call fcn.14004ac30
test eax, eax
je 0x14004a5d4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14009b428]
mov r9, qword [0x140051cb8]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14004a5ed
mov eax, 0xff
jmp 0x14004a6c2
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14004a673
test ax, ax
je 0x14004a608
test edx, edx
jne 0x14004a673
sub ax, bx
cmp ax, di
ja 0x14004a61e
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14004a608
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140006308
mov dword [0x14009a720], eax
cmp dword [0x14009a740], r14d
jne 0x14004a65c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14009a724], r14d
jne 0x14004a671
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14009a720]
jmp 0x14004a6c2
cmp ax, 0x22
jne 0x14004a687
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14004a5f6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14004acb0
add rsp, 0x28
jmp 0x14004a47c
Function at 0x1400010ac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
lea rdx, [0x140157eda]
call fcn.14000278a
lea rdx, str.EBWebViewx64EmbeddedBrowserWebView.dll
mov rcx, rsi
call fcn.14000278a
mov rcx, rsi
call fcn.14000286c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x1400011b8
Capabilities:
Print debug messages

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x140182c48]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov edx, 0x104
mov rcx, rsi
call fcn.14000261e
mov rcx, rsi
mov rdx, r14
call fcn.1400026a6
mov rcx, rsi
call fcn.14000286c
mov rbx, rax
mov rcx, rsi
call fcn.140002860
cmp rax, 3
jb 0x14000123c
movzx eax, word [rbx + 2]
cmp ax, 0x3a
jne 0x14000122c
cmp word [rbx + 4], 0x5c
jne 0x14000123c
movzx eax, word [rbx]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
jae 0x14000123c
jmp 0x1400012f9
cmp word [rbx], 0x5c
jne 0x14000123c
cmp ax, 0x5c
je 0x1400012f9
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x20]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [0x140157c40]
movaps xmmword [rbx], xmm0
mov rcx, rbx
call fcn.1400025b0
xor ecx, ecx
mov rdx, rbx
call fcn.1400010ec
test eax, eax
js 0x140001338
lea rbx, [rsp + 0x20]
mov rcx, rbx
call fcn.140002860
mov rdi, rax
mov rcx, rbx
call fcn.14000286c
mov rcx, rsi
mov rdx, rax
mov r8, rdi
call fcn.1400026d8
mov rcx, rbx
call fcn.14000286c
mov rcx, rax
mov dx, 0x5c
call fcn.14011c320
test rax, rax
je 0x140001349
mov rbx, rax
lea rdi, [rsp + 0x20]
mov rcx, rdi
call fcn.14000286c
sub rbx, rax
add rbx, 2
sar rbx, 1
mov rcx, rdi
call fcn.14000286c
mov rcx, rsi
mov rdx, rax
mov r8, rbx
call fcn.1400026d8
mov rcx, rsi
mov rdx, r14
call fcn.14000278a
mov rcx, rdi
call fcn.1400025c2
mov rcx, rsi
call fcn.1400010ac
xor ebx, ebx
test al, al
jne 0x140001358
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.14000286c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x140157f40]
call rdi
mov ebx, 0x80070002
jmp 0x140001358
mov ebx, eax
lea rcx, str.WebView2:_Failed_to_find_the_app_exe_path._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14000134e
mov ebx, 0x80004005
lea rcx, [rsp + 0x20]
call fcn.1400025c2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140119970
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret