joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140129cc0
Capabilities:
Encode data using xor

Disassembly:
push rdi
push r13
sub rsp, 0x28
mov dword [rcx], 0x4000400
mov r10, rcx
mov r13d, edx
mov r9d, 0x400
test edx, edx
je 0x140129d3d
lea rax, [rcx + 8]
mov ecx, r13d
nop word [rax + rax]
mov dword [rax - 4], 0x4000400
mov dword [rax], 0x4000400
mov dword [rax + 4], 0x4000400
mov dword [rax + 8], 0x4000400
mov dword [rax + 0xfc], 0x4000400
mov dword [rax + 0x100], 0x4000400
mov dword [rax + 0x104], 0x4000400
mov dword [rax + 0x108], 0x4000400
lea rax, [rax + 0x10]
sub rcx, 1
jne 0x140129cf0
movzx eax, r9w
lea rdi, [r10 + 0x204]
mov ecx, 0x100
rep stosw word [rdi], ax
test r8b, r8b
jne 0x140129eaf
test edx, edx
je 0x140129eaf
mov qword [rsp + 0x48], rbx
lea rax, [r10 + 0x4808]
mov qword [rsp + 0x20], rbp
xor ebx, ebx
mov qword [rsp + 0x18], rsi
lea rsi, [0x14018a290]
mov qword [rsp + 0x10], r12
mov qword [rsp + 8], r14
mov qword [rsp], r15
lea r15, [r10 + 0x404]
mov qword [rsp + 0x40], rax
nop word [rax + rax]
mov ebp, dword [r10 + 0x4804]
lea rdi, [0x14018a290]
mov dword [rax], ebp
movzx ecx, word [r10]
mov eax, ecx
xor rcx, 0x7f0
shr rcx, 4
shr rax, 4
movzx edx, byte [rcx + rdi]
movzx esi, byte [rax + rsi]
movzx ecx, word [r10 + 2]
mov eax, ecx
mov dword [rsp + 0x50], esi
shr rax, 4
xor rcx, 0x7f0
shr rcx, 4
movzx r14d, byte [rax + rdi]
xor eax, eax
movzx r12d, byte [rcx + rdi]
add r14d, edx
add r12d, edx
test ebp, ebp
je 0x140129e68
mov r11, r15
cmp eax, 8
jae 0x140129eb7
xor r9d, r9d
lea r8d, [rax + 8]
lea rsi, [0x14018a290]
nop word [rax + rax]
mov edx, r8d
shr r8d, 1
and edx, 1
mov ecx, r8d
add rcx, rbx
movzx edi, word [r10 + rcx*2 + 4]
mov ecx, edx
neg ecx
shr rdi, 4
shr rcx, 4
and ecx, 0x7f
xor rdi, rcx
movzx ecx, byte [rdi + rsi]
add r9d, ecx
cmp r8d, 1
jne 0x140129e20
mov ecx, dword [rsp + 0x50]
inc eax
add ecx, r9d
mov dword [r11], ecx
add r11, 4
cmp eax, ebp
jb 0x140129e00
lea rsi, [0x14018a290]
mov rax, qword [rsp + 0x40]
add r15, 0x440
add rax, 4
add rbx, 8
mov qword [rsp + 0x40], rax
sub r13, 1
jne 0x140129da0
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov r12, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop r13
pop rdi
ret
cmp eax, ebp
jae 0x140129e68
lea r11, [r15 + rax*4]
lea rsi, [0x14018a290]
cmp eax, 0x10
jae 0x140129f1e
xor r9d, r9d
mov r8d, eax
mov edx, r8d
shr r8d, 1
and edx, 1
mov ecx, r8d
add rcx, rbx
movzx edi, word [r10 + rcx*2 + 0x104]
mov ecx, edx
neg ecx
shr rdi, 4
shr rcx, 4
and ecx, 0x7f
xor rdi, rcx
movzx ecx, byte [rdi + rsi]
add r9d, ecx
cmp r8d, 1
jne 0x140129ed1
lea ecx, [r9 + r14]
inc eax
mov dword [r11], ecx
add r11, 4
cmp eax, ebp
jb 0x140129ec6
jmp 0x140129e6f
lea r11, [r15 + rax*4]
nop dword [rax]
nop word [rax + rax]
xor r9d, r9d
lea r8d, [rax + 0xf0]
nop word [rax + rax]
mov ecx, r8d
shr r8d, 1
and ecx, 1
neg ecx
shr rcx, 4
movzx edi, word [r10 + r8*2 + 0x204]
and ecx, 0x7f
shr rdi, 4
xor rdi, rcx
movzx ecx, byte [rdi + rsi]
add r9d, ecx
cmp r8d, 1
jne 0x140129f40
lea ecx, [r9 + r12]
inc eax
mov dword [r11], ecx
add r11, 4
cmp eax, ebp
jb 0x140129f30
jmp 0x140129e6f
Function at 0x140129f90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
push r14
push r15
mov esi, dword [rcx + 0x4804]
lea r9, [0x14018a290]
mov ebp, edx
mov r11, rcx
mov dword [rcx + rbp*4 + 0x4808], esi
lea r12, [r11 + 0x404]
movzx edx, word [rcx]
movzx ecx, word [rcx + 2]
mov eax, edx
shr rax, 4
xor rdx, 0x7f0
shr rdx, 4
movzx r14d, byte [rax + r9]
mov eax, ecx
movzx r8d, byte [rdx + r9]
xor rcx, 0x7f0
shr rax, 4
shr rcx, 4
mov dword [rsp + 0x38], r14d
movzx r15d, byte [rax + r9]
movzx r13d, byte [rcx + r9]
add r15d, r8d
imul rax, rbp, 0x440
add r13d, r8d
xor r9d, r9d
add r12, rax
test esi, esi
je 0x14012a179
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rdi
mov rdi, r12
cmp r9d, 8
jae 0x14012a09f
xor r10d, r10d
lea r8d, [r9 + 8]
lea rbx, [rbp*8]
lea r14, [0x14018a290]
nop dword [rax]
nop dword [rax + rax]
mov ecx, r8d
shr r8d, 1
and ecx, 1
mov eax, r8d
add rax, rbx
movzx edx, word [r11 + rax*2 + 4]
mov eax, ecx
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
movzx eax, byte [rdx + r14]
add r10d, eax
cmp r8d, 1
jne 0x14012a050
mov eax, dword [rsp + 0x38]
inc r9d
add eax, r10d
mov dword [rdi], eax
add rdi, 4
cmp r9d, esi
jb 0x14012a028
jmp 0x14012a16f
cmp r9d, esi
jae 0x14012a16f
lea rdi, [r12 + r9*4]
lea r14, [0x14018a290]
cmp r9d, 0x10
jae 0x14012a11c
xor r10d, r10d
lea rbx, [rbp*8]
mov r8d, r9d
nop word [rax + rax]
mov ecx, r8d
shr r8d, 1
and ecx, 1
mov eax, r8d
add rax, rbx
movzx edx, word [r11 + rax*2 + 0x104]
mov eax, ecx
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
movzx eax, byte [rdx + r14]
add r10d, eax
cmp r8d, 1
jne 0x14012a0d0
lea eax, [r10 + r15]
inc r9d
mov dword [rdi], eax
add rdi, 4
cmp r9d, esi
jb 0x14012a0b3
jmp 0x14012a16f
lea rbx, [r12 + r9*4]
xor r10d, r10d
lea eax, [r9 + 0xf0]
nop word [rax + rax]
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
shr rcx, 4
movzx r8d, word [r11 + rax*2 + 0x204]
and ecx, 0x7f
shr r8, 4
xor r8, rcx
movzx ecx, byte [r8 + r14]
add r10d, ecx
cmp eax, 1
jne 0x14012a130
lea eax, [r10 + r13]
inc r9d
mov dword [rbx], eax
add rbx, 4
cmp r9d, esi
jb 0x14012a120
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x14012d8b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov r12d, 4
lea rbx, [rcx + 0x10278]
mov ebp, r12d
lea rsi, [rcx + 0x10680]
mov r10, rcx
lea r13, [0x14018a290]
xor edi, edi
nop
mov eax, dword [r10 + 0x10e78]
xor r11d, r11d
test eax, eax
je 0x14012d957
nop
xor r9d, r9d
lea eax, [r11 + 0x40]
nop word [rax + rax]
mov edx, eax
shr eax, 1
and edx, 1
mov ecx, eax
add rcx, rdi
movzx r8d, word [r10 + rcx*2 + 0x6ee4]
mov ecx, edx
neg ecx
shr r8, 4
shr rcx, 4
and ecx, 0x7f
xor r8, rcx
movzx ecx, byte [r8 + r13]
add r9d, ecx
cmp eax, 1
jne 0x14012d910
mov dword [rbx + r11*4], r9d
inc r11d
mov eax, dword [r10 + 0x10e78]
cmp r11d, eax
jb 0x14012d900
mov edx, recv
cmp eax, edx
jbe 0x14012d980
mov eax, edx
lea rcx, [rbx + rax*4]
mov eax, edx
shr eax, 1
inc edx
shl eax, 4
sub eax, 0x50
add dword [rcx], eax
cmp edx, dword [r10 + 0x10e78]
jb 0x14012d960
nop dword [rax]
mov eax, dword [rbx]
add rdi, 0x40
mov dword [rsi - 8], eax
mov eax, dword [rbx + 4]
mov dword [rsi - 4], eax
mov eax, dword [rbx + 8]
mov dword [rsi], eax
mov eax, dword [rbx + 0xc]
add rbx, 0x100
mov dword [rsi + 4], eax
add rsi, 0x200
sub rbp, 1
jne 0x14012d8f0
mov r15, r12
lea r14, [0x14018a314]
lea rdi, [r10 + 0x10a88]
nop dword [rax]
nop word [rax + rax]
movzx r9d, byte [r14]
mov ebx, r12d
mov r11d, r9d
mov eax, r9d
and eax, 1
shr r11d, 1
dec r11d
or eax, 2
mov ecx, r11d
shl eax, cl
sub ebx, eax
mov ebp, eax
xor r8d, r8d
lea esi, [r8 + 1]
nop dword [rax]
mov eax, esi
mov edx, ebx
sub rax, r9
shr ebx, 1
add rax, rbp
and edx, 1
movzx ecx, word [r10 + rax*2 + 0x70e2]
lea esi, [rdx + rsi*2]
mov eax, edx
shr rcx, 4
neg eax
shr rax, 4
and eax, 0x7f
xor rcx, rax
movzx eax, byte [rcx + r13]
add r8d, eax
add r11d, 0xffffffff
jne 0x14012da00
mov ecx, dword [r10 + r9*4 + 0x10278]
inc r12d
add ecx, r8d
inc r15
mov dword [rdi - 0x400], ecx
inc r14
mov ecx, dword [r10 + r9*4 + 0x10378]
add ecx, r8d
mov dword [rdi - 0x200], ecx
mov ecx, dword [r10 + r9*4 + 0x10478]
add ecx, r8d
mov dword [rdi], ecx
mov ecx, dword [r10 + r9*4 + 0x10578]
add ecx, r8d
mov dword [rdi + 0x200], ecx
add rdi, 4
cmp r12d, 0x80
jb 0x14012d9d0
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov dword [r10 + 0x10e7c], r11d
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x14012dac0
Capabilities:
Encode data using xor

Disassembly:
push rdi
mov r10d, dword [rcx + 0xb7c]
mov r11, rcx
mov ecx, 8
sub ecx, r10d
shr r8d, cl
mov ecx, r10d
mov eax, dword [r11 + 0xb80]
xor r10d, r10d
and eax, edx
shl eax, cl
mov ecx, dword [rsp + 0x38]
add r8d, eax
add ecx, 0x100
lea rdi, [r8 + r8*2]
shl rdi, 9
add rdi, r11
lea r11, [0x14018a290]
test r9b, r9b
jne 0x14012db46
nop dword [rax]
mov r8d, ecx
shr ecx, 1
and r8d, 1
neg r8d
shr r8, 4
movzx r9d, word [rdi + rcx*2 + 0xb84]
and r8d, 0x7f
shr r9, 4
xor r9, r8
movzx edx, byte [r9 + r11]
add r10d, edx
cmp ecx, 1
jne 0x14012db10
mov eax, r10d
pop rdi
ret
mov qword [rsp + 0x10], rbx
mov r9d, 0x100
mov ebx, dword [rsp + 0x30]
nop word [rax + rax]
mov edx, ecx
add ebx, ebx
shr edx, 8
mov eax, r9d
and eax, ebx
add eax, r9d
add edx, eax
movzx r8d, word [rdi + rdx*2 + 0xb84]
mov edx, ecx
shr edx, 7
add ecx, ecx
and edx, 1
shr r8, 4
neg edx
shr rdx, 4
and edx, 0x7f
xor r8, rdx
movzx eax, byte [r8 + r11]
add r10d, eax
mov eax, ebx
xor eax, ecx
not eax
and r9d, eax
cmp ecx, 0x10000
jb 0x14012db60
mov rbx, qword [rsp + 0x10]
mov eax, r10d
pop rdi
ret
Function at 0x14014b0b0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x14018e360]
mov rbp, rcx
call fcn.14015caf4
xor edi, edi
test rax, rax
je 0x14014b196
mov ebx, edi
call fcn.14015280c
mov r14d, dword [rax]
call fcn.14015280c
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.14015ca40
mov rsi, rax
test rax, rax
je 0x14014b127
call fcn.14015280c
mov dword [rax], r14d
jmp 0x14014b151
call fcn.14015280c
cmp dword [rax], 0x22
jne 0x14014b18e
call fcn.14015280c
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14015ca40
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14014b18e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14014b155
cmp rax, 3
je 0x14014b170
mov rcx, rsi
call fcn.14014b00c
test al, al
je 0x14014b181
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14014b181
mov dil, 1
mov rcx, rbx
call fcn.140137f10
mov al, dil
jmp 0x14014b198
mov rcx, rbx
call fcn.140137f10
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1401312c0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14014b6fc
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 0x14014b55b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14014b55b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14014b55b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14014b55b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14014b55b
cmp dword [rcx + 0x84], 0xe
jbe 0x14014b55b
cmp dword [rcx + 0xf8], 0
je 0x14014b55b
mov ecx, ebx
call fcn.14014b618
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.14014b3e8
nop
cmp dword [rbp + 0x20], 0
je 0x14014b5a9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14014b5b4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14014b4ec
Function at 0x14014e534
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1401f1da0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14014e592
cmp word [rdx], r12w
jne 0x14014e592
or byte [rax + r8*8 + 0x38], cl
jmp 0x14014e598
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14014e6f3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14014e6ce
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14014e5d1
mov rcx, r9
jmp 0x14014e5f4
cmp r9, rdx
jae 0x14014e60b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14014e5b5
jmp 0x14014e6f3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14014e6c8
cmp dword [rsp + 0x80], edi
je 0x14014e6c8
mov rdx, r14
lea r11, [0x1401f1da0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14014e6a1
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14014e674
mov word [rbx], r12w
jmp 0x14014e6ef
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14014e67d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14014e6ef
cmp word [rsp + 0x70], r12w
jne 0x14014e6ae
cmp rbx, rsi
je 0x14014e66e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.14014f7b8
cmp word [rsp + 0x70], r12w
je 0x14014e6f3
mov word [rbx], r13w
jmp 0x14014e6ef
lea r11, [0x1401f1da0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14014e6eb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14014e6f3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401511b4
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x1401511d3
call fcn.14015e550
jmp 0x140151288
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.140139d48
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x14015121e
cmp byte [rbp - 0x38], 0
je 0x140151253
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140151253
call fcn.140159f84
test eax, eax
jne 0x14015123f
cmp byte [rbp - 0x38], al
je 0x140151237
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140151253
cmp byte [rbp - 0x38], 0
je 0x140151250
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.14014a954
test eax, eax
je 0x14015126c
or ebx, 0xffffffff
jmp 0x140151277
mov rcx, qword [rbp - 0x20]
call fcn.14015e550
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x140151286
mov rcx, qword [rbp - 0x20]
call fcn.140159390
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret

Function at 0x140152f10
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x140152f4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140152780
call fcn.14015280c
mov eax, dword [rax]
jmp 0x140152fc2
cmp rdi, qword [rbx + 0x18]
ja 0x140152f57
mov qword [rbx + 0x20], rdi
jmp 0x140152fc0
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x140152f6e
mov rcx, qword [rbx + 0x10]
call fcn.140159390
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.140159c04
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x140152fc2
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x140152f35
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140154830
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov r14, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.140139d48
mov rax, qword [rbp - 0x58]
mov edi, 0xfde9
cmp dword [rax + 0xc], edi
jne 0x14015487b
xor ebx, ebx
cmp byte [rbp - 0x48], bl
je 0x1401548af
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401548af
call fcn.140159f84
xor ebx, ebx
test eax, eax
jne 0x14015489d
cmp byte [rbp - 0x48], bl
je 0x140154896
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, 1
jmp 0x1401548af
cmp byte [rbp - 0x48], bl
je 0x1401548ad
mov rax, qword [rbp - 0x60]
and dword [rax + 0x3a8], 0xfffffffd
mov edi, ebx
mov r9d, edi
mov qword [rbp - 0x30], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x28], rbx
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x20], rbx
mov rcx, rsi
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rbx
mov byte [rbp - 8], bl
call fcn.14014a954
mov esi, eax
test eax, eax
je 0x1401548eb
call fcn.14015280c
or edi, 0xffffffff
mov dword [rax], esi
jmp 0x140154944
mov r9d, edi
mov qword [rbp - 0x60], rbx
lea r8, [rbp + 0x30]
mov qword [rbp - 0x58], rbx
lea rdx, [rbp - 0x60]
mov qword [rbp - 0x50], rbx
mov rcx, r14
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rbx
mov byte [rbp - 0x38], bl
call fcn.14014a954
mov edi, eax
test eax, eax
je 0x140154927
call fcn.14015280c
mov dword [rax], edi
or edi, 0xffffffff
jmp 0x140154936
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
call fcn.14015efd0
mov edi, eax
cmp byte [rbp - 0x38], bl
je 0x140154944
mov rcx, qword [rbp - 0x50]
call fcn.140159390
cmp byte [rbp - 8], bl
je 0x140154952
mov rcx, qword [rbp - 0x20]
call fcn.140159390
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1401553c8
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.140166fe0
sub rsp, rax
mov rax, qword [0x1401ef010]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14014d584
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140155417
mov rax, rbp
jmp 0x14015551f
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 + 0x1f1da0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14014f7b0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1f1da0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14015551b
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 0x14015551b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14014f7b0
test rax, rax
js 0x14015551b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14015551b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14015550d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14015550d
cmp byte [rcx], 0xd
jne 0x1401554f3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140155502
cmp byte [rcx + 1], 0xa
jne 0x140155502
inc rcx
jmp 0x140155502
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1ef180]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401554d5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14015551f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401312c0
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 0x14015e8d4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14015e8f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140152780
or eax, 0xffffffff
jmp 0x14015e8f6
xor eax, eax
add rsp, 0x28
ret

Function at 0x14015e994
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.14014f7b8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14014f7b8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14015eae4
cmp rax, 0xffffffffffffffff
je 0x14015eae4
xor edi, edi
test rbp, rbp
jle 0x14015ea8f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14015c5cc
mov rbx, rax
test rax, rax
jne 0x14015ea1c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14015ea85
mov edx, 0x8000
mov ecx, r14d
call fcn.140152aac
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.14014d274
cmp eax, 0xffffffff
je 0x14015ea65
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14015ea2c
mov edx, r15d
mov ecx, r14d
call fcn.140152aac
jmp 0x14015ea85
cmp byte [rsi + 0x38], dil
je 0x14015ea7c
cmp dword [rsi + 0x34], 5
jne 0x14015ea7c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14015ea85
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140159390
jmp 0x14015eaf8
jns 0x14015eaf8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14014f7b8
cmp rax, 0xffffffffffffffff
jne 0x14015eab0
cmp byte [rsi + 0x30], dil
je 0x14015eaf8
mov edi, dword [rsi + 0x2c]
jmp 0x14015eaf8
mov ecx, r14d
call fcn.14014fd4c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14015eaf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14015eaf8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14015eaf1
mov eax, dword [rsi + 0x2c]
jmp 0x14015eaf6
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14014f7b8
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