joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001a880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x18], rbp
mov rbp, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp + 8], rax
cmp rcx, rax
jae 0x14001aaa9
mov qword [r11 + 0x20], rsi
lea rsi, [0x140000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
mov qword [rsp], r8
test rbp, rbp
je 0x14001a8e2
cmp r8, rbp
jae 0x14001aa86
movzx edx, byte [r8]
test dl, dl
je 0x14001aa86
mov eax, edx
mov rcx, rbp
shr rax, 3
movsx r9, byte [rax + rsi + 0x80a18]
xor eax, eax
test r9d, r9d
mov ebx, eax
sete bl
add ebx, r9d
test rbp, rbp
jne 0x14001a918
movsxd rcx, ebx
add rcx, r8
cmp r8, rcx
mov r14d, edx
cmovae r14d, eax
lea rax, [r8 + 1]
cmp rax, rcx
jae 0x14001a931
movzx r13d, byte [rax]
jmp 0x14001a934
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x14001a943
movzx r12d, byte [rax]
jmp 0x14001a946
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x14001a955
movzx r15d, byte [rax]
jmp 0x14001a958
xor r15b, r15b
lea r10, [r9*4]
movzx eax, r14b
mov esi, dword [r10 + rsi + 0x80a38]
and esi, eax
movzx r9d, r13b
shl esi, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or esi, eax
movzx r11d, r15b
shl esi, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or esi, eax
mov eax, r11d
shr r11d, 2
and eax, 0x3f
or r11d, edx
shl esi, 6
or esi, eax
shr r11d, 2
or r11d, r9d
lea rax, [0x140000000]
mov ecx, dword [r10 + rax + 0x80a68]
shr r11d, 2
shr esi, cl
mov ecx, 0x100
cmp esi, dword [r10 + rax + 0x80a50]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r11d, eax
mov eax, esi
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r11d, edx
cmp esi, 0xffff
cmova eax, ecx
lea rcx, [0x140000000]
mov ecx, dword [r10 + rcx + 0x80a80]
or r11d, eax
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x14001aa63
test r14b, r14b
mov eax, r9d
mov ecx, r9d
mov esi, 0xfffd
setne cl
test r15b, r15b
setne al
add ecx, eax
mov eax, r9d
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
movsxd r8, ecx
add r8, qword [rsp]
jmp 0x14001aa6d
movsxd rax, ebx
add r8, rax
test esi, esi
je 0x14001aa86
mov word [rdi], si
add rdi, 2
lea rsi, [0x140000000]
cmp rdi, qword [rsp + 8]
jb 0x14001a8d0
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x50]
mov word [rdi], r9w
test rax, rax
je 0x14001aabf
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x140029940
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rbx, qword [0x1400c8050]
cmp byte [rbx + 0x5568], 0
jne 0x140029a91
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140029a8a
lea rdx, [0x140081144]
mov qword [rsp + 0x38], rdi
call fcn.14001a020
mov rdi, rax
test rax, rax
je 0x140029a85
mov qword [rsp + 0x40], r14
mov rcx, rax
mov qword [rsp + 0x30], rbp
call fcn.140060b64
mov r14d, eax
cmp eax, 0xffffffff
je 0x140029a73
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.1400605a8
test eax, eax
jne 0x140029a73
mov rcx, rdi
call fcn.140060b64
movsxd rbp, eax
cmp ebp, 0xffffffff
je 0x140029a73
xor r8d, r8d
mov edx, r14d
mov rcx, rdi
call fcn.1400605a8
test eax, eax
jne 0x140029a73
mov r14, rbp
cmp rbp, 0xffffffffffffffff
je 0x140029a73
mov rax, qword [0x1400c8050]
test rax, rax
je 0x140029a05
inc dword [rax + 0xf4]
mov rdx, qword [0x1400c8060]
mov rcx, r14
call qword [0x14009f080]
mov rbp, rax
test rax, rax
je 0x140029a73
mov r9, rdi
mov r8, r14
mov edx, 1
mov rcx, rax
call fcn.140060270
mov rcx, rdi
cmp rax, r14
je 0x140029a3f
call fcn.14005fb88
jmp 0x140029a4f
call fcn.14005fb88
mov rdx, r14
mov rcx, rbp
call fcn.14001b9a0
mov rax, qword [0x1400c8050]
test rax, rax
je 0x140029a61
dec dword [rax + 0xf4]
mov rdx, qword [0x1400c8060]
mov rcx, rbp
call qword [0x14009f088]
jmp 0x140029a7b
mov rcx, rdi
call fcn.14005fb88
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov byte [rbx + 0x5568], 1
movss xmm0, dword [rbx + 0x556c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x140029ad4
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x556c], xmm0
jb 0x140029ad4
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140029ac3
call fcn.140025960
jmp 0x140029aca
mov byte [rbx + 0xdc], 1
mov dword [rbx + 0x556c], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
Function at 0x140042e90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400c8050]
mov rcx, qword [rax + 0x44b8]
mov r10, qword [rax + 0x3fe0]
movsxd rax, dword [rcx + 0x7c]
movups xmm0, xmmword [rcx + 0x16c]
movss xmm4, dword [rcx + 0x16c]
movss xmm3, dword [rcx + 0x170]
movss xmm2, dword [rcx + 0x174]
movss xmm1, dword [rcx + 0x178]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x68
mov rax, qword [r10 + 0x2c0]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x258], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2c0]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [r9 + 0x57]
mov rdx, qword [r10 + 0x2c0]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp fcn.1400358e0

Function at 0x140042f60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400c8050]
mov rcx, qword [rax + 0x44b8]
mov r9, qword [rax + 0x3fe0]
movups xmm0, xmmword [r9 + 0x258]
movups xmmword [rcx + 0x16c], xmm0
mov rax, qword [r9 + 0x2c0]
movups xmm0, xmmword [rcx + 0x14c]
movss xmm4, dword [rcx + 0x14c]
movss xmm3, dword [rcx + 0x150]
movss xmm2, dword [rcx + 0x154]
movss xmm1, dword [rcx + 0x158]
movups xmmword [r9 + 0x258], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2c0]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [rcx + 0x207]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x2c0]
add rsp, 0x38
jmp fcn.1400358e0
Function at 0x140057820
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14005785a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14005785f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400578a8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140086180]
cmp byte [rcx + rax], 0
je 0x1400578a8
dec r8
sub rdx, 1
jne 0x14005788e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140058c34
Capabilities:
Parse pe header

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

Function at 0x14005f35c
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 0x14005f1c7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14005f1c7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005f1c7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005f1c7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005f1c7
cmp dword [rcx + 0x84], 0xe
jbe 0x14005f1c7
cmp dword [rcx + 0xf8], 0
je 0x14005f1c7
mov ecx, ebx
call fcn.14005f278
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.14005f054
nop
cmp dword [rbp + 0x20], 0
je 0x14005f215
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14005f220
int3
xor r8d, r8d
xor edx, edx
jmp 0x14005f158
Function at 0x14005f4f8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14005f52f
call fcn.140070608
mov dword [rax], 0x16
call fcn.14005efbc
xor eax, eax
jmp 0x14005f5bd
mov rdx, r9
mov rcx, r8
call fcn.14005f494
mov rbx, rax
test rax, rax
je 0x14005f5ba
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14005f3c0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14005f5a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007057c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14005f58e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14005f59d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400706a0
jmp 0x14005f5ba
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14005f5b7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140060980
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.140058600
sub rsp, rax
mov rax, qword [0x1400c6980]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140071484
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400609cf
mov rax, rbp
jmp 0x140060ad7
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 + 0xc9450]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140073300
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xc9450]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140060ad3
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 0x140060ad3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140073300
test rax, rax
js 0x140060ad3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140060ad3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140060ac5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140060ac5
cmp byte [rcx], 0xd
jne 0x140060aab
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140060aba
cmp byte [rcx + 1], 0xa
jne 0x140060aba
inc rcx
jmp 0x140060aba
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xc6cf0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140060a8d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140060ad7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400583e0
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 0x140072538
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, [0x1400c9450]
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 0x14007258f
cmp word [rdx], r13w
jne 0x14007258f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140072594
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400726b9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400726da
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400725cd
mov rdx, r9
mov word [rbx], cx
jmp 0x1400725f4
cmp r9, r8
jae 0x140072604
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 0x1400725ae
jmp 0x1400726b9
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 0x1400726ae
cmp dword [rsp + 0x80], esi
je 0x1400726ae
lea r8, [0x1400c9450]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140072686
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140072656
mov word [rbx], r13w
jmp 0x1400726b6
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 0x140072663
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400726b6
cmp word [rsp + 0x70], r13w
jne 0x140072693
cmp rbx, r14
je 0x140072650
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140073308
cmp word [rsp + 0x70], r13w
je 0x1400726b9
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, [0x1400c9450]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400726b3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400726b9
Function at 0x1400734a4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400734ba
mov al, 1
jmp 0x14007351a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400734cb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140073518
mov ecx, dword [rcx + 0x18]
nop
call fcn.14007828c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140073518
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140073518
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140073518
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14007351a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140077aac
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 0x140077b33
mov rsi, rbx
cmp word [rax], bp
je 0x140077af2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140077adc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140077ad8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140073740
mov rdi, rax
test rax, rax
je 0x140077b20
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14007cfb0
mov rbp, rdi
xor ecx, ecx
call fcn.1400706a0
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 0x14007b82c
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.140073308
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140073308
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14007b97c
cmp rax, 0xffffffffffffffff
je 0x14007b97c
xor edi, edi
test rbp, rbp
jle 0x14007b927
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140070628
mov rbx, rax
test rax, rax
jne 0x14007b8b4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14007b91d
mov edx, 0x8000
mov ecx, r14d
call fcn.14006f818
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.140072230
cmp eax, 0xffffffff
je 0x14007b8fd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14007b8c4
mov edx, r15d
mov ecx, r14d
call fcn.14006f818
jmp 0x14007b91d
cmp byte [rsi + 0x38], dil
je 0x14007b914
cmp dword [rsi + 0x34], 5
jne 0x14007b914
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14007b91d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400706a0
jmp 0x14007b990
jns 0x14007b990
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140073308
cmp rax, 0xffffffffffffffff
jne 0x14007b948
cmp byte [rsi + 0x30], dil
je 0x14007b990
mov edi, dword [rsi + 0x2c]
jmp 0x14007b990
mov ecx, r14d
call fcn.14007828c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14007b990
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 0x14007b990
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14007b989
mov eax, dword [rsi + 0x2c]
jmp 0x14007b98e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140073308
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 0x14007c8c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14007c8e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14007c8e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001000
Capabilities:
Terminate process
Write file on windows

Disassembly:
sub rsp, 0x58
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
lea rcx, str..PhysicalDrive0
mov edx, 0x10000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, [0x140003320]
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
cmp eax, 1
jne 0x14000109e
call fcn.1400010d0
mov rcx, rax
lea rdx, [0x1400012a0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.1400010d0
mov rcx, rax
lea rdx, [0x1400012a0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140001c5c
Capabilities:
Parse pe header

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

Disassembly:
mov r11, rsp
sub rsp, 0xf8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xorps xmm0, xmm0
lea rdx, str.cmd.exe__C_dir
movups xmmword [rsp + 0x70], xmm0
xor eax, eax
xor ecx, ecx
movaps xmmword [r11 - 0x58], xmm0
xor r9d, r9d
mov qword [r11 - 0x28], rax
xor r8d, r8d
movups xmmword [r11 - 0x48], xmm0
movups xmmword [r11 - 0x78], xmm0
movups xmmword [r11 - 0x68], xmm0
movups xmmword [r11 - 0x38], xmm0
mov dword [rsp + 0x70], 0x68
psrldq xmm0, 0xc
movd eax, xmm0
mov word [r11 - 0x48], cx
or eax, 1
mov dword [r11 - 0x4c], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1400010c5
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x1400019b8
Capabilities:
Parse pe header

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