joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000655c
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
lea rax, [r11 - 0x18]
mov ebx, r9d
mov rbp, r8
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
lea r9, [r11 - 0x14]
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400065cf
cmp dword [rsp + 0x34], 1
jne 0x1400065cf
cmp dword [rsp + 0x30], ebx
jae 0x1400065cf
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete al
jmp 0x1400065d1
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140006cc0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x14003f068]
xor rax, rsp
mov qword [rbp + 0x70], rax
and qword [rsp + 0x38], 0
mov r15, rcx
movdqa xmm0, xmmword [0x14002eec0]
xor edi, edi
movdqu xmmword [rsp + 0x48], xmm0
mov rcx, qword [rsp + rdi*8 + 0x48]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareJavaSoftJava_Runtime_Environment
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140006e59
mov r14, qword [rsp + 0x38]
lea r8, [rsp + 0x60]
mov rcx, r14
mov r9d, 0x104
xor edx, edx
xor esi, esi
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x140006e59
mov rdx, qword [r15 + 0x10]
lea rcx, [rsp + 0x60]
inc esi
call fcn.140007138
test eax, eax
je 0x140006d9a
test rbx, rbx
je 0x140006d8d
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140007250
test eax, eax
jle 0x140006d9a
mov rcx, rbx
call fcn.1400011d4
lea rcx, [rsp + 0x60]
call fcn.14000126c
mov rbx, rax
mov r9d, 0x104
lea r8, [rsp + 0x60]
mov edx, esi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x140006d5b
test rbx, rbx
je 0x140006e59
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, rbx
test eax, eax
je 0x140006dfa
call fcn.1400011d4
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140006e59
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140006e59
call fcn.1400011d4
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.JavaHome
lea rax, [rsp + 0x60]
mov dword [rsp + 0x40], 0x104
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x140006ded
test rcx, rcx
je 0x140006e47
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x60]
call fcn.14000126c
mov rbx, rax
test rax, rax
jne 0x140006ea1
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140006e69
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc rdi
cmp rdi, 1
jle 0x140006d07
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14000ac60
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140006eb1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
jmp 0x140006e78
Function at 0x140007a98
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, rcx
mov ebx, 0x10
mov ecx, ebx
call fcn.1400011a8
lea ecx, [rbx + 0x70]
mov rsi, rax
mov dword [rax + 0xc], ebx
call fcn.1400011a8
and dword [rsi + 8], 0
mov ecx, ebx
mov qword [rsi], rax
call fcn.1400011a8
lea rdx, [0x14003fdf0]
mov rcx, r12
mov r14, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
jne 0x140007b0f
mov rcx, r14
call fcn.1400011d4
mov rcx, rsi
call fcn.1400077d8
xor eax, eax
jmp 0x140007c47
lea r13, [0x14003fe1c]
mov qword [r14], rax
mov qword [r14 + 8], r13
mov rbp, qword [r14 + 8]
test rbp, rbp
je 0x140007b2d
and qword [r14 + 8], 0
jmp 0x140007b4b
mov rcx, qword [r14]
lea rdx, [0x14003fdf0]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
neg eax
sbb rbp, rbp
and rbp, r13
je 0x140007c2a
mov rcx, rbp
call fcn.140011bd0
cmp eax, 4
jl 0x140007b1d
movsxd rcx, eax
cmp byte [rcx + rbp - 4], 0x2e
jne 0x140007b1d
lea rbx, [rcx + rbp]
lea rcx, [rbx - 3]
lea rdx, [0x14002eee0]
call fcn.140017e90
test eax, eax
je 0x140007b8e
lea rdx, [0x14002eee4]
lea rcx, [rbx - 3]
call fcn.140017e90
test eax, eax
jne 0x140007b1d
mov edx, 0x3b
mov rcx, rbp
call fcn.14000bf78
test rax, rax
jne 0x140007b1d
mov rcx, r12
call fcn.140011bd0
mov rcx, rbp
mov rdi, rax
call fcn.140011bd0
mov rbx, rax
lea ecx, [rax + rdi]
movsxd rcx, ecx
call fcn.1400011a8
lea ecx, [rdi - 1]
mov rdx, r12
movsxd r8, ecx
mov r15, rax
mov rcx, rax
call fcn.14000b460
lea ecx, [rbx + 1]
mov rdx, rbp
movsxd r8, ecx
movsxd rcx, edi
dec rcx
add rcx, r15
call fcn.14000b460
mov ecx, dword [rsi + 8]
mov eax, dword [rsi + 0xc]
inc ecx
cmp eax, ecx
jge 0x140007c17
add eax, eax
cmp eax, ecx
jl 0x140007bfc
mov rcx, qword [rsi]
movsxd rdx, eax
shl rdx, 3
mov dword [rsi + 0xc], eax
call fcn.1400011dc
mov qword [rsi], rax
movsxd rcx, dword [rsi + 8]
mov rax, qword [rsi]
mov qword [rax + rcx*8], r15
inc dword [rsi + 8]
jmp 0x140007b1d
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [r14 + 8]
call fcn.1400011d4
mov rcx, r14
call fcn.1400011d4
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000b138
Capabilities:
Parse pe header

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

Function at 0x14001203c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140011ea7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140011ea7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140011ea7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140011ea7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140011ea7
cmp dword [rcx + 0x84], 0xe
jbe 0x140011ea7
cmp dword [rcx + 0xf8], 0
je 0x140011ea7
mov ecx, ebx
call fcn.140011f58
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140011d34
nop
cmp dword [rbp + 0x20], 0
je 0x140011ef5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140011f00
int3
xor r8d, r8d
xor edx, edx
jmp 0x140011e38

Function at 0x1400194d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140019507
call fcn.140019058
mov dword [rax], 0x16
call fcn.14001e2f8
xor eax, eax
jmp 0x140019595
mov rdx, r9
mov rcx, r8
call fcn.14001946c
mov rbx, rax
test rax, rax
je 0x140019592
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140019398]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14001957f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140018fcc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140019566
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140019575
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14001e3d8
jmp 0x140019592
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001958f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140019f84
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14003f068]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1400344b0]
mov rbp, rcx
call fcn.140023d20
xor edi, edi
test rax, rax
je 0x14001a06a
mov ebx, edi
call fcn.140019058
mov r14d, dword [rax]
call fcn.140019058
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140023c6c
mov rsi, rax
test rax, rax
je 0x140019ffb
call fcn.140019058
mov dword [rax], r14d
jmp 0x14001a025
call fcn.140019058
cmp dword [rax], 0x22
jne 0x14001a062
call fcn.140019058
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140023c6c
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14001a062
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14001a029
cmp rax, 3
je 0x14001a044
mov rcx, rsi
call fcn.140019ee0
test al, al
je 0x14001a055
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14001a055
mov dil, 1
mov rcx, rbx
call fcn.140011d10
mov al, dil
jmp 0x14001a06c
mov rcx, rbx
call fcn.140011d10
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000ac60
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14001c8cc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140040a40]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001c923
cmp word [rdx], r13w
jne 0x14001c923
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001c928
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001ca4d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001ca6e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001c961
mov rdx, r9
mov word [rbx], cx
jmp 0x14001c988
cmp r9, r8
jae 0x14001c998
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001c942
jmp 0x14001ca4d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001ca42
cmp dword [rsp + 0x80], esi
je 0x14001ca42
lea r8, [0x140040a40]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001ca1a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001c9ea
mov word [rbx], r13w
jmp 0x14001ca4a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001c9f7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001ca4a
cmp word [rsp + 0x70], r13w
jne 0x14001ca27
cmp rbx, r14
je 0x14001c9e4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140018ee0
cmp word [rsp + 0x70], r13w
je 0x14001ca4d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140040a40]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001ca47
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001ca4d
Function at 0x140025844
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 0x140025874
xor eax, eax
jmp 0x140025937
mov rbp, rbx
cmp word [rax], si
je 0x140025899
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140025880
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002587c
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.140022be8
movsxd r14, eax
test eax, eax
jne 0x1400258d7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002586d
mov rcx, r14
call fcn.14001edec
mov rdi, rax
test rax, rax
jne 0x1400258f0
xor ecx, ecx
call fcn.14001e3d8
jmp 0x1400258cc
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.140022be8
test eax, eax
jne 0x140025921
mov rcx, rdi
call fcn.14001e3d8
jmp 0x14002592b
xor ecx, ecx
call fcn.14001e3d8
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 0x140025954
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400259db
mov rsi, rbx
cmp word [rax], bp
je 0x14002599a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140025984
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140025980
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001edec
mov rdi, rax
test rax, rax
je 0x1400259c8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000b460
mov rbp, rdi
xor ecx, ecx
call fcn.14001e3d8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140026854
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140018ee0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140018ee0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400269a4
cmp rax, 0xffffffffffffffff
je 0x1400269a4
xor edi, edi
test rbp, rbp
jle 0x14002694f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001e360
mov rbx, rax
test rax, rax
jne 0x1400268dc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140026945
mov edx, 0x8000
mov ecx, r14d
call fcn.14001b000
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140021f04
cmp eax, 0xffffffff
je 0x140026925
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400268ec
mov edx, r15d
mov ecx, r14d
call fcn.14001b000
jmp 0x140026945
cmp byte [rsi + 0x38], dil
je 0x14002693c
cmp dword [rsi + 0x34], 5
jne 0x14002693c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140026945
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001e3d8
jmp 0x1400269b8
jns 0x1400269b8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140018ee0
cmp rax, 0xffffffffffffffff
jne 0x140026970
cmp byte [rsi + 0x30], dil
je 0x1400269b8
mov edi, dword [rsi + 0x2c]
jmp 0x1400269b8
mov ecx, r14d
call fcn.1400214cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400269b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400269b8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400269b1
mov eax, dword [rsi + 0x2c]
jmp 0x1400269b6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140018ee0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400282e0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400282f6
mov al, 1
jmp 0x140028356
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140028307
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140028354
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400214cc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140028354
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140028354
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140028354
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140028356
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140028e50
Capabilities:
Set environment variable

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 - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140013fa8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140028eda
cmp byte [rbp - 0x21], r15b
je 0x140028ed5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140028f10
call fcn.14001e680
test eax, eax
jne 0x140028efc
cmp byte [rbp - 0x21], r15b
je 0x140028ef4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140028f10
cmp byte [rbp - 0x21], r15b
je 0x140028f0d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140019118
test eax, eax
jne 0x140028fb0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140013fa8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140028f4f
cmp byte [rbp - 0x21], r15b
je 0x140028f84
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140028f84
call fcn.14001e680
test eax, eax
jne 0x140028f70
cmp byte [rbp - 0x21], r15b
je 0x140028f69
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140028f84
cmp byte [rbp - 0x21], r15b
je 0x140028f81
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140019118
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140028fb0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140028fb3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140028fc1
mov rcx, rdi
call fcn.14001e3d8
cmp byte [rbp + 0x3f], r15b
je 0x140028fd0
mov rcx, qword [rbp + 0x27]
call fcn.14001e3d8
lea r11, [rsp + 0xa0]
mov eax, ebx
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

Function at 0x14002915c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14003f068]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400291a6
call fcn.140019038
mov dword [rax], 0xf
call fcn.140019058
mov dword [rax], 0xd
call fcn.14001e2f8
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000ac60
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400291b1
lea eax, [rbx + 1]
jmp 0x140029193
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140029191
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140029193
Function at 0x1408af058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408af1df
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 0x1408af089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408af06f
add dl, dl
jne 0x1408af096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408af0f6
xor eax, eax
add dl, dl
jne 0x1408af0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408af1ad
add dl, dl
jne 0x1408af0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408af0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408af0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408af0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408af0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408af07e
mov eax, 1
add dl, dl
jne 0x1408af106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408af113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408af0fb
sub eax, ebx
mov ebx, 1
jne 0x1408af14c
mov ecx, 1
add dl, dl
jne 0x1408af12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408af13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408af123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408af07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408af168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408af175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408af15d
cmp eax, 0x7d00
jae 0x1408af19b
cmp eax, 0x500
jb 0x1408af196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408af07e
cmp eax, 0x7f
ja 0x1408af19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408af07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408af1d2
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 0x1408af07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001a95c
Capabilities:
Hide graphical window

Disassembly:
mov r11, rsp
sub rsp, 0x68
and qword [r11 - 0x10], 0
mov rax, qword [0x1400e44b8]
lea rdx, str.AutoIt_v3
mov qword [r11 - 0x18], rax
and qword [r11 - 0x20], 0
and qword [r11 - 0x28], 0
mov eax, 0x80000000
mov dword [rsp + 0x38], 0x64
mov dword [rsp + 0x30], 0x12c
mov dword [rsp + 0x28], eax
mov r9d, 0xcf0000
mov r8, rdx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
and qword [rsp + 0x58], 0
mov rcx, qword [0x1400e44b8]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x40], rax
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [0x1400ab2e0]
mov r9d, 0x50b008c4
xor r8d, r8d
xor ecx, ecx
mov qword [0x1400e4510], rax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, qword [0x1400e4510]
xor edx, edx
mov qword [0x1400e4508], rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400e4510]
xor edx, edx
add rsp, 0x68
jmp qword [sym.imp.USER32.dll_ShowWindow]