joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005868
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x140060010]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x20]
mov rbx, rcx
mov dword [rsp + 0x20], 0x100
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
mov rax, rbx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140037640
add rsp, 0x240
pop rbx
ret

Function at 0x1400058d0
Capabilities:
Get session information
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140060010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
mov qword [rbp - 0x38], rcx
and dword [rbp - 0x50], 0
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_void____ptr64]
mov dword [rbp - 0x50], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rbp - 0x4c]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
and qword [rbp - 0x48], 0
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x48]
mov r8d, 5
mov edx, dword [rbp - 0x4c]
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x14000596d
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CStringT_wchar_t_::constructor_wchar_t_const____ptr64____ptr64]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.Cmmlib.dll_public:_class_Cmm::CStringT_wchar_t_____ptr64___cdecl_Cmm::CStringT_wchar_t_::operator_class_Cmm::CStringT_wchar_t_____ptr64____ptr64]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Cmmlib.dll_public_virtual:_void___cdecl_Cmm::CStringT_wchar_t_::destructor_void____ptr64]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140037640
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rbp
ret
Function at 0x140009ca4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x10
lea r10, [0x140069ea0]
xor ebx, ebx
mov r8, r10
mov edx, ebx
mov r9d, 8
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
mov edx, ecx
xor edx, eax
sub r9, 1
jne 0x140009cbe
mov dword [r8], edx
inc ebx
add r8, 4
cmp ebx, 0x100
jb 0x140009cb6
lea rbx, [0x14006a2a0]
mov r8d, 0x700
mov edx, dword [rbx - 0x400]
movzx ecx, dl
shr edx, 8
xor edx, dword [r10 + rcx*4]
mov dword [rbx], edx
lea rbx, [rbx + 4]
sub r8, 1
jne 0x140009cf7
xor ecx, ecx
lea rax, [0x140009df0]
mov qword [0x140069e88], rax
mov r11d, 0xf00
xor eax, eax
cpuid
mov r8d, ebx
mov r9d, ecx
mov r10d, edx
xor ecx, ecx
mov eax, 1
cpuid
mov ebx, eax
mov ecx, eax
shr ebx, 8
and eax, 0xf0
mov edx, ebx
and ecx, r11d
and edx, 0xff000
and ebx, r11d
or ebx, eax
or edx, ecx
shr edx, 8
lea rax, [0x14003eea8]
shr ebx, 4
xor ecx, ecx
cmp dword [rax - 8], r8d
jne 0x140009d7d
cmp dword [rax - 4], r10d
jne 0x140009d7d
cmp dword [rax], r9d
je 0x140009d8a
inc ecx
add rax, 0xc
cmp ecx, 3
jae 0x140009de1
jmp 0x140009d6c
test ecx, ecx
je 0x140009db7
sub ecx, 1
je 0x140009da4
cmp ecx, 1
jne 0x140009de1
cmp edx, 6
jb 0x140009de1
jne 0x140009dd3
cmp ebx, 0xf
jmp 0x140009dd1
cmp edx, 5
jb 0x140009de1
jne 0x140009dd3
cmp ebx, 6
jb 0x140009de1
cmp ebx, 0xa
je 0x140009de1
jmp 0x140009dd3
cmp edx, 6
jb 0x140009de1
jne 0x140009dd3
cmp ebx, 0x36
ja 0x140009dd3
movabs rcx, 0x6000c010000000
bt rcx, rbx
jb 0x140009de1
lea rax, [0x140009ec0]
mov qword [0x140069e88], rax
add rsp, 0x10
pop rbx
ret

Function at 0x14000afa4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, qword [r8]
mov rdi, r8
mov rsi, rdx
mov r14, rcx
test rbx, rbx
je 0x14000b012
and qword [r8], 0
mov r15d, 0x400000
and dword [rsp + 0x60], 0
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
mov r8d, ebx
cmp rbx, r15
mov rdx, rsi
cmova r8d, r15d
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x60]
add qword [rdi], rdx
add rsi, rdx
sub rbx, rdx
test eax, eax
je 0x14000b028
test edx, edx
je 0x14000b012
test rbx, rbx
jne 0x14000afd2
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000b014
Function at 0x14000b030
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, qword [r8]
mov rdi, r8
mov rsi, rdx
mov r14, rcx
test rbx, rbx
je 0x14000b09e
and qword [r8], 0
mov r15d, 0x400000
and dword [rsp + 0x60], 0
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
mov r8d, ebx
cmp rbx, r15
mov rdx, rsi
cmova r8d, r15d
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rsp + 0x60]
add qword [rdi], rdx
add rsi, rdx
sub rbx, rdx
test eax, eax
je 0x14000b0b4
test edx, edx
je 0x14000b09e
test rbx, rbx
jne 0x14000b05e
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000b0a0
Function at 0x14000e284
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x250
mov rax, qword [0x140060010]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r15, r8
xor r13d, r13d
mov qword [r8], r13
mov r9d, 0x104
lea rdx, [rsp + 0x30]
lea rax, [rsp + 0x30]
sub rcx, rax
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x14000e2f9
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14000e2f9
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x14000e2d7
lea rax, [rdx - 2]
test r9, r9
cmovne rax, rdx
mov word [rax], r13w
lea r8, [0x140043d70]
lea rcx, [rsp + 0x30]
call fcn.14000da58
lea r8, [rsp + 0x30]
xor edx, edx
mov ebx, 0x1f0003
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
setne r12b
test rax, rax
jne 0x14000e363
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000e436
mov rcx, qword [rbp + 0x178]
mov edx, 0xc9
call fcn.14000e09c
mov esi, eax
jmp 0x14000e439
mov dword [rsp + 0x24], r13d
mov dword [rsp + 0x20], r13d
lea rdx, [rsp + 0x24]
mov rcx, rdi
call fcn.14000e144
mov esi, eax
test eax, eax
jns 0x14000e399
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xcf
call fcn.14000e07c
jmp 0x14000e439
lea r8, [0x140043d78]
lea rcx, [rsp + 0x30]
call fcn.14000da58
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
setne r14b
test rax, rax
jne 0x14000e3dd
mov rcx, qword [rbp + 0x178]
mov edx, 0xd5
call fcn.14000e09c
mov esi, eax
jmp 0x14000e404
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000e144
mov esi, eax
test eax, eax
jns 0x14000e414
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xd7
call fcn.14000e07c
test r14b, r14b
je 0x14000e439
mov rcx, rbx
call fcn.14000e0e4
nop
jmp 0x14000e439
test r14b, r14b
je 0x14000e422
mov rcx, rbx
call fcn.14000e0e4
nop
movsxd rcx, dword [rsp + 0x20]
shl rcx, 0x1f
movsxd rax, dword [rsp + 0x24]
or rax, rcx
mov qword [r15], rax
mov esi, r13d
test r12b, r12b
je 0x14000e447
mov rcx, rdi
call fcn.14000e0e4
nop
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140037640
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400115a8
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x13c0]
mov eax, 0x14c0
call fcn.140038b40
sub rsp, rax
mov r14d, edx
mov r15, rcx
mov rsi, qword [rbp + 0x1418]
xor r12d, r12d
mov word [rbp + 0x3c0], r12w
mov byte [rbp - 0x40], r12b
mov rbx, qword [rbp + 0x1420]
mov ecx, dword [rbx]
mov dword [rsp + 0x28], ecx
mov eax, dword [rbx + 4]
mov dword [rsp + 0x2c], eax
call fcn.140002e90
mov edi, eax
mov dword [rsp + 0x20], 3
mov ecx, r12d
lea eax, [r12 + 8]
cmp byte [rbx + 8], r12b
cmovne ecx, eax
mov dword [rsp + 0x24], ecx
lea ecx, [rax - 7]
lock xadd dword [0x1400697d8], ecx
inc ecx
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x38], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
lea rax, str.c:jenkinsworkspaceClientClientWindows_releasedependenciesWebview2includeMicrosoft.Windows.ImplementationLibrary.1.0.201120.3includewil_resource.h
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], r14d
mov dword [rsp + 0x64], edi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], r15
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x68], xmm1
movups xmmword [rsp + 0x78], xmm1
mov rax, qword [0x140069760]
test rax, rax
je 0x14001169a
call qword [case.0x140018f01.0]
mov qword [rbp - 0x60], rax
jmp 0x14001169e
mov qword [rbp - 0x60], r12
mov rax, qword [0x140069718]
test rax, rax
je 0x1400116bf
mov r8d, 0x400
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call qword [case.0x140018f01.0]
mov rax, qword [0x140069708]
test rax, rax
je 0x1400116d6
lea rcx, [rsp + 0x20]
call qword [case.0x140018f01.0]
mov rax, qword [0x140069738]
test rax, rax
je 0x1400116ed
lea rcx, [rsp + 0x20]
call qword [case.0x140018f01.0]
cmp dword [rsp + 0x28], r12d
jl 0x140011706
mov ecx, 0x8000ffff
mov dword [rsp + 0x28], ecx
call fcn.14000307c
mov dword [rsp + 0x2c], eax
cmp byte [0x1400696e0], r12b
jne 0x14001175f
mov rax, qword [0x1400696d8]
test rax, rax
je 0x140011726
call qword [case.0x140018f01.0]
movzx ecx, al
jmp 0x140011734
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, r12d
test eax, eax
setne cl
test ecx, ecx
jne 0x14001175f
mov rax, qword [0x1400696e8]
test rax, rax
je 0x1400117b9
cmp byte [0x1400696f1], r12b
jne 0x1400117b9
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [case.0x140018f01.0]
jmp 0x1400117b9
mov ebx, 0x800
mov rax, qword [0x1400696e8]
test rax, rax
je 0x14001178e
cmp byte [0x1400696f1], r12b
jne 0x14001178e
mov r8d, ebx
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x20]
call qword [case.0x140018f01.0]
cmp word [rbp + 0x3c0], r12w
jne 0x1400117ac
lea r8, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rbp + 0x3c0]
call fcn.140002ae4
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x1400696f0], r12b
je 0x1400117d5
mov rax, qword [0x140069728]
test rax, rax
je 0x1400117d5
call qword [case.0x140018f01.0]
nop
lea rcx, [rsp + 0x20]
call fcn.14000def0
int3
Function at 0x1400117e0
Capabilities:
Print debug messages

Disassembly:
jmp 0x140011f48
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x13d0]
mov eax, 0x14d0
call fcn.140038b40
sub rsp, rax
mov rax, qword [0x140060010]
xor rax, rsp
mov qword [rbp + 0x13c0], rax
mov esi, edx
mov r14, rcx
mov rdi, qword [rbp + 0x1428]
xor r15d, r15d
mov word [rbp + 0x3c0], r15w
mov byte [rbp - 0x40], r15b
mov rdx, qword [rbp + 0x1430]
mov ecx, dword [rdx]
mov dword [rsp + 0x28], ecx
mov eax, dword [rdx + 4]
mov dword [rsp + 0x2c], eax
call fcn.14000db10
mov ebx, eax
lea r8d, [r15 + 1]
mov dword [rsp + 0x20], r8d
mov ecx, r15d
lea eax, [r15 + 8]
cmp byte [rdx + 8], r15b
cmovne ecx, eax
mov dword [rsp + 0x24], ecx
mov ecx, r8d
lock xadd dword [0x1400697d8], ecx
add ecx, r8d
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x38], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
lea rax, [0x140043cc4]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], r14
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x68], xmm1
movups xmmword [rsp + 0x78], xmm1
mov rax, qword [0x140069760]
test rax, rax
je 0x140012044
call qword [case.0x140018f01.0]
mov qword [rbp - 0x60], rax
jmp 0x140012048
mov qword [rbp - 0x60], r15
mov rax, qword [0x140069718]
test rax, rax
je 0x140012069
mov r8d, 0x400
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call qword [case.0x140018f01.0]
mov rax, qword [0x140069708]
test rax, rax
je 0x140012080
lea rcx, [rsp + 0x20]
call qword [case.0x140018f01.0]
mov rax, qword [0x140069738]
test rax, rax
je 0x140012097
lea rcx, [rsp + 0x20]
call qword [case.0x140018f01.0]
cmp dword [rsp + 0x28], r15d
jge 0x140012197
cmp byte [0x1400696e0], r15b
jne 0x1400120fb
mov rax, qword [0x1400696d8]
test rax, rax
je 0x1400120c2
call qword [case.0x140018f01.0]
movzx ecx, al
jmp 0x1400120d0
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, r15d
test eax, eax
setne cl
test ecx, ecx
jne 0x1400120fb
mov rax, qword [0x1400696e8]
test rax, rax
je 0x140012155
cmp byte [0x1400696f1], r15b
jne 0x140012155
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [case.0x140018f01.0]
jmp 0x140012155
mov ebx, 0x800
mov rax, qword [0x1400696e8]
test rax, rax
je 0x14001212a
cmp byte [0x1400696f1], r15b
jne 0x14001212a
mov r8d, ebx
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x20]
call qword [case.0x140018f01.0]
cmp word [rbp + 0x3c0], r15w
jne 0x140012148
lea r8, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rbp + 0x3c0]
call fcn.140002ae4
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x1400696f0], r15b
je 0x140012171
mov rax, qword [0x140069728]
test rax, rax
je 0x140012171
call qword [case.0x140018f01.0]
nop
mov rcx, qword [rbp + 0x13c0]
xor rcx, rsp
call fcn.140037640
mov rbx, qword [rsp + 0x1510]
add rsp, 0x14d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14000e0dc
nop
int3
Function at 0x140011f48
Capabilities:
Print debug messages

Disassembly:
jmp 0x140011f48
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x13d0]
mov eax, 0x14d0
call fcn.140038b40
sub rsp, rax
mov rax, qword [0x140060010]
xor rax, rsp
mov qword [rbp + 0x13c0], rax
mov esi, edx
mov r14, rcx
mov rdi, qword [rbp + 0x1428]
xor r15d, r15d
mov word [rbp + 0x3c0], r15w
mov byte [rbp - 0x40], r15b
mov rdx, qword [rbp + 0x1430]
mov ecx, dword [rdx]
mov dword [rsp + 0x28], ecx
mov eax, dword [rdx + 4]
mov dword [rsp + 0x2c], eax
call fcn.14000db10
mov ebx, eax
lea r8d, [r15 + 1]
mov dword [rsp + 0x20], r8d
mov ecx, r15d
lea eax, [r15 + 8]
cmp byte [rdx + 8], r15b
cmovne ecx, eax
mov dword [rsp + 0x24], ecx
mov ecx, r8d
lock xadd dword [0x1400697d8], ecx
add ecx, r8d
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x38], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x40], eax
lea rax, [0x140043cc4]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], r14
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
xorps xmm1, xmm1
movups xmmword [rsp + 0x68], xmm1
movups xmmword [rsp + 0x78], xmm1
mov rax, qword [0x140069760]
test rax, rax
je 0x140012044
call qword [case.0x140018f01.0]
mov qword [rbp - 0x60], rax
jmp 0x140012048
mov qword [rbp - 0x60], r15
mov rax, qword [0x140069718]
test rax, rax
je 0x140012069
mov r8d, 0x400
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x20]
call qword [case.0x140018f01.0]
mov rax, qword [0x140069708]
test rax, rax
je 0x140012080
lea rcx, [rsp + 0x20]
call qword [case.0x140018f01.0]
mov rax, qword [0x140069738]
test rax, rax
je 0x140012097
lea rcx, [rsp + 0x20]
call qword [case.0x140018f01.0]
cmp dword [rsp + 0x28], r15d
jge 0x140012197
cmp byte [0x1400696e0], r15b
jne 0x1400120fb
mov rax, qword [0x1400696d8]
test rax, rax
je 0x1400120c2
call qword [case.0x140018f01.0]
movzx ecx, al
jmp 0x1400120d0
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, r15d
test eax, eax
setne cl
test ecx, ecx
jne 0x1400120fb
mov rax, qword [0x1400696e8]
test rax, rax
je 0x140012155
cmp byte [0x1400696f1], r15b
jne 0x140012155
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [case.0x140018f01.0]
jmp 0x140012155
mov ebx, 0x800
mov rax, qword [0x1400696e8]
test rax, rax
je 0x14001212a
cmp byte [0x1400696f1], r15b
jne 0x14001212a
mov r8d, ebx
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x20]
call qword [case.0x140018f01.0]
cmp word [rbp + 0x3c0], r15w
jne 0x140012148
lea r8, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rbp + 0x3c0]
call fcn.140002ae4
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x1400696f0], r15b
je 0x140012171
mov rax, qword [0x140069728]
test rax, rax
je 0x140012171
call qword [case.0x140018f01.0]
nop
mov rcx, qword [rbp + 0x13c0]
xor rcx, rsp
call fcn.140037640
mov rbx, qword [rsp + 0x1510]
add rsp, 0x14d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14000e0dc
nop
int3
Function at 0x140018720
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x140060010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rcx
mov r15d, 1
xor r9d, r9d
mov edx, r15d
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r14, rax
xor ebx, ebx
test rax, rax
jne 0x140018778
or eax, 0xffffffff
jmp 0x14001880c
cmp dword [rsi + 0x50], ebx
jne 0x140018801
lea rcx, [rsi + 0x28]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rcx, rax
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x1388
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
mov r9d, 0xff
xor r8d, r8d
mov edx, 0x40000003
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400188eb
mov qword [rbp - 0x29], r14
lea rdx, [rbp - 0x41]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1400187f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x140018834
cmp eax, 0x3e5
je 0x140018856
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or ebx, 0xffffffff
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140037640
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x1400187f5
jmp 0x140018856
mov edx, 0x32
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14001885f
mov eax, dword [rsi + 0x50]
test eax, eax
je 0x140018844
jmp 0x1400188cb
mov eax, r15d
inc r15d
mov dword [rbp - 0x59], eax
mov qword [rbp - 0x51], rdi
mov qword [rbp - 0x49], rsi
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_877b29defbd036e8c711c8dc4028c7dd___void___.0
mov qword [rbp - 0x19], rax
movups xmm0, xmmword [rbp - 0x59]
movups xmmword [rbp - 0x11], xmm0
movsd xmm1, qword [rbp - 0x49]
movsd qword [rbp - 1], xmm1
lea rax, [rbp - 0x19]
mov qword [rbp + 0x1f], rax
lea r8, [rbp - 0x19]
xor edx, edx
mov rcx, rsi
call fcn.1400188fc
nop
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x1400188c4
mov rax, qword [rcx]
lea rdx, [rbp - 0x19]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x140018f01.0]
or rdi, 0xffffffffffffffff
mov eax, dword [rsi + 0x50]
test eax, eax
je 0x140018781
cmp rdi, 0xffffffffffffffff
je 0x140018801
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140018801
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140018770
Function at 0x140022700
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov ebx, r9d
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 8], 0
je 0x140022728
mov eax, 1
jmp 0x140022890
call fcn.140003c68
mov rcx, rax
call fcn.140003b50
test eax, eax
je 0x14002288e
mov dword [rsi + 0x54], ebx
mov dword [rsi + 0x50], 0x10000
lea rcx, [rsi + 0x28]
mov rdx, rdi
call qword [reloc.Cmmlib.dll___4__CStringT__W_Cmm__QEAAAEAV01_AEBV01__Z]
nop
lea rdx, [0x14003ec80]
mov edi, 0x18
mov ecx, edi
call fcn.14003769c
mov rbx, rax
test rax, rax
je 0x14002278b
and qword [rax + 0x10], 0
lea rax, vtable.Webview::EdgeBrowserHandler.0
mov qword [rbx], rax
and qword [rbx + 8], 0
and qword [rbx + 0x10], 0
jmp 0x14002278d
xor ebx, ebx
mov rcx, rdi
call fcn.140037660
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov edi, 1
mov dword [rax + 8], edi
mov dword [rax + 0xc], edi
lea rcx, vtable.std::_Ref_count_class_Webview::EdgeBrowserHandler_.0
mov qword [rax], rcx
mov qword [rax + 0x10], rbx
mov qword [rsi + 0x58], rbx
mov rbx, qword [rsi + 0x60]
mov qword [rsi + 0x60], rax
test rbx, rbx
je 0x140022801
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, edi
jne 0x140022801
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x140018f01.0]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, edi
jne 0x140022801
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x140018f01.0]
cmp qword [rsi + 0x58], 0
je 0x14002288e
call fcn.14002be48
mov rbx, rax
mov cl, byte [rax + 1]
test cl, cl
je 0x14002286e
xor ecx, ecx
xchg byte [rax + 1], cl
mov edx, edi
xchg byte [rax], dl
mov rcx, rdi
call fcn.140037660
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14002bf00]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14002287d
cmp dword [rbx + 0x10], 0
jne 0x140022876
movaps xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rbx + 8], xmm0
mov dword [rsi + 8], edi
mov al, dil
jmp 0x140022890
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
and dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
xor al, al
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400298c0
Capabilities:
Write file on windows

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 r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x1400298f1
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140029964
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140029908
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14002990a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14002995e
test ecx, ecx
jle 0x14002993e
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
add r14, rbp
test rbx, rbx
jle 0x14002995e
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14002995e
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret