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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140066dd0
cmp r11, r10
ja 0x140066e46
cmp r10, rdx
ja 0x140066e5a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140066dd2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140066db0
jmp 0x140066e34
ja 0x140066dda
mov r11, r10
cmp rax, r8
jne 0x140066d74
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140066e10
mov rdi, r8
sub ecx, edx
jns 0x140066e2b
jmp 0x140066e36
cmp r8, rsi
je 0x140066e6b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140066e36
xor al, 1
cmp rdi, rsi
jne 0x140066df0
jmp 0x140066e36
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140091ff0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140091d30
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140091db0
ud2
Function at 0x140076520
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140063940
cmp rax, rcx
je 0x140076545
cmp rdx, 4
jae 0x140076548
xor eax, eax
xor r8d, r8d
jmp 0x1400765e0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140094650]
movdqa xmm3, xmmword [0x140094590]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140076570
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x1400765f7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x1400765e0
ret
Function at 0x140077570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x1400775cb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x1400775cb
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x1400775e6
cmp eax, 0x42
jne 0x1400775cb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140077696
cmp byte [r9 + r11], 0x5f
jne 0x140077696
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1400776fe
mov rcx, rsi
xor edx, edx
call fcn.140072cd0
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.140072cd0
test al, al
jne 0x140077791
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140077622
lea rdx, [0x1400a046b]
mov r8d, 1
call fcn.140063db0
test al, al
jne 0x140077791
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1400775da
xor r14d, r14d
lea rbx, [0x1400a0820]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140077654
cmp byte [rax + rcx], 0x45
je 0x1400777ba
sub r14, 1
jb 0x140077679
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140077679
mov r8d, 2
mov rdx, rbx
call fcn.140063db0
test al, al
jne 0x140077791
mov rcx, rsi
call fcn.140074530
test al, al
jne 0x140077791
mov rax, qword [rsi]
test rax, rax
jne 0x140077640
jmp 0x1400775da
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140077758
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x1400776f2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400776dc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400776cb
add dl, 0xa9
jmp 0x1400776da
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140077758
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140077758
movzx edx, bl
add rax, rdx
jae 0x1400776a0
jmp 0x140077758
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140077758
cmp rax, rcx
jae 0x140077755
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140077799
cmp qword [rsi + 0x20], 0
je 0x1400777b3
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.140077570
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1400775dc
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400777a8
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x1400a07e0]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.140063db0
test al, al
je 0x1400777a8
mov dil, 2
jmp 0x1400775da
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x140077763
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x1400775da
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1400775da

Function at 0x1400798f0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
sub esp, 0x48
Function at 0x14007ee70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
add byte [rax], al

Function at 0x140083330
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12

Function at 0x140085460
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov edi, edx

Function at 0x14008dc60
Capabilities:
Copy file

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r9
mov rsi, rcx
lea rcx, [rbp - 0x20]
call fcn.14007f7e0
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
test rax, rax
je 0x14008dd6c
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x20]
call fcn.140085580
mov rax, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x40]
test rax, rax
je 0x14008dd6c
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x28], rax
mov r8, qword [rbp + 0x50]
lea rcx, [rbp - 0x20]
mov rdx, rdi
call fcn.14007f7e0
mov rax, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x18]
test rax, rax
je 0x14008dd79
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x20]
call fcn.140085580
mov rdi, qword [rbp - 0x48]
mov rbx, qword [rbp - 0x40]
test rdi, rdi
je 0x14008dd79
mov qword [rbp - 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x14008de20]
lea r9, [rbp - 0x20]
mov r14, qword [rbp - 0x28]
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.kernel32.dll_CopyFileExW]
test eax, eax
je 0x14008dd8a
mov rax, qword [rbp - 0x20]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test rbx, rbx
jne 0x14008dda8
jmp 0x14008ddba
mov qword [rsi + 8], rdx
mov qword [rsi], 1
jmp 0x14008ddd3
mov r14, qword [rbp - 0x28]
mov qword [rsi + 8], rbx
mov qword [rsi], 1
jmp 0x14008ddba
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rbx, rbx
je 0x14008ddba
mov rcx, qword [0x1400b0230]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rbp - 0x30], 0
je 0x14008ddd3
mov rcx, qword [0x1400b0230]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

Function at 0x14008fb20
Capabilities:
Parse pe header

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

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

Function at 0x140023018
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 0x140022e83
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140022e83
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140022e83
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140022e83
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140022e83
cmp dword [rcx + 0x84], 0xe
jbe 0x140022e83
cmp dword [rcx + 0xf8], 0
je 0x140022e83
mov ecx, ebx
call fcn.140022f34
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.140022d10
nop
cmp dword [rbp + 0x20], 0
je 0x140022ed1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140022edc
int3
xor r8d, r8d
xor edx, edx
jmp 0x140022e14
Function at 0x140033be8
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 0x140033c6f
mov rsi, rbx
cmp word [rax], bp
je 0x140033c2e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140033c18
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140033c14
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140031208
mov rdi, rax
test rax, rax
je 0x140033c5c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003a510
mov rbp, rdi
xor ecx, ecx
call fcn.14002f5d8
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 0x1400377e4
Capabilities:
Get file size

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

Function at 0x140039dc0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140039de8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140039de8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140011325
Capabilities:
Terminate process

Disassembly:
jmp 0x140017460
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 0x1400113f2
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400187b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400187d0
xor al, al
jmp 0x140018851
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400187e3
xor al, al
jmp 0x140018851
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 0x14001880d
xor al, al
jmp 0x140018851
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140018821
xor al, al
jmp 0x140018851
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140018833
xor al, al
jmp 0x140018851
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001884f
xor al, al
jmp 0x140018851
mov al, 1
add rsp, 0x38
ret
Function at 0x1800014f8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
mov rbp, rsp
sub rsp, 0x50
mov eax, 0x400
lea r8, [rbp - 0x18]
lea rcx, [0x18000d0c0]
mov edx, 0xeaf93f
xor ebx, ebx
mov dword [rbp - 0x18], 0x3dc00
mov dword [rbp - 0x14], eax
mov word [rbp - 0x10], 8
mov dword [rbp - 0xc], 0xef81
mov dword [rbp - 8], 1
mov dword [rbp - 0x30], 0xf10
mov dword [rbp - 0x2c], eax
mov word [rbp - 0x28], 8
mov dword [rbp - 0x24], 0x215
mov dword [rbp - 0x20], 1
call fcn.1800013cc
mov r12, rax
test rax, rax
je 0x180001628
lea r8, [rbp - 0x30]
lea rcx, [0x180ebca00]
mov edx, 0x1794
call fcn.1800013cc
mov rsi, rax
test rax, rax
je 0x180001620
mov r13d, dword [rbp - 0x30]
lea r9d, [rbx + 0x40]
mov r8d, 0x3000
mov edx, r13d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x1800015c9
mov r8d, r13d
mov rdx, rsi
mov rcx, rax
call fcn.180005420
jmp 0x1800015cc
mov rdi, rbx
test rdi, rdi
je 0x180001618
mov r9d, dword [rbp - 0x18]
mov r8, r12
mov edx, 1
xor ecx, ecx
call rdi
test rax, rax
je 0x180001618
xor r9d, r9d
mov r8d, 0x378
mov rcx, rax
lea edx, [r9 + 2]
call rdi
test rax, rax
je 0x180001618
mov rcx, qword [0x180ebf258]
mov edx, 0x2eed
call rax
test rax, rax
mov qword [0x180ebf260], rax
setne bl
mov rcx, rsi
call fcn.18000199c
mov rcx, r12
call fcn.18000199c
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rbp
ret
Function at 0x1800020c3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18000c070]
jne 0x18000187a
rol rcx, 0x10
test cx, 0xffff
jne 0x180001876
repz ret
ror rcx, 0x10
jmp 0x18000201c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180ebe280]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180ebe378]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800020a1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180ebe280]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1800020c3
mov rax, qword [rsp + 0x88]
mov qword [0x180ebe378], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180ebe318], rax
mov rax, qword [0x180ebe378]
mov qword [0x180ebe1f0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180ebe300], rax
mov dword [0x180ebe1e0], 0xc0000409
mov dword [0x180ebe1e4], 1
mov rax, qword [0x18000c070]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18000c078]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180ebe278], eax
mov ecx, 1
call fcn.180004d84
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800082e0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180ebe278], 0
jne 0x18000214a
mov ecx, 1
call fcn.180004d84
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180006af4
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x18000c070]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18000318c
xor ebx, ebx
cmp qword [0x180ebf228], rbx
mov rdi, rax
jne 0x180006c07
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180006cde
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180006cde
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180ebf228], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180ebf230], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x180ebf238], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180ebf248], rax
test rax, rax
je 0x180006bfe
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180ebf240], rax
jmp 0x180006c0e
mov rax, qword [0x180ebf240]
jmp 0x180006c15
mov rax, qword [0x180ebf240]
mov r11, qword [0x180ebf248]
cmp rax, rdi
je 0x180006c7c
cmp r11, rdi
je 0x180006c7c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180ebf248]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180006c7c
test rax, rax
je 0x180006c7c
call rsi
test rax, rax
je 0x180006c76
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180006c76
test byte [rsp + 0x40], 1
jne 0x180006c7c
bts ebp, 0x15
jmp 0x180006cbc
mov rcx, qword [0x180ebf230]
cmp rcx, rdi
je 0x180006cbc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180006cbc
call rax
mov rbx, rax
test rax, rax
je 0x180006cbc
mov rcx, qword [0x180ebf238]
cmp rcx, rdi
je 0x180006cbc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180006cbc
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180ebf228]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180006cde
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180006ce0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180001860
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140014f20
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 0x14001126c
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012c30
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012c50
xor al, al
jmp 0x140012cd1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012c63
xor al, al
jmp 0x140012cd1
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 0x140012c8d
xor al, al
jmp 0x140012cd1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012ca1
xor al, al
jmp 0x140012cd1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012cb3
xor al, al
jmp 0x140012cd1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012ccf
xor al, al
jmp 0x140012cd1
mov al, 1
add rsp, 0x38
ret
Function at 0x140003c40
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003c74
cmp word [rcx], 0x5a4d
jne 0x140003c74
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003c74
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003c74
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003b80
test eax, eax
jne 0x140003c90
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003bf0
test rax, rax
je 0x140003c85
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000443f
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004340
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400042e0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140009944
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1405791d8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1405791d4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140009992
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000998a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140009a79
inc ebx
add rax, 0x28
jmp 0x14000996a
mov rcx, r12
call fcn.14000a171
mov rbp, rax
test rax, rax
jne 0x1400099b1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400098e0
movsxd rbx, ebx
mov rax, qword [0x1405791d8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000a21f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1405791d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140009a13
mov rax, qword [0x1405791d8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400098e0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140009a73
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140009a73
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 [0x1405791d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140009a73
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400098e0
inc dword [0x1405791d4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret