joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002f34
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x140031058]
xor rax, rsp
mov qword [rsp + 0x60], rax
and dword [rsp + 0x28], 0
lea rax, [rsp + 0x58]
and dword [rsp + 0x58], 0
mov rsi, rcx
mov rcx, qword [rcx + 8]
mov rbx, r9
mov rbp, r8
mov qword [rsp + 0x20], rax
mov rdi, rdx
lea r8, [rsp + 0x54]
mov r9d, 4
lea rdx, str.BlockLength
mov rcx, qword [rcx]
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
mov r8, qword [rdi + 8]
lea rax, [rsp + 0x50]
sub r8, qword [rdi]
xor r9d, r9d
mov rdx, qword [rdi]
mov rcx, qword [rsi]
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x40], rax
and dword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
jne 0x14000302a
mov edx, dword [rsp + 0x50]
mov rcx, rbx
call fcn.140003a04
mov r9, qword [rbx]
lea rcx, [rsp + 0x50]
mov rax, qword [rbx + 8]
mov r8, qword [rdi + 8]
sub rax, r9
sub r8, qword [rdi]
mov rdx, qword [rdi]
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsi]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x54]
mov qword [rsp + 0x30], r9
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
sete al
jmp 0x14000302c
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140004030
add rsp, 0x78
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400033c4
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov rax, qword [0x140031058]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r12, qword [rsp + 0xa0]
xor ebx, ebx
cmp qword [rcx + 0x18], 0x10
mov r15, r9
mov r14, r8
mov word [rsp + 0x20], 0x6272
mov rbp, rdx
mov byte [rsp + 0x22], bl
mov rdi, rcx
mov dword [rsp + 0x24], ebx
jb 0x140003413
mov rcx, qword [rcx]
lea rdx, [rsp + 0x20]
call fcn.14000c4d4
mov rsi, rax
test rax, rax
jne 0x14000346c
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14000345f
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14000345a
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003562
mov rcx, r8
call fcn.1400042dc
mov qword [rdi + 0x10], rbx
xor al, al
mov byte [rdi], bl
jmp 0x14000353c
mov r13d, 2
xor edx, edx
mov r8d, r13d
mov rcx, rsi
call fcn.14000b9a8
mov rcx, rsi
call fcn.14000c380
mov r8d, r13d
lea edx, [r13 - 6]
mov rcx, rsi
mov ebx, eax
call fcn.14000b9a8
mov r13d, 1
lea rcx, [rsp + 0x24]
mov r9, rsi
mov r8d, r13d
lea edx, [r13 + 3]
call fcn.14000b670
mov edx, dword [rsp + 0x24]
xor r8d, r8d
sub ebx, edx
mov rcx, rsi
sub ebx, 0x34
mov dword [r14], ebx
call fcn.14000b9a8
mov r8d, dword [r14]
mov r9, rsi
mov edx, r13d
mov rcx, rbp
call fcn.14000b670
mov r9, rsi
lea r8d, [r13 + 0x1f]
mov edx, r13d
mov rcx, r15
call fcn.14000b670
mov r9, rsi
lea r8d, [r13 + 0xf]
mov edx, r13d
mov rcx, r12
call fcn.14000b670
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140003534
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14000352f
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003562
mov rcx, r8
call fcn.1400042dc
and qword [rdi + 0x10], 0
mov byte [rdi], 0
mov qword [rdi + 0x18], 0xf
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140004030
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14000bde8
int3

Function at 0x140004cc8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004d12
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004d12
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004d12
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004d12
cmp dword [rcx + 0x84], 0xe
jbe 0x140004d12
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004d14
xor al, al
add rsp, 0x28
ret
Function at 0x14000c19c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140004840
sub rsp, rax
mov rax, qword [0x140031058]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140012ccc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14000c1eb
mov rax, rbp
jmp 0x14000c2f3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x32cd0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140016b44
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x32cd0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14000c2ef
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000c2ef
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140016b44
test rax, rax
js 0x14000c2ef
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14000c2ef
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14000c2e1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14000c2e1
cmp byte [rcx], 0xd
jne 0x14000c2c7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14000c2d6
cmp byte [rcx + 1], 0xa
jne 0x14000c2d6
inc rcx
jmp 0x14000c2d6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x31430]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14000c2a9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14000c2f3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140004030
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140011a84
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140011880

Function at 0x140012dec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140012e02
mov al, 1
jmp 0x140012e62
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140012e13
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140012e60
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001ac98
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140012e60
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140012e60
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140012e60
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140012e62
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140015ee4
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, [0x140032cd0]
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 0x140015f3b
cmp word [rdx], r13w
jne 0x140015f3b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140015f40
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140016065
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140016086
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140015f79
mov rdx, r9
mov word [rbx], cx
jmp 0x140015fa0
cmp r9, r8
jae 0x140015fb0
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 0x140015f5a
jmp 0x140016065
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 0x14001605a
cmp dword [rsp + 0x80], esi
je 0x14001605a
lea r8, [0x140032cd0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140016032
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140016002
mov word [rbx], r13w
jmp 0x140016062
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 0x14001600f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140016062
cmp word [rsp + 0x70], r13w
jne 0x14001603f
cmp rbx, r14
je 0x140015ffc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140016b4c
cmp word [rsp + 0x70], r13w
je 0x140016065
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, [0x140032cd0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001605f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140016065
Function at 0x14001a0f8
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 0x14001a128
xor eax, eax
jmp 0x14001a1eb
mov rbp, rbx
cmp word [rax], si
je 0x14001a14d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001a134
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001a130
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.1400189c4
movsxd r14, eax
test eax, eax
jne 0x14001a18b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001a121
mov rcx, r14
call fcn.140016f50
mov rdi, rax
test rax, rax
jne 0x14001a1a4
xor ecx, ecx
call fcn.1400148d4
jmp 0x14001a180
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.1400189c4
test eax, eax
jne 0x14001a1d5
mov rcx, rdi
call fcn.1400148d4
jmp 0x14001a1df
xor ecx, ecx
call fcn.1400148d4
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 0x14001eb54
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.14000a4bc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001ebde
cmp byte [rbp - 0x21], r15b
je 0x14001ebd9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001ec14
call fcn.1400154a0
test eax, eax
jne 0x14001ec00
cmp byte [rbp - 0x21], r15b
je 0x14001ebf8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001ec14
cmp byte [rbp - 0x21], r15b
je 0x14001ec11
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.140010fb8
test eax, eax
jne 0x14001ecb4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000a4bc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001ec53
cmp byte [rbp - 0x21], r15b
je 0x14001ec88
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001ec88
call fcn.1400154a0
test eax, eax
jne 0x14001ec74
cmp byte [rbp - 0x21], r15b
je 0x14001ec6d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001ec88
cmp byte [rbp - 0x21], r15b
je 0x14001ec85
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.140010fb8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001ecb4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001ecb7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001ecc5
mov rcx, rdi
call fcn.1400148d4
cmp byte [rbp + 0x3f], r15b
je 0x14001ecd4
mov rcx, qword [rbp + 0x27]
call fcn.1400148d4
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 0x14001f0d4
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.140016b4c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140016b4c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14001f224
cmp rax, 0xffffffffffffffff
je 0x14001f224
xor edi, edi
test rbp, rbp
jle 0x14001f1cf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140013880
mov rbx, rax
test rax, rax
jne 0x14001f15c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14001f1c5
mov edx, 0x8000
mov ecx, r14d
call fcn.140012914
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.1400145cc
cmp eax, 0xffffffff
je 0x14001f1a5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14001f16c
mov edx, r15d
mov ecx, r14d
call fcn.140012914
jmp 0x14001f1c5
cmp byte [rsi + 0x38], dil
je 0x14001f1bc
cmp dword [rsi + 0x34], 5
jne 0x14001f1bc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14001f1c5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400148d4
jmp 0x14001f238
jns 0x14001f238
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140016b4c
cmp rax, 0xffffffffffffffff
jne 0x14001f1f0
cmp byte [rsi + 0x30], dil
je 0x14001f238
mov edi, dword [rsi + 0x2c]
jmp 0x14001f238
mov ecx, r14d
call fcn.14001ac98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14001f238
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 0x14001f238
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14001f231
mov eax, dword [rsi + 0x2c]
jmp 0x14001f236
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140016b4c
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 0x1400202b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400202d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400202d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14002943c
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.14001cb04
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001cb04
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002958c
cmp rax, 0xffffffffffffffff
je 0x14002958c
xor edi, edi
test rbp, rbp
jle 0x140029537
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f430
mov rbx, rax
test rax, rax
jne 0x1400294c4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002952d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a438
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.14001d7e0
cmp eax, 0xffffffff
je 0x14002950d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400294d4
mov edx, r15d
mov ecx, r14d
call fcn.14001a438
jmp 0x14002952d
cmp byte [rsi + 0x38], dil
je 0x140029524
cmp dword [rsi + 0x34], 5
jne 0x140029524
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002952d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b1cc
jmp 0x1400295a0
jns 0x1400295a0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001cb04
cmp rax, 0xffffffffffffffff
jne 0x140029558
cmp byte [rsi + 0x30], dil
je 0x1400295a0
mov edi, dword [rsi + 0x2c]
jmp 0x1400295a0
mov ecx, r14d
call fcn.1400188f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400295a0
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 0x1400295a0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029599
mov eax, dword [rsi + 0x2c]
jmp 0x14002959e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001cb04
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 0x140001190
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x18
syscall
ret
Function at 0x140008838
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140079050], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x140008898
movdqa xmm0, xmmword [0x140057a50]
movdqa xmm1, xmmword [0x140057a40]
movdqa xmmword [0x14006ddd0], xmm0
movdqa xmm0, xmmword [0x140057a20]
movdqa xmmword [0x14006dde0], xmm1
movdqa xmm1, xmmword [0x140057a30]
movdqa xmmword [0x14006ddf0], xmm0
movdqa xmmword [0x14006de00], xmm1
xor edx, edx
mov r8d, 0xf0
call fcn.1400430a0
xor edx, edx
mov qword [rbx + 0x110], rdx
mov byte [rbx + 0x118], dl
mov rcx, qword [rbx + 0xf8]
lea rax, [0x140057a00]
mov eax, dword [rdx + rax]
mov dword [rdx + rcx], eax
add rdx, 4
cmp rdx, 0x20
jl 0x1400088b4
mov rax, qword [rbx + 0xf8]
bts edi, 0xd
shl edi, 0x10
xor dword [rax], 0x2080020
mov rax, qword [rbx + 0xf8]
xor dword [rax + 8], esi
mov rax, qword [rbx + 0xf8]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor dword [rax + 0xc], edi
add rsp, 0x20
pop rdi
ret

Function at 0x14000a5ec
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14006d358]
xor rax, rsp
mov qword [rbp - 8], rax
mov dil, dl
mov rbx, rcx
lea rax, [rcx + 0x400]
xor esi, esi
mov qword [rax + 0x10], rsi
cmp qword [rax + 0x18], 8
jb 0x14000a62e
mov rax, qword [rax]
mov word [rax], si
mov byte [rcx + 0x3f1], sil
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rbp - 0x28], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x14000a64e
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.1400033a4
nop
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], si
mov qword [rbp - 0x50], rsi
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x28]
call fcn.140031458
test al, al
je 0x14000a6d5
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x28]
call fcn.140031458
test al, al
je 0x14000a6d5
lea rdx, [rbp - 0x48]
mov rcx, rbx
test dil, dil
je 0x14000a6c4
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
call fcn.14000a8e8
jmp 0x14000a692
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
call fcn.14000a100
jmp 0x14000a692
test dil, dil
jne 0x14000a6e3
mov rcx, rbx
call fcn.14000a718
nop
lea rcx, [rbp - 0x48]
call fcn.140003250
nop
lea rcx, [rbp - 0x28]
call fcn.140003250
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140040e70
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000dde8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14006d358]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
lea rcx, [rbp - 0x28]
call fcn.140031c20
nop
lea rcx, [rbp - 0x28]
call fcn.1400319c0
mov ecx, 1
call fcn.140049850
cmp rbx, rax
jne 0x14000de34
cmp byte [0x14006de25], 0
jne 0x14000de54
mov ecx, 2
call fcn.140049850
cmp rbx, rax
jne 0x14000df61
cmp byte [0x14006de26], 0
je 0x14000df61
mov ecx, 1
call fcn.140049850
sub rbx, rax
neg rbx
sbb ecx, ecx
add ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
mov ecx, dword [0x14006de20]
cmp ecx, 3
jne 0x14000deaa
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
mov r8d, dword [rbp - 0x18]
add r8d, r8d
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14000dfa2
and qword [rbp - 0x48], 0
movdqa xmm0, xmmword [0x140057950]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], 0
lea rdx, [rbp - 0x48]
cmp ecx, 4
lea rcx, [rbp - 0x28]
jne 0x14000ded4
call fcn.140034df0
jmp 0x14000ded9
call fcn.140034c9c
test dword [0x14006de20], 0xfffffffd
jne 0x14000df02
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x48]
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.USER32.dll_CharToOemA]
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rdx, qword [rbp - 0x48]
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x50]
mov r8d, dword [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x14000dfa2
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000df5a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000dfc8
call fcn.140040cf4
jmp 0x14000dfa2
mov ecx, 2
call fcn.140049850
xor ecx, ecx
cmp rbx, rax
setne cl
add ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x4c]
mov r8d, dword [rbp - 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
nop
lea rcx, [rbp - 0x28]
call fcn.140003250
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140040e70
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rbp
ret
call fcn.140046224
nop
int3