joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140042970
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x140187028]
xor rax, rsp
mov qword [rsp + 0x240], rax
movaps xmm0, xmmword [0x14015fb50]
lea rcx, [rsp + 0x20]
movaps xmmword [rcx], xmm0
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
mov esi, eax
test eax, eax
js 0x140042aec
lea rdi, [rsp + 0x20]
mov rdx, qword [rdi + 8]
lea rbx, [0x14019d3f0]
mov r14d, 0xff
mov r8d, 0xff
mov rcx, rbx
call fcn.1400d2eb4
mov rcx, rbx
call fcn.1400d2a60
sub r14, rax
lea rdx, [0x1401667fc]
mov rcx, rbx
mov r8, r14
call fcn.1400d2eb4
mov rcx, rdi
call sub.ntdll.dll_RtlFreeUnicodeString
lea rbx, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call fcn.1400b6a60
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
lea rcx, str.PROGRAMFILES
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140042a4c
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400d2efc
test eax, eax
je 0x140042b10
lea rcx, str.PROGRAMFILES_X86_
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140042a87
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400d2efc
test eax, eax
je 0x140042b10
xor eax, eax
mov byte [0x14019cfe9], al
mov dword [rsp + 0x30], 0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14016b918]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140042b17
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rax, rdi
call qword [0x1401ae008]
test eax, eax
je 0x140042b17
cmp dword [rsp + 0x30], 0
setne al
mov byte [0x14019d5f0], al
mov byte [0x14019cfe8], 1
test esi, esi
setns bl
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400b4910
mov eax, ebx
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x140042a89
xor eax, eax
jmp 0x140042adf
Function at 0x140042dc0
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 [0x140187028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x140042df3
mov rax, qword [rsi + 8]
test rax, rax
je 0x140042eef
bt ebx, 8
jae 0x140042e0f
mov eax, ebx
and eax, 0x200
jne 0x140042eef
cmp edi, 2
lea rax, [0x14019cff0]
lea rcx, [0x14019d1f0]
cmove rcx, rax
cmp word [rcx], 0
jne 0x140042eef
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 0x140042eef
cmp byte [0x14019d5f0], 0
setne al
bt ebx, 8
jb 0x140042eef
shr ebx, 9
and ebx, 1
or bl, al
je 0x140042eef
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movzx ebp, byte [rsi + 0x17]
test bpl, bpl
jns 0x140042f4b
mov r14, qword [rsi]
mov rbp, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov r13, rbp
sub r13, r15
jb 0x140042edc
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.1400cc394
test eax, eax
je 0x140042f0e
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x140042ebc
cmp dword [rsp + 0x2c], 0
jne 0x140042f53
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400b4910
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x140042f1c
test ecx, ecx
jne 0x140042edc
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x140042f7c
cmp dword [rsp + 0x2c], 2
jne 0x140042f8d
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x140042f8d
mov r14, rsi
jmp 0x140042e9f
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x140042f5f
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, rsi
mov r8, qword [rsp + 0x38]
call fcn.1400fd8e0
jmp 0x140042eef
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
cmp cx, 0x5c
jne 0x140042fa6
lea r14, [rax + 2]
dec r13
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x140042f93
jmp 0x140042fa9
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov rbp, r13
jmp 0x140042ee3
Function at 0x140044160
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14019d5f8], 0
jne 0x14004419d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140044190
mov dword [rdi], eax
mov dword [0x14019d600], eax
mov qword [0x14019d5f8], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x140046350
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140187028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
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 0x1400463d8
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x1400463c2
cmp dword [rsp + 0x38], 4
jne 0x1400463c2
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400b4910
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x1400463c2

Function at 0x1400463e0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.1400b48b0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140187028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1400b6a60
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 0x1400464a3
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x1400464a7
lea rcx, [rsp + 0x840]
call fcn.1400d2a60
lea rdx, [rsp + 0x840]
mov rcx, rsi
mov r8, rax
call fcn.14002a820
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400b4910
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140046484
cmp eax, 2
jne 0x1400464fc
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1400b6a60
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 0x140046503
lea rcx, [rsp + 0x40]
call fcn.1400d2a60
lea rdx, [rsp + 0x40]
jmp 0x140046477
mov edi, 0x3f4
jmp 0x140046484
mov edi, 0xea
jmp 0x140046484
Function at 0x14004a6a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
cmp rdx, r9
mov r10, r9
cmovb r10, rdx
xor eax, eax
test r10, r10
je 0x14004a711
xor r11d, r11d
mov rdi, qword [r8 + r11*8]
mov rsi, qword [rcx + r11*8]
mov rbx, rsi
xor rbx, rdi
mov r14d, eax
lea rax, [rbx - 1]
mov r15, rsi
sub r15, rdi
xor r15, rsi
or r15, rbx
not rbx
and rax, rbx
sar rax, 0x3f
xor r15, rsi
sar r15, 0x3f
mov rsi, r15
not r15
and r15d, 1
or r15, rsi
mov rsi, rax
and r14d, esi
not rax
and rax, r15
or rax, r14
inc r11
cmp r10, r11
jne 0x14004a6bb
cmp rdx, r9
jb 0x14004a720
ja 0x14004a74c
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ecx, ecx
or rcx, qword [r8 + rdx*8]
inc rdx
cmp r9, rdx
jne 0x14004a722
mov rdx, rcx
not rdx
dec rcx
and rcx, rdx
sar rcx, 0x3f
mov rdx, rcx
and edx, eax
not rcx
or ecx, edx
mov eax, ecx
jmp 0x14004a718
xor r8d, r8d
or r8, qword [rcx + r9*8]
inc r9
cmp rdx, r9
jne 0x14004a74f
mov rcx, r8
not rcx
dec r8
and r8, rcx
sar r8, 0x3f
mov rcx, r8
and ecx, eax
not r8
and r8d, 1
or r8d, ecx
mov eax, r8d
jmp 0x14004a718
Function at 0x14004c4c0
Capabilities:
Hash data using sha256

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov r15, rcx
mov r13, qword [rsp + 0xb0]
mov rax, qword [0x140187028]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
xor r14d, r14d
test r13, r13
je 0x14004c530
mov ecx, dword [r13 + 0x2c]
call fcn.140094e50
test rax, rax
je 0x14004c611
mov r12, rax
xor ecx, ecx
call fcn.140094eb0
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r13
mov r14, r12
mov rax, qword [r13 + 0x10]
lea rcx, [0x140050720]
cmp rax, rcx
jne 0x14004c601
xorps xmm0, xmm0
movups xmmword [r14 + 0x5c], xmm0
movups xmmword [r14 + 0x50], xmm0
movups xmmword [r14 + 0x40], xmm0
movups xmmword [r14 + 0x30], xmm0
movups xmmword [r14 + 0x20], xmm0
movaps xmm0, xmmword [0x14016ea20]
movups xmmword [r14], xmm0
movaps xmm0, xmmword [0x14016ea30]
movups xmmword [r14 + 0x10], xmm0
mov dword [r14 + 0x6c], 0x20
lea r14, [rsp + 0x20]
mov rax, qword [r14]
mov rax, qword [rax + 0x18]
mov rcx, r14
mov rdx, r15
mov r8, rbx
call qword [0x1401ae008]
mov rax, qword [r14]
mov rax, qword [rax + 0x20]
mov rcx, r14
mov rdx, rdi
call qword [0x1401ae008]
mov rax, qword [r14]
test rsi, rsi
je 0x14004c5ba
mov ecx, dword [rax + 4]
mov dword [rsi], ecx
mov edx, dword [rax + 0x2c]
mov rcx, qword [rsp + 0x28]
call fcn.140094ef0
mov r14d, 1
mov rcx, qword [rsp + 0x28]
call fcn.140094eb0
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x14004c615
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400b4910
mov eax, r14d
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x20]
call qword [0x1401ae008]
jmp 0x14004c57f
xor ecx, ecx
jmp 0x14004c5d2
mov rax, qword [rax]
mov rcx, qword [rsp + 0x30]
call qword [0x1401ae008]
jmp 0x14004c5e1

Function at 0x14004c680
Capabilities:
Hash data using sha256

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
cmp qword [rcx], rdx
je 0x14004c6b2
mov ecx, dword [rdi + 0x2c]
call fcn.140094e50
test rax, rax
je 0x14004c711
mov rbx, rax
mov rcx, qword [rsi + 8]
call fcn.140094eb0
mov qword [rsi + 8], rbx
mov qword [rsi], rdi
mov rax, qword [rdi + 0x10]
lea rcx, [0x140050720]
cmp rax, rcx
jne 0x14004c706
mov rax, qword [rsi + 8]
xorps xmm0, xmm0
movups xmmword [rax + 0x5c], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x20], xmm0
movaps xmm0, xmmword [0x14016ea20]
movups xmmword [rax], xmm0
movaps xmm0, xmmword [0x14016ea30]
movups xmmword [rax + 0x10], xmm0
mov dword [rax + 0x6c], 0x20
mov eax, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
call qword [0x1401ae008]
jmp 0x14004c6f9
xor eax, eax
jmp 0x14004c6fe
Function at 0x14004c7b0
Capabilities:
Hash data using sha256

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
cmp qword [rcx + 0x10], 0
jne 0x14004c7e7
mov rcx, qword [rsp + 0x80]
mov rdx, r9
call fcn.14005c380
mov qword [rdi + 0x10], rax
test rax, rax
je 0x14004c8fa
mov ebp, dword [rsp + 0x88]
lea rcx, [0x14019e5b8]
lea rdx, [0x140050760]
call fcn.14009a8a0
lea rax, [0x14019e5c0]
mov qword [rdi + 0x18], rax
mov rcx, qword [rdi + 0x10]
cmp ebp, 1
jne 0x14004c8fe
call fcn.14005c680
test eax, eax
je 0x14004c8fa
test rbx, rbx
je 0x14004c83f
mov rcx, qword [rdi + 0x10]
mov rdx, rbx
call fcn.140053550
test eax, eax
je 0x14004c8fa
mov rax, qword [rdi + 0x10]
mov rax, qword [rax]
test ebp, ebp
je 0x14004c908
add rax, 0x38
cmp qword [rax], 0
je 0x14004c8d1
test rbx, rbx
je 0x14004c911
cmp qword [rdi], rbx
je 0x14004c88a
mov ecx, dword [rbx + 0x2c]
call fcn.140094e50
test rax, rax
je 0x14004c8fa
mov r14, rax
mov rcx, qword [rdi + 8]
call fcn.140094eb0
mov qword [rdi + 8], r14
mov qword [rdi], rbx
mov rax, qword [rbx + 0x10]
lea rcx, [0x140050720]
cmp rax, rcx
jne 0x14004c8ef
mov rax, qword [rdi + 8]
xorps xmm0, xmm0
movups xmmword [rax + 0x5c], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x20], xmm0
movaps xmm0, xmmword [0x14016ea20]
movups xmmword [rax], xmm0
movaps xmm0, xmmword [0x14016ea30]
movups xmmword [rax + 0x10], xmm0
mov dword [rax + 0x6c], 0x20
mov ebx, 1
test rsi, rsi
je 0x14004c8e2
mov rax, qword [rdi + 0x10]
mov qword [rsi], rax
mov eax, ebx
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rcx, rdi
call qword [0x1401ae008]
jmp 0x14004c8d1
xor ebx, ebx
jmp 0x14004c8e2
call fcn.140139c40
jmp 0x14004c81e
add rax, 0x28
jmp 0x14004c852
mov dword [rsp + 0x20], 0x6d
lea r9, str....._third_party_boringssl_srccrypto_fipsmoduledigestsigndigestsign.c
xor ebx, ebx
mov ecx, 6
xor edx, edx
mov r8d, 0x77
call fcn.140139ad0
jmp 0x14004c8e2
Function at 0x14004f260
Capabilities:
Hash data using sha256

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm8
movaps xmmword [rsp + 0xc0], xmm7
movaps xmmword [rsp + 0xb0], xmm6
mov qword [rsp + 0x28], r9
mov rax, qword [0x140187028]
xor rax, rsp
mov qword [rsp + 0xa8], rax
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov esi, 1
test rdx, rdx
je 0x14004f42b
mov r15, r8
mov rdi, rdx
mov rbx, rcx
mov rsi, qword [rsp + 0x150]
mov r13d, dword [rsi + 4]
xor r14d, r14d
movaps xmm7, xmmword [0x14016ea20]
movaps xmm8, xmmword [0x14016ea30]
lea r12, [rsp + 0x30]
mov eax, r14d
bswap eax
mov dword [rsp + 0x5c], eax
cmp qword [rsp + 0x30], rsi
je 0x14004f322
mov ecx, dword [rsi + 0x2c]
call fcn.140094e50
test rax, rax
je 0x14004f48e
mov rbp, rax
mov rcx, qword [rsp + 0x38]
call fcn.140094eb0
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rsi
mov rax, qword [rsi + 0x10]
lea rcx, [0x140050720]
cmp rax, rcx
jne 0x14004f47e
mov rax, qword [rsp + 0x38]
movups xmmword [rax + 0x5c], xmm6
movups xmmword [rax + 0x50], xmm6
movups xmmword [rax + 0x40], xmm6
movups xmmword [rax + 0x30], xmm6
movups xmmword [rax + 0x20], xmm6
movups xmmword [rax], xmm7
movups xmmword [rax + 0x10], xmm8
mov dword [rax + 0x6c], 0x20
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov rcx, r12
mov rdx, r15
mov r8, qword [rsp + 0x28]
call qword [0x1401ae008]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov r8d, 4
mov rcx, r12
lea rdx, [rsp + 0x5c]
call qword [0x1401ae008]
cmp rdi, r13
jb 0x14004f3d2
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x20]
mov rcx, r12
mov rdx, rbx
call qword [0x1401ae008]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov edx, dword [rax + 0x2c]
call fcn.140094ef0
add rbx, r13
inc r14d
sub rdi, r13
jne 0x14004f2ea
jmp 0x14004f426
movaps xmm0, xmmword [0x14015fb50]
lea r14, [rsp + 0x60]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea r15, [rsp + 0x30]
mov rax, qword [r15]
mov rax, qword [rax + 0x20]
mov rcx, r15
mov rdx, r14
call qword [0x1401ae008]
mov rax, qword [r15]
mov rcx, qword [r15 + 8]
mov edx, dword [rax + 0x2c]
call fcn.140094ef0
mov rcx, rbx
mov rdx, r14
mov r8, rdi
call fcn.1400b63b0
mov esi, 1
mov rcx, qword [rsp + 0x38]
call fcn.140094eb0
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x14004f492
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1400b4910
mov eax, esi
movaps xmm6, xmmword [rsp + 0xb0]
movaps xmm7, xmmword [rsp + 0xc0]
movaps xmm8, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x30]
call qword [0x1401ae008]
jmp 0x14004f35e
xor esi, esi
jmp 0x14004f42b
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
call qword [0x1401ae008]
jmp 0x14004f43f
Function at 0x140050d50
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x140050d60
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 0x140050d81
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140050da1
cmp byte [r14 + 0x68], 0
jne 0x140050e65
or edi, 0x20000000
test dil, 8
jne 0x140050e1b
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x140050dbb
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x140050dcc
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
jne 0x140050e30
cmp byte [r14], 0
jne 0x140050e3e
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x140050e4f
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 0x140050e5b
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [r14 + 0x88], 0
je 0x140050e82
or edi, 0x40000000
jmp 0x140050da7
lea rcx, [r14 + 0x30]
call fcn.14002bfa0
mov r15, rax
jmp 0x140050dd3
add r14, 8
mov rcx, r14
call fcn.14002bfa0
mov r9, rax
jmp 0x140050ddc
cmp ebx, 4
jne 0x140050e70
mov edx, 6
jmp 0x140050de5
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140050e06
or edi, 0x80000000
jmp 0x140050da1
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140050e8d
mov edx, 7
jmp 0x140050de5
or edi, 0x10000000
jmp 0x140050da7
cmp ebx, 1
jne 0x140050e9c
mov edx, 4
jmp 0x140050de5
xor edx, edx
jmp 0x140050de5
Function at 0x140050d60
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x140050d60
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 0x140050d81
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140050da1
cmp byte [r14 + 0x68], 0
jne 0x140050e65
or edi, 0x20000000
test dil, 8
jne 0x140050e1b
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x140050dbb
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x140050dcc
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
jne 0x140050e30
cmp byte [r14], 0
jne 0x140050e3e
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x140050e4f
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 0x140050e5b
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [r14 + 0x88], 0
je 0x140050e82
or edi, 0x40000000
jmp 0x140050da7
lea rcx, [r14 + 0x30]
call fcn.14002bfa0
mov r15, rax
jmp 0x140050dd3
add r14, 8
mov rcx, r14
call fcn.14002bfa0
mov r9, rax
jmp 0x140050ddc
cmp ebx, 4
jne 0x140050e70
mov edx, 6
jmp 0x140050de5
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140050e06
or edi, 0x80000000
jmp 0x140050da1
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140050e8d
mov edx, 7
jmp 0x140050de5
or edi, 0x10000000
jmp 0x140050da7
cmp ebx, 1
jne 0x140050e9c
mov edx, 4
jmp 0x140050de5
xor edx, edx
jmp 0x140050de5

Function at 0x140050eb0
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 0x140050ee8
cmp byte [r15 + 0x68], 0
jne 0x140050fb7
or edi, 0x20000000
test dil, 8
jne 0x140050f76
xor r14d, r14d
cmp byte [r15 + 0x70], 0
mov r12d, 0
je 0x140050f06
mov r12, qword [r15 + 0x78]
cmp byte [r15 + 0x50], 0
mov r13d, 0
je 0x140050f17
mov r13, qword [r15 + 0x58]
cmp byte [r15 + 0x28], 0
jne 0x140050f8b
cmp byte [r15], 0
jne 0x140050f99
xor r9d, r9d
cmp ebx, 4
jne 0x140050f67
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 0x140050fad
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 0x140050fcd
mov edx, 7
jmp 0x140050f31
cmp byte [r15 + 0x88], 0
je 0x140050fc2
or edi, 0x40000000
jmp 0x140050ef2
lea rcx, [r15 + 0x30]
call fcn.14002bfa0
mov r14, rax
jmp 0x140050f1e
add r15, 8
mov rcx, r15
call fcn.14002bfa0
mov r9, rax
jmp 0x140050f27
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140050f52
or edi, 0x80000000
jmp 0x140050ee8
or edi, 0x10000000
jmp 0x140050ef2
mov edx, 1
test ebx, ebx
je 0x140050f31
cmp ebx, 1
jne 0x140050fe9
mov edx, 4
jmp 0x140050f31
xor edx, edx
jmp 0x140050f31
Function at 0x14005bdd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x140187028]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x14005bda0]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x1401a0380]
lea rdx, [0x14005bbf0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14005bec8
cmp dword [0x1401a0388], 0
jne 0x14005bed5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x1401a038c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14005be7c
mov ecx, 1
mov edx, 0x28
call fcn.14007bda0
test rax, rax
je 0x14005bed5
mov r14, rax
mov ecx, dword [0x1401a038c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14005becd
lea r15, [0x1401a0390]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1401a03a0]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400b4910
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400c8d80
mov rcx, r14
call fcn.14007bd00
mov rcx, rsi
mov rax, rdi
call qword [0x1401ae008]
xor esi, esi
jmp 0x14005beac

Function at 0x14005c8a0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14005c8dc
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14005c8e6
add rdi, rbx
sub rsi, rbx
jne 0x14005c8ba
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400c8d80
int3