joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140052d90
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 [0x14018a040]
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 0x140052e00
mov ecx, dword [r13 + 0x2c]
call fcn.14009b780
test rax, rax
je 0x140052edb
mov r12, rax
xor ecx, ecx
call fcn.14009b7e0
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r13
mov r14, r12
mov rax, qword [r13 + 0x10]
lea rcx, [0x14012ac70]
cmp rax, rcx
jne 0x140052edf
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 [0x1401742e0]
movups xmmword [r14], xmm0
movaps xmm0, xmmword [0x1401742f0]
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 [0x14017da68]
mov rax, qword [r14]
mov rax, qword [rax + 0x20]
mov rcx, r14
mov rdx, rdi
call qword [0x14017da68]
mov rax, qword [r14]
test rsi, rsi
je 0x140052e8a
mov ecx, dword [rax + 4]
mov dword [rsi], ecx
mov edx, dword [rax + 0x2c]
mov rcx, qword [rsp + 0x28]
call fcn.14009b820
mov r14d, 1
mov rcx, qword [rsp + 0x28]
call fcn.14009b7e0
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x140052eef
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
cmp rcx, qword [0x14018a040]
je 0x140052ec8
call fcn.1400b64a0
int3
mov eax, r14d
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x140052ea2
lea rcx, [rsp + 0x20]
call qword [0x14017da68]
jmp 0x140052e4f
mov rax, qword [rax]
mov rcx, qword [rsp + 0x30]
call qword [0x14017da68]
jmp 0x140052eb1

Function at 0x140052f50
Capabilities:
Hash data using sha256

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rax, qword [rcx]
cmp rax, rdx
je 0x140052f88
mov rdi, rdx
mov ecx, dword [rdx + 0x2c]
call fcn.14009b780
test rax, rax
je 0x140052fdc
mov rbx, rax
mov rcx, qword [rsi + 8]
call fcn.14009b7e0
mov qword [rsi + 8], rbx
mov qword [rsi], rdi
mov rax, rdi
mov rax, qword [rax + 0x10]
lea rcx, [0x14012ac70]
cmp rax, rcx
jne 0x140052fe0
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 [0x1401742e0]
movups xmmword [rax], xmm0
movaps xmm0, xmmword [0x1401742f0]
movups xmmword [rax + 0x10], xmm0
mov dword [rax + 0x6c], 0x20
mov eax, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x140052fd4
mov rcx, rsi
call qword [0x14017da68]
jmp 0x140052fcf
Function at 0x140053080
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 0x1400530b7
mov rcx, qword [rsp + 0x80]
mov rdx, r9
call fcn.140060670
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1400531c1
mov ebp, dword [rsp + 0x88]
lea rcx, [0x14019e250]
lea rdx, [0x140056b70]
call fcn.14009beb0
lea rax, [0x14019e258]
mov qword [rdi + 0x18], rax
mov rcx, qword [rdi + 0x10]
cmp ebp, 1
jne 0x1400531c5
call fcn.140060970
test eax, eax
je 0x1400531c1
test rbx, rbx
je 0x14005310f
mov rcx, qword [rdi + 0x10]
mov rdx, rbx
call fcn.14005e230
test eax, eax
je 0x1400531c1
xor eax, eax
test ebp, ebp
setne al
mov rcx, qword [rdi + 0x10]
mov rcx, qword [rcx]
shl eax, 4
cmp qword [rcx + rax + 0x28], 0
je 0x1400531a3
test rbx, rbx
je 0x1400531da
mov rax, qword [rdi]
cmp rax, rbx
je 0x14005315c
mov ecx, dword [rbx + 0x2c]
call fcn.14009b780
test rax, rax
je 0x1400531c1
mov r14, rax
mov rcx, qword [rdi + 8]
call fcn.14009b7e0
mov qword [rdi + 8], r14
mov qword [rdi], rbx
mov rax, rbx
mov rax, qword [rax + 0x10]
lea rcx, [0x14012ac70]
cmp rax, rcx
jne 0x1400531cf
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 [0x1401742e0]
movups xmmword [rax], xmm0
movaps xmm0, xmmword [0x1401742f0]
movups xmmword [rax + 0x10], xmm0
mov dword [rax + 0x6c], 0x20
mov ebx, 1
test rsi, rsi
je 0x1400531b4
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
xor ebx, ebx
jmp 0x1400531b4
call fcn.140137a50
jmp 0x1400530ee
mov rcx, rdi
call qword [0x14017da68]
jmp 0x1400531a3
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.1401378d0
jmp 0x1400531b4
Function at 0x140054750
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, r8
mov rsi, rdx
mov rdi, rcx
movsxd r8, dword [rcx + 0x148]
test r8, r8
jle 0x140054966
mov r10, qword [rdi + 0x140]
xor ecx, ecx
mov edx, r8d
mov r11d, edx
cmp qword [r10 + r11*8 - 8], 0
je 0x140054926
movsxd rcx, edx
shl edx, 6
mov r10, qword [r10 + rcx*8 - 8]
xor ecx, ecx
test r10, r10
setne cl
or ecx, edx
xor edx, edx
mov r11, r10
shr r11, 0x20
setne dl
cmove r11, r10
shl edx, 5
mov rbx, r11
shr rbx, 0x10
xor r10d, r10d
cmp r11, 0x10000
setae r10b
cmovb rbx, r11
shl r10d, 4
mov r14, rbx
shr r14, 8
xor r11d, r11d
cmp rbx, 0x100
setae r11b
cmovb r14, rbx
mov rbx, r14
shr rbx, 4
xor r15d, r15d
cmp r14, 0x10
setae r15b
cmovb rbx, r14
mov r14, rbx
shr r14, 2
xor r12d, r12d
cmp rbx, 4
setae r12b
cmovb r14, rbx
or edx, ecx
or edx, r10d
cmp r14, 2
lea ecx, [rdx + r11*8]
lea ecx, [rcx + r15*4]
lea ecx, [rcx + r12*2]
sbb ecx, 0xffffffff
add ecx, 0xffffffc7
shr ecx, 3
cmp rcx, r9
jne 0x14005493b
lea rcx, [r8*8]
cmp rcx, r9
jb 0x140054961
mov rcx, rsi
cmp r9, 8
jb 0x140054878
mov rdx, qword [rax + r9 - 8]
add r9, 0xfffffffffffffff8
bswap rdx
mov qword [rcx], rdx
add rcx, 8
dec r8
cmp r9, 7
ja 0x14005485c
test r9, r9
je 0x1400548a3
xor edx, edx
xor r10d, r10d
mov r11, r10
shl r11, 8
movzx r10d, byte [rax + rdx]
or r10, r11
inc rdx
cmp r9, rdx
jne 0x140054882
mov qword [rcx], r10
add rcx, 8
dec r8
shl r8, 3
test r8, r8
jne 0x14005497a
movsxd rcx, dword [rdi + 0x148]
mov eax, 0x14b
test rcx, rcx
je 0x140054940
mov r8, qword [rdi + 0x140]
xor edx, edx
xor r9d, r9d
mov r10, qword [r8 + r9*8]
mov r11, qword [rsi + r9*8]
mov rdi, r11
xor rdi, r10
lea rbx, [rdi - 1]
mov r14, r11
sub r14, r10
xor r14, r11
or r14, rdi
not rdi
and rbx, rdi
sar rbx, 0x3f
xor r14, r11
sar r14, 0x3f
xor rdx, r14
and rdx, rbx
xor rdx, r14
inc r9
cmp rcx, r9
jne 0x1400548cd
mov esi, 1
test edx, edx
jns 0x140054940
mov eax, esi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r11d, [rdx - 1]
cmp edx, 1
mov edx, r11d
jg 0x140054782
jmp 0x140054839
mov eax, 0x144
mov dword [rsp + 0x20], eax
lea r9, str....._third_party_boringssl_srccrypto_fipsmoduleec_simple.c
xor esi, esi
mov ecx, 0xf
xor edx, edx
mov r8d, 0x80
call fcn.1401378d0
jmp 0x140054916
call fcn.1400c9b2c
test r8d, r8d
je 0x140054986
mov r10, qword [rdi + 0x140]
mov edx, r8d
jmp 0x140054791
xor edx, edx
call fcn.1400e6fe0
jmp 0x1400548b0
xor ecx, ecx
jmp 0x140054839
Function at 0x140054fb0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x14018a040]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x14005510a
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x14015feb0]
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 [0x14017da68]
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 [0x14017da68]
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 [0x14017da68]
test r14, r14
je 0x140055093
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x140055083
mov ecx, 1
call fcn.14009c660
bt eax, 0x19
jae 0x140055115
not eax
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
test eax, 0x12000000
jne 0x14005510e
call fcn.1400032c0
lea rax, [0x140001d60]
lea rcx, [fcn.140001000]
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 [0x14018a040]
je 0x1400550fc
call fcn.1400b64a0
int3
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor eax, eax
jmp 0x1400550e5
call fcn.140002fd0
jmp 0x1400550be
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 9
jae 0x14005513d
call fcn.1400040d0
lea rax, [0x1400045a0]
lea rcx, [fcn.1400042a0]
jmp 0x1400550cc
call fcn.1401135f0
lea rax, [0x140114230]
lea rcx, [0x1401134c0]
jmp 0x1400550cc
Function at 0x140055170
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 [0x14018a040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x24], 1
test rdx, rdx
je 0x14005533f
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 [0x1401742e0]
movaps xmm8, xmmword [0x1401742f0]
lea r12, [rsp + 0x30]
mov eax, r14d
bswap eax
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0x30]
cmp rax, rsi
je 0x14005523b
mov ecx, dword [rsi + 0x2c]
call fcn.14009b780
test rax, rax
je 0x14005539e
mov rbp, rax
mov rcx, qword [rsp + 0x38]
call fcn.14009b7e0
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rsi
mov rax, rsi
mov rax, qword [rax + 0x10]
lea rcx, [0x14012ac70]
cmp rax, rcx
jne 0x1400553a8
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 [0x14017da68]
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov r8d, 4
mov rcx, r12
lea rdx, [rsp + 0x5c]
call qword [0x14017da68]
cmp rdi, r13
jb 0x1400552eb
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x20]
mov rcx, r12
mov rdx, rbx
call qword [0x14017da68]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov edx, dword [rax + 0x2c]
call fcn.14009b820
add rbx, r13
inc r14d
sub rdi, r13
jne 0x1400551fd
jmp 0x14005533f
movaps xmm0, xmmword [0x14015feb0]
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 [0x14017da68]
mov rax, qword [r15]
mov rcx, qword [r15 + 8]
mov edx, dword [rax + 0x2c]
call fcn.14009b820
mov rcx, rbx
mov rdx, r14
mov r8, rdi
call fcn.1400e6940
mov rcx, qword [rsp + 0x38]
call fcn.14009b7e0
mov rax, qword [rsp + 0x48]
test rax, rax
jne 0x1400553b8
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
cmp rcx, qword [0x14018a040]
je 0x14005536d
call fcn.1400b64a0
int3
mov eax, dword [rsp + 0x24]
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
mov dword [rsp + 0x24], 0
jmp 0x14005533f
lea rcx, [rsp + 0x30]
call qword [0x14017da68]
jmp 0x140055277
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
call qword [0x14017da68]
jmp 0x140055353
Function at 0x140056720
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.14009c660
mov ebp, eax
bt eax, 0x1d
jb 0x140056763
not ebp
test ebp, 0x128
jne 0x140056789
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.14009c660
bt eax, 9
jae 0x140056743
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.14009c660
mov ebp, eax
bt eax, 0x1c
jae 0x1400567a8
xor ecx, ecx
call fcn.14009c660
bt eax, 0x1e
jb 0x1400567d2
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
bt ebp, 9
jb 0x1400567c4
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 0x140056840
Capabilities:
Encode data using xor
Hash data using sha256 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.14009c660
bt eax, 0x1d
jb 0x1400568c0
mov ecx, 1
call fcn.14009c660
mov ebp, eax
bt eax, 0x1c
jae 0x140056896
xor ecx, ecx
call fcn.14009c660
bt eax, 0x1e
jae 0x140056896
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140014ec0
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
bt ebp, 9
jb 0x1400568b2
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140012a00
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140013f80
mov ecx, 1
call fcn.14009c660
bt eax, 9
jae 0x140056861
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140013bc0
Function at 0x140057690
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, r8
mov rax, qword [0x14018a040]
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 0x140057701
mov ecx, dword [rsp + 0x44]
add ecx, 0xfffffffd
mov eax, 0x3f4
cmp ecx, 1
ja 0x140057701
cmp dword [rsp + 0x40], 4
jne 0x140057701
mov eax, dword [rsp + 0x3c]
mov dword [rsi], eax
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
cmp rcx, qword [0x14018a040]
je 0x140057718
call fcn.1400b64a0
int3
add rsp, 0x50
pop rsi
ret

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.1400b6440
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14018a040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1400e6fe0
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 0x1400577b4
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x1400577db
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.1400361d0
xor eax, eax
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
cmp rcx, qword [0x14018a040]
je 0x1400577ce
call fcn.1400b64a0
int3
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
cmp eax, 2
jne 0x140057823
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1400e6fe0
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 0x14005782a
lea rdx, [rsp + 0x40]
jmp 0x1400577aa
mov eax, 0x3f4
jmp 0x1400577b4
mov eax, 0xea
jmp 0x1400577b4
Function at 0x1400593c0
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x1400593d0
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 0x1400593f1
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140059411
cmp byte [r14 + 0x50], 1
je 0x14005949c
or edi, 0x20000000
test dil, 8
jne 0x1400594a7
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x14005942f
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x140059440
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 1
je 0x1400594ce
cmp byte [r14 + 0x18], 1
je 0x1400594df
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x1400594ef
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 0x1400594c4
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 0x140059411
cmp byte [r14 + 0x68], 1
jne 0x1400594b9
or edi, 0x40000000
jmp 0x14005941b
or edi, 0x10000000
jmp 0x14005941b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140059487
lea rcx, [r14 + 0x20]
call fcn.140037e40
mov r15, rax
jmp 0x14005944b
mov rcx, r14
call fcn.140037e40
mov r9, rax
jmp 0x140059459
cmp ebx, 4
jne 0x1400594fe
mov edx, 6
jmp 0x140059466
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140059510
mov edx, 7
jmp 0x140059466
cmp ebx, 1
jne 0x14005951f
mov edx, 4
jmp 0x140059466
xor edx, edx
jmp 0x140059466
Function at 0x1400593d0
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x1400593d0
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 0x1400593f1
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140059411
cmp byte [r14 + 0x50], 1
je 0x14005949c
or edi, 0x20000000
test dil, 8
jne 0x1400594a7
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x14005942f
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x140059440
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 1
je 0x1400594ce
cmp byte [r14 + 0x18], 1
je 0x1400594df
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x1400594ef
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 0x1400594c4
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 0x140059411
cmp byte [r14 + 0x68], 1
jne 0x1400594b9
or edi, 0x40000000
jmp 0x14005941b
or edi, 0x10000000
jmp 0x14005941b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140059487
lea rcx, [r14 + 0x20]
call fcn.140037e40
mov r15, rax
jmp 0x14005944b
mov rcx, r14
call fcn.140037e40
mov r9, rax
jmp 0x140059459
cmp ebx, 4
jne 0x1400594fe
mov edx, 6
jmp 0x140059466
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140059510
mov edx, 7
jmp 0x140059466
cmp ebx, 1
jne 0x14005951f
mov edx, 4
jmp 0x140059466
xor edx, edx
jmp 0x140059466

Function at 0x140059530
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 0x140059568
cmp byte [r15 + 0x50], 1
je 0x1400595ff
or edi, 0x20000000
test dil, 8
jne 0x14005960a
xor r14d, r14d
cmp byte [r15 + 0x60], 0
mov r12d, 0
je 0x140059586
mov r12, qword [r15 + 0x58]
cmp byte [r15 + 0x48], 0
mov r13d, 0
je 0x140059597
mov r13, qword [r15 + 0x40]
cmp byte [r15 + 0x38], 1
je 0x140059631
cmp byte [r15 + 0x18], 1
je 0x140059642
xor r9d, r9d
cmp ebx, 4
jne 0x1400595f0
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 0x140059627
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 0x140059652
mov edx, 7
jmp 0x1400595ba
or edi, 0x80000000
jmp 0x140059568
cmp byte [r15 + 0x68], 1
jne 0x14005961c
or edi, 0x40000000
jmp 0x140059572
or edi, 0x10000000
jmp 0x140059572
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400595db
lea rcx, [r15 + 0x20]
call fcn.140037e40
mov r14, rax
jmp 0x1400595a2
mov rcx, r15
call fcn.140037e40
mov r9, rax
jmp 0x1400595b0
mov edx, 1
test ebx, ebx
je 0x1400595ba
cmp ebx, 1
jne 0x14005966e
mov edx, 4
jmp 0x1400595ba
xor edx, edx
jmp 0x1400595ba
Function at 0x14005a0e0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.1400b6440
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x14018a040]
xor rax, rsp
mov qword [rsp + 0x10048], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14015feb0]
movaps xmmword [rdi], xmm0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.1400896a0
test rsi, rsi
je 0x14005a1c6
lea rbx, [rsp + 0x4a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.1400e6fe0
cmp byte [rsp + 0x47], 0
jns 0x14005a15f
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 0x14005a18e
cmp eax, 0x7fff
jae 0x14005a1eb
mov edx, eax
lea rcx, [rsp + 0x4a]
mov r8, rsi
call fcn.14003c000
cmp byte [rsp + 0x47], 0
jns 0x14005a19f
mov rcx, qword [rsp + 0x30]
call fcn.1400b51b4
mov rcx, qword [rsp + 0x10048]
xor rcx, rsp
cmp rcx, qword [0x14018a040]
je 0x14005a1b9
call fcn.1400b64a0
int3
mov eax, ebx
add rsp, 0x10050
pop rbx
pop rdi
pop rsi
ret
cmp byte [rsp + 0x47], 0
js 0x14005a1d4
lea rcx, [rsp + 0x30]
jmp 0x14005a1d9
mov rcx, qword [rsp + 0x30]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
jmp 0x14005a18e
int3

Function at 0x14005b080
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x14005b0f7
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x14018c6a0], rax
jne 0x14005b0fa
mov rsi, rcx
call fcn.140063400
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.14005bbf0
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.14005b110
mov ecx, dword [0x14019eec4]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x140198758]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x150], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3