joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14073a320
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
movzx eax, byte [rcx]
mov ecx, dword [rdx + 0x34]
test cl, 0x10
jne 0x14073a382
test cl, 0x20
jne 0x14073a3c4
mov r8d, eax
sar r8b, 7
mov ecx, eax
xor cl, r8b
sub cl, r8b
cmp cl, 0x64
jb 0x14073a435
add cl, cl
add cl, 0x38
movzx ecx, cl
lea r8, [0x14075ecac]
movzx ecx, word [rcx + r8]
mov word [rbp - 0x23], cx
mov r8d, 0x24
mov cl, 1
jmp 0x14073a440
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop dword [rax + rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x57]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x14073a390
jmp 0x14073a402
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop dword [rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x37]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x14073a3d0
mov ecx, pe_nt_image_headers64
sub rcx, r8
cmp rcx, 0x80
ja 0x14073a4a1
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r9
lea r8, str.0x0b00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899assertion_failed:_curr___19p
mov r9d, 2
mov rcx, rdx
mov dl, 1
jmp 0x14073a491
mov r8d, 0x26
cmp cl, 0xa
jae 0x14073a44a
or cl, 0x30
mov byte [rbp + r8 - 0x48], cl
jmp 0x14073a463
movzx ecx, cl
lea r8, [0x14075ecac]
movzx ecx, word [r8 + rcx*2]
mov word [rbp - 0x23], cx
mov r8d, 0x25
lea rcx, [r8 + rbp]
add rcx, 0xffffffffffffffb8
mov r9d, 0x27
sub r9, r8
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rcx
not al
shr al, 7
mov r8d, 1
mov rcx, rdx
mov edx, eax
xor r9d, r9d
call dbg.pad_integral
nop
add rsp, 0xb8
pop rsi
pop rbp
ret
lea r8, str.librarycore_src_fmt_num.rs0o
mov edx, pe_nt_image_headers64
call dbg.slice_start_index_len_fail
int3
Function at 0x140741090
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140741100
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14077e1d4]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140741290
mov rax, qword [0x14077e1d8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14074114c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x1407411d5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140741130
mov rcx, rdi
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x1407412e2
mov rax, qword [0x14077e1d8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14077e1d8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1407412c5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1407411ce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140741240
add dword [0x14077e1d4], 1
cmp ebx, 8
jae 0x140741201
test bl, 4
jne 0x1407412a0
test ebx, ebx
je 0x1407411f6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x1407412b4
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x1407411f6
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14074121a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x14077e1d8]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1407411ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
xor esi, esi
jmp 0x140741157
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x1407411f6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x1407411f6
mov rax, qword [0x14077e1d8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call sym.__report_error
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x1407418b0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14077e240]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14077e220]
test rbx, rbx
je 0x140741904
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1407418fb
test rsi, rsi
je 0x1407418fb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1407418e0
lea rcx, [0x14077e240]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140741b50
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140741b60
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x140741b70
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140741bb1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x140741ba8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140741bb3
add rax, 0x28
cmp rax, r9
jne 0x140741b94
xor eax, eax
ret

Function at 0x140741c60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14076a940]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140741ccf
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140741ccf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x140741ccd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140741cc4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140741ccf
add rdx, 0x28
cmp rdx, r9
jne 0x140741cb0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x140741dd0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x14076a940]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x140741e3f
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140741e3f
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x140741e3d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140741e34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140741e44
add rax, 0x28
cmp rax, r9
jne 0x140741e20
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x140741e60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x14076a940]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140741ed3
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140741ed3
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140741ed3
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140741ed3
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov rcx, r9
jb 0x140741ec7
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140741ee0
add rdx, 0x28
cmp rdx, r10
jne 0x140741eb3
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jne 0x140741ef8
jmp 0x140741ed0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140741f06
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140741ed0
test r8d, r8d
jg 0x140741ef0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x1400190c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
vmovdqu xmm4, xmmword [r9 - 0x80]
vmovdqu xmm2, xmmword [r11 + 0x20]
lea r13, [r10 - 1]
vmovups xmm15, xmmword [r9 - 0x70]
lea r12, [r9 - 0x60]
vpxor xmm9, xmm1, xmm4
add ebx, 0x6000000
jb 0x1400191e0
vpaddb xmm10, xmm1, xmm2
vpaddb xmm11, xmm10, xmm2
vpxor xmm10, xmm10, xmm4
vpaddb xmm12, xmm11, xmm2
vpxor xmm11, xmm11, xmm4
vpaddb xmm13, xmm12, xmm2
vpxor xmm12, xmm12, xmm4
vpaddb xmm14, xmm13, xmm2
vpxor xmm13, xmm13, xmm4
vpaddb xmm1, xmm14, xmm2
vpxor xmm14, xmm14, xmm4
jmp 0x140019120
vaesenc xmm9, xmm9, xmm15
vaesenc xmm10, xmm10, xmm15
vaesenc xmm11, xmm11, xmm15
vaesenc xmm12, xmm12, xmm15
vaesenc xmm13, xmm13, xmm15
vaesenc xmm14, xmm14, xmm15
vmovups xmm15, xmmword [r12]
lea r12, [r12 + 0x10]
dec r13d
jne 0x140019120
vmovdqu xmm3, xmmword [r12]
vaesenc xmm9, xmm9, xmm15
vpxor xmm4, xmm3, xmmword [rcx]
vaesenc xmm10, xmm10, xmm15
vpxor xmm5, xmm3, xmmword [rcx + 0x10]
vaesenc xmm11, xmm11, xmm15
vpxor xmm6, xmm3, xmmword [rcx + 0x20]
vaesenc xmm12, xmm12, xmm15
vpxor xmm8, xmm3, xmmword [rcx + 0x30]
vaesenc xmm13, xmm13, xmm15
vpxor xmm2, xmm3, xmmword [rcx + 0x40]
vaesenc xmm14, xmm14, xmm15
vpxor xmm3, xmm3, xmmword [rcx + 0x50]
lea rcx, [rcx + 0x60]
vaesenclast xmm9, xmm9, xmm4
vaesenclast xmm10, xmm10, xmm5
vaesenclast xmm11, xmm11, xmm6
vaesenclast xmm12, xmm12, xmm8
vaesenclast xmm13, xmm13, xmm2
vaesenclast xmm14, xmm14, xmm3
vmovups xmmword [rdx], xmm9
vmovups xmmword [rdx + 0x10], xmm10
vmovups xmmword [rdx + 0x20], xmm11
vmovups xmmword [rdx + 0x30], xmm12
vmovups xmmword [rdx + 0x40], xmm13
vmovups xmmword [rdx + 0x50], xmm14
lea rdx, [rdx + 0x60]
ret
vpshufb xmm6, xmm1, xmm0
vmovdqu xmm5, xmmword [r11 + 0x30]
vpaddd xmm10, xmm6, xmmword [r11 + 0x40]
vpaddd xmm11, xmm6, xmm5
vpaddd xmm12, xmm10, xmm5
vpshufb xmm10, xmm10, xmm0
vpaddd xmm13, xmm11, xmm5
vpshufb xmm11, xmm11, xmm0
vpxor xmm10, xmm10, xmm4
vpaddd xmm14, xmm12, xmm5
vpshufb xmm12, xmm12, xmm0
vpxor xmm11, xmm11, xmm4
vpaddd xmm1, xmm13, xmm5
vpshufb xmm13, xmm13, xmm0
vpxor xmm12, xmm12, xmm4
vpshufb xmm14, xmm14, xmm0
vpxor xmm13, xmm13, xmm4
vpshufb xmm1, xmm1, xmm0
vpxor xmm14, xmm14, xmm4
jmp 0x140019120
Function at 0x140039bb0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x80], rax
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x68]
mov rcx, rdi
call fcn.1400efbb0
cmp byte [rdi + 0x17], 0
jns 0x140039bf7
mov rdi, qword [rsp + 0x68]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp byte [rsp + 0x7f], 0
jns 0x140039c18
mov rcx, qword [rsp + 0x68]
call fcn.14010cc0c
test rsi, rsi
je 0x140039cbf
test edi, edi
je 0x140039cbf
mov ecx, edi
add rcx, rcx
call fcn.14010d000
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x68]
mov rcx, r14
call fcn.1400efbb0
cmp byte [r14 + 0x17], 0
jns 0x140039c5b
mov r14, qword [rsp + 0x68]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x7f], 0
jns 0x140039c7b
mov rcx, qword [rsp + 0x68]
call fcn.14010cc0c
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x140039ced
mov rcx, rbx
call fcn.14010ced4
lea rdx, [rsp + 0x30]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x68]
call fcn.1400952c0
cmp byte [rsi + 0x17], 0
js 0x140039ce3
mov rax, qword [rsp + 0x78]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.14010ccd4
test edi, edi
setne bl
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14010fba0
mov eax, ebx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsi]
call fcn.14010cc0c
jmp 0x140039ca6
lea rax, str.null_pointer_passed_to_non_null_argument_of_char_traits_..._::length
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__s___nullptr
mov r8d, 0x109
call fcn.140165620
int3
Function at 0x14003cba0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm6
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [0x14029e6c0]
mov qword [rcx], rax
add rcx, 8
call fcn.140090e60
lea rcx, [rsi + 0x10]
call fcn.140090e60
xor ebx, ebx
mov byte [rsi + 0x18], bl
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], ebx
call fcn.140090e60
mov byte [rsi + 0x48], bl
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rbx
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
movups xmmword [rsi + 0xc0], xmm6
mov ebp, 0x3f800000
mov dword [rsi + 0xd0], ebp
mov dword [rsi + 0xd8], ebx
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], ebp
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], ebp
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x150], ebp
movups xmmword [rsi + 0x158], xmm6
movups xmmword [rsi + 0x168], xmm6
mov dword [rsi + 0x178], ebp
mov qword [rsi + 0x198], rbx
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], ebx
mov dword [rsi + 0x1a0], 1
lea rcx, [rsi + 0x1a8]
call fcn.1400f5d70
movups xmmword [rsi + 0x2e0], xmm6
movups xmmword [rsi + 0x2f0], xmm6
mov dword [rsi + 0x300], ebp
movups xmmword [rsi + 0x308], xmm6
movups xmmword [rsi + 0x318], xmm6
movups xmmword [rsi + 0x328], xmm6
mov byte [rsi + 0x338], bl
mov dword [rsi + 0x33c], edi
mov byte [rsi + 0x340], bl
movups xmmword [rsi + 0x348], xmm6
mov qword [rsi + 0x358], rbx
call fcn.14003cb90
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x190], eax
mov eax, eax
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x188], rax
mov rcx, rsi
call fcn.1400ba5b0
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x14003cda8
mov rax, qword [0x1402f3de0]
test rax, rax
jne 0x14003cd61
call fcn.1400a15d0
lea rcx, [rsp + 0x37]
mov byte [rcx], 1
mov qword [rsp + 0x20], rcx
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.140060700
mov qword [0x1402f3dd8], rsi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14010fba0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x140318008]
jmp 0x14003cd50
Function at 0x140041120
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor eax, eax
mov byte [rcx], al
mov ecx, dword [0x1402f0db0]
mov r10, qword gs:[0x58]
mov rcx, qword [r10 + rcx*8]
lea rcx, [rcx + 0x218]
mov qword [rsi + 8], rcx
mov r10, qword [rcx]
mov qword [rcx], rsi
mov qword [rsi + 0x10], r10
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x38], 0
mov dword [rsi + 0x40], 0
mov byte [rsi + 0x50], al
xorps xmm0, xmm0
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x58], r8
mov qword [rsi + 0x60], r9
test byte [0x1402e2b70], 9
jne 0x1400411ad
mov byte [rsi + 0x30], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14010fba0
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov byte [rsi + 0x30], 1
mov rax, qword [fcn.14009a170]
lea rdi, [rsp + 0x28]
mov rcx, rdi
call qword [0x140318008]
mov rax, qword [rdi]
mov qword [rsi + 0x20], rax
jmp 0x140041196
Function at 0x14004a210
Capabilities:
Get token membership

Disassembly:
push rsi
sub rsp, 0x80
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea r9, [rsp + 0x2c]
mov dword [r9], 0x44
xorps xmm0, xmm0
lea r8, [rsp + 0x30]
movaps xmmword [r8 + 0x30], xmm0
movaps xmmword [r8 + 0x20], xmm0
movaps xmmword [r8 + 0x10], xmm0
movaps xmmword [r8], xmm0
mov dword [r8 + 0x40], 0
xor esi, esi
mov ecx, 0x16
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x14004a293
lea rsi, [rsp + 0x28]
mov dword [rsi], 0
lea rdx, [rsp + 0x30]
xor ecx, ecx
mov r8, rsi
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
setne al
cmp dword [rsi], 0
setne sil
and sil, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14010fba0
mov eax, esi
add rsp, 0x80
pop rsi
ret
Function at 0x14004a850
Capabilities:
Accept command line arguments

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 3
call fcn.1400ec300
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14004a994
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14004a9e6
lea rdx, [0x1402abd12]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004a9df
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [0x140318008]
mov rbx, rax
movsxd r9, dword [rsp + 0x4c]
lea r8, [rbx + r9*8]
xorps xmm6, xmm6
lea r14, [rsp + 0x30]
movaps xmmword [r14], xmm6
mov qword [r14 + 0x10], 0
mov rcx, r14
mov rdx, rbx
call fcn.1400f63f0
mov rcx, rsi
mov rdx, r14
call fcn.14004aa00
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x14004a94b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x30]
test rsi, rsi
je 0x14004a994
mov rdi, qword [rsp + 0x38]
mov rcx, rsi
cmp rdi, rsi
je 0x14004a98a
add rdi, 0xffffffffffffffe8
test rdi, rdi
je 0x14004a9b3
cmp byte [rdi + 0x17], 0
jns 0x14004a979
mov rcx, qword [rdi]
call fcn.14010cc0c
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
jne 0x14004a966
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rsi
call fcn.14010cc0c
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14010fba0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x44
call fcn.140165620
xor ebx, ebx
jmp 0x14004a8fe
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14004a8fb
Function at 0x14004bcd0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [0x14029bb90]
lea r14, [rsp + 0x60]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.DoInitialize
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x177
call fcn.14009b140
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140059ca0
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov edx, 1
cmove edx, eax
test bl, 4
mov ecx, 4
cmovne edx, ecx
test bl, 8
mov r8d, 2
cmove r8d, edx
test bl, 0x10
mov eax, 5
cmove eax, r8d
test eax, eax
je 0x14004bf1d
mov edx, ebx
and edx, 0x40
shl edx, 0x18
test bl, bl
cmovns ecx, edx
mov r8d, ebx
rol r8d, 0x1a
and r8d, 0x80000100
or r8d, ecx
bt ebx, 0x12
jae 0x14004bdc0
bt ebx, 0x15
jb 0x14004bf1a
or r8d, 0x20000000
mov edx, ebx
shr edx, 4
and edx, 0x10000
or edx, r8d
mov ecx, ebx
shr ecx, 8
and ecx, 3
mov r8d, ebx
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov r12d, ebx
and r12d, 0x400
mov ecx, r12d
shl ecx, 0x14
mov r9d, ebx
shr r9d, 3
and r9d, 0x100
or r9d, ecx
mov ecx, ebx
shr ecx, 0xb
and ecx, 2
or ecx, r9d
mov r10d, ebx
shl r10d, 0xd
and r10d, 0x4000000
or r10d, ecx
mov r9d, ebx
shl r9d, 8
and r9d, 0xa000000
or r9d, r10d
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x14004be42
mov rcx, qword [rdi]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x30], 0
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp qword [rsi], rax
je 0x14004be9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14004bf4e
mov rax, r14
inc rax
cmp rax, 2
jb 0x14004be91
mov qword [rsi], r14
call fcn.140096510
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jb 0x14004bec6
shr r12d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r12b
test bl, 4
jne 0x14004bf03
test bl, 0xa
jne 0x14004bf14
bt ebx, 0x15
jae 0x14004bed6
jmp 0x14004bf36
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400bc1c0
mov dword [rsi + 0x24], eax
lea rcx, [rsp + 0x60]
call fcn.140059e90
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14010fba0
nop
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x14004bebe
mov byte [rsi + 0x28], 1
jmp 0x14004bebe
int3
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
call fcn.140164650
jmp 0x14004bed6
mov rcx, rdi
call fcn.1400e73c0
jmp 0x14004bed6
call fcn.14004ba00
mov rcx, qword [0x1402f4238]
jmp 0x14004bf62
call fcn.140096510
mov r15, qword [rsi]
mov rcx, qword [0x1402f4238]
test rcx, rcx
je 0x14004bf40
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r15
call qword [0x140318008]
mov qword [rsi], 0
jmp 0x14004be7d