joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140066a50
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, [0x14032e730]
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 0x140066aa7
cmp word [rdx], r13w
jne 0x140066aa7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140066aac
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140066bd1
mov r11d, select
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140066bf2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140066ae5
mov rdx, r9
mov word [rbx], cx
jmp 0x140066b0c
cmp r9, r8
jae 0x140066b1c
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 0x140066ac6
jmp 0x140066bd1
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 0x140066bc6
cmp dword [rsp + 0x80], esi
je 0x140066bc6
lea r8, [0x14032e730]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140066b9e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140066b6e
mov word [rbx], r13w
jmp 0x140066bce
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 0x140066b7b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140066bce
cmp word [rsp + 0x70], r13w
jne 0x140066bab
cmp rbx, r14
je 0x140066b68
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400682e8
cmp word [rsp + 0x70], r13w
je 0x140066bd1
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, [0x14032e730]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140066bcb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140066bd1
Function at 0x14006c1dc
Capabilities:
Parse pe header

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

Function at 0x14006eaf4
Capabilities:
Get file size

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

Function at 0x140072a34
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.140054250
sub rsp, rax
mov rax, qword [0x1400a1090]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14005f42c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140072a83
mov rax, rbp
jmp 0x140072b8b
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 + 0x32e730]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400682e0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x32e730]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140072b87
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 0x140072b87
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400682e0
test rax, rax
js 0x140072b87
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140072b87
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140072b79
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140072b79
cmp byte [rcx], 0xd
jne 0x140072b5f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140072b6e
cmp byte [rcx + 1], 0xa
jne 0x140072b6e
inc rcx
jmp 0x140072b6e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa12b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140072b41
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140072b8b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400535a0
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 0x140075e30
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 0x140075e60
xor eax, eax
jmp 0x140075f23
mov rbp, rbx
cmp word [rax], si
je 0x140075e85
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140075e6c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140075e68
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.14007396c
movsxd r14, eax
test eax, eax
jne 0x140075ec3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140075e59
mov rcx, r14
call fcn.14007043c
mov rdi, rax
test rax, rax
jne 0x140075edc
xor ecx, ecx
call fcn.14006f600
jmp 0x140075eb8
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.14007396c
test eax, eax
jne 0x140075f0d
mov rcx, rdi
call fcn.14006f600
jmp 0x140075f17
xor ecx, ecx
call fcn.14006f600
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 0x140078b40
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14006efb4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140078be1
cmp ebx, dword [rsp + 0x30]
je 0x140078bda
test esi, esi
je 0x140078bda
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140078bb5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140078bc2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140078b9f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140078bc6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140078be3
mov eax, 1
jmp 0x140078be3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14007b65c
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.14005fe14
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14007b6e6
cmp byte [rbp - 0x21], r15b
je 0x14007b6e1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14007b71c
call fcn.14006f95c
test eax, eax
jne 0x14007b708
cmp byte [rbp - 0x21], r15b
je 0x14007b700
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14007b71c
cmp byte [rbp - 0x21], r15b
je 0x14007b719
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.14006b710
test eax, eax
jne 0x14007b7bc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14005fe14
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14007b75b
cmp byte [rbp - 0x21], r15b
je 0x14007b790
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14007b790
call fcn.14006f95c
test eax, eax
jne 0x14007b77c
cmp byte [rbp - 0x21], r15b
je 0x14007b775
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14007b790
cmp byte [rbp - 0x21], r15b
je 0x14007b78d
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.14006b710
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14007b7bc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14007b7bf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14007b7cd
mov rcx, rdi
call fcn.14006f600
cmp byte [rbp + 0x3f], r15b
je 0x14007b7dc
mov rcx, qword [rbp + 0x27]
call fcn.14006f600
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 0x180001000
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
movzx eax, byte [rdx]
mov rbp, r8
mov r11, rdx
mov rsi, rcx
mov r10, rdx
mov r9d, 0x1505
test al, al
je 0x180001046
nop dword [rax]
imul r9, r9, 0x21
movzx eax, al
lea r10, [r10 + 1]
xor r9, rax
movzx eax, byte [r10]
test al, al
jne 0x180001030
mov rdi, qword [rcx + 0x10]
mov rbx, qword [rcx]
dec rdi
mov r10, rdi
and r10, r9
mov r9d, 1
mov rcx, r10
shl rcx, 5
add rcx, rbx
cmp dword [rcx + 0x18], r9d
jne 0x1800010be
nop dword [rax]
mov rax, qword [rcx]
mov r8, r11
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180001093
inc rax
test ecx, ecx
jne 0x180001080
test edx, edx
je 0x1800011e3
mov eax, r9d
imul eax, r9d
inc r9d
movsxd rcx, eax
add r10, rcx
and r10, rdi
mov rcx, r10
shl rcx, 5
add rcx, rbx
cmp dword [rcx + 0x18], 1
je 0x180001070
movups xmm0, xmmword [rbp]
shl r10, 5
xorps xmm1, xmm1
mov qword [r10 + rbx], r11
mov rax, qword [rsi]
movups xmmword [rax + r10 + 8], xmm0
mov rax, qword [rsi]
mov dword [rax + r10 + 0x18], 1
inc qword [rsi + 8]
mov rcx, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
test rcx, rcx
js 0x1800010fa
cvtsi2ss xmm1, rcx
jmp 0x18000110f
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
xorps xmm0, xmm0
test rdx, rdx
js 0x18000111e
cvtsi2ss xmm0, rdx
jmp 0x180001136
mov rax, rdx
mov rcx, rdx
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
mulss xmm0, dword [0x180010394]
ucomiss xmm1, xmm0
jp 0x1800011e3
jne 0x1800011e3
lea rcx, [rdx + rdx*4]
shl rcx, 4
call fcn.1800038ac
mov rdi, qword [rsi + 0x10]
xor r9d, r9d
mov r8, rax
mov edx, r9d
lea rcx, [rdi + rdi]
test rcx, rcx
je 0x180001197
lea rcx, [rax + 0x18]
nop dword [rax]
nop dword [rax + rax]
mov dword [rcx], r9d
lea rcx, [rcx + 0x20]
mov rdi, qword [rsi + 0x10]
inc rdx
lea rax, [rdi + rdi]
cmp rdx, rax
jb 0x180001180
mov rbp, qword [rsi]
lea rax, [rdi + rdi]
mov qword [rsi + 0x10], rax
mov qword [rsi + 8], r9
mov qword [rsi], r8
test rdi, rdi
je 0x1800011db
lea rbx, [rbp + 8]
cmp dword [rbx + 0x10], 1
jne 0x1800011d1
movups xmm0, xmmword [rbx]
mov rdx, qword [rbx - 8]
lea r8, [rsp + 0x20]
mov rcx, rsi
movaps xmmword [rsp + 0x20], xmm0
call fcn.180001200
add rbx, 0x20
sub rdi, 1
jne 0x1800011b2
mov rcx, rbp
call fcn.180003898
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180001200
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
movzx eax, byte [rdx]
mov r14, r8
mov r11, rdx
mov rsi, rcx
mov r10, rdx
mov r9d, 0x1505
test al, al
je 0x180001256
nop dword [rax]
nop word [rax + rax]
imul r9, r9, 0x21
movzx eax, al
lea r10, [r10 + 1]
xor r9, rax
movzx eax, byte [r10]
test al, al
jne 0x180001240
mov rdi, qword [rcx + 0x10]
xor bpl, bpl
mov rbx, qword [rcx]
dec rdi
mov r10, rdi
and r10, r9
mov r9d, 1
mov rcx, r10
shl rcx, 5
add rcx, rbx
cmp dword [rcx + 0x18], r9d
jne 0x1800012cf
nop
mov rax, qword [rcx]
mov r8, r11
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1800012a3
inc rax
test ecx, ecx
jne 0x180001290
test edx, edx
je 0x1800012cc
mov eax, r9d
imul eax, r9d
inc r9d
movsxd rcx, eax
add r10, rcx
and r10, rdi
mov rcx, r10
shl rcx, 5
add rcx, rbx
cmp dword [rcx + 0x18], 1
je 0x180001280
jmp 0x1800012cf
mov bpl, 1
movups xmm0, xmmword [r14]
shl r10, 5
mov qword [r10 + rbx], r11
mov rax, qword [rsi]
movups xmmword [rax + r10 + 8], xmm0
mov rax, qword [rsi]
mov dword [rax + r10 + 0x18], 1
mov rcx, qword [rsi + 8]
test bpl, bpl
jne 0x180001300
inc rcx
mov qword [rsi + 8], rcx
mov rdx, qword [rsi + 0x10]
xorps xmm1, xmm1
test rcx, rcx
js 0x180001313
cvtsi2ss xmm1, rcx
jmp 0x180001328
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
xorps xmm0, xmm0
test rdx, rdx
js 0x180001337
cvtsi2ss xmm0, rdx
jmp 0x18000134f
mov rax, rdx
mov rcx, rdx
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
mulss xmm0, dword [0x180010394]
ucomiss xmm1, xmm0
jp 0x1800013f3
jne 0x1800013f3
lea rcx, [rdx + rdx*4]
shl rcx, 4
call fcn.1800038ac
mov rdi, qword [rsi + 0x10]
xor r9d, r9d
mov r8, rax
mov edx, r9d
lea rcx, [rdi + rdi]
test rcx, rcx
je 0x1800013a7
lea rcx, [rax + 0x18]
nop dword [rax]
mov dword [rcx], r9d
lea rcx, [rcx + 0x20]
mov rdi, qword [rsi + 0x10]
inc rdx
lea rax, [rdi + rdi]
cmp rdx, rax
jb 0x180001390
mov rbp, qword [rsi]
lea rax, [rdi + rdi]
mov qword [rsi + 0x10], rax
mov qword [rsi + 8], r9
mov qword [rsi], r8
test rdi, rdi
je 0x1800013eb
lea rbx, [rbp + 8]
cmp dword [rbx + 0x10], 1
jne 0x1800013e1
movups xmm0, xmmword [rbx]
mov rdx, qword [rbx - 8]
lea r8, [rsp + 0x20]
mov rcx, rsi
movaps xmmword [rsp + 0x20], xmm0
call fcn.180001200
add rbx, 0x20
sub rdi, 1
jne 0x1800013c2
mov rcx, rbp
call fcn.180003898
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1400079d8
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001da6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001da6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001da6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001da6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001da6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001da8
xor al, al
add rsp, 0x28
ret
Function at 0x180002da0
Capabilities:
Check for unexpected memory writes
Get file size
Get geographical location
Move file

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x58
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetConsoleHistoryInfo]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_NeedCurrentDirectoryForExePathW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenPrivateNamespaceW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitOnceComplete]
call qword [sym.imp.KERNEL32.dll_AreFileApisANSI]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeSListHead]
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetAppContainerNamedObjectPath]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetWriteWatch]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MoveFileTransactedW]
call qword [sym.imp.KERNEL32.dll_GetSystemDEPPolicy]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.CBUVtVXAwFjAhPD
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
lea rax, str.fmdhxKBLjgHVauFnkC
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, str.SsBtHqmThbpYzAEbYaFvBYJaxia
xor edx, edx
lea rcx, str.DcIbCRhZVmsYpARtFsJec
call qword [sym.imp.KERNEL32.dll_CompareStringEx]
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetProfileStringW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RegisterApplicationRecoveryCallback]
xor r8d, r8d
lea rdx, str.zpZmrHrdJATjbwyqhhdTsOyPUUR
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_IsValidNLSVersion]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetProcessPreferredUILanguages]
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_AddScopedPolicyIDAce]
call qword [sym.imp.KERNEL32.dll_DebugBreak]
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_AddScopedPolicyIDAce]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MoveFileTransactedW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUserGeoID]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetNumberOfConsoleMouseButtons]
add rsp, 0x58
ret
Function at 0x40f334
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov eax, dword [rbp + 0x20]
cmp eax, 0
jg 0x40f35c
jmp 0x40f406
mov rax, qword [rbp + 0x18]
mov qword [rbp - 8], rax
mov eax, dword [rbp + 0x20]
movsxd rax, eax
mov qword [rbp - 0x10], rax
movabs rax, 0
mov qword [rbp - 0x18], rax
call sub.msvcrt.dll___iob_func
add rax, 0x30
mov qword [rbp - 0x20], rax
mov eax, dword [rbp + 0x10]
cmp eax, 2
jne 0x40f3a2
call sub.msvcrt.dll___iob_func
add rax, 0x60
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x10]
cmp rax, 0
jg 0x40f3b5
jmp 0x40f406
mov rax, qword [rbp - 0x20]
mov r9, rax
mov rax, qword [rbp - 0x10]
mov r8, rax
movabs rax, 1
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fwrite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rcx, qword [rbp - 8]
add rcx, rax
mov qword [rbp - 8], rcx
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
sub rax, rcx
mov qword [rbp - 0x10], rax
jmp 0x40f3a2
leave
ret

Function at 0x40f33f
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov eax, dword [rbp + 0x20]
cmp eax, 0
jg 0x40f35c
jmp 0x40f406
mov rax, qword [rbp + 0x18]
mov qword [rbp - 8], rax
mov eax, dword [rbp + 0x20]
movsxd rax, eax
mov qword [rbp - 0x10], rax
movabs rax, 0
mov qword [rbp - 0x18], rax
call sub.msvcrt.dll___iob_func
add rax, 0x30
mov qword [rbp - 0x20], rax
mov eax, dword [rbp + 0x10]
cmp eax, 2
jne 0x40f3a2
call sub.msvcrt.dll___iob_func
add rax, 0x60
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x10]
cmp rax, 0
jg 0x40f3b5
jmp 0x40f406
mov rax, qword [rbp - 0x20]
mov r9, rax
mov rax, qword [rbp - 0x10]
mov r8, rax
movabs rax, 1
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_fwrite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rcx, qword [rbp - 8]
add rcx, rax
mov qword [rbp - 8], rcx
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
sub rax, rcx
mov qword [rbp - 0x10], rax
jmp 0x40f3a2
leave
ret