joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460220
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4030af
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
nop
call fcn.00409740
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045e180
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x403080
cmp byte [0x005ef70f], 0
je 0x460235
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45d280
jmp 0x403080

Function at 0x460240
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005ef9e0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005ef70f], 0
je 0x460275
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005efd20]
aesenc xmm0, xmmword [0x005efd30]
aesenc xmm0, xmmword [0x005efd40]
movq rax, xmm0
ret
jmp 0x409940

Function at 0x460280
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005ef9e0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x005ef70f], 0
je 0x4602b6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005efd20]
aesenc xmm0, xmmword [0x005efd30]
aesenc xmm0, xmmword [0x005efd40]
movq rax, xmm0
ret
jmp 0x4099a0

Function at 0x461ca0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x005efca0]
mov qword [rsp + 8], rdx
lea r8d, [0x005ef728]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.00460160
add rsp, 0x30
ret

Function at 0x4621e0
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x46220c
call fcn.00460160
shl rcx, 3
add rcx, 0x1480
mov qword [0x005ef8f0], rcx
ret
Function at 0x47a820
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47aa6b
add rsp, 0xffffffffffffff80
mov qword [rsp + 0x78], rbp
lea rbp, [rsp + 0x78]
mov ebx, dword [rax + 0x2c]
nop dword [rax + rax]
test ebx, ebx
jne 0x47a8cc
mov qword [rsp + 0x88], rax
lea rbx, [0x004da2e0]
mov rcx, rax
lea rax, [0x0059c9e0]
call fcn.004714a0
test cl, cl
jne 0x47a8b1
mov rax, qword [rsp + 0x88]
call fcn.0047a0c0
mov ecx, 1
mov rdi, rax
mov rsi, rbx
lea rax, [rsp + 0x30]
lea rbx, [0x00502820]
call fcn.0044ada0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x28], rbx
nop dword [rax]
call fcn.0047aa80
mov rcx, qword [rsp + 0x88]
xor edx, edx
jmp 0x47a8ed
lea rdx, [0x004da020]
cmp rax, rdx
jne 0x47a8db
test byte [rbx], al
mov rax, rbx
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
call fcn.0045c000
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rbx, rdx
lea rcx, [0x004c8020]
call fcn.0040a4e0
inc rdx
cmp rbx, rdx
jle 0x47a938
mov rsi, qword [rax + rdx*8]
cmp qword [rsi + 0x30], rcx
jne 0x47a8ea
lea rax, [0x0059c9e0]
lea rbx, [0x004da2e0]
lea rdi, [0x004da020]
call fcn.00471660
lea rdx, [0x004da020]
nop dword [rax]
cmp rax, rdx
jne 0x47aa5b
test byte [rbx], al
mov rax, rbx
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
lea rcx, [0x004c3180]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], 0
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x58], rcx
lea rax, [0x004ce480]
nop
call fcn.0040d140
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x58]
test byte [rcx], al
cmp dword [0x005ef990], 0
jne 0x47a99a
mov rdx, qword [rcx]
mov qword [rax], rdx
movups xmm0, xmmword [rcx + 8]
movups xmmword [rax + 8], xmm0
movups xmm0, xmmword [rcx + 0x18]
movups xmmword [rax + 0x18], xmm0
movups xmm0, xmmword [rcx + 0x28]
movups xmmword [rax + 0x28], xmm0
jmp 0x47a9a9
mov rbx, rax
lea rax, [0x004ce480]
call fcn.004127c0
mov rax, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x28]
xor ecx, ecx
xor edi, edi
xor esi, esi
mov r8d, esi
nop dword [rax]
call fcn.00479b80
call fcn.0045c0c0
mov rsi, qword [rsp + 0x60]
mov dword [rsi + 0x28], eax
mov dword [rsi + 0x2c], 0
mov rcx, qword [rsp + 0x88]
mov edx, dword [rcx + 0x10]
xor eax, eax
jmp 0x47a9f6
imul edx, edx, 0x1000193
xor edx, 0x2a
mov eax, 1
cmp rax, 1
jl 0x47a9e8
mov dword [rsi + 0x10], edx
cmp dword [0x005ef990], 0
jne 0x47aa0e
mov qword [rsi + 0x30], rcx
jmp 0x47aa17
lea rdi, [rsi + 0x30]
call fcn.00460440
lea rax, [0x0059c9e0]
lea rbx, [0x004da2e0]
lea rdi, [0x004da020]
call fcn.00471660
lea rdx, [0x004da020]
cmp rax, rdx
jne 0x47aa4c
test byte [rbx], al
mov rax, rbx
mov rbp, qword [rsp + 0x78]
sub rsp, 0xffffffffffffff80
ret
mov rbx, rdx
lea rcx, [0x004c8020]
call fcn.0040a4e0
mov rbx, rdx
lea rcx, [0x004c8020]
call fcn.0040a4e0
nop
mov qword [rsp + 8], rax
call fcn.0045e180
mov rax, qword [rsp + 8]
jmp fcn.0047a820
Function at 0x1406c3b10
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406c3c97
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406c3b41
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c3b27
add dl, dl
jne 0x1406c3b4e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c3bae
xor eax, eax
add dl, dl
jne 0x1406c3b5d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c3c65
add dl, dl
jne 0x1406c3b6e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c3b7b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c3b88
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c3b95
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406c3ba2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406c3b36
mov eax, 1
add dl, dl
jne 0x1406c3bbe
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c3bcb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c3bb3
sub eax, ebx
mov ebx, 1
jne 0x1406c3c04
mov ecx, 1
add dl, dl
jne 0x1406c3be6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c3bf3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c3bdb
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c3b36
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406c3c20
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c3c2d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c3c15
cmp eax, 0x7d00
jae 0x1406c3c53
cmp eax, 0x500
jb 0x1406c3c4e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c3b36
cmp eax, 0x7f
ja 0x1406c3c56
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c3b36
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406c3c8a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406c3b36
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc4d9a40
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4da442
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fe108]
test eax, eax
je 0x2fc4da4da
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fe110]
mov qword [rbp - 8], rax
jmp 0x2fc4da4be
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4da4b2
cmp qword [rbp - 0x10], 0
je 0x2fc4da4b2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4da478
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4da4db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4da5e0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4da608
mov eax, 0
jmp 0x2fc4da656
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4da631
mov eax, 0
jmp 0x2fc4da656
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4da651
mov eax, 0
jmp 0x2fc4da656
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4da65c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4da6da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4da6d1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4da6d1
mov rax, qword [rbp - 8]
jmp 0x2fc4da6ef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4da6a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dcd50
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4dd752
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc502108]
test eax, eax
je 0x2fc4dd7ea
lea rax, [0x2fc5020e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc502110]
mov qword [rbp - 8], rax
jmp 0x2fc4dd7ce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4dd7c2
cmp qword [rbp - 0x10], 0
je 0x2fc4dd7c2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4dd788
lea rax, [0x2fc5020e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4dd7eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dd8f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4dd918
mov eax, 0
jmp 0x2fc4dd966
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4dd941
mov eax, 0
jmp 0x2fc4dd966
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4dd961
mov eax, 0
jmp 0x2fc4dd966
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dd96c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4dd9ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dd9e1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4dd9e1
mov rax, qword [rbp - 8]
jmp 0x2fc4dd9ff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4dd9b4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140009454
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x1400ab2e8]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x30]
mov qword [r8], r15
lea rdx, [rsp + 0x30]
sub rcx, rax
mov r14, r8
mov r9d, 0x104
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x1400094c5
movzx eax, word [rcx + rdx]
test ax, ax
je 0x1400094c5
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x1400094a3
test r9, r9
lea rax, [rdx - 2]
lea r8, [0x140081608]
cmovne rax, rdx
lea rcx, [rsp + 0x30]
mov word [rax], r15w
call fcn.140007474
mov ebx, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140009532
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x14000951d
mov esi, r15d
jmp 0x140009563
mov rcx, qword [rbp + 0x168]
mov edx, 0xc9
call fcn.140008f88
mov esi, eax
jmp 0x140009563
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], r15d
mov rcx, rdi
mov dword [rsp + 0x24], r15d
call fcn.1400092dc
mov esi, eax
test eax, eax
jns 0x14000959b
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xcf
call fcn.140008f60
test rdi, rdi
jne 0x140009644
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140061aa0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea r8, [0x140081610]
lea rcx, [rsp + 0x30]
call fcn.140007474
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x1400095de
mov rcx, qword [rbp + 0x168]
mov edx, 0xd5
call fcn.140008f88
mov esi, eax
jmp 0x140009644
lea rdx, [rsp + 0x24]
mov rcx, rbx
call fcn.1400092dc
mov esi, eax
test eax, eax
jns 0x14000961a
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd7
call fcn.140008f60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x14000966e
jmp 0x140009644
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x14000965c
movsxd rcx, dword [rsp + 0x24]
mov esi, r15d
movsxd rax, dword [rsp + 0x20]
shl rcx, 0x1f
or rcx, rax
mov qword [r14], rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test eax, eax
je 0x140009680
jmp 0x14000956c
mov rcx, qword [rbp + 0x168]
mov edx, 0x937
call fcn.140008fa8
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x937
call fcn.140008fa8
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x937
call fcn.140008fa8
int3
Function at 0x1400280f0
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x1400ab2e8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rsi, rdx
mov rbx, rcx
lea rcx, [rsp + 0x20]
call fcn.14000472c
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140006350
xor ebx, ebx
test al, al
je 0x14002818d
lea rdi, [rsi + 8]
test rdi, rdi
je 0x14002818d
cmp byte [rsi + 0x4c], bl
je 0x14002818d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
nop dword [rax + rax]
test eax, eax
je 0x14002818d
cmp byte [rsp + 0x6c], bl
je 0x14002818d
lea rcx, [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
nop dword [rax + rax]
test eax, eax
je 0x14002818d
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
test eax, eax
setne bl
lea rcx, [rsp + 0x20]
call fcn.140004a40
mov al, bl
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140061aa0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400282c0
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400ab2e8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0x220
mov r9d, 0x20
lea r8d, [r9 - 0x1e]
lea rdx, [0x140081048]
lea rcx, [rsp + 0x40]
call fcn.14000484c
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x48]
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
je 0x140028330
cmp dword [rsp + 0x34], 0
setne bl
xor dil, dil
jmp 0x140028337
mov dil, 1
mov bl, byte [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140004a40
test dil, dil
je 0x14002834a
xor al, al
jmp 0x140028350
mov al, bl
jmp 0x140028350
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140061aa0
mov rbx, qword [rsp + 0xe8]
add rsp, 0xd0
pop rdi
ret

Function at 0x140028500
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov r14, rcx
xorps xmm0, xmm0
movdqu xmmword [rax - 0x28], xmm0
xor ebx, ebx
mov qword [rax - 0x18], rbx
mov edx, 0x104
lea rcx, [rax - 0x28]
call fcn.140035290
mov rdi, qword [rsp + 0x28]
mov rbp, rdi
mov rsi, qword [rsp + 0x20]
sub rbp, rsi
sar rbp, 1
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x1400285b4
mov edx, eax
cmp rdx, rbp
jbe 0x140028597
lea rcx, [rsp + 0x20]
call fcn.140035290
mov rdi, qword [rsp + 0x28]
mov rdx, rdi
mov rsi, qword [rsp + 0x20]
sub rdx, rsi
sar rdx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x1400285b4
sub rdi, rsi
sar rdi, 1
mov eax, eax
cmp rax, rdi
ja 0x1400285b4
mov rdx, rsi
mov rcx, r14
call fcn.140003d68
nop
mov bl, 1
jmp 0x1400285b4
lea rcx, [rsp + 0x20]
call fcn.14001bbbc
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14003d664
Capabilities:
Get system information on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x1400ab2e8]
xor rax, rsp
mov qword [rbp + 0x80], rax
cmp dword [0x1400ac408], 0
je 0x14003d69a
mov eax, dword [0x1400ac404]
jmp 0x14003d721
xor edx, edx
lea rcx, [rsp + 0x64]
mov r8d, 0x118
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
nop dword [rax + rax]
xorps xmm0, xmm0
lea rcx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
nop dword [rax + rax]
movzx eax, word [rsp + 0x30]
mov r9b, byte [rbp + 0x7a]
mov r8d, dword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x64]
mov word [rsp + 0x28], ax
movzx eax, word [rbp + 0x78]
mov word [rsp + 0x20], ax
call fcn.14003d740
mov dword [0x1400ac404], eax
mov dword [0x1400ac408], 1
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140061aa0
add rsp, 0x190
pop rbp
ret
Function at 0x14003e7e8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r15, r8
mov rsi, rdx
mov r14, rcx
and dword [rbp + 0x48], 0
and dword [rbp + 0x38], 0
cmp qword [rdx + 0x18], 8
jb 0x14003e816
mov rdx, qword [rdx]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x48]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14003e932
mov ecx, dword [rbp + 0x38]
test ecx, ecx
je 0x14003e92d
mov eax, dword [rbp + 0x48]
dec eax
cmp eax, 1
ja 0x14003e92d
lea rdi, [rcx + 2]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
and qword [rbp - 8], 0
mov rdx, rdi
lea rcx, [rbp - 0x18]
call fcn.14003ecdc
mov rbx, qword [rbp - 0x18]
mov r8, rdi
xor edx, edx
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rax, [rbx + rdi]
mov qword [rbp - 0x10], rax
and qword [rbp - 0x20], 0
lea rcx, [rbp - 0x20]
call fcn.14003ec40
nop
cmp qword [rsi + 0x18], 8
jb 0x14003e8a8
mov rsi, qword [rsi]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x48]
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14003e8e6
mov rdx, qword [rbp - 0x18]
mov rcx, r15
call fcn.140003d68
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14003e929
mov rdx, qword [rbp - 8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003e924
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003e924
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
nop dword [rax + rax]
int3
call fcn.140061d88
mov eax, ebx
jmp 0x14003e932
mov eax, 0x65e
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret