joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a114
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x430
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x420], rax
lea r8, [0x140029840]
mov rdi, rdx
mov rbx, rcx
call fcn.14000958c
test al, al
jne 0x14000a188
mov r9d, 0x200
lea r8, [rsp + 0x20]
mov rdx, rdi
mov rcx, rbx
call fcn.14000a5b8
test al, al
je 0x14000a188
mov r8d, dword [0x140041864]
lea rdx, [rsp + 0x20]
mov rcx, rbx
test r8d, r8d
jne 0x14000a17f
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14000a188
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.14000ca30
mov rbx, qword [rsp + 0x450]
add rsp, 0x430
pop rdi
ret

Function at 0x14000a1ac
Capabilities:
Delete registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
call fcn.14000958c
test al, al
jne 0x14000a238
mov r9d, 0x200
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, rbx
call fcn.14000a5b8
test al, al
je 0x14000a238
lea rax, [rsp + 0x30]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a238
mov rcx, qword [rsp + 0x30]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000a238
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14000ca30
add rsp, 0x450
pop rdi
pop rsi
pop rbx
ret

Function at 0x14000a254
Capabilities:
Delete registry value

Disassembly:
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000001
jmp fcn.14000a1ac

Function at 0x14000a284
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
movsxd rdi, r9d
lea rax, [r11 - 0x10]
mov r9, rdi
mov qword [r11 - 0x28], rax
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
call fcn.140009930
mov r9, qword [rsp + 0x38]
mov dword [rsp + 0x30], r9d
test al, al
je 0x14000a2c7
mov eax, r9d
jmp 0x14000a325
mov rdx, rbx
mov rcx, rsi
call fcn.14000a61c
mov dword [rsp + 0x68], 4
mov rsi, rax
test rax, rax
je 0x14000a323
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000a323
cmp dword [rsp + 0x68], ebx
je 0x14000a323
mov edi, dword [rsp + 0x30]
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000001
jmp 0x14000a284
Function at 0x14000a33c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
movsxd rdi, r9d
lea rax, [r11 - 0x10]
mov r9, rdi
mov qword [r11 - 0x28], rax
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
call fcn.140009930
mov r9, qword [rsp + 0x38]
mov dword [rsp + 0x30], r9d
test al, al
je 0x14000a2c7
mov eax, r9d
jmp 0x14000a325
mov rdx, rbx
mov rcx, rsi
call fcn.14000a61c
mov dword [rsp + 0x68], 4
mov rsi, rax
test rax, rax
je 0x14000a323
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000a323
cmp dword [rsp + 0x68], ebx
je 0x14000a323
mov edi, dword [rsp + 0x30]
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000001
jmp 0x14000a284

Function at 0x14000a354
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x858
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rbp, qword [rsp + 0x8c0]
mov rdi, r9
mov esi, dword [rsp + 0x8c8]
lea r9, [rsp + 0x40]
mov r13, r8
mov qword [rsp + 0x20], 0x400
mov r15, rdx
mov rbx, rcx
call fcn.140009d54
xor r12d, r12d
test al, al
jne 0x14000a45a
mov r8d, esi
mov rdx, rbp
mov rcx, rdi
call fcn.140008cbc
cmp byte [0x140039379], r12b
sete al
test al, al
jne 0x14000a479
mov rdx, r15
mov rcx, rbx
call fcn.14000a61c
mov r15, rax
test rax, rax
je 0x14000a447
lea ecx, [rsi + rsi]
xor r8d, r8d
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov rcx, r15
mov qword [rsp + 0x20], rdi
mov rdx, r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor r13d, r13d
mov rcx, r15
test eax, eax
mov ebx, eax
sete r12b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000a447
mov ecx, dword [rsp + 0x30]
shr ecx, 1
test esi, esi
jne 0x14000a438
mov word [rdi], r13w
jmp 0x14000a455
lea eax, [rsi - 1]
cmp ecx, eax
cmovb eax, ecx
mov word [rdi + rax*2], r13w
jmp 0x14000a455
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call fcn.140008cbc
mov al, r12b
jmp 0x14000a47b
lea rcx, [rsp + 0x40]
call fcn.1400099bc
test rax, rax
mov r8, rsi
mov rcx, rdi
cmove rax, rbp
mov rdx, rax
call fcn.140008cbc
mov al, 1
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.14000ca30
add rsp, 0x858
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000a6b4
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x858
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rbx, r9
mov qword [rsp + 0x20], 0x400
lea r9, [rsp + 0x40]
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
call fcn.140009d54
test al, al
jne 0x14000a75c
cmp byte [0x140039379], al
sete al
test al, al
jne 0x14000a76f
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
call fcn.140009e6c
mov rdi, rax
test rax, rax
je 0x14000a754
mov rcx, rbx
call fcn.140017978
mov r9d, 1
xor r8d, r8d
mov rdx, rbp
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000a758
mov ebx, dword [rsp + 0x30]
mov eax, ebx
jmp 0x14000a771
mov r8d, 1
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.1400094cc
xor eax, eax
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.14000ca30
add rsp, 0x858
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14000a790
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x40
mov r9d, r9d
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.140009dec
test al, al
je 0x14000a7bd
xor eax, eax
jmp 0x14000a80c
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rdi
call fcn.140009e6c
mov rdi, rax
test rax, rax
je 0x14000a806
mov r9d, 4
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000a80a
mov ebx, dword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14000a81c
Capabilities:
Set registry value

Disassembly:
mov r9, r8
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000001
jmp fcn.14000a6b4

Function at 0x14000a834
Capabilities:
Set registry value

Disassembly:
mov r9d, r8d
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffff80000001
jmp fcn.14000a790
Function at 0x14000a84c
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x1040
call fcn.14000c9d0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov rdi, rdx
lea r9, [0x140029840]
mov sil, r8b
mov dword [rsp + 0x20], edi
mov r8, rcx
lea rdx, str.TempFolder
mov rbx, rcx
lea rcx, str.Paths
call fcn.14000a4a0
xor ebp, ebp
lea rdx, [rsp + 0x30]
mov r8d, 0x800
mov word [rsp + 0x30], bp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [rbx], bp
je 0x14000a8db
dec eax
cmp eax, 0x7fe
ja 0x14000a8d6
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140008cbc
cmp word [rbx], bp
jne 0x14000a8e2
test sil, sil
je 0x14000a8f0
jmp 0x14000a916
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000a916
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14000a904
cmp word [rbx], bp
jne 0x14000a916
mov r8, rdi
lea rdx, str._rartemp
mov rcx, rbx
call fcn.140008cbc
mov rdx, rdi
mov rcx, rbx
call fcn.140006364
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14000ca30
mov rbx, qword [rsp + 0x1070]
add rsp, 0x1040
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000ad80
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
mov rax, rdx
mov rdx, rcx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14000af38
Capabilities:
Copy file
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1030
call fcn.14000c9d0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rcx
mov esi, 0x800
mov edx, esi
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.1400065b8
mov r9d, esi
lea r8, [rsp + 0x20]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140006910
lea rcx, [rsp + 0x20]
call fcn.14000513c
xor edi, edi
test al, al
jne 0x14000aff5
mov r8d, esi
mov word [rsp + 0x20], di
lea rdx, [rsp + 0x20]
lea rcx, str.sfxname
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14000aff5
cmp word [rsp + 0x20], di
je 0x14000aff5
mov r8d, esi
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140006a6c
lea rcx, [rsp + 0x20]
call fcn.14000513c
test al, al
je 0x14000aff7
mov r8d, 1
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov al, 1
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000ca30
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14000b01c
Capabilities:
Copy file
Query environment variable

Disassembly:
sub rsp, 0x28
lea rcx, str.rarreg.key
call fcn.14000af38
test al, al
jne 0x14000b03c
lea rcx, str.rarreg.txt
call fcn.14000af38
lea rcx, str.winrar.ini
add rsp, 0x28
jmp fcn.14000af38
Function at 0x14000c340
Capabilities:
Accept command line arguments
Create process on windows
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x890
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x880], rax
mov rbx, rcx
mov cl, 1
call fcn.140008f0c
xor r8d, r8d
lea rcx, [0x14003c620]
mov rdx, rbx
call fcn.1400083b0
lea rdx, str.uninstall.lng
lea rcx, [0x14003c630]
call fcn.1400072dc
xor ecx, ecx
call qword [sym.imp.ole32.dll_OleInitialize]
lea rcx, str.riched20.dll
call fcn.140008e94
mov rcx, qword [0x14003c610]
lea rdx, str.RARICON
mov rbx, rax
call qword [sym.imp.USER32.dll_LoadIconW]
xor edi, edi
mov qword [0x1400428a0], rax
test rax, rax
jne 0x14000c3eb
mov rcx, qword [0x14003c618]
cmp rcx, qword [0x14003c610]
je 0x14000c3eb
lea rdx, str.RARICON
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [0x1400428a0], rax
mov ecx, 0xfffffff4
call fcn.14000ad48
mov ecx, eax
xor r9d, r9d
lea rax, str.MS_Shell_Dlg
xor r8d, r8d
mov qword [rsp + 0x68], rax
xor edx, edx
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0x2bc
call qword [sym.imp.GDI32.dll_CreateFontW]
mov r8d, 0x400
mov byte [rsp + 0x70], dil
lea rdx, [rsp + 0x80]
mov qword [0x1400428a8], rax
lea rcx, str.sfxcmd
mov byte [rsp + 0x71], dil
mov word [rsp + 0x80], di
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea r9, [rsp + 0x71]
mov cl, 1
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x80]
call fcn.14000b3f4
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r9, [rsp + 0x71]
xor ecx, ecx
mov rdx, rax
lea r8, [rsp + 0x70]
call fcn.14000b3f4
cmp byte [rsp + 0x70], dil
je 0x14000c56b
mov rcx, qword [0x14003c610]
lea r9, [0x14000b690]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.SETUPDLG
call qword [sym.imp.USER32.dll_DialogBoxParamW]
test rax, rax
je 0x14000c56b
call fcn.14000b01c
mov al, byte [0x140043901]
test al, al
jne 0x14000c50f
mov rcx, qword [0x14003c610]
lea r9, [0x14000b150]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.DONEDLG
call qword [sym.imp.USER32.dll_DialogBoxParamW]
mov al, byte [0x140043901]
cmp word [0x1400428b0], di
je 0x14000c56b
cmp byte [0x140043900], dil
jne 0x14000c56b
test al, al
jne 0x14000c56b
cmp byte [0x140043902], dil
jne 0x14000c56b
lea rcx, [0x1400428b0]
call fcn.14000513c
test al, al
je 0x14000c56b
lea rax, [0x140029840]
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [0x1400428b0]
xor ecx, ecx
lea rdx, str.open
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp byte [rsp + 0x71], dil
je 0x14000c577
call fcn.14000bbe8
test rbx, rbx
je 0x14000c585
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
call qword [sym.imp.ole32.dll_OleUninitialize]
mov rcx, qword [0x1400428a8]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [0x1400428a0]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x140043904]
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.14000ca30
mov rbx, qword [rsp + 0x8a8]
add rsp, 0x890
pop rdi
ret
Function at 0x14000d2f4
Capabilities:
Parse pe header

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

Function at 0x140019388
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140019178
Function at 0x14001e11c
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14001e0f9
call fcn.14001a6e0
mov dword [rax], 0x16
call fcn.140018a2c
or eax, 0xffffffff
jmp 0x14001e116
sub dword [rcx + 0x10], 1
jns 0x14001e108
add rsp, 0x28
jmp 0x140025188
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14001e0d8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400251ba
call fcn.14001a6e0
mov dword [rax], 0x16
call fcn.140018a2c
jmp 0x1400252d9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400252d9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400252d9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400251e9
lock or dword [rcx + 0x14], 0x10
jmp 0x1400252d9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400251fd
call fcn.140024508
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14001b978
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140023fa0
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400252c7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140025292
mov rcx, rsi
call fcn.14001b978
cmp eax, edi
je 0x14002527d
mov rcx, rsi
call fcn.14001b978
cmp eax, 0xfffffffe
je 0x14002527d
mov rcx, rsi
call fcn.14001b978
movsxd rbx, eax
lea r14, [0x140044240]
mov rcx, rsi
sar rbx, 6
call fcn.14001b978
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140025284
lea rdx, [0x140039d80]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140025292
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400252b6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400252b6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400252b6
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400252dc
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x14001e6e4
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.14000c9d0
sub rsp, rax
mov rax, qword [0x140039a88]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001b978
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001e733
mov rax, rbp
jmp 0x14001e83b
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 + 0x44240]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001e394
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x44240]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001e837
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 0x14001e837
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001e394
test rax, rax
js 0x14001e837
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001e837
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001e829
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001e829
cmp byte [rcx], 0xd
jne 0x14001e80f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001e81e
cmp byte [rcx + 1], 0xa
jne 0x14001e81e
inc rcx
jmp 0x14001e81e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3a3c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001e7f1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001e83b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000ca30
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 0x1400204dc
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 0x14002050c
xor eax, eax
jmp 0x1400205cf
mov rbp, rbx
cmp word [rax], si
je 0x140020531
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140020518
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140020514
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.14002042c
movsxd r14, eax
test eax, eax
jne 0x14002056f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140020505
mov rcx, r14
call fcn.14001a700
mov rdi, rax
test rax, rax
jne 0x140020588
xor ecx, ecx
call fcn.14001a5d0
jmp 0x140020564
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.14002042c
test eax, eax
jne 0x1400205b9
mov rcx, rdi
call fcn.14001a5d0
jmp 0x1400205c3
xor ecx, ecx
call fcn.14001a5d0
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 0x140023af4
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, [0x140044240]
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 0x140023b52
cmp word [rdx], r12w
jne 0x140023b52
or byte [rax + r8*8 + 0x38], cl
jmp 0x140023b58
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140023cb3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140023c8e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140023b91
mov rcx, r9
jmp 0x140023bb4
cmp r9, rdx
jae 0x140023bcb
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 0x140023b75
jmp 0x140023cb3
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 0x140023c88
cmp dword [rsp + 0x80], edi
je 0x140023c88
mov rdx, r14
lea r11, [0x140044240]
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 0x140023c61
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140023c34
mov word [rbx], r12w
jmp 0x140023caf
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 0x140023c3d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140023caf
cmp word [rsp + 0x70], r12w
jne 0x140023c6e
cmp rbx, rsi
je 0x140023c2e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14001e39c
cmp word [rsp + 0x70], r12w
je 0x140023cb3
mov word [rbx], r13w
jmp 0x140023caf
lea r11, [0x140044240]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140023cab
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140023cb3
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