joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140110e00
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
movzx eax, byte [rcx + 0xf]
lea r14, [0x140233d80]
mov r10d, eax
mov rdi, rdx
and eax, 0xf
and r10, 0xfffffffffffffff0
add rax, rax
mov esi, reloc.WS2_32.dll_ntohl
mov r9, qword [rdx + rax*8]
mov r8, qword [rdx + rax*8 + 8]
mov r11, r9
mov rax, r8
shr r9, 4
and eax, 0xf
shl r11, 0x3c
shr r8, 4
or r11, r8
mov rbx, qword [r14 + rax*8]
xor rbx, r9
xor rbx, qword [r10 + rdx]
xor r11, qword [r10 + rdx + 8]
nop word [rax + rax]
movzx edx, byte [rsi + rcx]
mov rax, r11
shr r11, 4
mov r9, rbx
shr rbx, 4
and eax, 0xf
shl r9, 0x3c
mov r10d, edx
or r9, r11
and r10, 0xfffffffffffffff0
and edx, 0xf
mov r8, qword [r14 + rax*8]
add rdx, rdx
xor r8, rbx
xor r9, qword [rdi + rdx*8 + 8]
xor r8, qword [rdi + rdx*8]
mov rax, r9
and eax, 0xf
shr r9, 4
mov r11, r8
shr r8, 4
shl r11, 0x3c
or r11, r9
mov rbx, qword [r14 + rax*8]
xor r11, qword [r10 + rdi + 8]
xor rbx, r8
xor rbx, qword [r10 + rdi]
sub rsi, 1
jns 0x140110e70
mov rsi, qword [rsp + 0x10]
mov rdx, rbx
mov rdi, qword [rsp + 0x18]
mov r14, qword [rsp + 0x20]
shr rdx, 0x20
mov eax, edx
mov byte [rcx + 3], dl
shr eax, 0x18
mov byte [rcx], al
mov eax, edx
shr eax, 0x10
mov byte [rcx + 1], al
mov eax, edx
shr eax, 8
mov rdx, r11
mov byte [rcx + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [rcx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [rcx + 5], al
mov eax, ebx
shr eax, 8
mov byte [rcx + 6], al
shr rdx, 0x20
mov eax, edx
mov byte [rcx + 7], bl
mov rbx, qword [rsp + 8]
shr eax, 0x18
mov byte [rcx + 8], al
mov eax, edx
shr eax, 0x10
mov byte [rcx + 9], al
mov eax, edx
shr eax, 8
mov byte [rcx + 0xa], al
mov eax, r11d
shr eax, 0x18
mov byte [rcx + 0xc], al
mov eax, r11d
shr eax, 0x10
mov byte [rcx + 0xd], al
mov eax, r11d
shr eax, 8
mov byte [rcx + 0xe], al
mov byte [rcx + 0xb], dl
mov byte [rcx + 0xf], r11b
ret

Function at 0x14012a5d0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor eax, eax
mov r10, rcx
test rcx, rcx
je 0x14012a63c
movzx ecx, byte [rcx]
test cl, cl
je 0x14012a63c
mov r11d, 0x100
nop word [rax + rax]
movsx r9d, cl
lea r10, [r10 + 1]
or r9d, r11d
mov r8d, eax
mov edx, r9d
mov ecx, 0x20
shr edx, 2
add r11d, 0x100
xor edx, r9d
imul r9d, r9d
and edx, 0xf
sub ecx, edx
shr r8, cl
mov ecx, edx
mov edx, eax
mov eax, r8d
shl edx, cl
movzx ecx, byte [r10]
or eax, edx
xor eax, r9d
test cl, cl
jne 0x14012a5f0
mov ecx, eax
shr ecx, 0x10
xor eax, ecx
ret
Function at 0x14012a8f0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x20
call fcn.1401da3f0
sub rsp, rax
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x14012a983
movzx eax, byte [rcx]
test al, al
je 0x14012a983
mov qword [rsp + 0x30], rsi
mov esi, 0x100
nop
movsx ecx, al
call fcn.1400ef160
mov r9d, eax
mov edx, ebx
or r9d, esi
lea rdi, [rdi + 1]
mov eax, ebx
mov r8d, r9d
shr r8d, 2
mov ecx, 0x20
xor r8d, r9d
add esi, 0x100
and r8d, 0xf
imul r9d, r9d
sub ecx, r8d
shr rdx, cl
mov ecx, r8d
shl eax, cl
mov ebx, edx
or ebx, eax
movzx eax, byte [rdi]
xor ebx, r9d
test al, al
jne 0x14012a920
mov rsi, qword [rsp + 0x30]
mov eax, ebx
shr eax, 0x10
xor eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14013c8c0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r13
push r14
push r15
mov eax, 0x40
call fcn.1401da3f0
sub rsp, rax
movsxd rbx, dword [rsp + 0x80]
lea r14d, [rax - 0x20]
xor esi, esi
mov r15, r9
cmp dword [rsp + 0x88], 2
mov edi, edx
mov r13, rcx
je 0x14013c96c
test r8, r8
je 0x14013c940
mov r9, r8
lea rdx, [rsp + 0x30]
xor r8d, r8d
xor ecx, ecx
call fcn.1400fd7b0
cmp dword [rsp + 0x30], 0xffffffff
je 0x14013c940
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov edx, 0x10a
lea ecx, [r9 + 0x10]
lea r8d, [r9 + 0x66]
call fcn.1400dbe30
xor eax, eax
jmp 0x14013cb53
test r15, r15
je 0x14013c920
cmp edi, 0x40a
je 0x14013c965
cmp edi, 0x43f
je 0x14013c965
cmp edi, 0x40b
mov eax, esi
setne al
add eax, 0x38
jmp 0x14013c968
mov eax, r14d
cmp ebx, eax
jne 0x14013c920
mov r8d, 0x46
mov qword [rsp + 0x60], rbp
lea rdx, str.cryptoececx_meth.c
lea ecx, [r8 + 2]
call fcn.1400e4ba0
mov rbp, rax
test rax, rax
jne 0x14013c9ae
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov edx, 0x10a
lea ecx, [rax + 0x10]
lea r8d, [rax + 0x41]
call fcn.1400dbe30
xor eax, eax
jmp 0x14013cb4e
cmp dword [rsp + 0x88], esi
jne 0x14013c9ca
mov r8, rbx
mov rdx, r15
mov rcx, rbp
call fcn.14020df90
jmp 0x14013cb3c
cmp edi, 0x40a
je 0x14013c9ec
cmp edi, 0x43f
je 0x14013c9ec
cmp edi, 0x40b
mov rcx, rsi
setne cl
add rcx, 0x38
jmp 0x14013c9ef
mov rcx, r14
mov r8d, 0x50
lea rdx, str.cryptoececx_meth.c
call fcn.140118550
mov qword [rbp + 0x40], rax
mov rbx, rax
test rax, rax
jne 0x14013ca27
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov edx, 0x10a
lea ecx, [rax + 0x10]
lea r8d, [rax + 0x41]
call fcn.1400dbe30
jmp 0x14013ca7e
cmp dword [rsp + 0x88], 2
jne 0x14013cac0
cmp edi, 0x40a
je 0x14013ca56
cmp edi, 0x43f
je 0x14013ca56
cmp edi, 0x40b
mov r14d, esi
setne r14b
add r14d, 0x38
mov edx, r14d
mov rcx, rbx
call fcn.1400e8390
test eax, eax
jg 0x14013ca9a
mov r8d, 0x57
lea rdx, str.cryptoececx_meth.c
mov rcx, rbx
call fcn.140118530
mov qword [rbp + 0x40], rsi
mov r8d, 0x79
lea rdx, str.cryptoececx_meth.c
mov rcx, rbp
call fcn.1400e48b0
xor eax, eax
jmp 0x14013cb4e
cmp edi, 0x40a
jne 0x14013caaf
and byte [rbx], 0xf8
and byte [rbx + 0x1f], 0x3f
or byte [rbx + 0x1f], 0x40
jmp 0x14013caf1
cmp edi, 0x40b
jne 0x14013caf1
and byte [rbx], 0xfc
or byte [rbx + 0x37], 0x80
jmp 0x14013caf1
cmp edi, 0x40a
je 0x14013cae0
cmp edi, 0x43f
je 0x14013cae0
cmp edi, 0x40b
setne sil
add rsi, 0x38
jmp 0x14013cae3
mov rsi, r14
mov r8, rsi
mov rdx, r15
mov rcx, rbx
call fcn.14020df90
mov ecx, edi
sub ecx, 0x40a
je 0x14013cb31
sub ecx, 1
je 0x14013cb24
sub ecx, 0x34
je 0x14013cb17
cmp ecx, 1
jne 0x14013cb3c
mov rdx, rbx
mov rcx, rbp
call fcn.140173920
jmp 0x14013cb3c
mov rdx, rbx
mov rcx, rbp
call fcn.140168660
jmp 0x14013cb3c
mov rdx, rbx
mov rcx, rbp
call fcn.1401706c0
jmp 0x14013cb3c
mov rdx, rbx
mov rcx, rbp
call fcn.140168c20
mov r8, rbp
mov edx, edi
mov rcx, r13
call fcn.1400d1d10
mov eax, 1
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret
Function at 0x140145310
Capabilities:
Check for software breakpoints

Disassembly:
mov eax, gethostname
call fcn.1401da3f0
sub rsp, rax
mov r11, rcx
cmp dword [rsp + 0x60], r9d
jne 0x1401453ec
movzx r10d, byte [r8]
lea eax, [r10 - 0x6a]
cmp al, 1
ja 0x1401453ec
lea rdx, [r8 + 1]
mov qword [rsp + 0x30], rbx
xor r8d, r8d
cmp r10b, 0x6b
jne 0x1401453a2
lea ebx, [r9 - 3]
mov eax, r8d
test ebx, ebx
jle 0x140145376
nop dword [rax + rax]
movzx ecx, byte [rdx]
inc rdx
cmp cl, 0xba
je 0x140145376
cmp cl, 0xbb
jne 0x14014537c
inc eax
cmp eax, ebx
jl 0x140145360
sub ebx, eax
test eax, eax
jne 0x1401453a6
mov edx, 0x80
mov dword [rsp + 0x20], r8d
xor r9d, r9d
lea ecx, [rdx - 0x7c]
lea r8d, [rdx + 0xa]
call fcn.1400dbe30
mov rbx, qword [rsp + 0x30]
or eax, 0xffffffff
add rsp, 0x38
ret
lea ebx, [r9 - 2]
movsxd rax, ebx
cmp byte [rax + rdx], 0xcc
je 0x1401453d5
mov edx, 0x80
mov dword [rsp + 0x20], r8d
xor r9d, r9d
lea ecx, [rdx - 0x7c]
lea r8d, [rdx + 0xb]
call fcn.1400dbe30
mov rbx, qword [rsp + 0x30]
or eax, 0xffffffff
add rsp, 0x38
ret
mov r8d, ebx
mov rcx, r11
call fcn.14020df90
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret
mov edx, 0x80
xor r8d, r8d
mov dword [rsp + 0x20], r8d
xor r9d, r9d
lea ecx, [rdx - 0x7c]
lea r8d, [rdx + 9]
call fcn.1400dbe30
or eax, 0xffffffff
add rsp, 0x38
ret
Function at 0x1401871f0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3f]
mov eax, 0xb0
call fcn.1401da3f0
sub rsp, rax
mov rax, qword [0x14030cf00]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rax, qword [rbp + 0x7f]
mov r14, r8
mov dword [rbp - 0x11], 0x61707865
mov rsi, rdx
mov dword [rbp - 0xd], 0x3320646e
mov rdi, rcx
mov dword [rbp - 9], 0x79622d32
mov dword [rbp - 5], 0x6b206574
movups xmm0, xmmword [r9]
movups xmm1, xmmword [r9 + 0x10]
movups xmmword [rbp - 1], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xf], xmm1
movups xmmword [rbp + 0x1f], xmm0
test r8, r8
je 0x140187384
mov qword [rsp + 0xd8], rbx
nop dword [rax + rax]
mov ebx, 0x40
lea rdx, [rbp - 0x11]
cmp r14, rbx
lea rcx, [rbp - 0x51]
cmovb rbx, r14
call fcn.1401873b0
xor eax, eax
test rbx, rbx
je 0x14018736a
cmp rbx, 0x20
jb 0x140187335
lea rdx, [rdi - 1]
add rdx, rbx
lea rcx, [rbp + rbx - 0x52]
cmp rdi, rcx
ja 0x1401872b8
lea rcx, [rbp - 0x51]
cmp rdx, rcx
jae 0x140187335
lea rcx, [rsi - 1]
add rcx, rbx
cmp rdi, rcx
ja 0x1401872c9
cmp rdx, rsi
jae 0x140187335
lea rcx, [rbp - 0x51]
mov rdx, rsi
sub rdx, rcx
mov r9, rbx
lea rcx, [rbp - 0x51]
and r9, 0xffffffffffffffe0
mov r8, rdi
sub r8, rcx
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rbp + rax - 0x51]
lea rcx, [rdx + rax]
movdqu xmm1, xmmword [rbp + rcx - 0x51]
lea rcx, [r8 + rax]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rbp + rax - 0x41]
movdqu xmmword [rbp + rcx - 0x51], xmm1
lea rcx, [rdx + rax]
movdqu xmm1, xmmword [rbp + rcx - 0x41]
lea rcx, [r8 + rax]
add rax, 0x20
pxor xmm1, xmm0
movdqu xmmword [rbp + rcx - 0x41], xmm1
cmp rax, r9
jb 0x1401872f0
cmp rax, rbx
jae 0x14018736a
lea rcx, [rbp - 0x51]
mov r8, rsi
sub r8, rcx
mov r9, rdi
lea rcx, [rbp - 0x51]
sub r9, rcx
nop
lea rdx, [rbp - 0x51]
add rdx, rax
inc rax
movzx ecx, byte [r8 + rdx]
xor cl, byte [rdx]
mov byte [r9 + rdx], cl
cmp rax, rbx
jb 0x140187350
inc dword [rbp + 0x1f]
add rdi, rbx
add rsi, rbx
sub r14, rbx
jne 0x140187270
mov rbx, qword [rsp + 0xd8]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1401d9e80
mov rsi, qword [rsp + 0xe0]
add rsp, 0xb0
pop r14
pop rdi
pop rbp
ret
Function at 0x14018dd40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
mov eax, 0xf0
call fcn.1401da3f0
sub rsp, rax
mov r14, r9
mov r15, r9
shr r14, 3
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
cmp r8, r9
jb 0x14018de3f
mov qword [rsp + 0x110], rbx
xor edx, edx
test r14, r14
je 0x14018ddf0
nop word [rax + rax]
movzx eax, byte [rsi + 6]
movzx ecx, byte [rsi + 7]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsi + 5]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsi + 4]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsi + 3]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsi + 2]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsi + 1]
shl rcx, 8
or rcx, rax
movzx eax, byte [rsi]
shl rcx, 8
add rsi, 8
or rcx, rax
xor qword [rdi + rdx*8], rcx
inc rdx
cmp rdx, r14
jb 0x14018dd90
xor ebx, ebx
nop dword [rax]
nop word [rax + rax]
mov r8, rbx
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.14018d970
lea r8, [rbx + 1]
mov rcx, rdi
lea rdx, [rsp + 0x20]
call fcn.14018d970
add rbx, 2
cmp rbx, 0x18
jb 0x14018de00
sub rbp, r15
cmp rbp, r15
jae 0x14018dd80
mov rbx, qword [rsp + 0x110]
lea r11, [rsp + 0xf0]
mov rax, rbp
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1401ccf00
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r15
mov eax, 0xd8
call fcn.1401da3f0
sub rsp, rax
mov rax, qword [0x14030cf00]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r12, qword [rdx + 8]
xor esi, esi
mov r15, qword [rdx + 0x10]
mov rax, r12
sub rax, r8
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov rdi, r8
mov r13, rdx
mov ebp, esi
cmp r15, r8
jb 0x1401cd0ee
cmp r8, 0x40
ja 0x1401cd0ee
lea rax, [rsp + 0x40]
mov qword [rsp + 0x118], rbx
neg rax
mov qword [rsp + 0xd0], r14
and eax, 0x3f
lea r14, [rsp + 0x40]
add r14, rax
lea rax, [r8 + 0x100]
cmp r15, rax
jbe 0x1401ccf9a
mov rbp, r15
sub rbp, r8
sub rbp, 0x100
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, r14
mov rbx, rsi
call fcn.14020e630
mov r9, rsi
cmp rbp, r15
jae 0x1401cd057
mov r13, qword [r13 + 0x20]
mov r11, qword [rsp + 0x28]
lea r10, [r12 + r13]
neg r10
nop dword [rax + rax]
mov rax, rbp
mov rdx, rbp
xor rax, r11
add rdx, r13
lea r8, [rax - 1]
not rax
shr rax, 0x3f
lea rcx, [r10 + rdx]
xor rcx, r12
shr r8, 0x3f
and r8, rax
mov rax, rbp
xor rax, r12
neg r8
or rcx, rax
mov rax, r8
xor rcx, rbp
or rax, rsi
shr rcx, 0x3f
and r8, r9
neg rcx
or rbx, r8
mov rsi, rcx
inc rbp
and rsi, rax
movzx eax, byte [rdx]
and al, sil
or byte [r9 + r14], al
inc r9
mov rcx, r9
mov rax, rdi
sub rcx, rdi
xor rax, r9
xor rcx, rdi
or rcx, rax
xor rcx, r9
shr rcx, 0x3f
neg rcx
and r9, rcx
cmp rbp, r15
jb 0x1401ccfd0
xor esi, esi
test rdi, rdi
je 0x1401cd0d7
mov r9, qword [rsp + 0x30]
mov rax, rbx
and rax, 0xffffffffffffffdf
movzx r8d, byte [rax + r14]
mov rax, rbx
or rax, 0x20
movzx edx, byte [rax + r14]
mov eax, ebx
and eax, 0x20
inc rbx
lea ecx, [rax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and cl, al
neg cl
movzx eax, cl
mov dword [rsp + 0x28], eax
not eax
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
mov eax, dword [rsp + 0x28]
and cl, dl
and al, r8b
or al, cl
mov rcx, rbx
sub rcx, rdi
mov byte [r9 + rsi], al
xor rcx, rdi
mov rax, rdi
xor rax, rbx
inc rsi
or rcx, rax
xor rcx, rbx
shr rcx, 0x3f
neg rcx
and rbx, rcx
cmp rsi, rdi
jb 0x1401cd061
mov r14, qword [rsp + 0xd0]
mov eax, 1
mov rbx, qword [rsp + 0x118]
jmp 0x1401cd0f0
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401d9e80
add rsp, 0xd8
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401dac28
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401dac72
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401dac72
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401dac72
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401dac72
cmp dword [rcx + 0x84], 0xe
jbe 0x1401dac72
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401dac74
xor al, al
add rsp, 0x28
ret
Function at 0x1401dff0c
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 0x1401dff7b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401dff7b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401dff7b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401dff7b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401dff7b
cmp dword [rcx + 0x84], 0xe
jbe 0x1401dff7b
cmp dword [rcx + 0xf8], 0
je 0x1401dff7b
mov ecx, ebx
call fcn.1401e002c
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.1401dfe08
nop
cmp dword [rbp + 0x20], 0
je 0x1401dffc9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401dffd4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401dff0c

Function at 0x1401e0110
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 0x1401dff7b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401dff7b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401dff7b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401dff7b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401dff7b
cmp dword [rcx + 0x84], 0xe
jbe 0x1401dff7b
cmp dword [rcx + 0xf8], 0
je 0x1401dff7b
mov ecx, ebx
call fcn.1401e002c
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.1401dfe08
nop
cmp dword [rbp + 0x20], 0
je 0x1401dffc9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401dffd4
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401dff0c
Function at 0x1401e04c4
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.1401da3f0
sub rsp, rax
mov rax, qword [0x14030cf00]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401f4eb0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401e0513
mov rax, rbp
jmp 0x1401e061b
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 + 0x314d20]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401f96c4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x314d20]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401e0617
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 0x1401e0617
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401f96c4
test rax, rax
js 0x1401e0617
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401e0617
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401e0609
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401e0609
cmp byte [rcx], 0xd
jne 0x1401e05ef
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401e05fe
cmp byte [rcx + 1], 0xa
jne 0x1401e05fe
inc rcx
jmp 0x1401e05fe
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x30d0b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401e05d1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401e061b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401d9e80
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 0x1401f085c
Capabilities:
Delete file

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

Function at 0x1401f0884
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1401f08a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401e8d28
or eax, 0xffffffff
jmp 0x1401f08a6
xor eax, eax
add rsp, 0x28
ret
Function at 0x1401f08ac
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, [0x140314d20]
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 0x1401f0903
cmp word [rdx], r13w
jne 0x1401f0903
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401f0908
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401f0a2d
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401f0a4e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401f0941
mov rdx, r9
mov word [rbx], cx
jmp 0x1401f0968
cmp r9, r8
jae 0x1401f0978
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 0x1401f0922
jmp 0x1401f0a2d
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 0x1401f0a22
cmp dword [rsp + 0x80], esi
je 0x1401f0a22
lea r8, [0x140314d20]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401f09fa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401f09ca
mov word [rbx], r13w
jmp 0x1401f0a2a
mov ecx, reloc.WS2_32.dll_listen
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 0x1401f09d7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401f0a2a
cmp word [rsp + 0x70], r13w
jne 0x1401f0a07
cmp rbx, r14
je 0x1401f09c4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401f96cc
cmp word [rsp + 0x70], r13w
je 0x1401f0a2d
mov ecx, reloc.WS2_32.dll_listen
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, [0x140314d20]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401f0a27
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401f0a2d
Function at 0x1401f2a30
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 0x1401f2a6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401e8d28
call fcn.1401e8db4
mov eax, dword [rax]
jmp 0x1401f2ae2
cmp rdi, qword [rbx + 0x18]
ja 0x1401f2a77
mov qword [rbx + 0x20], rdi
jmp 0x1401f2ae0
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x1401f2a8e
mov rcx, qword [rbx + 0x10]
call fcn.1401fa0bc
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.1401fa0f8
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 0x1401f2ae2
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x1401f2a55
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret