joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001b86c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r8d, 1
mov dword [rdx], ecx
mov dword [rdx + 0x9c0], r8d
movsxd rcx, r8d
mov eax, dword [rdx + rcx*4 - 4]
shr eax, 0x1e
xor eax, dword [rdx + rcx*4 - 4]
imul eax, eax, 0x6c078965
add eax, r8d
mov dword [rdx + rcx*4], eax
mov r8d, dword [rdx + 0x9c0]
inc r8d
mov dword [rdx + 0x9c0], r8d
cmp r8d, 0x270
jl 0x18001b87b
ret

Function at 0x18001b8b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov r9d, dword [rcx + 0x9c0]
mov r8, rcx
cmp r9d, 0x270
jl 0x18001b976
xor r9d, r9d
lea rbx, [0x180027040]
mov r10d, r9d
mov r11d, 0x7fffffff
mov edx, 0xe3
mov ecx, dword [r8 + r10*4]
xor ecx, dword [r8 + r10*4 + 4]
and ecx, r11d
xor ecx, dword [r8 + r10*4]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [rbx + rax*4]
xor ecx, dword [r8 + r10*4 + 0x634]
mov dword [r8 + r10*4], ecx
inc r10
cmp r10, rdx
jl 0x18001b8e4
mov ecx, dword [r8 + rdx*4]
xor ecx, dword [r8 + rdx*4 + 4]
and ecx, r11d
xor ecx, dword [r8 + rdx*4]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [rbx + rax*4]
xor ecx, dword [r8 + rdx*4 - 0x38c]
mov dword [r8 + rdx*4], ecx
inc rdx
cmp rdx, 0x26f
jl 0x18001b912
mov eax, dword [r8 + 0x9bc]
mov edx, eax
xor edx, dword [r8]
and edx, r11d
xor edx, eax
mov eax, edx
shr edx, 1
and eax, 1
mov ecx, dword [rbx + rax*4]
xor ecx, dword [r8 + 0x630]
xor ecx, edx
mov dword [r8 + 0x9bc], ecx
mov dword [r8 + 0x9c0], r9d
mov rbx, qword [rsp + 8]
movsxd rax, r9d
mov ecx, dword [r8 + rax*4]
lea eax, [r9 + 1]
mov dword [r8 + 0x9c0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
Function at 0x18001e980
Capabilities:
Hash data with crc32

Disassembly:
mov r8d, ecx
lea r9, [0x180021cc0]
shr r8d, 8
movzx ecx, cl
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx edx, r8b
shr r8d, 8
xor r8d, dword [r9 + rdx*4]
mov eax, r8d
ret
Function at 0x14000c43c
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 [0x140014c60], rbx
je 0x14000c4a3
cmp rax, rbx
jne 0x14000c496
mov ebx, 1
mov esi, ebx
jmp 0x14000c4a8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000c47b
mov ebx, 1
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c4c0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000c52c
mov eax, dword [0x140014c68]
test eax, eax
jne 0x14000c521
mov dword [0x140014c68], ebx
lea r15, [0x14000eba0]
lea rdi, [0x14000eb88]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c513
test eax, eax
jne 0x14000c517
cmp qword [rdi], r14
je 0x14000c508
mov rax, qword [rdi]
mov rcx, qword [0x14000eb40]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c4ea
test eax, eax
je 0x14000c527
mov eax, 0xff
jmp 0x14000c682
mov dword [0x1400143e4], ebx
mov edi, 0x1f
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c553
lea rdx, [0x14000eb80]
lea rcx, [0x14000eb48]
call sub.msvcrt.dll__initterm
mov dword [0x140014c68], 2
test esi, esi
jne 0x14000c561
mov rax, r14
xchg qword [0x140014c60], rax
cmp qword [0x140014c80], r14
je 0x14000c594
lea rcx, [0x140014c80]
call fcn.14000ca70
test eax, eax
je 0x14000c594
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140014c80]
mov r9, qword [0x14000eb40]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c5ad
mov eax, 0xff
jmp 0x14000c682
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000c633
test ax, ax
je 0x14000c5c8
test edx, edx
jne 0x14000c633
sub ax, bx
cmp ax, di
ja 0x14000c5de
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000c5c8
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.140001878
mov dword [0x1400143e0], eax
cmp dword [0x140014400], r14d
jne 0x14000c61c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400143e4], r14d
jne 0x14000c631
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400143e0]
jmp 0x14000c682
cmp ax, 0x22
jne 0x14000c647
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 0x14000c5b6
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.14014e000
add rsp, 0x28
jmp 0x14000c43c
Function at 0x140002a40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.140004860
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004860
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002be0
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002afb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002b85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002ae0
mov rcx, rbx
call fcn.140003500
mov rdi, rax
test rax, rax
je 0x140002c02
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003640
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002be7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002b7e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002b90
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002b7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002a40
nop dword [rax]
xor esi, esi
jmp 0x140002b08
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002a40
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002a40
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003170
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x1400031cc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400031c3
test rsi, rsi
je 0x1400031c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400031a8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003500
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006ab0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003520
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003528
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003520
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000357d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003574
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003520
add rax, 0x28
cmp rax, r9
jne 0x140003560
xor eax, eax
ret

Function at 0x140003580
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ab0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000359f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400035a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000359f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003640
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ab0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000365f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003668
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002c70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.1400048a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400048a0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002ce0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002e10
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002d2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002db5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d10
mov rcx, rbx
call fcn.140003730
mov rdi, rax
test rax, rax
je 0x140002e32
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003870
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002dae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002dc0
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002dae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002c70
nop dword [rax]
xor esi, esi
jmp 0x140002d38
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002c70
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002c70
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400033a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x1400033fc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400033f3
test rsi, rsi
je 0x1400033f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400033d8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003730
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006ad0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003750
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003758
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003750
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400037ad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400037a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003750
add rax, 0x28
cmp rax, r9
jne 0x140003790
xor eax, eax
ret

Function at 0x1400037b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ad0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400037cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400037d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400037cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003870
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ad0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000388f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003898
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140012370
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x310]
sub rsp, 0x410
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov r14, rcx
lea rax, [rbp + 0x60]
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], 0x41
xor edi, edi
mov word [rbp + 0x60], di
lea r12, [0x1400a2bc8]
mov qword [rbp + 0x48], r12
lea r13, [0x1400a2b08]
mov qword [rbp + 0x40], r13
mov dword [rbp + 0xe8], edi
mov qword [rbp + 0xf0], rdi
mov qword [rsp + 0x20], rdi
mov r9d, 0xf003f
mov r8, qword [0x1400d2600]
lea rcx, [rbp + 0x40]
call fcn.140013564
test eax, eax
js 0x140044332
mov esi, edi
mov dword [rsp + 0x30], 0x100
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x100]
mov edx, esi
lea rcx, [rbp + 0x40]
call fcn.1400136a4
mov ebx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x103
je 0x1400124fe
test ebx, ebx
je 0x140044348
lea rax, [rbp - 0x60]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], 0x41
mov word [rbp - 0x60], di
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x80], r13
mov dword [rbp + 0x28], edi
mov qword [rbp + 0x30], rdi
mov qword [rsp + 0x20], rdi
mov r9d, 0xf003f
lea r8, [rbp + 0x100]
mov rdx, qword [rbp + 0xf0]
lea rcx, [rbp - 0x80]
call fcn.140013564
test eax, eax
js 0x140044353
lea rcx, [rsp + 0x40]
call fcn.14001a83c
nop
lea rdx, [0x1400d2520]
lea rcx, [rsp + 0x38]
call fcn.14001a960
nop
lea r8, [rsp + 0x38]
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.14001c650
mov rbx, qword [rsp + 0x38]
test eax, eax
js 0x1400124d9
lea r8, [rsp + 0x40]
mov rdx, rbx
mov rcx, r14
call fcn.14001b9f8
inc esi
lea rcx, [rbx - 0x18]
call fcn.1400182a0
nop
lea rcx, [rsp + 0x40]
call fcn.140016a00
nop
lea rcx, [rbp - 0x80]
call fcn.140014d5c
jmp 0x140012403
lea rcx, [rbp + 0x40]
call fcn.140014d5c
mov eax, edi
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.140036e80
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
nop
cmp eax, 2
je 0x1400124fe
test eax, eax
jg 0x14004437f
mov edi, eax
jmp 0x1400124fe
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jg 0x140044367
mov edi, eax
jmp 0x140044370
movzx edi, ax
or edi, 0x80070000
lea rcx, [rbp - 0x80]
call fcn.140014d5c
nop
jmp 0x1400124fe
movzx edi, ax
or edi, 0x80070000
jmp 0x1400124fe
Function at 0x140013748
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x350]
sub rsp, 0x450
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rbp + 0x340], rax
mov r14, rcx
lea rax, [rbp + 0xa0]
mov qword [rbp + 0x90], rax
mov qword [rbp + 0x98], 0x41
xor ebx, ebx
mov word [rbp + 0xa0], bx
lea r12, [0x1400a2bc8]
mov qword [rbp + 0x88], r12
lea r13, [0x1400a2b08]
mov qword [rbp + 0x80], r13
mov dword [rbp + 0x128], ebx
mov qword [rbp + 0x130], rbx
mov qword [rsp + 0x20], rbx
mov r9d, 0xf003f
mov r8, qword [r8]
lea rcx, [rbp + 0x80]
call fcn.140013564
test eax, eax
js 0x140044d14
mov edi, ebx
mov dword [rsp + 0x30], 0x100
lea r9, [rsp + 0x30]
lea r8, [rbp + 0x140]
mov edx, edi
lea rcx, [rbp + 0x80]
call fcn.1400136a4
mov esi, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x103
je 0x1400138ff
test esi, esi
je 0x140044d2a
lea rax, [rbp - 0x20]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 0x41
mov word [rbp - 0x20], bx
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x40], r13
mov dword [rbp + 0x68], ebx
mov qword [rbp + 0x70], rbx
mov qword [rsp + 0x20], rbx
mov r9d, 0xf003f
lea r8, [rbp + 0x140]
mov rdx, qword [rbp + 0x130]
lea rcx, [rbp - 0x40]
call fcn.140013564
test eax, eax
js 0x140044d35
lea rax, [0x1400a2d18]
mov qword [rsp + 0x40], rax
lea rdx, [0x1400d2520]
lea rcx, [rsp + 0x48]
call fcn.14001a960
nop
lea rdx, [0x1400d2520]
lea rcx, [rsp + 0x50]
call fcn.14001a960
nop
mov byte [rsp + 0x78], bl
lea rcx, [rbp - 0x80]
call fcn.14001a8ac
nop
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x40]
call fcn.140019f00
test eax, eax
js 0x1400138da
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.140019ca8
inc edi
lea rcx, [rbp - 0x80]
call fcn.140016c90
nop
lea rcx, [rsp + 0x40]
call fcn.140019208
nop
lea rcx, [rbp - 0x40]
call fcn.140014d5c
jmp 0x1400137e5
lea rcx, [rbp + 0x80]
call fcn.140014d5c
mov eax, ebx
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.140036e80
add rsp, 0x450
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
nop
cmp eax, 2
je 0x1400138ff
test eax, eax
jg 0x140044d61
mov ebx, eax
jmp 0x1400138ff
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jg 0x140044d49
mov ebx, eax
jmp 0x140044d52
movzx ebx, ax
or ebx, 0x80070000
lea rcx, [rbp - 0x40]
call fcn.140014d5c
nop
jmp 0x1400138ff
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1400138ff
Function at 0x14002d39c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x48
cmp byte [0x1400d22ad], 0
jne 0x14002d498
cmp byte [0x1400d22ac], 0
jne 0x14002d498
and qword [rbp - 0x18], 0
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rax
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov bl, 1
mov dword [rsp + 0x20], 0x20019
mov rdx, 0xffffffff80000002
mov byte [0x1400d22ad], bl
call fcn.140025224
test eax, eax
jne 0x14002d498
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x28]
mov dword [rbp + 0x18], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ETWLogging
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14004deb8
xor bl, bl
cmp dword [0x1400d2998], 0
mov byte [0x1400d22ac], bl
mov dword [rbp + 0x18], 4
ja 0x14002d488
mov rcx, qword [rbp - 0x18]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x30]
xor r8d, r8d
lea rdx, str.ETWBufferSize
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14004ded1
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
add rsp, 0x48
pop rbx
pop rbp
ret
cmp dword [rbp + 0x20], 4
jne 0x14002d438
cmp dword [rbp + 0x28], 0
ja 0x14002d43a
jmp 0x14002d438
cmp dword [rbp + 0x20], 4
jne 0x14002d488
mov edx, dword [rbp + 0x30]
test edx, edx
je 0x14002d488
call fcn.140073ccc
nop
jmp 0x14002d488
Function at 0x14002d4a8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x350
mov rax, qword [0x1400d1548]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov rsi, rcx
xor ebx, ebx
mov byte [rsp + 0x30], bl
mov edi, 0x104
mov edx, edi
lea rcx, [rsp + 0x130]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
sete al
mov rcx, qword [rsp + 0x358]
test al, al
jne 0x14004def2
mov edx, edi
lea rax, [rsp + 0x130]
cmp word [rax], bx
je 0x14002d51e
add rax, 2
sub rdx, 1
jne 0x14002d50f
mov rax, rdx
mov rcx, rdi
sub rcx, rdx
neg rax
sbb r8, r8
and r8, rcx
mov rax, rdx
neg rax
sbb r9d, r9d
not r9d
and r9d, 0x80070057
test rdx, rdx
je 0x14002d5a7
sub rdi, r8
lea rcx, [rsp + 0x130]
lea rcx, [rcx + r8*2]
je 0x14002d589
mov eax, 0x7ffffffe
lea rdx, str.propsys.dll
sub rdx, rcx
test rax, rax
je 0x14002d589
movzx r8d, word [rdx + rcx]
test r8w, r8w
je 0x14002d589
mov word [rcx], r8w
add rcx, 2
dec rax
sub rdi, 1
jne 0x14002d568
lea rax, [rcx - 2]
test rdi, rdi
cmovne rax, rcx
mov word [rax], bx
neg rdi
sbb r9d, r9d
not r9d
and r9d, 0x8007007a
mov rcx, qword [rsp + 0x358]
test r9d, r9d
js 0x14004df03
lea r8, [rsp + 0x48]
xor edx, edx
lea rcx, [rsp + 0x130]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x358]
test eax, eax
je 0x14004df14
mov r9d, 0x20019
lea r8, str.SOFTWAREMicrosoftWindows_Search
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x70]
call fcn.14002f110
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], 8
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, str.SchemaCacheTimestamp
lea rcx, [rsp + 0x70]
call fcn.140035e80
test eax, eax
je 0x14004df25
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CompareFileTime]
nop dword [rax + rax]
test eax, eax
jne 0x14004df25
mov byte [rsp + 0x30], bl
lea rcx, [rsp + 0x70]
call fcn.140014d5c
nop
mov al, bl
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.140036e80
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea r8, [0x1400ad710]
mov edx, 0xd9
call fcn.140064090
lea r8, [0x1400ad710]
mov edx, 0xda
call fcn.140068d74
lea r8, [0x1400ad710]
mov edx, 0xdd
call fcn.140064090
mov eax, dword [rsp + 0x5c]
mov dword [rsi], eax
mov eax, dword [rsp + 0x60]
mov dword [rsi + 4], eax
mov bl, 1
jmp 0x14002d659