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

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.140002610
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002610
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140001860
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400070b4]
mov r12, rcx
test ebx, ebx
jle 0x140001990
mov rax, qword [0x1400070b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1400018ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001933
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140001890
mov rcx, r12
call fcn.1400022c0
mov rsi, rax
test rax, rax
je 0x1400019b2
mov rax, qword [0x1400070b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1400023f0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400070b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001997
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000192c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001940
add dword [0x1400070b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400070b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000192c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400017f0
nop dword [rax]
xor ebx, ebx
jmp 0x1400018b7
mov rax, qword [0x1400070b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400017f0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400017f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001f30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140007120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140007100]
test rbx, rbx
je 0x140001f84
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140001f7b
test r12, r12
je 0x140001f7b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f60
lea rcx, [0x140007120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400022c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400022e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400022e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400022e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002335
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000232c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400022e0
add rax, 0x28
cmp rax, r9
jne 0x140002318
xor eax, eax
ret

Function at 0x140002340
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043b0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002360
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002368
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002360
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1400023f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043b0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002410
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002418
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004460]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004470]
mov dword [rax], 1
mov rax, qword [0x140004480]
mov dword [rax], 1
mov rax, qword [0x1400043e0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004450]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140004520]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004500]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400043c0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001b20
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001b90
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070a4]
mov rbx, rcx
test esi, esi
jle 0x140001cc0
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001bdb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001c65
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001bc0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001ce2
mov rax, qword [0x1400070a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001cc7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001c5e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001c70
add dword [0x1400070a4], 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 [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001be8
mov rax, qword [0x1400070a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002270
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x1400022cc
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 rsi, rsi
je 0x1400022c3
test eax, eax
jne 0x1400022c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400022a8
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 0x1400024e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400024f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002500
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002510
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000255d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002554
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000255f
add rax, 0x28
cmp rax, r9
jne 0x140002540
xor eax, eax
ret

Function at 0x140002560
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400025f0
mov rdx, qword [0x1400043e0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400025de
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400025de
cmp word [rax + 0x18], 0x20b
jne 0x1400025de
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400025f0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400025c9
add rbx, 0x28
cmp rbx, rdi
je 0x1400025f0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400025c0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002600
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002620
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002628
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002620
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000267d
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 0x140002674
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002620
add rax, 0x28
cmp rax, r9
jne 0x140002660
xor eax, eax
ret

Function at 0x140002680
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000269f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400026a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000269f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400026c0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400026e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400026e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400026e0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002730
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002727
test rcx, rcx
je 0x1400026e0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002718
xor eax, eax
ret

Function at 0x140002740
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000275f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002768
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002780
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400027a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400027a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400027a0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400027a0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400027f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002800
add rdx, 0x28
cmp rdx, r9
jne 0x1400027e0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002810
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400043e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002832
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002840
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002832
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002832
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002832
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002895
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400028a8
add rdx, 0x28
cmp r10, rdx
jne 0x140002880
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400028b7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400028c7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000289e
test ecx, ecx
jg 0x1400028b0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001490
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov rbx, qword [rdx]
mov rsi, rcx
lea rcx, [rbp + 0x30]
mov r14d, r8d
mov rdi, rdx
call qword [0x1400b5ba0]
mov eax, dword [rbp + 0x30]
lea rdx, [rbp + 0x30]
mov dword [rdi + 0x290], eax
mov rcx, rbx
mov eax, dword [rbp + 0x34]
mov dword [rdi + 0x294], eax
call qword [0x1400b5d00]
mov rax, qword [rbp + 0x30]
mov ecx, dword [rbp + 0x34]
cmp eax, dword [rdi + 0x298]
je 0x1400498a4
mov dword [rdi + 0x298], eax
mov dword [rdi + 0x29c], ecx
cmp r14d, 1
jge 0x1400498b5
mov ecx, dword [rsi + 0x18]
call qword [0x1400b5c08]
mov ecx, dword [rsi + 0x1c]
mov ebx, 0x8000
movzx r15d, ax
mov r12d, 0
and r15w, bx
setne r12b
call qword [0x1400b5c08]
movzx r13d, ax
mov eax, 0
and r13w, bx
mov ebx, eax
setne bl
cmp r12d, dword [rdi + 0x2a0]
jne 0x1400498d2
test r14d, r14d
je 0x140001561
mov dword [rdi + 0x2a0], r12d
cmp ebx, dword [rdi + 0x2a4]
jne 0x140049959
test r14d, r14d
je 0x140001578
mov dword [rdi + 0x2a4], ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
cmp ecx, dword [rdi + 0x29c]
je 0x14000150d
jmp 0x1400014f7
mov dword [rsp + 0x20], ecx
mov r9d, eax
mov rcx, rsi
mov r8, rdi
mov edx, 0xfffffff5
call fcn.1400a8e00
nop
jmp 0x14000150d
cmp r14d, 1
jl 0x140001555
cmp byte [rdi + 0x2e0], al
je 0x140001555
mov eax, dword [rbp + 0x34]
mov r8, rdi
mov r9d, dword [rbp + 0x30]
mov rcx, rsi
mov dword [rsp + 0x20], eax
test r15w, r15w
je 0x140049906
mov edx, 0xfffffff9
jmp 0x140049947
mov edx, 0xfffffff8
call fcn.1400a8e00
xor eax, eax
cmp byte [rdi + 0x2a8], al
je 0x14004994e
mov rcx, qword [rdi]
lea edx, [rax - 0x10]
call qword [0x1400b59d0]
mov r9d, dword [rbp + 0x30]
mov r8, rdi
bt eax, 0x18
mov rcx, rsi
mov eax, dword [rbp + 0x34]
mov edx, 0xfffffffa
mov dword [rsp + 0x20], eax
jb 0x140049947
mov edx, 0xfffffff4
call fcn.1400a8e00
xor eax, eax
mov byte [rdi + 0x2a8], al
jmp 0x140001555
cmp r14d, 1
jl 0x14000156d
mov eax, dword [rbp + 0x34]
mov r8, rdi
mov r9d, dword [rbp + 0x30]
mov rcx, rsi
mov dword [rsp + 0x20], eax
mov edx, 0xfffffff7
test r13w, r13w
jne 0x140049984
mov edx, 0xfffffff6
call fcn.1400a8e00
nop
jmp 0x14000156d
Function at 0x140002914
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x1ff70]
mov eax, 0x20070
call fcn.140048f00
sub rsp, rax
lea rcx, [rsp + 0x50]
mov rsi, rdx
call fcn.14000717c
xor bl, bl
lea rdx, [rsp + 0x70]
mov ecx, 0x7fff
mov byte [rbp + 0x1ffa0], bl
xor dil, dil
call qword [0x1400b5640]
lea r8, [rbp + 0x1ffb0]
mov rdx, rsi
call fcn.140003068
call qword [0x1400b5638]
test eax, eax
jne 0x140049f22
mov eax, dword [0x1400f04a0]
test eax, eax
je 0x140049f44
mov r15d, 1
lea rcx, [0x1400f2260]
cmp eax, r15d
je 0x140049f50
lea rax, [rbp + 0x1ffa0]
lea r8, [0x1400f04a0]
mov qword [rsp + 0x20], rax
lea rdx, [0x1400f04c8]
call fcn.140003928
test al, al
je 0x140049f74
mov al, byte [0x1400f2260]
lea r9, [rbp + 0x1ffb8]
mov rcx, qword [0x1400f04c8]
lea r8, [rbp + 0xff70]
mov dil, byte [0x1400f2261]
mov edx, 0x7fff
mov byte [0x1400f04a4], al
call qword [0x1400b5430]
mov rdx, qword [rbp + 0x1ffb8]
lea rcx, [0x1400f0480]
call fcn.140005d7c
mov bl, byte [rbp + 0x1ffa0]
mov r8d, dword [0x1400f04a0]
lea rdx, [0x1400f04c8]
call fcn.14000199c
test eax, eax
jne 0x140049f80
cmp dil, r15b
je 0x140049fa3
call fcn.140002ce8
call fcn.140002e20
cmp byte [0x1400f04a4], 0
jne 0x140002a53
lea rcx, [0x1400f0e90]
call fcn.140003e90
mov edx, r15d
lea rcx, [0x1400f04f0]
call fcn.140010f30
cmp byte [0x1400f04a4], 0
jne 0x140002a77
lea rcx, [0x1400f0e90]
call fcn.1400039c0
lea rcx, [0x1400f2260]
call fcn.140002b48
lea rcx, [rsp + 0x70]
call qword [0x1400b5630]
lea rcx, [rsp + 0x50]
call fcn.140008a8c
add rsp, 0x20070
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r9d, 0x10
lea r8, [0x1400dc24c]
lea rdx, str.This_is_a_third_party_compiled_AutoIt_script.
xor ecx, ecx
call qword [0x1400b5ea0]
nop
jmp 0x140002a8e
or dword [0x1400f03a0], 0xffffffff
jmp 0x140002a83
mov r8, qword [0x1400f04a8]
or r9d, 0xffffffff
mov edx, r15d
call fcn.14000cbe8
mov al, byte [0x1400f03a8]
mov byte [0x1400f2262], al
jmp 0x140002a10
mov dword [0x1400f03a0], r15d
jmp 0x140002a83
lea rcx, [0x1400f2260]
call fcn.140002b48
lea rcx, [rsp + 0x70]
call qword [0x1400b5630]
mov dword [0x1400f03a0], r15d
jmp 0x140002a8e
call fcn.14006d3a0
test al, al
jne 0x140002a34
cmp byte [rbp + 0x1ffb0], al
jne 0x140002a34
lea rcx, [rsp + 0x50]
call fcn.140003808
lea rdx, [0x1400d8714]
lea rcx, [rsp + 0x30]
call fcn.14000d54c
lea rcx, [rsp + 0x30]
test bl, bl
je 0x14004a00b
lea rdx, [0x1400dc280]
call fcn.14000534c
lea rdx, [0x1400f04c8]
lea rcx, [rsp + 0x30]
call fcn.140005cac
lea rdx, [0x1400dc280]
lea rcx, [rsp + 0x30]
jmp 0x14004a00e
mov rdx, rsi
call fcn.14000534c
mov rbx, qword [rsp + 0x30]
call qword [0x1400b5e98]
mov r8, qword [rsp + 0x50]
lea rdx, str.runas
mov rcx, rax
mov dword [rsp + 0x28], r15d
lea rax, [rsp + 0x70]
mov r9, rbx
mov qword [rsp + 0x20], rax
call qword [0x1400b59a8]
lea rcx, [rsp + 0x30]
call fcn.140008a8c
nop
jmp 0x140002a77
Function at 0x140002e20
Capabilities:
Hide graphical window

Disassembly:
mov r11, rsp
sub rsp, 0x68
and qword [r11 - 0x10], 0
lea rdx, str.AutoIt_v3
mov rax, qword [0x1400f0398]
mov r9d, 0xcf0000
mov qword [r11 - 0x18], rax
mov r8, rdx
and qword [r11 - 0x20], 0
mov eax, 0x80000000
and qword [r11 - 0x28], 0
xor ecx, ecx
mov dword [rsp + 0x38], 0x64
mov dword [rsp + 0x30], 0x12c
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [0x1400b5e70]
and qword [rsp + 0x58], 0
lea rdx, str.edit
mov rcx, qword [0x1400f0398]
mov r9d, 0x50b008c4
mov qword [rsp + 0x50], rcx
xor r8d, r8d
mov qword [rsp + 0x48], 1
xor ecx, ecx
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
mov qword [0x1400f03f0], rax
call qword [0x1400b5e70]
mov rcx, qword [0x1400f03f0]
xor edx, edx
mov qword [0x1400f03e8], rax
call qword [0x1400b5e68]
mov rcx, qword [0x1400f03f0]
xor edx, edx
add rsp, 0x68
jmp qword [0x1400b5e68]
Function at 0x140004b58
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x20
and qword [rsp + 0x30], 0
mov r10, r9
cmp byte [rcx + 0x20], 0
mov r11, r8
mov rbx, rdx
jne 0x14004aea2
mov r9, qword [rsp + 0x50]
mov r8, r10
mov rdx, r11
mov rcx, rbx
call fcn.140034bcc
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rcx + 0x18]
lea r9, [rsp + 0x30]
imul r10d, r11d
mov rax, qword [rcx]
mov r8d, r10d
call qword [rax + 0x18]
mov rax, qword [rsp + 0x30]
jmp 0x140004b8a

Function at 0x140004e54
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov esi, r9d
mov rbp, r8
test r8, r8
je 0x140004f14
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x140004f14
lea rax, [r11 - 0x18]
mov word [rdi], bx
lea r9d, [rbx + 1]
mov qword [r11 - 0x28], rax
xor r8d, r8d
call qword [0x1400b5028]
test eax, eax
jne 0x140004f14
mov rcx, qword [rsp + 0x30]
lea eax, [rsi + rsi]
mov dword [rsp + 0x60], eax
xor r9d, r9d
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [0x1400b5038]
test eax, eax
jne 0x140004ee9
mov eax, dword [rsp + 0x60]
shr eax, 1
mov ecx, eax
mov dword [rsp + 0x60], eax
cmp eax, esi
jae 0x140004f0b
mov eax, ecx
mov word [rdi + rcx*2], bx
mov bl, 1
mov rcx, qword [rsp + 0x30]
call qword [0x1400b5030]
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
lea eax, [rsi - 1]
mov word [rdi + rax*2], bx
jmp 0x140004ee7
xor al, al
jmp 0x140004ef6
Function at 0x140008ca0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x10], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x140008d49
xor edi, edi
test rsi, rsi
je 0x140008cf2
mov eax, dword [rbx + 0x14]
cmp eax, dword [rbx + 0x10]
je 0x140008d0e
mov rcx, qword [rbx + 8]
movsxd rdx, eax
movzx edx, byte [rdx + rcx]
mov byte [rdi + rbp], dl
inc rdi
inc dword [rbx + 0x14]
mov eax, dword [rbx + 0x14]
cmp rdi, rsi
jb 0x140008cd1
add qword [rbx + 0x18], rdi
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rbx + 8]
lea r9, [rsp + 0x40]
mov rcx, qword [rbx]
mov r8d, 0x10000
mov qword [rsp + 0x20], 0
call qword [0x1400b53b0]
test eax, eax
je 0x140008cf2
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140008cf2
mov dword [rbx + 0x10], eax
xor eax, eax
mov dword [rbx + 0x14], 0
jmp 0x140008cd6
mov qword [rcx + 0x10], 0
lea r8, [rsp + 0x40]
mov rcx, qword [rcx]
mov r9d, 1
xor edx, edx
call qword [0x1400b53a0]
mov rax, qword [rsp + 0x40]
mov qword [rbx + 0x18], rax
jmp 0x140008cc7