joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004660
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4038
call fcn.140008760
sub rsp, rax
mov rax, qword [0x140032010]
xor rax, rsp
mov qword [rsp + 0x4020], rax
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140005680
mov r8d, 0x2000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400046f6
mov r8d, 0x2000
lea rdx, [rsp + 0x2020]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor r8d, r8d
lea rdx, [rsp + 0x20]
xor ecx, ecx
call fcn.140005760
test rax, rax
je 0x1400046f6
cmp byte [rax], 0
je 0x1400046f6
mov rcx, rax
call fcn.14000f038
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.140008720
add rsp, 0x4038
ret
xor eax, eax
mov rcx, qword [rsp + 0x4020]
xor rcx, rsp
call fcn.140008720
add rsp, 0x4038
ret

Function at 0x140004710
Capabilities:
Create directory

Disassembly:
push rbx
mov eax, 0x4060
call fcn.140008760
sub rsp, rax
mov rax, qword [0x140032010]
xor rax, rsp
mov qword [rsp + 0x4050], rax
mov rbx, rdx
mov r8d, 0x1000
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.14000e110
mov r8d, 0x1000
lea rcx, [rsp + 0x1050]
mov rdx, rbx
call fcn.14000e110
cmp byte [rsp + 0x104f], 0
jne 0x1400048fe
cmp byte [rsp + 0x204f], 0
jne 0x1400048fe
mov qword [rsp + 0x4080], rdi
lea rax, [rsp + 0x50]
or rdi, 0xffffffffffffffff
nop word [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140004790
lea rdx, [0x140022634]
lea rcx, [rsp + 0x1050]
call fcn.14000e27c
mov rbx, rax
test rax, rax
je 0x1400048ac
nop dword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rbx + rcx], 0
jne 0x1400047c4
inc rdi
add rdi, rcx
cmp rdi, 0xfff
jae 0x140004889
lea rcx, [rsp + 0x50]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400047f0
movzx eax, word [0x140022634]
mov word [rcx], ax
lea rax, [rsp + 0x50]
dec rax
nop dword [rax]
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x140004810
xor edx, edx
nop dword [rax]
movzx ecx, byte [rbx + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x140004820
lea rdx, [0x140022634]
xor ecx, ecx
call fcn.14000e27c
mov rbx, rax
test rax, rax
je 0x1400048ac
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x2050]
call fcn.140005680
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x2050]
call fcn.14000eaac
test eax, eax
jns 0x1400047c0
lea rcx, [rsp + 0x2050]
call fcn.14000fabc
jmp 0x1400047c0
xor eax, eax
mov rdi, qword [rsp + 0x4080]
mov rcx, qword [rsp + 0x4050]
xor rcx, rsp
call fcn.140008720
add rsp, 0x4060
pop rbx
ret
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x2050]
call fcn.140005680
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x2050]
call fcn.14000eaac
test eax, eax
jne 0x1400048eb
lea rdx, [rsp + 0x50]
lea rcx, str.WARNING:_file_already_exists_but_should_not:__s_n
call fcn.140001ca0
lea rdx, [0x14002390c]
lea rcx, [rsp + 0x50]
call fcn.140002b10
jmp 0x14000488b
xor eax, eax
jmp 0x140004893
Function at 0x140004ce0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, rcx
xor r8d, r8d
xor ecx, ecx
call fcn.140005680
xor edx, edx
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, rdi
mov ebx, eax
call fcn.14000a8bc
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140004d20
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2110
call fcn.140008760
sub rsp, rax
mov rax, qword [0x140032010]
xor rax, rsp
mov qword [rsp + 0x2100], rax
mov rdx, rcx
xor edi, edi
lea rcx, [rsp + 0x100]
mov dword [rsp + 0x50], edi
mov r8d, 0x1000
call fcn.140005680
mov ebx, 1
lea ecx, [rdi + 0x16]
mov edx, ebx
call fcn.14001076c
mov edx, ebx
lea ecx, [rdi + 2]
call fcn.14001076c
mov edx, ebx
lea ecx, [rdi + 0xf]
call fcn.14001076c
mov edx, ebx
lea ecx, [rdi + 0x15]
call fcn.14001076c
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], ebx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov qword [rsp + 0x98], rdi
xor ecx, ecx
movdqa xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xcc], 0x101
mov word [rsp + 0xd0], bx
call fcn.14000b8a0
mov rcx, rax
call fcn.14000f6e8
mov ecx, eax
call fcn.1400102dc
mov ecx, ebx
mov qword [rsp + 0xe0], rax
call fcn.14000b8a0
mov rcx, rax
call fcn.14000f6e8
mov ecx, eax
call fcn.1400102dc
lea ecx, [rdi + 2]
mov qword [rsp + 0xe8], rax
call fcn.14000b8a0
mov rcx, rax
call fcn.14000f6e8
mov ecx, eax
call fcn.1400102dc
mov qword [rsp + 0xf0], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rsp + 0x100]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140004e9f
mov rcx, qword [rsp + 0x70]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x50]
jmp 0x140004eb5
lea rdx, str.Error_creating_child_process__n
lea rcx, [0x140023930]
call fcn.140001aa0
or eax, 0xffffffff
mov rcx, qword [rsp + 0x2100]
xor rcx, rsp
call fcn.140008720
mov rbx, qword [rsp + 0x2128]
add rsp, 0x2110
pop rdi
ret
Function at 0x14000fae8
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14000fb08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000dfc8
or eax, 0xffffffff
jmp 0x14000fb0a
xor eax, eax
add rsp, 0x28
ret

Function at 0x14000fe38
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140032010]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor esi, esi
mov rbx, rdx
test rdx, rdx
jne 0x14000fb77
call fcn.14000e038
mov dword [rax], 0x16
call fcn.140013280
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140008720
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test rcx, rcx
je 0x14000fb3e
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000fbe5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x14000fbb8
cmp eax, 3
jbe 0x14000fbd5
cmp eax, 8
je 0x14000fbc5
cmp eax, 0x12
je 0x14000fbd5
call fcn.14000e038
mov dword [rax], 0x16
jmp 0x14000fb4e
call fcn.14000e038
mov dword [rax], ntohl
jmp 0x14000fb4e
call fcn.14000e038
mov dword [rax], 2
jmp 0x14000fb4e
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, esi
mov dword [rbx], eax
call fcn.14000fd80
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.14000fd80
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.14000fd80
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.140018730
test eax, eax
jne 0x14000fc43
mov rax, rdi
jmp 0x14000fb52
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400132a0
int3
jmp 0x14000fb10
Function at 0x14000fe40
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x140032010]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edi, edi
mov rbx, rdx
test rcx, rcx
jne 0x14000fcb5
call fcn.14000e038
mov dword [rax], 0x16
call fcn.140013280
or eax, 0xffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140008720
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x290
pop rdi
ret
cmp rcx, 0xffffffffffffffff
je 0x14000fc81
test rdx, rdx
je 0x14000fc81
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000fd10
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x14000fce9
cmp eax, 3
jbe 0x14000fd03
cmp eax, 8
je 0x14000fcf6
cmp eax, 0x12
je 0x14000fd03
call fcn.14000e038
mov dword [rax], 0x16
jmp 0x14000fc91
call fcn.14000e038
mov dword [rax], ntohl
jmp 0x14000fc91
call fcn.14000e038
mov dword [rax], 2
jmp 0x14000fc91
mov eax, dword [rsp + 0x30]
lea rcx, [rsp + 0x34]
cmp eax, 0x80
cmove eax, edi
mov dword [rbx], eax
call fcn.14000fd80
lea rcx, [rsp + 0x3c]
mov qword [rbx + 8], rax
call fcn.14000fd80
lea rcx, [rsp + 0x44]
mov qword [rbx + 0x10], rax
call fcn.14000fd80
mov qword [rbx + 0x18], rax
lea rcx, [rbx + 0x24]
mov eax, dword [rsp + 0x50]
lea r8, [rsp + 0x5c]
mov edx, 0x104
mov dword [rbx + 0x20], eax
call fcn.140018730
test eax, eax
je 0x14000fc94
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.1400132a0
int3
jmp 0x14000fc58

Function at 0x140010958
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140010978
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000dfc8
or eax, 0xffffffff
jmp 0x14001097a
xor eax, eax
add rsp, 0x28
ret
Function at 0x140011d48
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140011b1c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140011b1c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140011b1c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140011b1c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140011b1c
cmp dword [rcx + 0x84], 0xe
jbe 0x140011b1c
cmp dword [rcx + 0xf8], esi
je 0x140011b1c
mov ecx, r14d
call fcn.140011c64
mov ecx, 2
call fcn.1400185a0
nop
cmp byte [0x140040740], 0
jne 0x140011be6
mov r15d, 1
mov eax, r15d
xchg dword [0x140040734], eax
test ebx, ebx
jne 0x140011b8f
mov rdi, qword [0x140032010]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140040738]
cmp rcx, rax
je 0x140011b86
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400026c0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140040750]
jmp 0x140011b9b
cmp ebx, r15d
jne 0x140011ba1
lea rcx, [0x140040768]
call fcn.140012218
nop
test ebx, ebx
jne 0x140011bb8
lea rdx, [0x1400223b0]
lea rcx, [0x140022388]
call fcn.1400119dc
lea rdx, [0x1400223c0]
lea rcx, [0x1400223b8]
call fcn.1400119dc
movzx eax, byte [0x140040740]
test esi, esi
cmove eax, r15d
mov byte [0x140040740], al
jmp 0x140011be6
mov ecx, 2
call fcn.1400185f4
test esi, esi
jne 0x140011bfd
mov ecx, r14d
call fcn.140011c18
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140011aac
Function at 0x1400142e0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140014180
call fcn.14000e038
mov dword [rax], 0x16
call fcn.140013280
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140014168
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140014168
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1400141b2
lock or dword [rax + 0x14], 0x10
jmp 0x140014168
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1400141cf
mov rcx, qword [rbp + 0x10]
call fcn.14001b5d4
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14000f6e8
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140013bb8
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140014226
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140014168
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140014292
mov rcx, qword [rbp + 0x10]
call fcn.14000f6e8
cmp eax, 0xffffffff
je 0x140014279
mov rcx, qword [rbp + 0x10]
call fcn.14000f6e8
cmp eax, 0xfffffffe
je 0x140014279
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14000f6e8
movsxd rdi, eax
lea rsi, [0x140040790]
mov rcx, rbx
sar rdi, 6
call fcn.14000f6e8
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x140014280
lea rax, [0x140032270]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140014292
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1400142c8
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1400142c4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1400142c4
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14001416b
jmp 0x140014138
Function at 0x14000e200
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x140222820]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov rcx, rdx
mov rbx, r8
call qword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64]
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x410
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
mov r8, qword [rbx]
cmp dword [r8 + 4], 0
je 0x14000e27b
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64]
mov r9, rdi
lea r8, str.__s___s
lea rcx, [rbp]
mov qword [rsp + 0x20], rax
mov edx, 0x410
call fcn.1400040e8
and qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000e3ab
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
and qword [rsp + 0x68], 0
mov r9d, 2
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, 0x20f01ff
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x70]
and qword [rsp + 0x70], 0
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
xor eax, eax
lea rcx, [rbp - 0x70]
xorps xmm0, xmm0
mov qword [rbp - 0x78], rax
xor edx, edx
movups xmmword [rsp + 0x78], xmm0
lea ebx, [rax + 0x70]
mov r8d, ebx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x68]
lea rax, str.winsta0default
mov qword [rbp - 0x60], rax
lea r8, [rbp]
lea rax, [rsp + 0x78]
mov dword [rbp - 0x70], ebx
mov qword [rsp + 0x50], rax
xor r9d, r9d
lea rax, [rbp - 0x70]
mov rdx, rdi
mov qword [rsp + 0x48], rax
and qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x628
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
setne bl
test eax, eax
je 0x14000e382
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test bl, bl
je 0x14000e3ab
mov al, 1
jmp 0x14000e3ad
xor al, al
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.14001af60
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140010c68
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 9], 0
mov rdx, rcx
je 0x140010c9b
xor r8d, r8d
mov cl, r8b
movabs rax, 0x51533f1509c71599
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 9
jb 0x140010c74
mov byte [rdx + 9], 0
mov rax, rdx
ret
Function at 0x140010ca0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x25], 0
mov rdx, rcx
je 0x140010cd3
xor r8d, r8d
mov cl, r8b
movabs rax, 0x61a7ddf587214d1b
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 0x25
jb 0x140010cac
mov byte [rdx + 0x25], 0
mov rax, rdx
ret

Function at 0x140010cd8
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xb], 0
mov rdx, rcx
je 0x140010d0b
xor r8d, r8d
mov cl, r8b
movabs rax, 0x33936bbb8fbf972b
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 0xb
jb 0x140010ce4
mov byte [rdx + 0xb], 0
mov rax, rdx
ret

Function at 0x140010d10
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xa], 0
mov rdx, rcx
je 0x140010d43
xor r8d, r8d
mov cl, r8b
movabs rax, 0xb5e3ff6f79e787bf
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 0xa
jb 0x140010d1c
mov byte [rdx + 0xa], 0
mov rax, rdx
ret

Function at 0x140010d48
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 9], 0
mov rdx, rcx
je 0x140010d7b
xor r8d, r8d
mov cl, r8b
movabs rax, 0x717f5d0f8b9d9be7
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 9
jb 0x140010d54
mov byte [rdx + 9], 0
mov rax, rdx
ret
Function at 0x1004010c0
Capabilities:
Terminate process
Write file on windows

Disassembly:
sub rsp, 0x28
call fcn.100402670
call sub.msys_2.0.dll___getreent
mov ecx, 0xa
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputc
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fflush
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
nop word cs:[rax + rax]

Function at 0x100401100
Capabilities:
Terminate process
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [str.tset]
call sub.msys_2.0.dll___getreent
mov r8, rbx
lea rdx, str.Usage:__s__options___terminal__n
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fprintf
call sub.msys_2.0.dll___getreent
mov r8d, 0x1f4
mov edx, 1
lea rcx, str._nOptions:_n___c__________set_control_characters_n___e_ch_______erase_character_n___I__________no_initialization_strings_n___i_ch_______interrupt_character_n___k_ch_______kill_character_n___m_mapping__map_identifier_to_type_n___Q__________do_not_output_control_key_settings_n___q__________display_term_only__do_no_changes_n___r__________display_term_on_stderr_n___s__________output_TERM_set_command_n___V__________print_curses_version_n___w__________set_window_size_n_nIf_neither__c__w_are_given__both_are_assumed._n
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
nop

Function at 0x100401150
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
call sub.msys_2.0.dll___getreent
mov rax, qword [rax + 8]
and word [rax + 0x10], 0xff9f
call sub.msys_2.0.dll___getreent
mov rax, qword [rax + 8]
test byte [rax + 0x10], 0x20
jne 0x10040124e
call sub.msys_2.0.dll___getreent
mov rax, qword [rax + 8]
test byte [rax + 0x10], 0x40
jne 0x10040124e
lea rbx, [section..bss]
test rsi, rsi
je 0x100401204
call sub.msys_2.0.dll___getreent
mov r8, rsi
lea rdx, str.Terminal_type____s_
lea rbx, [section..bss]
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fprintf
call sub.msys_2.0.dll___getreent
mov rcx, qword [rax + 0x18]
call sub.msys_2.0.dll_fflush
call sub.msys_2.0.dll___getreent
mov edx, 0x100
mov rcx, rbx
mov r8, qword [rax + 8]
call sub.msys_2.0.dll_fgets
test rax, rax
je 0x100401230
mov edx, 0xa
mov rcx, rbx
call sub.msys_2.0.dll_strchr
test rax, rax
je 0x1004011f6
mov byte [rax], 0
cmp byte [section..bss], 0
jne 0x100401240
test rsi, rsi
jne 0x100401235
call sub.msys_2.0.dll___getreent
mov r8d, 0xf
mov edx, 1
lea rcx, str.Terminal_type_
mov r9, qword [rax + 0x18]
call sub.msys_2.0.dll_fwrite
jmp 0x1004011b8
test rsi, rsi
je 0x100401266
mov rax, rsi
add rsp, 0x28
pop rbx
pop rsi
ret
lea rax, [section..bss]
add rsp, 0x28
pop rbx
pop rsi
ret
call sub.msys_2.0.dll___getreent
mov ecx, 0xa
mov rdx, qword [rax + 0x18]
call sub.msys_2.0.dll_fputc
call fcn.1004010c0
call fcn.1004010c0
nop
nop dword [rax]
Function at 0x100401740
Capabilities:
Read file on windows
Terminate process
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
call sub.msys_2.0.dll___errno
mov ebx, dword [rax]
mov ecx, ebx
call sub.msys_2.0.dll_strerror
mov rdi, rax
mov rax, qword [0x100405790]
mov rbp, qword [rax]
call sub.msys_2.0.dll___getreent
mov r9, rsi
lea rdx, [0x1004056e0]
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x20], rdi
mov r8, rbp
call sub.msys_2.0.dll_fprintf
call fcn.100402670
mov rdx, qword [0x100409128]
mov ecx, 0xa
call sub.msys_2.0.dll_fputc
mov rcx, qword [0x100409128]
call sub.msys_2.0.dll_fflush
lea ecx, [rbx + 4]
call sub.msys_2.0.dll_exit
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1004017c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x420
mov r14, rcx
test rcx, rcx
je 0x100401860
lea rdx, [0x1004056ec]
call sub.msys_2.0.dll_fopen
mov r12, rax
test rax, rax
je 0x100401865
xor r13d, r13d
lea rsi, [rsp + 0x20]
jmp 0x100401822
mov r9, qword [0x100409128]
mov r8, rbx
mov edx, 1
mov rcx, rsi
mov r13d, 1
call sub.msys_2.0.dll_fwrite
cmp rax, rbx
jne 0x100401865
mov r9, r12
mov r8d, 0x400
mov edx, 1
mov rcx, rsi
call sub.msys_2.0.dll_fread
mov rbx, rax
test rax, rax
jne 0x100401800
mov rcx, r12
call sub.msys_2.0.dll_fclose
mov eax, r13d
add rsp, 0x420
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
xor r13d, r13d
jmp 0x100401848
mov rcx, r14
call fcn.100401740
nop
nop
Function at 0x100401870
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
movsxd r9, r9d
mov rdi, r8
mov r8d, dword [rsp + 0x70]
movzx ebx, byte [r9 + rdx + 0x11]
movzx eax, byte [r9 + rcx + 0x11]
mov ebp, ebx
cmp ebx, eax
jne 0x1004018a8
cmp eax, r8d
jne 0x1004018a8
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp ebx, eax
lea rsi, [0x1004056ee]
lea rax, str.set_to
cmovne rsi, rax
call sub.msys_2.0.dll___getreent
mov r8, rdi
lea rdx, str._s__s
mov rcx, qword [rax + 0x18]
mov r9, rsi
call sub.msys_2.0.dll_fprintf
test ebx, ebx
je 0x100401938
cmp ebx, 0x7f
je 0x1004019b0
mov rax, qword [sym.imp.msys_ncursesw6.dll_cur_term]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x1b8]
test rax, rax
je 0x100401903
cmp bpl, byte [rax]
je 0x100401980
cmp ebx, 0x1f
ja 0x100401960
call sub.msys_2.0.dll___getreent
mov ebx, ebp
lea rdx, str.control__c___c_._n
xor ebx, 0x40
mov rcx, qword [rax + 0x18]
movzx ebx, bl
mov r9d, ebx
mov r8d, ebx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sub.msys_2.0.dll_fprintf
call sub.msys_2.0.dll___getreent
mov r8d, 7
mov edx, 1
lea rcx, str.undef._n
mov r9, qword [rax + 0x18]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sub.msys_2.0.dll_fwrite
call sub.msys_2.0.dll___getreent
mov r8d, ebx
lea rdx, str._c._n
mov rcx, qword [rax + 0x18]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sub.msys_2.0.dll_fprintf
cmp byte [rax + 1], 0
jne 0x100401903
call sub.msys_2.0.dll___getreent
mov r8d, 0xb
mov edx, 1
lea rcx, str.backspace._n
mov r9, qword [rax + 0x18]
jmp 0x100401953
call sub.msys_2.0.dll___getreent
mov r8d, 8
mov edx, 1
lea rcx, str.delete._n
mov r9, qword [rax + 0x18]
jmp 0x100401953