joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400091e0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x150
xor eax, eax
mov rbx, rcx
lea rcx, [rsp + 0x34]
xor esi, esi
xor edx, edx
mov r8d, 0x118
mov edi, 0xc0000001
mov qword [rsp + 0x22], rax
mov dword [rsp + 0x2a], eax
mov word [rsp + 0x20], si
mov word [rsp + 0x2e], ax
mov dword [rsp + 0x30], 0x11c
call fcn.14000aca0
lea rdx, str.RtlGetVersion
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
test rax, rax
je 0x140009269
lea rcx, [rsp + 0x30]
call rax
mov edi, eax
test eax, eax
js 0x140009296
mov r8d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x38]
jmp 0x1400092ac
lea r8, [rsp + 0x3c]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x34]
xor r9d, r9d
call qword [sym.imp.ntoskrnl.exe_PsGetVersion]
test al, al
je 0x140009296
mov r8d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x38]
mov edi, esi
jmp 0x1400092ac
mov ecx, dword [rsp + 0x168]
mov edx, dword [rsp + 0x168]
mov r8d, dword [rsp + 0x168]
test edi, edi
js 0x1400092d2
mov dword [rbx + 8], r8d
mov dword [rbx + 0xc], edx
mov dword [rbx + 0x10], ecx
cmp r8d, 0xa28
jne 0x1400092e9
cmp edx, 5
jne 0x1400092cd
cmp ecx, 1
je 0x1400092d2
mov edi, 0xc0000001
lea r11, [rsp + 0x150]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
cmp r8d, 0xece
jne 0x1400092ff
cmp edx, 5
jne 0x1400092cd
cmp ecx, 2
jmp 0x140009433
cmp r8d, 0x1770
je 0x14000931a
cmp r8d, 0x1771
je 0x14000931a
cmp r8d, 0x1772
jne 0x140009332
cmp edx, 6
jne 0x1400092cd
test ecx, ecx
jne 0x1400092cd
mov dword [rbx], 0x18
mov dword [rbx + 4], 0x20
jmp 0x1400092d2
cmp r8d, 0x1db0
jne 0x140009348
cmp edx, 6
jne 0x1400092cd
cmp ecx, 1
jmp 0x1400094ab
cmp r8d, 0x1db1
jne 0x140009362
cmp edx, 6
jne 0x1400092cd
cmp ecx, 1
jmp 0x1400094ab
cmp r8d, 0x23f0
jne 0x14000937c
cmp edx, 6
jne 0x1400092cd
cmp ecx, 2
jmp 0x1400094ab
cmp r8d, 0x2580
jne 0x140009396
cmp edx, 6
jne 0x1400092cd
cmp ecx, 3
jmp 0x1400094ab
cmp r8d, 0x2684
jne 0x1400093b0
cmp edx, 6
jne 0x1400092cd
cmp ecx, 4
jmp 0x1400092cb
cmp r8d, 0x275a
je 0x1400094a0
cmp r8d, 0x2800
je 0x1400094a0
cmp r8d, 0x295a
je 0x1400094a0
cmp r8d, 0x37d7
je 0x1400094a0
cmp r8d, 0x3839
je 0x140009428
lea eax, [r8 - 0x383a]
cmp eax, 0x29c
ja 0x140009404
cmp edx, 0xa
jne 0x140009404
test ecx, ecx
je 0x140009439
cmp r8d, 0x3ad7
je 0x140009428
cmp r8d, 0x3fab
je 0x140009428
cmp r8d, 0x42ee
je 0x140009428
cmp r8d, 0x4563
jne 0x14000944b
cmp edx, 0xa
jne 0x1400092cd
test ecx, ecx
jne 0x1400092cd
mov dword [rbx], 0x18
mov dword [rbx + 4], 0x20
jmp 0x1400092d2
cmp r8d, 0x47ba
je 0x1400094a0
cmp r8d, 0x47bb
je 0x1400094a0
cmp r8d, 0x4a61
je 0x1400094a0
cmp r8d, 0x4a62
je 0x1400094a0
cmp r8d, 0x4a63
je 0x1400094a0
cmp r8d, 0x4a64
je 0x1400094a0
cmp r8d, 0x4a65
je 0x1400094a0
cmp r8d, 0x55f0
je 0x1400094a0
cmp r8d, 0x585d
jne 0x1400092cd
cmp edx, 0xa
jne 0x1400092cd
test ecx, ecx
jne 0x1400092cd
mov dword [rbx], 0x20
mov dword [rbx + 4], 0x28
jmp 0x1400092d2
Function at 0x140009750
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0xa00
lea rcx, [rsp + 0x80]
lea rdx, str.RegistryMachineSYSTEMSetupAllowStartceipCommon
mov r8d, 0x6a
xor dil, dil
call fcn.14000a930
lea rdx, [rsp + 0x80]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_RtlCheckRegistryKey]
test eax, eax
js 0x140009968
mov qword [rsp + 0xa20], rbx
mov qword [rsp + 0x9f8], rbp
mov qword [rsp + 0x9f0], rsi
xor esi, esi
lea rbp, [0x14000ec10]
mov ebx, esi
nop word [rax + rax]
lea rcx, [rsp + 0xf0]
xor edx, edx
mov r8d, 0x100
mov qword [rsp + 0xa18], rsi
call fcn.14000aca0
lea rcx, [rsp + 0x1f0]
xor edx, edx
mov r8d, 0x800
call fcn.14000aca0
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x70]
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0xa18]
mov edx, 1
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0x30
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x48], 0x40
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x140009945
inc ebx
lea r8, [0x14000bef4]
lea rcx, [rsp + 0xf0]
mov r9d, ebx
mov edx, 0x100
call section..text
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0xa18]
lea r11, [rsp + 0xa10]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x1f0]
lea rdx, [rsp + 0x60]
mov r8d, 2
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x140009937
mov rcx, qword [rsp + 0xa18]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x1fc]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 0x208
jae 0x140009929
mov edi, dword [0x14000ec08]
lea rdx, [rsp + 0x1fc]
lea rcx, [rsp + 0x1fc]
mov rax, rdi
imul rax, rax, 0x208
sub rax, rdx
lea rdx, [rax + rbp]
nop
movzx eax, word [rcx]
add rcx, 2
mov word [rdx + rcx - 2], ax
test ax, ax
jne 0x140009910
inc edi
mov dword [0x14000ec08], edi
cmp ebx, 0xa
mov dil, 1
jl 0x1400097c0
jmp 0x140009945
mov rcx, qword [rsp + 0xa18]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rbp, qword [rsp + 0x9f8]
mov rbx, qword [rsp + 0xa20]
mov eax, 0xc0000001
test dil, dil
cmovne eax, esi
mov rsi, qword [rsp + 0x9f0]
add rsp, 0xa00
pop rdi
ret
Function at 0x140009ec0
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
push rsi
push r12
push r13
sub rsp, 0x70
xor r13d, r13d
mov rsi, r9
mov rbp, r8
mov r12, rdx
mov qword [rax - 0x58], r13
mov dword [rax + 8], r13d
test rcx, rcx
je 0x14000a059
test r8, r8
je 0x14000a059
test r9, r9
je 0x14000a059
cmp dword [r9], r13d
je 0x14000a059
mov qword [rax - 0x40], rcx
lea r8, [rax - 0x50]
lea rcx, [rax - 0x58]
mov edx, 0x20019
mov qword [rax + 0x10], rdi
mov dword [rax - 0x50], 0x30
mov qword [rax - 0x48], r13
mov dword [rax - 0x38], 0x240
mov qword [rax - 0x30], r13
mov qword [rax - 0x28], r13
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov ebx, eax
test eax, eax
js 0x14000a036
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x90]
lea r8d, [r13 + 2]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov rdx, r12
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, 0xc0000023
cmp eax, ebx
jne 0x14000a031
mov eax, dword [rsp + 0x90]
test eax, eax
je 0x14000a031
lea ecx, [rax - 0xc]
cmp dword [rsi], ecx
jae 0x140009f9c
mov dword [rsi], ecx
jmp 0x14000a036
mov rdx, rax
mov ecx, 1
mov r8d, 0x525654
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
jne 0x140009fbf
mov ebx, 0xc000009a
jmp 0x14000a01c
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x90]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x90]
mov r8d, 2
mov rdx, r12
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
test eax, eax
js 0x14000a01c
mov r8d, dword [rdi + 8]
lea rdx, [rdi + 0xc]
mov rcx, rbp
call fcn.14000a930
mov r11, qword [rsp + 0xb0]
test r11, r11
je 0x14000a017
mov eax, dword [rdi + 4]
mov dword [r11], eax
mov eax, dword [rdi + 8]
mov dword [rsi], eax
test rdi, rdi
je 0x14000a036
mov edx, 0x525654
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000a036
mov ebx, 0xc0000001
mov rcx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x98]
test rcx, rcx
je 0x14000a053
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov qword [rsp + 0x30], r13
test ebx, ebx
js 0x14000a05e
jmp 0x14000a06c
mov ebx, 0xc000000d
lea rcx, str.ReadRegistryValue_failed__status___08x_n
mov edx, ebx
call sub.ntoskrnl.exe_DbgPrint
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rsi
ret
Function at 0x14000a090
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0xa0
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rsi
mov rbx, rdx
mov qword [rax + 0x20], r12
lea rdx, str.RegistryMachineHARDWARE
lea rcx, [rax - 0x58]
xor r12d, r12d
mov rsi, r9
mov rbp, r8
mov dword [rax - 0x78], r12d
mov qword [rax - 0x70], 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
mov rdx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x50]
lea r8, [rsp + 0x70]
lea rcx, [rsp + 0x38]
mov edx, 0x2001f
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x70], 0x30
mov qword [rsp + 0x78], r12
mov dword [rsp + 0x88], 0x40
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x98], r12
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov ebx, eax
test eax, eax
js 0x14000a1ac
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r8d, [r12 + 2]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
test eax, eax
jns 0x14000a16e
cmp eax, 0x80000005
je 0x14000a16e
cmp eax, 0xc0000023
jne 0x14000a1ac
mov edx, dword [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0xc0], rdi
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdi, rax
test rax, rax
jne 0x14000a1e0
mov ebx, 0xc000009a
test rdi, rdi
je 0x14000a1a4
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [rsp + 0x30], r12d
mov rdi, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x38]
mov r12, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
cmp rcx, 0xffffffffffffffff
je 0x14000a1d5
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
add rsp, 0xa0
pop rbx
ret
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
mov r9, rdi
mov r8d, 2
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
test eax, eax
js 0x14000a18f
mov eax, dword [rsp + 0x30]
mov qword [rbp], rdi
mov ebx, r12d
mov dword [rsi], eax
jmp 0x14000a1a4

Function at 0x14000a230
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rbx, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
xor edi, edi
mov qword [rsp + 0x90], rdi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x20]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x90]
mov edx, 0xf003f
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], 0x30
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x58], 0x40
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov ebx, eax
test eax, eax
js 0x14000a2c4
mov rcx, qword [rsp + 0x90]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwDeleteValueKey]
mov ebx, eax
test eax, eax
cmovns ebx, edi
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x14000a2d7
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x140bda058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140bda1df
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 0x140bda089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bda06f
add dl, dl
jne 0x140bda096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bda0f6
xor eax, eax
add dl, dl
jne 0x140bda0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bda1ad
add dl, dl
jne 0x140bda0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bda0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bda0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bda0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140bda0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140bda07e
mov eax, 1
add dl, dl
jne 0x140bda106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bda113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bda0fb
sub eax, ebx
mov ebx, 1
jne 0x140bda14c
mov ecx, 1
add dl, dl
jne 0x140bda12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bda13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bda123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bda07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140bda168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bda175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bda15d
cmp eax, 0x7d00
jae 0x140bda19b
cmp eax, 0x500
jb 0x140bda196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bda07e
cmp eax, 0x7f
ja 0x140bda19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bda07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140bda1d2
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 0x140bda07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000e9e8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ea32
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ea32
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ea32
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ea32
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ea32
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000ea34
xor al, al
add rsp, 0x28
ret

Function at 0x14001d5e4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001d3d4

Function at 0x14002495c
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14002467e
call fcn.140017e78
mov dword [rax], 0x16
call fcn.140014774
jmp 0x1400247ce
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400247ce
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400247ce
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400246ad
lock or dword [rcx + 0x14], 0x10
jmp 0x1400247ce
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400246c1
call fcn.140024d5c
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x1400246d1
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x1400246d4
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.140022508
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.14002d9e0
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1400247bc
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x140024767
mov rcx, rbx
call fcn.140022508
cmp eax, 0xffffffff
je 0x140024752
mov rcx, rbx
call fcn.140022508
cmp eax, 0xfffffffe
je 0x140024752
mov rcx, rbx
call fcn.140022508
movsxd rdi, eax
lea rsi, [0x140049410]
mov rcx, rbx
sar rdi, 6
call fcn.140022508
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x140024759
lea rdx, [0x1400473e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140024767
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14002478b
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14002478b
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14002478b
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x1400247a9
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x1400247b4
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x1400247d3
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x140024648
Function at 0x140026074
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000e560
sub rsp, rax
mov rax, qword [0x140047038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140022508
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400260c3
mov rax, rbp
jmp 0x1400261cb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x49410]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140026564
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x49410]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400261c7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400261c7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140026564
test rax, rax
js 0x1400261c7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400261c7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400261b9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400261b9
cmp byte [rcx], 0xd
jne 0x14002619f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400261ae
cmp byte [rcx + 1], 0xa
jne 0x1400261ae
inc rcx
jmp 0x1400261ae
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x47b10]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140026181
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400261cb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000e530
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140028748
Capabilities:
Query environment variable

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
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140028778
xor eax, eax
jmp 0x14002883b
mov rbp, rbx
cmp word [rax], si
je 0x14002879d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140028784
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140028780
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140026d74
movsxd r14, eax
test eax, eax
jne 0x1400287db
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140028771
mov rcx, r14
call fcn.140021158
mov rdi, rax
test rax, rax
jne 0x1400287f4
xor ecx, ecx
call fcn.1400205fc
jmp 0x1400287d0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140026d74
test eax, eax
jne 0x140028825
mov rcx, rdi
call fcn.1400205fc
jmp 0x14002882f
xor ecx, ecx
call fcn.1400205fc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
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 0x14002d534
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140049410]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14002d592
cmp word [rdx], r12w
jne 0x14002d592
or byte [rax + r8*8 + 0x38], cl
jmp 0x14002d598
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14002d6f3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14002d6ce
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14002d5d1
mov rcx, r9
jmp 0x14002d5f4
cmp r9, rdx
jae 0x14002d60b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14002d5b5
jmp 0x14002d6f3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002d6c8
cmp dword [rsp + 0x80], edi
je 0x14002d6c8
mov rdx, r14
lea r11, [0x140049410]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14002d6a1
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14002d674
mov word [rbx], r12w
jmp 0x14002d6ef
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14002d67d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14002d6ef
cmp word [rsp + 0x70], r12w
jne 0x14002d6ae
cmp rbx, rsi
je 0x14002d66e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14002656c
cmp word [rsp + 0x70], r12w
je 0x14002d6f3
mov word [rbx], r13w
jmp 0x14002d6ef
lea r11, [0x140049410]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14002d6eb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14002d6f3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret