joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000723c
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x70
mov rdi, rcx
mov rcx, qword [rcx]
cmp word [rcx + 2], 0x3a
jne 0x140007462
cmp word [rcx + 4], 0x5c
je 0x14000726e
cmp word [rcx + 4], 0x2f
jne 0x140007462
movzx eax, word [rcx]
and word [rsp + 0x8e], 0
lea rcx, [rsp + 0x88]
mov word [rsp + 0x88], ax
mov word [rsp + 0x8a], 0x3a
mov word [rsp + 0x8c], 0x5c
call qword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
jne 0x14000745f
lea rdx, str.7ZSfx_03x.cmd
lea rcx, [rsp + 0x50]
call fcn.140005d28
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbp, rax
je 0x140007455
and qword [rsp + 0x40], 0
and dword [rsp + 0x48], 0
and dword [rsp + 0x4c], 0
lea rcx, [rsp + 0x40]
mov edx, 3
call fcn.140001190
lea rdx, str.:Repeat_r_n
lea rcx, [rsp + 0x40]
call fcn.1400013d4
lea rdx, str.del__
lea rcx, [rsp + 0x40]
call fcn.140002d94
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.140001440
lea rdx, [0x14001ede0]
lea rcx, [rsp + 0x40]
call fcn.140002d94
lea rdx, str.if_exist__
lea rcx, [rsp + 0x40]
call fcn.140002d94
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.140001440
lea rdx, str.__goto_Repeat_r_n
lea rcx, [rsp + 0x40]
call fcn.140002d94
lea rdx, str.del__
lea rcx, [rsp + 0x40]
call fcn.140002d94
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.140001440
lea rdx, [0x14001ede0]
lea rcx, [rsp + 0x40]
call fcn.140002d94
mov ebx, dword [rsp + 0x48]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
mov r8d, 1
call fcn.140003308
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov rdx, qword [rax]
mov r8d, ebx
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test ebx, ebx
je 0x140007441
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x80], eax
jne 0x140007441
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
and dword [rsp + 0x28], 0
mov r8, qword [rsp + 0x50]
and qword [rsp + 0x20], 0
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x14000744b
mov rcx, qword [rsp + 0x50]
call fcn.140003bb8
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rdi]
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140009aec
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov r9, r8
mov rbx, rcx
mov r8, rdx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rcx, rax
mov qword [rbx], rax
call fcn.140009a58
add rsp, 0x30
pop rbx
ret
Function at 0x14000c29c
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x510
mov rdi, rcx
mov rcx, qword [rcx + 8]
mov edx, 0x4b6
call qword [sym.imp.USER32.dll_GetDlgItem]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.1400021cc
mov r11d, dword [rsp + 0x3c]
mov ebx, 1
sub r11d, dword [rsp + 0x34]
mov r8d, ebx
mov edx, 0x4b6
add r11d, 2
mov rcx, rdi
mov dword [rdi + 0x80], r11d
call fcn.140009fa0
mov r8d, ebx
mov ebx, 0x4b7
mov rcx, rdi
mov edx, ebx
call fcn.140009fa0
lea rcx, [rsp + 0x40]
mov edx, 0x104
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
lea r8, [rsp + 0x250]
lea rcx, [rsp + 0x40]
mov r9d, 0x2b8
xor edx, edx
mov dword [rsp + 0x20], 0x103
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov r11, qword [rsp + 0x250]
mov rcx, qword [rdi + 8]
mov edx, ebx
mov qword [rdi + 0x70], r11
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r8, [0x14000a86c]
mov edx, 0xfffffffc
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, rdi
mov qword [rdi + 0x78], rax
call fcn.14000be1c
mov rcx, rdi
mov ebx, eax
call fcn.14000ad2c
mov eax, ebx
mov rbx, qword [rsp + 0x520]
add rsp, 0x510
pop rdi
ret
Function at 0x14000cd80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rsi
push r14
push r15
sub rsp, 0x20
mov r10d, dword [r9]
xor r15d, r15d
mov esi, r8d
and r10d, 7
cmp rdx, 5
mov r14, rcx
mov r11, r15
jae 0x14000cdb8
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x10], rdi
mov qword [rsp + 8], r12
add esi, 5
mov qword [rsp], r13
mov r13d, dword [rsp + 0x60]
or r12, 0xffffffffffffffff
lea rdi, [rcx + rdx - 4]
lea r9, [0x140000000]
nop
nop
lea r8, [r11 + r14]
cmp r8, rdi
jae 0x14000ce13
nop
nop
movzx eax, byte [r8]
and al, 0xfe
cmp al, 0xe8
je 0x14000ce13
add r8, 1
cmp r8, rdi
jb 0x14000ce00
mov r11, r8
sub r11, r14
cmp r8, rdi
jae 0x14000cf61
mov rax, r11
sub rax, r12
cmp rax, 3
jbe 0x14000ce52
mov r10d, r15d
movzx eax, byte [r8 + 4]
mov r12, r11
test al, al
je 0x14000ce9a
cmp al, 0xff
je 0x14000ce9a
and r10d, 3
add r10d, r10d
or r10d, 1
add r11, 1
jmp 0x14000cdf0
lea ecx, [rax - 1]
shl r10d, cl
and r10d, 7
je 0x14000ce31
movzx eax, byte [r10 + r9 + 0x1f310]
mov rcx, r8
sub rcx, rax
cmp byte [r10 + r9 + 0x1f308], r15b
movzx eax, byte [rcx + 4]
je 0x14000ce83
test al, al
je 0x14000ce83
cmp al, 0xff
jne 0x14000ce31
and r10d, 3
mov r12, r11
add r10d, r10d
or r10d, 1
add r11, 1
jmp 0x14000cdf0
movzx r9d, al
movzx eax, byte [r8 + 3]
movsxd rbp, r10d
shl r9d, 8
lea r14, [0x140000000]
or r9d, eax
movzx eax, byte [r8 + 2]
shl r9d, 8
or r9d, eax
movzx eax, byte [r8 + 1]
shl r9d, 8
or r9d, eax
nop
test r13d, r13d
je 0x14000cedd
lea edx, [r11 + r9]
add edx, esi
jmp 0x14000cee5
mov edx, r9d
sub edx, r11d
sub edx, esi
test r10d, r10d
je 0x14000cf27
movzx ebx, byte [r14 + rbp + 0x1f310]
mov ecx, 0x18
mov r9d, edx
shl ebx, 3
sub ecx, ebx
shr r9d, cl
test r9b, r9b
je 0x14000cf0e
cmp r9b, 0xff
jne 0x14000cf27
mov ecx, 0x20
mov r9d, 1
sub ecx, ebx
shl r9d, cl
sub r9d, 1
xor r9d, edx
jmp 0x14000ced0
mov r14, qword [rsp + 0x40]
mov eax, edx
mov byte [r8 + 1], dl
shr eax, 0x18
lea r9, [0x140000000]
and al, 1
sub al, 1
not al
mov byte [r8 + 4], al
mov eax, edx
shr eax, 0x10
mov byte [r8 + 3], al
mov eax, edx
shr eax, 8
add r11, 5
mov byte [r8 + 2], al
jmp 0x14000cdf0
mov r13, qword [rsp]
mov rdi, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x48]
mov rax, r11
sub rax, r12
mov r12, qword [rsp + 8]
cmp rax, 3
ja 0x14000cf92
lea ecx, [rax - 1]
shl r10d, cl
and r10d, 7
mov r15d, r10d
mov rax, qword [rsp + 0x58]
mov dword [rax], r15d
mov rax, r11
add rsp, 0x20
pop r15
pop r14
pop rsi
ret

Function at 0x140010c34
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [rcx]
mov rdi, rdx
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0xffffffff
mov ebx, eax
jne 0x140010c64
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x140010c64
xor al, al
jmp 0x140010c77
mov ecx, dword [rsp + 0x40]
mov rax, rbx
mov al, 1
shl rcx, 0x20
add rcx, rbx
mov qword [rdi], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140010d8c
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
mov rbx, r9
lea r9, [rsp + 0x58]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret
mov eax, dword [0x140023a50]
cmp r8d, eax
cmova r8d, eax
jmp 0x140010d8c

Function at 0x140010dc0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
and dword [rsp + 0x58], 0
and qword [rsp + 0x20], 0
mov rbx, r9
lea r9, [rsp + 0x58]
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret
mov eax, dword [0x140023a50]
cmp r8d, eax
cmova r8d, eax
jmp 0x140010d8c

Function at 0x140010e28
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x140023a50]
mov rcx, qword [rcx]
mov rbx, r9
cmp r8d, eax
lea r9, [rsp + 0x50]
cmova r8d, eax
and dword [rsp + 0x50], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [rsp + 0x50]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x140010e68
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
call fcn.140010c84
xor ebx, ebx
cmp al, bl
jne 0x140010e94
xor al, al
jmp 0x140010ea9
cmp qword [rsp + 0x40], rdi
jne 0x140010e90
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.DLL_SetEndOfFile]
cmp eax, ebx
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001b0d0
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x28
lea r10, [0x140023f40]
xor edx, edx
mov r8, r10
mov ecx, edx
mov eax, edx
add edx, 1
shr eax, 1
and ecx, 1
add r8, 4
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
xor eax, ecx
cmp edx, 0x100
mov dword [r8 - 4], eax
jb 0x14001b0e0
mov eax, 0x800
movsxd rcx, edx
cmp edx, eax
jae 0x14001b1d1
sub eax, edx
lea r8, [r10 + rcx*4]
mov r9d, eax
nop
nop
mov edx, dword [r8 - 0x400]
add r8, 4
movzx ecx, dl
shr edx, 8
mov eax, dword [r10 + rcx*4]
xor eax, edx
sub r9, 1
mov dword [r8 - 4], eax
jne 0x14001b1b0
lea rax, [0x14001b3f0]
mov qword [0x140023ee8], rax
call fcn.14001b210
mov rcx, qword [0x140023ee8]
lea rdx, [0x14001b300]
test eax, eax
cmove rcx, rdx
mov qword [0x140023ee8], rcx
add rsp, 0x28
ret
Function at 0x14001b9dc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140025f48], rdi
je 0x14001ba35
cmp rax, rdi
jne 0x14001ba28
mov esi, 1
jmp 0x14001ba35
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x14001ba0f
mov eax, dword [0x140025f40]
cmp eax, 1
jne 0x14001ba4a
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x14001baaf
mov eax, dword [0x140025f40]
test eax, eax
jne 0x14001baa5
mov dword [0x140025f40], 1
lea r12, [0x14001d7d0]
lea rdi, [0x14001d7b8]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x14001ba97
test eax, eax
jne 0x14001ba97
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001ba8c
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x14001ba75
test eax, eax
je 0x14001baaf
mov eax, 0xff
jmp 0x14001bbf9
mov dword [0x140023f14], 1
mov eax, dword [0x140025f40]
cmp eax, 1
jne 0x14001bad7
lea rdx, [0x14001d7b0]
lea rcx, [0x14001d710]
call sub.msvcrt.dll__initterm
mov dword [0x140025f40], 2
test esi, esi
jne 0x14001bae4
xor eax, eax
xchg qword [0x140025f48], rax
cmp qword [0x140025f50], 0
je 0x14001bb0d
lea rcx, [0x140025f50]
call fcn.14001bde8
test eax, eax
je 0x14001bb0d
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x140025f50]
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
ja 0x14001bb98
cmp byte [rdi], 0
je 0x14001bb2e
test esi, esi
jne 0x14001bb98
cmp byte [rdi], 0
je 0x14001bb42
cmp byte [rdi], 0x20
ja 0x14001bb42
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x14001bb2e
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rdi
xor edx, edx
lea rcx, [0x140000000]
call fcn.140009a18
mov dword [0x140023f10], eax
cmp dword [0x140023ef4], 0
jne 0x14001bb81
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140023f14], 0
jne 0x14001bb96
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140023f10]
jmp 0x14001bbf9
cmp byte [rdi], 0x22
jne 0x14001bbaa
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14001bbbf
inc rdi
mov qword [rsp + 0x28], rdi
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x14001bb20
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
sub rsp, 0x28
call fcn.14001bedc
add rsp, 0x28
jmp 0x14001b9dc
Function at 0x14001be3c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x14001be89
cmp rcx, 0xffffffffffffffff
je 0x14001be89
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001be81
cmp dword [rcx + 0x3c], edx
jl 0x14001be81
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14001be81
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14001be89
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140006bb8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x1400080a0]
test rax, rax
je 0x140006c02
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006c02
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006c02
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006c02
cmp dword [rcx + 0x84], 0xe
jbe 0x140006c02
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006c04
xor al, al
add rsp, 0x28
ret
Function at 0x140001580
Capabilities:
Encode data using xor

Disassembly:
mov r9, rcx
mov eax, 0xffffffff
test edx, edx
je 0x140001647
mov r10d, edx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
xor eax, edx
mov edx, eax
shr edx, 1
mov ecx, edx
xor ecx, 0xeb31d82e
and al, 1
cmove ecx, edx
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xeb31d82e
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
invalid
int1
fdiv dword cs:[rcx]

Function at 0x1400016d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400540b8]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, r8
mov esi, r9d
movzx r8d, cl
movzx ebx, dx
sub r8d, 1
je 0x14000195b
sub r8d, 1
je 0x140001840
cmp r8d, 1
je 0x140001724
mov rdx, rdi
movzx ecx, bx
call fcn.140001650
jmp 0x1400019e2
mov eax, esi
movzx r9d, bx
shr eax, 0x11
lea r8, str.P_04Xc_s_08X
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x30]
mov edx, 0x50
mov qword [rsp + 0x20], rdi
call fcn.1400011b0
mov r8d, 0xffffffff
lea rax, [rsp + 0x30]
mov rdx, 0xffffffffffffffff
nop
inc rdx
cmp byte [rax + rdx], 0
jne 0x140001760
test edx, edx
je 0x14000182a
lea r9, [rsp + 0x30]
mov r10d, edx
nop dword [rax]
mov eax, esi
movzx r9d, bx
shr eax, 0x11
lea r8, str.__04X_s_08X
sub byte [rdx + 4], bl
add byte [rcx + 0x48282444], cl
lea ecx, [rsp + 0x30]
mov edx, 0x50
mov qword [rsp + 0x20], rdi
call fcn.1400011b0
mov r8d, 0xffffffff
lea rax, [rsp + 0x30]
mov rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp byte [rax + rdx], 0
jne 0x140001880
test edx, edx
je 0x14000194a
lea r9, [rsp + 0x30]
mov r10d, edx
nop dword [rax]
movzx eax, byte [r9]
lea r9, [r9 + 1]
xor r8d, eax
mov eax, r8d
shr eax, 1
mov ecx, eax
xor ecx, 0x82f63b78
and r8b, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0x82f63b78
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0x82f63b78
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0x82f63b78
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0x82f63b78
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0x82f63b78
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0x82f63b78
and dl, 1
cmove ecx, eax
mov eax, ecx
rcl ecx, 0xe8
mov r8d, eax
xor r8d, 0x82f63b78
and cl, 1
cmove r8d, eax
sub r10, 1
jne 0x1400018a0
not r8d
and r8d, 0x1fffe0
bts r8d, 0x16
jmp 0x1400019b2
mov eax, esi
movzx r9d, bx
shr eax, 0x10
lea r8, str._04X__s__08X_
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x30]
mov edx, 0x50
mov qword [rsp + 0x20], rdi
call fcn.1400011b0
lea rax, [rsp + 0x30]
mov rdx, 0xffffffffffffffff
nop
inc rdx
cmp byte [rax + rdx], 0
jne 0x140001990
lea rcx, [rsp + 0x30]
call fcn.140001580
mov r8d, eax
and r8d, 0x1fffe0
bts r8d, 0x15

Function at 0x140007080
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
mov esi, eax
movabs eax, dword [0xda8b088900409214]
test ebx, ebx
jle 0x1400070a1
mov eax, 0xff
call fcn.140002680
xor byte [rsi], al
jne 0x140007091
pop rsi
pop rbx
ret
Function at 0x14000c970
Capabilities:
Hide graphical window
Manipulate console buffer

Disassembly:
push rbx
push rdi
sub rsp, 0x468
mov rax, qword [0x1400540b8]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rdi, qword [rcx + 0x38]
test edx, edx
jne 0x14000c9b6
lea rcx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rdi + 8]
call fcn.140009050
lea rcx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14000cb0a
mov qword [rsp + 0x490], rsi
lea rsi, [rdi + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x400
call fcn.1400180a0
cmp byte [rdi + 0x10], 0
je 0x14000ca23
lea r8, str.CLEAR
mov edx, 0x200
lea rcx, [rsp + 0x50]
call fcn.140001090
lea rcx, [rdi + 0x40]
lea rdx, [rsp + 0x50]
call fcn.14000f120
test eax, eax
je 0x14000ca23
mov byte [rdi + 0x10], 0
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rbx, qword [rdi + 8]
cmp byte [rbx + 0x1c], 0
jne 0x14000caf9
cmp dword [rbx + 0xc28], 0
je 0x14000caf9
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x38]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14000caf9
movsx ecx, word [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x488], rbp
movsx ebp, word [rbx + 0xc2e]
sub ebp, 2
mov qword [rsp + 0x460], r14
imul ebp, ecx
xor r14d, r14d
mov dword [rsp + 0x30], 0x20000
mov rcx, rdi
mov ebx, dword [rsp + 0x30]
mov r9d, ebx
mov qword [rsp + 0x20], rax
lea edx, [r14 + 0x20]
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
test eax, eax
je 0x14000cae9
movzx edx, word [rsp + 0x40]
lea rax, [rsp + 0x34]
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov r8d, ebp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
je 0x14000cae9
mov word [rsp + 0x32], r14w
mov rcx, rdi
mov edx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov rbp, qword [rsp + 0x488]
mov r14, qword [rsp + 0x460]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rsi, qword [rsp + 0x490]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140016da0
add rsp, 0x468
pop rdi
pop rbx
ret
Function at 0x14000ea10
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
push rsi
sub rsp, 0xa70
mov rax, qword [0x1400540b8]
xor rax, rsp
mov qword [rsp + 0xa60], rax
mov rsi, rcx
movabs rax, 0x5443454e4e4f43
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov edx, 8
call fcn.14002781c
mov dword [rsp + 0x30], 0x4e20
lea r9, [rsp + 0x60]
lea rdx, [rsp + 0x50]
lea rcx, str..pipeddexecnonsecurepipe
lea r8d, [rax + 1]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.KERNEL32.dll_CallNamedPipeW]
test eax, eax
jne 0x14000ea8f
mov eax, 1
jmp 0x14000eb75
mov qword [rsp + 0xa88], rbx
lea r9, [rsp + 0x60]
mov r8d, 0x400
mov qword [rsp + 0xa90], rbp
lea rdx, [rsp + 0x260]
mov qword [rsp + 0x20], 0x200
lea rcx, [rsp + 0x48]
call fcn.14002b33c
lea rdx, str.CONNECTED
xor ebp, ebp
lea rcx, [rsp + 0x260]
call fcn.140018820
mov rbx, rax
test rax, rax
je 0x14000eb95
lea rax, [rsp + 0x260]
cmp rbx, rax
jne 0x14000eb95
lea rcx, str.CONNECTED
mov qword [rsp + 0xa98], rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
lea rdx, [0x14004c914]
lea rdi, [rbx + rcx*2]
mov rcx, rdi
call fcn.140018820
mov rbx, rax
test rax, rax
je 0x14000eb8e
lea r8, [rsi + 0x14]
mov word [rax], bp
mov r9d, 0x200
lea rdx, [0x14004c918]
mov rcx, rdi
call fcn.1400010f0
lea r8, [rsi + 0x10]
lea rcx, [rbx + 2]
lea rdx, [0x14004c920]
call fcn.1400010f0
mov eax, ebp
mov rdi, qword [rsp + 0xa98]
mov rbx, qword [rsp + 0xa88]
mov rbp, qword [rsp + 0xa90]
mov rcx, qword [rsp + 0xa60]
xor rcx, rsp
call fcn.140016da0
add rsp, 0xa70
pop rsi
ret
mov eax, 1
jmp 0x14000eb5d
mov eax, 1
jmp 0x14000eb65
Function at 0x14000eba0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x658
mov rax, qword [0x1400540b8]
xor rax, rsp
mov qword [rsp + 0x640], rax
movsxd rbx, r9d
mov rbp, r8
mov r9, r8
mov qword [rsp + 0x20], rbx
mov rdi, rdx
mov rsi, rcx
mov r8d, 0x200
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
call fcn.14002b928
lea r8d, [rbx*2 + 2]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test eax, eax
jne 0x14000ec2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error:_WriteFile_failed._Error_code__ld_n
call fcn.140001030
lea eax, [rdi + 1]
jmp 0x14000ecdd
lea rdx, [0x14004c988]
mov rcx, rbp
call fcn.140027684
test eax, eax
je 0x14000ec68
lea rdx, [0x14004c998]
mov rcx, rbp
call fcn.140018820
test rax, rax
jne 0x14000ec68
lea rdx, str.DISCONNECT
mov rcx, rbp
call fcn.140018820
test rax, rax
je 0x14000ec6c
xor eax, eax
jmp 0x14000ecdd
mov r9d, dword [rsi + 0x10]
lea r8, str._ldOK
mov edx, 0x200
lea rcx, [rsp + 0x240]
call fcn.140001090
xor ecx, ecx
call fcn.14002ad78
xor ecx, ecx
mov rbx, rax
call fcn.14002ad78
sub rax, rbx
cmp rax, 2
jge 0x14000ecdb
nop dword [rax]
nop word [rax + rax]
lea rdx, [rsp + 0x240]
mov rcx, rsi
call fcn.14000f2d0
test eax, eax
je 0x14000ec68
xor ecx, ecx
call fcn.14002ad78
sub rax, rbx
cmp rax, 2
jl 0x14000ecb0
mov eax, 1
jmp 0x14000ecdd
mov eax, edi
mov rcx, qword [rsp + 0x640]
xor rcx, rsp
call fcn.140016da0
add rsp, 0x658
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14000ed00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xa50
mov rax, qword [0x1400540b8]
xor rax, rsp
mov qword [rsp + 0xa40], rax
xor r15d, r15d
movsxd rsi, r9d
mov dword [rsp + 0x30], r15d
mov edi, r15d
mov r14, r8
mov rbp, rdx
nop dword [rax]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x200
call fcn.1400180a0
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r15
mov r8d, 0x200
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test eax, eax
jne 0x14000ed83
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14000edd2
mov r8, rsi
mov qword [rsp + 0x20], 0x200
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x38]
call fcn.14002b33c
mov eax, esi
lea r9, [rsp + 0x240]
sub eax, edi
lea r8, [0x140047240]
movsxd rdx, eax
movsxd rax, edi
lea rcx, [r14 + rax*2]
call fcn.140001090
add edi, eax
test ebx, ebx
je 0x14000ed40
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0xa40]
xor rcx, rsp
call fcn.140016da0
mov rbx, qword [rsp + 0xa80]
add rsp, 0xa50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret