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

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x451898
movzx edx, byte [rax]
nop
test edx, edx
jne 0x45175c
test r8b, r8b
jne 0x45175c
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x45176f
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x451858
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x451846
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x45183c
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x4517c3
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x451806
mov eax, 1
cmp rax, rbx
ja 0x4517f5
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.00464260
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x451834
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x4517fd
mov r8d, eax
mov eax, r10d
jmp 0x4517c8
mov rcx, rbx
call fcn.004641a0
xor eax, eax
mov rcx, rax
call fcn.004641a0
mov eax, r8d
mov rcx, rbx
call fcn.00464260
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x45188e
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x451851
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x451775
mov eax, edx
mov rcx, rbx
call fcn.004641a0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.004641a0
nop
int3
Function at 0x4593a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x459459
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rdx, [0x004594a0]
mov qword [rsp + 0x10], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x18], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov rdx, r14
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00461a00
xorps xmm15, xmm15
mov r14, qword [0x0064d418]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00461b40
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.004593a0
Function at 0x463be0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4033ef
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
nop
call fcn.00409d40
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00461b40
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x4033c0
cmp byte [0x0064d231], 0
je 0x463bf5
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x460c40
jmp 0x4033c0

Function at 0x463c00
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x0064d5a0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x0064d231], 0
je 0x463c35
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x0064d8e0]
aesenc xmm0, xmmword [0x0064d8f0]
aesenc xmm0, xmmword [0x0064d900]
movq rax, xmm0
ret
jmp 0x409f40

Function at 0x463c40
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x0064d5a0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x0064d231], 0
je 0x463c76
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x0064d8e0]
aesenc xmm0, xmmword [0x0064d8f0]
aesenc xmm0, xmmword [0x0064d900]
movq rax, xmm0
ret
jmp 0x409fa0

Function at 0x465680
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x0064d860]
mov qword [rsp + 8], rdx
lea r8d, [0x0064d24c]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.00463b20
add rsp, 0x30
ret

Function at 0x465bc0
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x465bec
call fcn.00463b20
shl rcx, 3
add rcx, 0x1480
mov qword [0x0064d418], rcx
ret
Function at 0x4c3700
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4c385b
sub rsp, 0x70
mov qword [rsp + 0x68], rbp
lea rbp, [rsp + 0x68]
movups xmmword [rsp + 0x40], xmm15
mov qword [rsp + 0x30], 0
mov rax, qword [0x005f9210]
call fcn.004b9a40
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], rbx
movups xmmword [rsp + 0x50], xmm15
mov qword [rsp + 0x60], 0
lea rcx, [0x004c3880]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x60], rcx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x2b
call fcn.00403220
xorps xmm15, xmm15
mov r14, qword [0x0064d418]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rcx, qword [rsp + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x4c381b
mov rdx, qword [rsp + 0x28]
cmp rdx, rcx
jb 0x4c3855
mov qword [rsp + 0x20], rcx
mov rsi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
mov rbx, rcx
lea rdx, [rsp + 0x50]
call rsi
mov rax, qword [rsp + 0x20]
lea rcx, [rax + 1]
mov rbx, qword [rsp + 0x28]
cmp rbx, rcx
jb 0x4c384a
mov rsi, qword [rsp + 0x50]
sub rbx, rax
dec rbx
mov rdi, rbx
neg rbx
sar rbx, 0x3f
and rcx, rbx
mov r8, qword [rsp + 0x38]
lea rax, [r8 + rcx]
mov rbx, rdi
lea rdx, [rsp + 0x50]
nop
call rsi
mov rcx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x68]
add rsp, 0x70
ret
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x28]
lea rdx, [rsp + 0x50]
call rcx
mov rcx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x68]
add rsp, 0x70
ret
mov rax, rcx
mov rcx, rbx
call fcn.00464260
call fcn.004641e0
nop
nop dword [rax + rax]
call fcn.00461b40
jmp fcn.004c3700
Function at 0x4de840
Capabilities:
Access peb ldr_data

Disassembly:
lea r12, [rsp - 0x30]
cmp r12, qword [r14 + 0x10]
jbe 0x4deaa1
sub rsp, 0xb0
mov qword [rsp + 0xa8], rbp
lea rbp, [rsp + 0xa8]
test rax, rax
je 0x4dea85
mov qword [rsp + 0xb8], rax
mov rbx, qword [rax + 8]
mov rdx, qword [rax]
mov rcx, qword [rax + 0x10]
test rbx, rbx
jne 0x4de88d
xor ebx, ebx
xor ecx, ecx
jmp 0x4de8a0
mov rax, rdx
call fcn.004d03e0
mov rcx, rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x48], rbx
cmp qword [rax + 0x28], 0
je 0x4de9b8
mov rcx, qword [rax + 0x18]
mov rax, rcx
nop
call fcn.00477760
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0xb8]
mov r8, qword [rcx + 0x20]
mov r9, qword [rcx + 0x28]
mov rcx, qword [rsp + 0x48]
lea rdi, [0x00544e70]
mov esi, 1
lea rax, [rsp + 0x68]
mov rbx, qword [rsp + 0x88]
call fcn.0044dca0
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
call fcn.00403220
xorps xmm15, xmm15
mov r14, qword [0x0064d418]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x4de97b
xor eax, eax
lea rbx, [0x00519585]
mov ecx, 1
mov rdi, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x60]
lea r8, [0x005195f9]
mov r9d, 2
mov r10, qword [rsp + 0x98]
mov r11, qword [rsp + 0x58]
call fcn.0044dd80
jmp 0x4de9a8
xor eax, eax
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x60]
lea rdi, [0x00544ef8]
mov esi, 1
mov r8, qword [rsp + 0x98]
mov r9, qword [rsp + 0x58]
call fcn.0044dca0
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
mov rax, qword [rax + 0x18]
nop dword [rax]
call fcn.00477760
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x50], rbx
mov rcx, qword [rsp + 0x88]
mov qword [rsp], rcx
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 8], rdx
mov byte [rsp + 0x10], 0x3a
call fcn.00403220
xorps xmm15, xmm15
mov r14, qword [0x0064d418]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x4dea48
xor eax, eax
lea rbx, [0x00519585]
mov ecx, 1
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x48]
lea r8, [0x005195f9]
mov r9d, 2
mov r10, qword [rsp + 0x90]
mov r11, qword [rsp + 0x50]
call fcn.0044dd80
jmp 0x4dea75
xor eax, eax
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
lea rdi, [0x00544ef8]
mov esi, 1
mov r8, qword [rsp + 0x90]
mov r9, qword [rsp + 0x50]
call fcn.0044dca0
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
lea rax, [0x0051994e]
mov ebx, 5
mov rbp, qword [rsp + 0xa8]
add rsp, 0xb0
ret
mov qword [rsp + 8], rax
call fcn.00461b40
mov rax, qword [rsp + 8]
jmp fcn.004de840
Function at 0x140001800
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140007570
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007570
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001870
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140010104]
mov rbx, rcx
test esi, esi
jle 0x1400019a0
mov rax, qword [0x140010108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400018bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001945
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400018a0
mov rcx, rbx
call fcn.1400022c0
mov rdi, rax
test rax, rax
je 0x1400019c2
mov rax, qword [0x140010108]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002400
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140010108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400019a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000193e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001950
add dword [0x140010104], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140010108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000193e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001800
nop dword [rax]
xor esi, esi
jmp 0x1400018c8
mov rax, qword [0x140010108]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001800
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001800
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001f30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140010160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140010140]
test rbx, rbx
je 0x140001f8c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001f83
test rsi, rsi
je 0x140001f83
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f68
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400022c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000c860]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400022e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400022e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400022e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000233d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002334
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400022e0
add rax, 0x28
cmp rax, r9
jne 0x140002320
xor eax, eax
ret

Function at 0x140002340
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000c860]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000235f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002368
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000235f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002400
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000c860]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000241f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002428
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140007e10
Capabilities:
Link many functions at runtime

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xf0
lea rbp, [0x140009280]
lea rbx, [0x140009140]
lea rdi, str.kernel32.dll
lea r12, [0x140009180]
call fcn.1400015f0
mov rcx, rbp
call fcn.140007c90
mov edx, dword [0x140009150]
mov r9d, 6
mov rcx, rbx
lea r8, str.wanna
call fcn.140007c40
mov rsi, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rdi
call rsi
mov rdx, rbx
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call rbx
mov edx, dword [0x1400091a0]
mov r9d, 8
mov rcx, r12
lea r8, str.anarchy
mov qword [0x140009250], rax
call fcn.140007c40
mov rcx, rdi
call rsi
mov rdx, r12
lea r12, [0x1400090e0]
mov rcx, rax
call rbx
mov edx, dword [0x1400090f0]
mov r9d, 8
mov rcx, r12
lea r8, str.entropy
mov qword [0x140009270], rax
call fcn.140007c40
mov rcx, rdi
call rsi
mov rdx, r12
lea r12, [0x140009160]
mov rcx, rax
call rbx
mov edx, dword [0x140009170]
mov r9d, 8
mov rcx, r12
lea r8, str.freedom
mov qword [0x140009220], rax
call fcn.140007c40
mov rcx, rdi
call rsi
mov rdx, r12
lea r12, [0x140009100]
mov rcx, rax
call rbx
mov edx, dword [0x140009110]
mov r9d, 6
mov rcx, r12
lea r8, str.brave
mov qword [0x140009260], rax
call fcn.140007c40
mov rcx, rdi
call rsi
mov rdx, r12
lea r12, [0x140009120]
mov rcx, rax
call rbx
mov edx, dword [0x140009130]
mov r9d, 5
mov rcx, r12
lea r8, str.fury
mov qword [0x140009230], rax
call fcn.140007c40
mov rcx, rdi
lea rdi, [rsp + 0x80]
call rsi
mov rdx, r12
mov rcx, rax
call rbx
mov ecx, 0xd
pxor xmm0, xmm0
xor r9d, r9d
xor r8d, r8d
mov qword [0x140009240], rax
xor eax, eax
lea rdx, str.notepad.exe
rep stosq qword [rdi], rax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
movaps xmmword [rsp + 0x60], xmm0
call qword [0x140009220]
test rax, rax
je 0x1400080b2
mov rsi, qword [rsp + 0x60]
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov rdi, qword [rsp + 0x68]
mov r8d, 0x1fe
mov rcx, rsi
call qword [0x140009250]
mov rbx, rax
test rax, rax
je 0x1400080df
mov r9d, 0x1fe
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [0x140009270]
test rax, rax
je 0x1400080d1
lea rax, [rsp + 0x5c]
mov r9d, 0x20
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov r8d, 0x1fe
call qword [0x140009260]
test rax, rax
je 0x1400080c3
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [0x140009230]
mov rcx, rdi
call qword [0x140009240]
xor eax, eax
add rsp, 0xf0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rcx, str.CreateProcessA_Failed____n
call fcn.140007dc0
or eax, 0xffffffff
jmp 0x1400080a4
lea rcx, str.pVirtualProtectEx_Failed____
call fcn.140007dc0
jmp 0x1400080be
lea rcx, str.pWriteProcessMemory_Failed___
call fcn.140007dc0
jmp 0x1400080be
lea rcx, str.VirtualAllocEx_Failed___
call fcn.140007dc0
jmp 0x1400080be
Function at 0x1400025fc
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140013500
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
lea rcx, [0x1400260a4]
call fcn.14001141a
lea rcx, [0x14001cdbc]
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, str._t_t_t_______f
call fcn.1400111f4
mov rax, qword [rbp + 0x100]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call fcn.1400113f7
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x14001126c
Capabilities:
Terminate process

Disassembly:
jmp 0x1400153c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011302
Capabilities:
Parse pe header

Disassembly:
jmp 0x140016700
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140016720
xor al, al
jmp 0x1400167a1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140016733
xor al, al
jmp 0x1400167a1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001675d
xor al, al
jmp 0x1400167a1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140016771
xor al, al
jmp 0x1400167a1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140016783
xor al, al
jmp 0x1400167a1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001679f
xor al, al
jmp 0x1400167a1
mov al, 1
add rsp, 0x38
ret
Function at 0x140c34058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140c341df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140c34089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c3406f
add dl, dl
jne 0x140c34096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c340f6
xor eax, eax
add dl, dl
jne 0x140c340a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c341ad
add dl, dl
jne 0x140c340b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c340c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c340d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c340dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c340ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c3407e
mov eax, 1
add dl, dl
jne 0x140c34106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c34113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c340fb
sub eax, ebx
mov ebx, 1
jne 0x140c3414c
mov ecx, 1
add dl, dl
jne 0x140c3412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c3413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c34123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c3407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c34168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c34175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c3415d
cmp eax, 0x7d00
jae 0x140c3419b
cmp eax, 0x500
jb 0x140c34196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c3407e
cmp eax, 0x7f
ja 0x140c3419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c3407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c341d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140c3407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000d8d0
Capabilities:
Parse pe header

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

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

Function at 0x14024eb94
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14024e990
Function at 0x1402515f0
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 0x140251677
mov rsi, rbx
cmp word [rax], bp
je 0x140251636
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140251620
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14025161c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140252010
mov rdi, rax
test rax, rax
je 0x140251664
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140256f60
mov rbp, rdi
xor ecx, ecx
call fcn.1402502b8
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