joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003140
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140004210
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004210
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400031b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x1400032e0
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400031fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003285
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400031e0
mov rcx, rbx
call fcn.140003c00
mov rdi, rax
test rax, rax
je 0x140003302
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003d40
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400032e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000327e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003290
add dword [0x1400090a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000327e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140003140
nop dword [rax]
xor esi, esi
jmp 0x140003208
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140003140
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140003140
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003870
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x1400038cc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400038c3
test rsi, rsi
je 0x1400038c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400038a8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003c00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006960]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003c20
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003c28
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003c20
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003c7d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003c74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003c20
add rax, 0x28
cmp rax, r9
jne 0x140003c60
xor eax, eax
ret

Function at 0x140003c80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006960]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003c9f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003ca8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003c9f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003d40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006960]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003d5f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003d68
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140f68580
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140f68707
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 0x140f685b1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f68597
add dl, dl
jne 0x140f685be
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f6861e
xor eax, eax
add dl, dl
jne 0x140f685cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f686d5
add dl, dl
jne 0x140f685de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f685eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f685f8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f68605
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140f68612
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140f685a6
mov eax, 1
add dl, dl
jne 0x140f6862e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f6863b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f68623
sub eax, ebx
mov ebx, 1
jne 0x140f68674
mov ecx, 1
add dl, dl
jne 0x140f68656
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f68663
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f6864b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f685a6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140f68690
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f6869d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f68685
cmp eax, 0x7d00
jae 0x140f686c3
cmp eax, 0x500
jb 0x140f686be
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f685a6
cmp eax, 0x7f
ja 0x140f686c6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f685a6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140f686fa
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 0x140f685a6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400b23a0]
mov dword [rax], 1
mov rax, qword [0x1400b23b0]
mov dword [rax], 1
mov rax, qword [0x1400b23c0]
mov dword [rax], 1
mov rax, qword [0x1400b2320]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
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 0x140001504
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140007820
Capabilities:
Query environment variable

Disassembly:
push r13
mov eax, 0x10078
push r12
call fcn.140092a30
sub rsp, rax
xor eax, eax
mov r8d, 0x28
mov rdx, rcx
lea r12, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea r13, [rsp + 0x70]
mov rcx, r12
call fcn.14002d320
mov rdx, r13
mov r8d, 0x10000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140007881
mov rcx, r13
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop r12
pop r13
ret

Function at 0x140007890
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x78
xor eax, eax
mov r8d, 0x28
lea r13, [rsp + 0x20]
mov r12, rdx
mov rdx, rcx
mov word [rsp + 0x20], ax
mov rcx, r13
call fcn.14002d320
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x78
pop r12
pop r13
ret
Function at 0x140007960
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x70
mov rbx, rdx
mov r14, r8
mov r15, rcx
call fcn.140025270
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python310.dll_PyObject_GetAttrString]
mov rcx, rbx
mov r12, rax
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov r13, rax
test r14, r14
je 0x140007a1a
mov rdx, r14
mov rcx, rbx
call fcn.140007890
mov rcx, r14
mov rdx, 0xffffffffffffffff
call sub.python310.dll_PyUnicode_FromWideChar
mov rdx, r13
mov rcx, r12
mov r14, rax
mov r8, rax
call qword [sym.imp.python310.dll_PyObject_SetItem]
test eax, eax
jne 0x140007a5c
sub qword [r14], 1
jne 0x1400079e1
mov rcx, r14
call fcn.1400078d0
sub qword [r13], 1
jne 0x1400079f0
mov rcx, r13
call fcn.1400078d0
sub qword [r12], 1
jne 0x140007a0c
mov rcx, r12
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400078d0
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x20]
mov r8d, 0x28
mov rdx, rbx
mov word [rsp + 0x20], 0
mov rcx, r14
call fcn.14002d320
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.python310.dll_PyObject_DelItem]
test eax, eax
je 0x1400079e1
mov rcx, r15
call fcn.1400078e0
jmp 0x1400079e1
mov ecx, 1
call qword [sym.imp.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
nop
nop word cs:[rax + rax]
nop
Function at 0x140088320
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400c3251], 0
mov r12, rcx
mov r13, rdx
mov rdi, r8
je 0x1400883a8
lea rdx, [0x1400b0752]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400884c0
mov rsi, qword [0x1400c3108]
jmp 0x140088365
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x140088360
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, r12
mov rdx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.140075d40
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1400c3108], rax
mov rdx, rax
mov r9d, dword [rax]
lea rax, [rax + 4]
mov qword [0x1400c3108], rax
mov eax, dword [rdx + 4]
lea rcx, [rdx + 8]
mov qword [0x1400c3108], rcx
test eax, eax
je 0x1400884a8
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop word [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x140088410
not eax
cmp r9d, eax
jne 0x140088547
mov byte [0x1400c3251], 1
jmp 0x14008833d
cmp byte [0x1400c3250], 0
jne 0x140088354
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x1400c3b88], rax
call rbx
mov qword [0x1400c3b80], rax
call rbx
mov qword [0x1400c3b78], rax
call rbx
mov qword [0x1400c3b70], rax
call rbx
mov qword [0x1400c3b68], rax
call rbx
mov qword [0x1400c3b60], rax
call rbx
mov qword [0x1400c3b58], rax
call rbx
mov byte [0x1400c3250], 1
mov qword [0x1400c3b50], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x1400c3100], rax
jmp 0x140088354
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140091730
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 fcn.1400a2a90
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400a2a90
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1400923e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400c4048]
test eax, eax
je 0x14009247a
lea rax, [0x1400c4020]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400c4050]
mov qword [rbp - 8], rax
jmp 0x14009245e
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 0x140092452
cmp qword [rbp - 0x10], 0
je 0x140092452
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 0x140092418
lea rax, [0x1400c4020]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14009247b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140092580
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 0x1400925a8
mov eax, 0
jmp 0x1400925f6
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 0x1400925d1
mov eax, 0
jmp 0x1400925f6
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 0x1400925f1
mov eax, 0
jmp 0x1400925f6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400925fc
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 0x14009267a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140092671
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 0x140092671
mov rax, qword [rbp - 8]
jmp 0x14009268f
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 0x140092644
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140024604
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x1400c1270]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rcx
lea rcx, [rsp + 0x30]
call fcn.14002442c
lea rdx, [rax + 8]
lea r8, [rsp + 0x24]
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x14002465f
cmp dword [rsp + 0x24], 0
setne bl
mov dil, 1
jmp 0x140024666
xor dil, dil
mov bl, byte [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140004040
test dil, dil
jne 0x140024679
xor al, al
jmp 0x14002467f
mov al, bl
jmp 0x14002467f
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400651a0
mov rbx, qword [rsp + 0xd8]
add rsp, 0xc0
pop rdi
ret
Function at 0x140025edc
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 [0x1400c1270]
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 0x140025f4d
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140025f4d
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x140025f2b
test r9, r9
lea rax, [rdx - 2]
lea r8, [0x14008cba0]
cmovne rax, rdx
lea rcx, [rsp + 0x30]
mov word [rax], r15w
call fcn.14002488c
mov ebx, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x140025fb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140026073
mov edx, 0xc8
mov rcx, qword [rbp + 0x168]
lea r8, [0x14008cb50]
call fcn.140025cf4
mov esi, eax
jmp 0x140026076
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.140025d98
mov esi, eax
test eax, eax
jns 0x140025fed
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xce
call fcn.140025cbc
jmp 0x140026076
lea r8, [0x14008cba8]
lea rcx, [rsp + 0x30]
call fcn.14002488c
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x14002601c
mov edx, 0xd4
jmp 0x140025f9d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140025d98
mov esi, eax
test eax, eax
jns 0x140026052
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd6
call fcn.140025cbc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140026076
jmp 0x1400260b6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400260c8
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
mov esi, r15d
test rdi, rdi
je 0x140026088
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1400260da
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400651a0
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
mov rcx, qword [rbp + 0x168]
mov edx, 0x875
call fcn.140025d0c
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x875
call fcn.140025d0c
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x875
call fcn.140025d0c
int3
Function at 0x140026790
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
mov rdi, rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
xor ebx, ebx
mov qword [rbp - 8], rbx
mov edx, 0x104
lea rcx, [rbp - 0x18]
call fcn.140036284
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
sub rdx, rcx
sar rdx, 1
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test eax, eax
jne 0x1400267ed
mov rcx, qword [rbp - 0x18]
jmp 0x140026877
mov r8, qword [rbp - 0x10]
mov rax, r8
mov rcx, qword [rbp - 0x18]
sub rax, rcx
sar rax, 1
cmp rdx, rax
jbe 0x14002682a
lea rcx, [rbp - 0x18]
call fcn.140036284
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
sub rdx, rcx
sar rdx, 1
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov r8, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
test edx, edx
je 0x140026877
sub r8, rcx
sar r8, 1
mov eax, edx
cmp rax, r8
ja 0x140026877
or r8, 0xffffffffffffffff
inc r8
cmp word [rcx + r8*2], bx
jne 0x14002683f
mov rdx, rcx
mov rcx, rdi
call fcn.1400030f0
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140026873
mov rdx, qword [rbp - 8]
sub rdx, rcx
sar rdx, 1
mov r8d, 2
call fcn.140002ec0
mov bl, 1
jmp 0x140026891
test rcx, rcx
je 0x140026891
mov rdx, qword [rbp - 8]
sub rdx, rcx
mov r8d, 2
sar rdx, 1
call fcn.140002ec0
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
Function at 0x14003d57c
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x198
mov rax, qword [0x1400c1270]
xor rax, rsp
mov qword [rsp + 0x180], rax
cmp dword [0x1400c230c], 0
je 0x14003d5a9
mov eax, dword [0x1400c2308]
jmp 0x14003d62a
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x11c
call sub.api_ms_win_crt_private_l1_1_0.dll__o_memset
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x30]
call sub.api_ms_win_crt_private_l1_1_0.dll__o_memset
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x30]
mov r9b, byte [rsp + 0x17a]
mov edx, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x64]
mov r8d, dword [rsp + 0x70]
mov word [rsp + 0x28], ax
movzx eax, word [rsp + 0x178]
mov word [rsp + 0x20], ax
call fcn.14003d644
mov dword [0x1400c2308], eax
mov dword [0x1400c230c], 1
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400651a0
add rsp, 0x198
ret

Function at 0x14003e590
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rbp - 0x30], r14d
mov dword [rbp + 0x38], r14d
cmp qword [rdx + 0x18], 8
jb 0x14003e5cc
mov rdx, qword [rdx]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x30]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003e692
mov ecx, dword [rbp + 0x38]
test ecx, ecx
je 0x14003e68d
mov eax, dword [rbp - 0x30]
dec eax
cmp eax, 1
ja 0x14003e68d
mov byte [rbp + 0x28], r14b
lea rdx, [rcx + 2]
lea r8, [rbp + 0x28]
lea rcx, [rbp - 0x20]
call fcn.14003e7a0
nop
cmp qword [rbx + 0x18], 8
jb 0x14003e628
mov rbx, qword [rbx]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x14003e66e
mov rdx, qword [rbp - 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r14w
jne 0x14003e65b
mov rcx, rsi
call fcn.1400030f0
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14003e689
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
mov r8d, 1
call fcn.140002ec0
mov eax, ebx
jmp 0x14003e692
mov eax, 0x65e
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret