joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002c9b
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x140002cbc
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp fcn.1400219a8

Function at 0x140005b59
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov ecx, 2
call qword [fcn.140021f80]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp fcn.1400219a8
push r13
push r12
sub rsp, 0x38
cmp qword [0x1400310f0], 0
jne 0x140005bb8
add rsp, 0x38
pop r12
pop r13
jmp 0x140005b59
lea r13, [rsp + 0x20]
mov rdx, rcx
mov rcx, r13
call fcn.140005ae5
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x1400310f0]
test r12, r12
je 0x140005beb
test byte [r12 + 7], 0x40
jne 0x140005beb
mov rcx, r12
call fcn.140003da2
lea rcx, [0x140023340]
call fcn.14001cb10
cmp byte [rax], 0
je 0x140005c25
mov byte [rax], 0
lea rcx, [0x140023240]
call fcn.14001cb10
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop r12
pop r13
jmp fcn.140004336
add rsp, 0x38
pop r12
pop r13
ret

Function at 0x140005b9c
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov ecx, 2
call qword [fcn.140021f80]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp fcn.1400219a8
push r13
push r12
sub rsp, 0x38
cmp qword [0x1400310f0], 0
jne 0x140005bb8
add rsp, 0x38
pop r12
pop r13
jmp 0x140005b59
lea r13, [rsp + 0x20]
mov rdx, rcx
mov rcx, r13
call fcn.140005ae5
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x1400310f0]
test r12, r12
je 0x140005beb
test byte [r12 + 7], 0x40
jne 0x140005beb
mov rcx, r12
call fcn.140003da2
lea rcx, [0x140023340]
call fcn.14001cb10
cmp byte [rax], 0
je 0x140005c25
mov byte [rax], 0
lea rcx, [0x140023240]
call fcn.14001cb10
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop r12
pop r13
jmp fcn.140004336
add rsp, 0x38
pop r12
pop r13
ret
Function at 0x14000628d
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
xor r12d, r12d
lea rbp, [0x140023340]
mov rsi, rcx
mov rbx, rdx
lea rdi, [rsp + 0x20]
lea rcx, [0x1400310c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp r12, rbx
jl 0x140006311
mov rbx, qword [fcn.140021f80]
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x14002437b]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbx
mov rcx, rax
call fcn.1400219a8
lea rcx, [0x1400310c0]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r12, r12
jns 0x14000632e
lea rdx, [rbx - 1]
mov rcx, r12
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.1400055b3
mov r13, r12
mov ecx, 1
call qword [fcn.140021f80]
shl r13, 4
xor r8d, r8d
mov rdx, rdi
add r13, rsi
mov rcx, rax
movups xmm0, xmmword [r13]
movups xmmword [rsp + 0x20], xmm0
call fcn.14000616b
mov rcx, rbp
call fcn.14001cb10
cmp byte [rax], 0
jne 0x140006383
add r12, 1
jno 0x1400062bb
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.140003eba
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x14001bbb0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140021f80
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140021f80
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x14001bc20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x140031bb4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x14001bdd0
mov rax, qword [0x140031bb8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14001bc6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14001bcf7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x14001bc50
mov rcx, r12
call fcn.14001c6d0
mov rbp, rax
test rax, rax
je 0x14001be2d
mov rax, qword [0x140031bb8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.14001c800
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140031bb8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001be12
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001bcf0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14001bd80
add dword [0x140031bb4], 1
cmp ebx, 8
jae 0x14001bd28
test bl, 4
jne 0x14001bde0
test ebx, ebx
je 0x14001bd19
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x14001be00
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x14001bd19
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14001bd5a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x140031bb8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001bcf0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14001bbb0
xor edi, edi
jmp 0x14001bc77
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x14001bd19
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x14001bd19
mov rax, qword [0x140031bb8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.14001bbb0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14001bbb0
nop
nop dword [rax]
Function at 0x14001c340
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140031c20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140031c00]
test rbx, rbx
je 0x14001c394
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14001c38b
test r12, r12
je 0x14001c38b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14001c370
lea rcx, [0x140031c20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14001c6d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14002b940]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x14001c749
mov rcx, r10
call fcn.14001c5a0
test eax, eax
je 0x14001c749
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x14001c746
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14001c73d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x14001c749
add r8, 0x28
cmp r8, r9
jne 0x14001c728
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x14001cab0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor ecx, ecx
xor r9d, r9d
mov r8d, 0xffff
mov dword [0x140031ca0], 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x140031ca8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x14001cb00
lea rdx, [0x14001c9c0]
mov dword [0x140031c98], eax
call fcn.1400221c0
test eax, eax
jne 0x14001cb08
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001caf7
call sub.msvcrt.dll_abort
nop
nop
Function at 0x14001cb10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r13, qword [0x14002b8b0]
mov r11d, dword [r13]
mov r12, rcx
test r11d, r11d
jne 0x14001cb50
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14001cbb8
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x14001cbd0
mov r13d, dword [0x140031c98]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rdi
mov r14d, eax
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r14d
mov r13, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r13, r13
je 0x14001cc48
mov rbx, qword [r13]
cmp rbx, rsi
jb 0x14001cc90
sub rsi, 1
mov rax, qword [r13 + rsi*8 + 8]
test rax, rax
jne 0x14001cb39
mov rcx, r12
call fcn.14001ca10
mov qword [r13 + rsi*8 + 8], rax
jmp 0x14001cb39
call fcn.14001ca10
mov qword [r12 + 0x10], rax
jmp 0x14001cb39
mov r10d, dword [r13]
test r10d, r10d
je 0x14001ccf2
mov r9d, dword [0x1400236b0]
test r9d, r9d
je 0x14001cd20
lock add dword [0x140031ca0], 1
jne 0x14001cd54
mov rsi, qword [r12 + 0x10]
test rsi, rsi
je 0x14001cd00
mov eax, dword [r13]
test eax, eax
je 0x14001cb59
mov eax, 0xffffffff
lock xadd dword [0x140031ca0], eax
sub eax, 1
js 0x14001cb59
mov rcx, qword [0x140031ca8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x14001cb59
lea rcx, [rsi + 0x21]
mov edx, 8
lea rbx, [rsi + 0x20]
call sub.msvcrt.dll_calloc
mov r13, rax
test rax, rax
je 0x14001cd7b
mov qword [rax], rbx
mov ecx, dword [0x140031c98]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14001cb97
call rdi
jmp 0x14001cb97
lea r14, [rbx + rbx]
lea rax, [rsi + 0x20]
mov rcx, r13
cmp rsi, r14
cmova r14, rax
lea rdx, [r14*8 + 8]
call sub.msvcrt.dll_realloc
mov r13, rax
test rax, rax
je 0x14001cd7b
mov qword [rax], r14
sub r14, rbx
lea rcx, [rax + rbx*8 + 8]
xor edx, edx
lea r8, [r14*8]
call sub.msvcrt.dll_memset
jmp 0x14001cc69
call fcn.14001cab0
mov dword [0x1400236b0], 1
mov edx, dword [r13]
test edx, edx
jne 0x14001cbed
mov rsi, qword [r12 + 0x10]
test rsi, rsi
jne 0x14001cb59
mov rax, qword [0x140031c90]
lea rsi, [rax + 1]
mov qword [0x140031c90], rsi
mov qword [r12 + 0x10], rsi
jmp 0x14001cc09
lock add dword [0x1400236b4], 1
je 0x14001ccd7
mov r8d, dword [0x1400236b0]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x1400236b0]
test r8d, r8d
jne 0x14001cce6
nop dword [rax]
xor ecx, ecx
call rsi
mov ecx, dword [rbx]
test ecx, ecx
je 0x14001cd48
jmp 0x14001cce6
mov rcx, qword [0x140031ca8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14001cbfb
lock sub dword [0x140031ca0], 1
jmp 0x14001cbfb
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]
nop dword [rax]
cmp qword [rcx], rdx
jae 0x14001cda0
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14001cdaa
mov qword [rcx + 8], r8
test r9, r9
je 0x14001cdb4
cmp qword [rcx], rdx
je 0x14001cdb8
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x180001240
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x658
mov rax, qword [0x1800341c8]
xor rax, rsp
mov qword [rsp + 0x640], rax
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str._version.dll
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x180036af0], rax
mov rcx, rax
test rax, rax
jne 0x1800012d3
lea r8, [rsp + 0x20]
lea rdx, [0x18002d480]
lea rcx, [rsp + 0x230]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r9d, 0x10
lea r8, [0x18002d4a8]
lea rdx, [rsp + 0x230]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [0x180036af0]
xor eax, eax
test rcx, rcx
setne al
mov rcx, qword [rsp + 0x640]
xor rcx, rsp
call fcn.180008cd0
add rsp, 0x658
ret

Function at 0x180001300
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x180036af0]
lea rdx, [0x18002d4b8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180036af0]
lea rdx, [0x18002d4d0]
mov qword [0x180036b68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180036af0]
lea rdx, [0x18002d4f0]
mov qword [0x180036b60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180036af0]
lea rdx, [0x18002d508]
mov qword [0x180036b58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180036af0]
lea rdx, [0x18002d520]
mov qword [0x180036b50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180036af0]
lea rdx, [0x18002d538]
mov qword [0x180036b48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180036af0]
lea rdx, [0x18002d558]
mov qword [0x180036b40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180036af0]
lea rdx, [0x18002d578]
mov qword [0x180036b38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180036af0]
lea rdx, [0x18002d590]
mov qword [0x180036b30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180036af0]
lea rdx, [0x18002d5a8]
mov qword [0x180036b28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180036af0]
lea rdx, [0x18002d5b8]
mov qword [0x180036b20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180036af0]
lea rdx, [0x18002d5c8]
mov qword [0x180036b18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180036af0]
lea rdx, [0x18002d5d8]
mov qword [0x180036b10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180036af0]
lea rdx, [0x18002d5e8]
mov qword [0x180036b08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x180036af0]
lea rdx, [0x18002d5f8]
mov qword [0x180036b00], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180036af8], rax
mov eax, 1
add rsp, 0x28
ret
Function at 0x1800092ec
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x18000937d
movsxd rax, dword [0x18000003c]
lea rdx, [0x180000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x18000937d
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000937d
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x180009361
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x18000935b
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x180009363
add rdx, 0x28
jmp 0x180009340
xor edx, edx
test rdx, rdx
jne 0x18000936c
xor al, al
jmp 0x180009383
test dword [rdx + 0x24], 0x80000000
je 0x180009379
xor al, al
jmp 0x180009383
mov al, 1
jmp 0x180009383
xor al, al
jmp 0x180009383
add rsp, 0x18
ret
Function at 0x1400010ab
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
lea rdx, [0x14012e4ea]
call fcn.14000246e
lea rdx, str.EBWebViewx64EmbeddedBrowserWebView.dll
mov rcx, rsi
call fcn.14000246e
mov rcx, rsi
call fcn.14002aa60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x140001f18
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x260
mov r15, r9
mov r14, r8
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14016a040]
xor rax, rsp
mov qword [rsp + 0x258], rax
lea rdi, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14012a960
mov dword [rsp + 0x3c], 0x104
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
movzx eax, bl
mov rcx, 0xffffffff80000002
sub rcx, rax
mov qword [rsp + 0x20], rdx
xor ebx, ebx
mov rdx, rsi
xor r8d, r8d
mov r9d, 0x20219
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140001fbd
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.1400f44c0
mov eax, ebx
add rsp, 0x260
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea rdx, str.EBWebView
xor ebx, ebx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x140001f9c
cmp dword [rsp + 0x3c], 3
jb 0x140001f9c
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.14000238a
mov rcx, r15
call fcn.14002aa60
mov rcx, rax
mov dx, 0x5c
call fcn.1400f68d8
test rax, rax
je 0x14000206a
mov rdi, rax
add rdi, 2
movaps xmm0, xmmword [0x14012e250]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.140001e23
test al, al
je 0x14000206a
test r14, r14
je 0x140002056
mov rcx, r14
mov rdx, rdi
call fcn.14000238a
lea rcx, [rsp + 0x40]
mov rdx, r15
call fcn.140002071
mov ebx, eax
jmp 0x140001f9c
xor ebx, ebx
jmp 0x140001f9c

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
xor eax, eax
lea rdx, [0x14012e7b0]
mov esi, dword [rax + rdx]
cmp dword [rcx + rax], esi
ja 0x140002097
jb 0x1400020a5
add rax, 4
cmp rax, 0x10
jne 0x140002083
mov rcx, rdi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400010ab
lea rcx, str.Loader_skipped_an_incompatible_version:
mov rsi, qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call rsi
mov rcx, rdi
call fcn.14002aa60
mov rcx, rax
call rsi
lea rcx, [0x14012e812]
call rsi
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140002b92
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r14, r9
mov r15, r8
mov rbx, rdx
mov rdi, rcx
mov rsi, qword [rsp + 0xa0]
mov rax, qword [0x14016a040]
xor rax, rsp
mov qword [rsp + 0x48], rax
test rsi, rsi
je 0x140002c35
lea rax, [rsp + 0x44]
mov dword [rax], 0
lea rcx, [rsp + 0x40]
mov dword [rcx], 4
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov rcx, rdi
xor edx, edx
mov r8, rbx
mov r9d, 0x10
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140002c5e
mov rcx, rdi
mov rdx, rbx
mov r8, r15
mov r9, r14
call 0x140002c91
test al, al
je 0x140002c70
mov rcx, qword [r15]
test rcx, rcx
je 0x140002c8d
xor edx, edx
mov r8d, 0xa
call fcn.140107130
cmp eax, 1
jmp 0x140002c63
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400f44c0
mov rcx, rdi
mov rdx, rbx
mov r8, r15
mov r9, r14
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp 0x140002c91
cmp dword [rsp + 0x44], 1
sete al
movzx eax, al
mov dword [rsi], eax
mov sil, 1
jmp 0x140002c72
xor esi, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400f44c0
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor eax, eax
jmp 0x140002c66
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x250
mov r15, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14016a040]
xor rax, rsp
mov qword [rsp + 0x248], rax
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
xor edx, edx
call fcn.14012a960
lea rax, [rsp + 0x3c]
mov dword [rax], 0x104
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
mov rcx, rsi
xor edx, edx
mov r8, rbx
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
test eax, eax
jne 0x140002d22
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.14000238a
mov rcx, r15
call fcn.14002aa60
mov qword [r14], rax
test ebx, ebx
sete bl
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400f44c0
mov eax, ebx
add rsp, 0x250
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140002c91
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r14, r9
mov r15, r8
mov rbx, rdx
mov rdi, rcx
mov rsi, qword [rsp + 0xa0]
mov rax, qword [0x14016a040]
xor rax, rsp
mov qword [rsp + 0x48], rax
test rsi, rsi
je 0x140002c35
lea rax, [rsp + 0x44]
mov dword [rax], 0
lea rcx, [rsp + 0x40]
mov dword [rcx], 4
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov rcx, rdi
xor edx, edx
mov r8, rbx
mov r9d, 0x10
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140002c5e
mov rcx, rdi
mov rdx, rbx
mov r8, r15
mov r9, r14
call 0x140002c91
test al, al
je 0x140002c70
mov rcx, qword [r15]
test rcx, rcx
je 0x140002c8d
xor edx, edx
mov r8d, 0xa
call fcn.140107130
cmp eax, 1
jmp 0x140002c63
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400f44c0
mov rcx, rdi
mov rdx, rbx
mov r8, r15
mov r9, r14
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp 0x140002c91
cmp dword [rsp + 0x44], 1
sete al
movzx eax, al
mov dword [rsi], eax
mov sil, 1
jmp 0x140002c72
xor esi, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400f44c0
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor eax, eax
jmp 0x140002c66
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x250
mov r15, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14016a040]
xor rax, rsp
mov qword [rsp + 0x248], rax
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
xor edx, edx
call fcn.14012a960
lea rax, [rsp + 0x3c]
mov dword [rax], 0x104
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
mov rcx, rsi
xor edx, edx
mov r8, rbx
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
test eax, eax
jne 0x140002d22
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.14000238a
mov rcx, r15
call fcn.14002aa60
mov qword [r14], rax
test ebx, ebx
sete bl
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400f44c0
mov eax, ebx
add rsp, 0x250
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140002e3c
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 0x140002e90
mov ebx, eax
mov edx, eax
mov rcx, rsi
call fcn.140002302
test al, al
je 0x140002e90
mov rcx, rsi
call fcn.14002aa60
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.14000244c
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret