joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140040e20
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsx rax, byte [r8 + 0x17]
test rax, rax
jns 0x140040e54
mov rax, qword [rsi + 8]
test rax, rax
je 0x140040f5a
bt ebx, 8
jae 0x140040e70
mov eax, ebx
and eax, 0x200
jne 0x140040f5a
cmp edi, 2
lea rax, [0x140130bc0]
lea rcx, [0x140130dc0]
cmove rcx, rax
cmp word [rcx], 0
jne 0x140040f5a
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x140040f5a
bt ebx, 8
jb 0x140040f5a
shr ebx, 9
and ebx, 1
or bl, byte [0x1401311c0]
test bl, 1
je 0x140040f5a
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movsx r13, byte [rsi + 0x17]
test r13, r13
jns 0x140040f82
mov r14, qword [rsi]
mov r13, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov rbp, r13
sub rbp, r15
jb 0x140040f43
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.1400a02c4
test eax, eax
je 0x140040f8a
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x140040f23
cmp dword [rsp + 0x2c], 0
jne 0x140041005
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x140040f71
call fcn.1400870e0
int3
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, rsi
jmp 0x140040f02
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x140040f98
test ecx, ecx
jne 0x140040f43
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x140040fc4
cmp dword [rsp + 0x2c], 2
jne 0x140040fd5
lea rdx, str.WOW6432Node
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
jmp 0x140040fd5
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], r14
cmp cx, 0x5c
jne 0x140040fee
lea r14, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x140040fdb
jmp 0x140040ff1
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov r13, rbp
jmp 0x140040f4a
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x140041011
mov rax, qword [rsi]
cmp qword [rsp + 0x30], 0
je 0x140041047
mov rbx, qword [rsp + 0x38]
sub rbx, rax
sar rbx, 1
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.1400a4b38
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
mov r9, rax
call fcn.140024a40
jmp 0x140040f5a
ud2
Function at 0x140041e30
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x80], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
movsx rax, byte [r8 + 0x17]
test rax, rax
jns 0x140041e64
mov rax, qword [r8 + 8]
mov r8, qword [r8]
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x60], rax
test rax, rax
js 0x140041f23
sete al
test r8, r8
setne cl
or cl, al
je 0x140041f23
lea rsi, [rsp + 0x68]
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.14006a5d0
cmp byte [rsi + 0x17], 0
jns 0x140041ea5
mov rsi, qword [rsp + 0x68]
movaps xmm0, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.14006a5d0
cmp byte [rdi + 0x17], 0
jns 0x140041eca
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [rsp + 0x57], 0
jns 0x140041ee9
mov rcx, qword [rsp + 0x40]
call fcn.140085d7c
cmp byte [rsp + 0x7f], 0
jns 0x140041efa
mov rcx, qword [rsp + 0x68]
call fcn.140085d7c
test esi, esi
setne al
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x140041f19
call fcn.1400870e0
int3
add rsp, 0x88
pop rdi
pop rsi
ret
ud2

Function at 0x140041fb0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.140087080
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x10048], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400f7a90]
movaps xmmword [rdi], xmm0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.14006a5d0
test rsi, rsi
je 0x140042096
lea rbx, [rsp + 0x4a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.1400bad40
cmp byte [rsp + 0x47], 0
jns 0x14004202f
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
je 0x14004205e
cmp eax, 0x7fff
jae 0x1400420bb
mov edx, eax
lea rcx, [rsp + 0x4a]
mov r8, rsi
call fcn.140028f90
cmp byte [rsp + 0x47], 0
js 0x1400420a4
lea rcx, [rsp + 0x30]
jmp 0x1400420a9
mov rcx, qword [rsp + 0x30]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
adc eax, 0xd0f04
int3
Function at 0x140042a30
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140042a57
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140042a91
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140042ab7
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400870e0
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.140042b90
mov al, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x140042aad
call fcn.1400870e0
int3
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14006e000
test al, al
je 0x140042b82
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x265
mov r9d, 2
call fcn.1400d5e90
lea rcx, [rsp + 0x68]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1400599a0
mov rdi, rax
movsx rax, byte [rsi + 0x17]
test rax, rax
jns 0x140042b1a
mov rax, qword [rsi + 8]
mov rsi, qword [rsi]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rax
test rax, rax
js 0x140042b89
sete al
test rsi, rsi
setne cl
or cl, al
je 0x140042b89
lea rsi, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14006a600
movsx r8, byte [rsi + 0x17]
test r8, r8
jns 0x140042b5c
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1400599a0
cmp byte [rsp + 0x57], 0
jns 0x140042b78
mov rcx, qword [rsp + 0x40]
call fcn.140085d7c
lea rcx, [rsp + 0x58]
call fcn.1400d5f00
xor eax, eax
jmp 0x140042a93
ud2
Function at 0x140042b90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp byte [rcx + 0x17], 0
jns 0x140042bb7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140042c67
mov ecx, eax
mov al, 1
test cl, 0x10
je 0x140042bf3
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x140042be9
call fcn.1400870e0
int3
add rsp, 0x168
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14006e000
test al, al
je 0x140042c60
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x255
mov r9d, 2
call fcn.140029e20
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400599a0
mov rcx, rax
mov rdx, rsi
call fcn.1400d6f40
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.1400599a0
mov rcx, rdi
call fcn.14002a420
xor eax, eax
jmp 0x140042bcf
mov ecx, 2
call fcn.14006e000
test al, al
je 0x140042c60
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x251
mov r9d, 2
call fcn.1400d5e90
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400599a0
mov rcx, rax
mov rdx, rsi
call fcn.1400d6f40
mov rcx, rdi
call fcn.1400d5f00
jmp 0x140042c60
Function at 0x140049ce0
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1400f7a90]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
je 0x140049dcc
lea rdi, [rsp + 0x70]
xor ebx, ebx
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call fcn.1400bad40
mov dword [rdi - 0xc], 0x11c
mov r14, qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call r14
mov rcx, rax
mov edx, 1
mov r8b, 3
call r14
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call r14
mov qword [rdi - 8], 6
mov word [rdi + 0x108], 0
lea rcx, [rsp + 0x64]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov edi, 0x80003
test eax, eax
je 0x140049dd3
xorps xmm0, xmm0
lea rbx, [rsp + 0x40]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov dword [rbx], 0x18
xor ecx, ecx
call fcn.140049e40
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x140049dd3
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x140049ddc
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rbx
mov eax, 0x200
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x30], 0
mov rcx, rsi
mov edx, edi
mov r8d, 6
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x140049e27
call fcn.1400870e0
int3
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14004b390
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, r8
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, 4
lea r9, [rsp + 0x44]
mov dword [r9], eax
lea r8, [rsp + 0x40]
mov dword [r8], eax
lea rax, [rsp + 0x3c]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004b401
mov ecx, dword [rsp + 0x44]
add ecx, 0xfffffffd
mov eax, 0x3f4
cmp ecx, 1
ja 0x14004b401
cmp dword [rsp + 0x40], 4
jne 0x14004b401
mov eax, dword [rsp + 0x3c]
mov dword [rsi], eax
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x14004b418
call fcn.1400870e0
int3
add rsp, 0x50
pop rsi
ret
Function at 0x14004b420
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140087080
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1400bad40
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004b4b4
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14004b4db
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.140024d20
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x14004b4ce
call fcn.1400870e0
int3
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
cmp eax, 2
jne 0x14004b523
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1400bad40
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x14004b52a
lea rdx, [rsp + 0x40]
jmp 0x14004b4aa
mov eax, 0x3f4
jmp 0x14004b4b4
mov eax, 0xea
jmp 0x14004b4b4
Function at 0x14004cc30
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x14004cd8a
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x1400f7a90]
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r12, [rsp + 0x30]
lea rbx, [rcx + 0x108]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, rsi
call qword [0x140112388]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, r12
mov r8, rsi
call qword [0x140112388]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [0x140112388]
test r14, r14
je 0x14004cd13
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x14004cd03
mov ecx, 1
call fcn.140083050
bt eax, 0x19
jae 0x14004cd95
not eax
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
test eax, 0x12000000
jne 0x14004cd8e
call fcn.1400032c0
lea rax, [0x140001d60]
lea rcx, section..text
mov qword [rsi + 0xf8], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x14004cd7c
call fcn.1400870e0
int3
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor eax, eax
jmp 0x14004cd65
call fcn.140002fd0
jmp 0x14004cd3e
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 9
jae 0x14004cdbd
call fcn.1400040d0
lea rax, [0x1400045a0]
lea rcx, [0x1400042a0]
jmp 0x14004cd4c
call fcn.1400e4c10
lea rax, [0x1400e5850]
lea rcx, [0x1400e4ae0]
jmp 0x14004cd4c

Function at 0x14004cdf0
Capabilities:
Encode data using xor
Hash data using sha1 via x86 extensions

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 2
call fcn.140083050
mov ebp, eax
bt eax, 0x1d
jb 0x14004ce33
not ebp
test ebp, 0x128
jne 0x14004ce59
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140010e30
mov ecx, 1
call fcn.140083050
bt eax, 9
jae 0x14004ce13
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14000eec0
mov ecx, 1
call fcn.140083050
mov ebp, eax
bt eax, 0x1c
jae 0x14004ce78
xor ecx, ecx
call fcn.140083050
bt eax, 0x1e
jb 0x14004cea2
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
bt ebp, 9
jb 0x14004ce94
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14000de80
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14000f190
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140010030
Function at 0x14004d420
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x14004d430
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x14004d451
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x14004d471
cmp byte [r14 + 0x50], 1
je 0x14004d4fc
or edi, 0x20000000
test dil, 8
jne 0x14004d507
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x14004d48f
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x14004d4a0
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 1
je 0x14004d52e
cmp byte [r14 + 0x18], 1
je 0x14004d53f
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x14004d54f
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x14004d524
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x14004d471
cmp byte [r14 + 0x68], 1
jne 0x14004d519
or edi, 0x40000000
jmp 0x14004d47b
or edi, 0x10000000
jmp 0x14004d47b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004d4e7
lea rcx, [r14 + 0x20]
call fcn.14003a180
mov r15, rax
jmp 0x14004d4ab
mov rcx, r14
call fcn.14003a180
mov r9, rax
jmp 0x14004d4b9
cmp ebx, 4
jne 0x14004d55e
mov edx, 6
jmp 0x14004d4c6
lea eax, [rbx - 2]
cmp eax, 2
jae 0x14004d570
mov edx, 7
jmp 0x14004d4c6
cmp ebx, 1
jne 0x14004d57f
mov edx, 4
jmp 0x14004d4c6
xor edx, edx
jmp 0x14004d4c6
Function at 0x14004d430
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x14004d430
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x14004d451
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x14004d471
cmp byte [r14 + 0x50], 1
je 0x14004d4fc
or edi, 0x20000000
test dil, 8
jne 0x14004d507
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x14004d48f
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x14004d4a0
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 1
je 0x14004d52e
cmp byte [r14 + 0x18], 1
je 0x14004d53f
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x14004d54f
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x14004d524
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x14004d471
cmp byte [r14 + 0x68], 1
jne 0x14004d519
or edi, 0x40000000
jmp 0x14004d47b
or edi, 0x10000000
jmp 0x14004d47b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004d4e7
lea rcx, [r14 + 0x20]
call fcn.14003a180
mov r15, rax
jmp 0x14004d4ab
mov rcx, r14
call fcn.14003a180
mov r9, rax
jmp 0x14004d4b9
cmp ebx, 4
jne 0x14004d55e
mov edx, 6
jmp 0x14004d4c6
lea eax, [rbx - 2]
cmp eax, 2
jae 0x14004d570
mov edx, 7
jmp 0x14004d4c6
cmp ebx, 1
jne 0x14004d57f
mov edx, 4
jmp 0x14004d4c6
xor edx, edx
jmp 0x14004d4c6

Function at 0x14004d590
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r15, rcx
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x14004d5c8
cmp byte [r15 + 0x50], 1
je 0x14004d65f
or edi, 0x20000000
test dil, 8
jne 0x14004d66a
xor r14d, r14d
cmp byte [r15 + 0x60], 0
mov r12d, 0
je 0x14004d5e6
mov r12, qword [r15 + 0x58]
cmp byte [r15 + 0x48], 0
mov r13d, 0
je 0x14004d5f7
mov r13, qword [r15 + 0x40]
cmp byte [r15 + 0x38], 1
je 0x14004d691
cmp byte [r15 + 0x18], 1
je 0x14004d6a2
xor r9d, r9d
cmp ebx, 4
jne 0x14004d650
mov edx, 6
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov esi, eax
test eax, eax
jne 0x14004d687
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea eax, [rbx - 2]
cmp eax, 2
jae 0x14004d6b2
mov edx, 7
jmp 0x14004d61a
or edi, 0x80000000
jmp 0x14004d5c8
cmp byte [r15 + 0x68], 1
jne 0x14004d67c
or edi, 0x40000000
jmp 0x14004d5d2
or edi, 0x10000000
jmp 0x14004d5d2
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004d63b
lea rcx, [r15 + 0x20]
call fcn.14003a180
mov r14, rax
jmp 0x14004d602
mov rcx, r15
call fcn.14003a180
mov r9, rax
jmp 0x14004d610
mov edx, 1
test ebx, ebx
je 0x14004d61a
cmp ebx, 1
jne 0x14004d6ce
mov edx, 4
jmp 0x14004d61a
xor edx, edx
jmp 0x14004d61a
Function at 0x14004ed00
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x14004ed77
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x140120cf0], rax
jne 0x14004ed7a
mov rsi, rcx
call fcn.1400577e0
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.14004f870
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.14004ed90
mov ecx, dword [0x140133180]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14012cda8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x160], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3

Function at 0x140053160
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov esi, 0xffffffff
cmp r8, rsi
cmovae r8, rsi
lea r9, [rsp + 0x34]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400531c5
mov eax, dword [rsp + 0x34]
cmp rax, rsi
je 0x1400531ce
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x1400531bf
call fcn.1400870e0
int3
add rsp, 0x40
pop rsi
ret
mov rax, 0xffffffffffffffff
jmp 0x1400531a8
int3
mov rcx, qword [rcx + 8]
jmp 0x140053160

Function at 0x1400531e0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14011e040]
xor rax, rsp
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12, qword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r15
test eax, eax
je 0x14005328d
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x140053279
cmp eax, 0xffffffff
je 0x14005328a
mov eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x14005326b
call fcn.1400870e0
int3
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r12
cmp eax, 3
je 0x140053221
mov eax, dword [rsp + 0x2c]
jmp 0x140053252
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
setne al
neg rax
jmp 0x140053254