joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400012c3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001309
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140001304
nop
cmp rbx, rcx
jae 0x140001309
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
dec edi
jne 0x1400012f0
cmp rbx, rcx
jb 0x14000130d
xor eax, eax
jmp 0x140001319
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140004c90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rbx, rdx
xor edi, edi
mov dword [rsp + 0x20], edi
xor eax, eax
mov qword [rdx], rax
call fcn.1400014b0
mov rdx, rax
mov ecx, edi
test rax, rax
setne cl
test ecx, ecx
jne 0x140004cd5
mov ecx, 0x80004005
call fcn.140001260
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbx], rax
mov ecx, 1
mov dword [rsp + 0x20], ecx
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, 0x105
or ecx, eax
jge 0x140004d0a
mov edx, 0x105
mov rcx, rbx
call fcn.140002740
mov rdx, qword [rbx]
cmp dword [rdx - 0xc], 0x105
jge 0x140004d21
mov ecx, 0x80070057
call fcn.140001260
int3
mov dword [rdx - 0x10], 0x105
mov rax, qword [rbx]
mov word [rax + 0x20a], di
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
js 0x140004d5b
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140004d5b
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], di
mov rax, rbx
jmp 0x140004d66
mov ecx, 0x80070057
call fcn.140001260
nop
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400082f0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14005d3d0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov esi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140008331
xor eax, eax
jmp 0x14000850d
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000836b
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14000836b
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
mov eax, esi
jmp 0x14000850d
cmp qword [rbx + 0x90], 0
jne 0x14000837d
or eax, 0xffffffff
jmp 0x14000850d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x80]
cmp qword [r8], rax
jne 0x1400083a7
mov rdx, qword [rbx + 0x70]
mov rcx, qword [rbx + 0x68]
mov qword [r8], rcx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp qword [rbx + 0x78], 0
jne 0x1400083cb
movsx ecx, sil
mov rdx, qword [rbx + 0x90]
call fcn.14000da74
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
jmp 0x14000850b
mov byte [rbp + 0xf], sil
mov qword [rbp + 0x2f], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp + 0x27], 0
mov byte [rbp + 0x17], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp + 0x17]
call fcn.140009700
nop
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 0x10
cmovae rdx, qword [rbp + 0x17]
lea r8, [rbp + 0x17]
cmovae r8, qword [rbp + 0x17]
mov rcx, qword [rbx + 0x78]
mov r10, qword [rcx]
add rdx, qword [rbp + 0x27]
lea rax, [rbp + 7]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x10]
lea r8, [rbp + 0xf]
lea rdx, [rbx + 0x84]
call qword [r10 + 0x38]
test eax, eax
js 0x1400084f8
cmp eax, 1
jg 0x1400084d9
lea rax, [rbp + 0x17]
mov r9, qword [rbp + 0x17]
mov r10, qword [rbp + 0x2f]
cmp r10, 0x10
cmovae rax, r9
mov rdi, qword [rbp + 7]
sub rdi, rax
je 0x1400084a0
lea rcx, [rbp + 0x17]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rbx + 0x90]
mov r8, rdi
mov edx, 1
call fcn.14000e058
cmp rdi, rax
jne 0x1400084f8
mov byte [rbx + 0x81], 1
lea rax, [rbp + 0xf]
cmp qword [rbp - 1], rax
jne 0x1400084d5
test rdi, rdi
jne 0x140008400
cmp qword [rbp + 0x27], 0x20
jae 0x1400084f8
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rbp + 0x17]
call fcn.140008fb0
jmp 0x140008400
mov ebx, esi
jmp 0x1400084fb
cmp eax, 3
jne 0x1400084f8
movsx ecx, byte [rbp + 0xf]
mov rdx, qword [rbx + 0x90]
call fcn.14000da74
or ebx, 0xffffffff
cmp eax, ebx
cmovne ebx, esi
jmp 0x1400084fb
or ebx, 0xffffffff
cmp qword [rbp + 0x2f], 0x10
jb 0x14000850b
mov rcx, qword [rbp + 0x17]
call fcn.14000bb5c
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14000bb80
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140009440
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14005d3d0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
cmp qword [rcx + 0x78], 0
je 0x1400095a1
cmp byte [rcx + 0x81], 0
je 0x1400095a1
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
cmp eax, 0xffffffff
jne 0x140009497
xor al, al
jmp 0x1400095a3
mov qword [rsp + 0x58], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0x50], 0
mov byte [rsp + 0x40], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rsp + 0x40]
call fcn.140009700
nop
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x40]
cmovae r8, qword [rsp + 0x40]
mov rcx, qword [rdi + 0x78]
mov r10, qword [rcx]
mov r9, qword [rsp + 0x50]
add r9, rdx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x84]
call qword [r10 + 0x40]
test eax, eax
je 0x14000950a
dec eax
jne 0x14000957f
jmp 0x140009511
mov byte [rdi + 0x81], 0
lea rax, [rsp + 0x40]
mov r9, qword [rsp + 0x40]
mov r10, qword [rsp + 0x58]
cmp r10, 0x10
cmovae rax, r9
mov rbx, qword [rsp + 0x38]
sub rbx, rax
je 0x140009558
lea rcx, [rsp + 0x40]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x90]
mov r8, rbx
mov edx, 1
call fcn.14000e058
cmp rbx, rax
jne 0x140009584
cmp byte [rdi + 0x81], 0
je 0x140009588
test rbx, rbx
jne 0x1400094c0
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rsp + 0x40]
call fcn.140008fb0
jmp 0x1400094c0
sub eax, 2
je 0x140009588
xor bl, bl
jmp 0x14000958a
mov bl, 1
cmp qword [rsp + 0x58], 0x10
jb 0x14000959c
mov rcx, qword [rsp + 0x40]
call fcn.14000bb5c
movzx eax, bl
jmp 0x1400095a3
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000bb80
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000b010
Capabilities:
Accept command line arguments

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x14005d3d0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, rdx
mov rdi, rcx
mov qword [r11 - 0x50], rcx
xor r15d, r15d
mov qword [rcx], r15
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], r15
lea rdx, [r11 - 0x48]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebp, 1
cmp dword [rsp + 0x30], ebp
jle 0x14000b152
lea r14, [rax + 8]
nop word [rax + rax]
mov rsi, qword [r14]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.14000c31c
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14000b0c6
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], r15
mov dword [rbx + 0x10], 1
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x14000b0c9
test rsi, rsi
jne 0x14000b13c
jmp 0x14000b0c9
mov rbx, r15
mov qword [rsp + 0x38], rbx
test rbx, rbx
je 0x14000b147
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 8], rax
jne 0x14000b0e5
mov rcx, rdi
call fcn.14000b440
mov rax, qword [rdi + 8]
test rax, rax
je 0x14000b0f5
mov qword [rax], rbx
lock inc dword [rbx + 0x10]
add qword [rdi + 8], 8
lock dec dword [rbx + 0x10]
jne 0x14000b12b
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000b111
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r15
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000b123
call fcn.14000bb5c
mov qword [rbx + 8], r15
mov rcx, rbx
call fcn.14000bb5c
inc ebp
add r14, 8
cmp ebp, dword [rsp + 0x30]
jge 0x14000b152
jmp 0x14000b080
mov ecx, 0x8007000e
call fcn.140021b10
nop
mov ecx, 0x8007000e
call fcn.140021b10
nop
mov rax, rdi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000bb80
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000b5a0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x14005d3d0]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, 8
mov edx, eax
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x434
mov rbx, rax
call fcn.14000c570
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov dword [rsp + 0x20], 0x438
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14000b635
nop dword [rax]
mov r9, qword [rsp + 0x48]
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
call fcn.14000b670
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x14000b610
cmp rbx, 0xffffffffffffffff
je 0x14000b644
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14000bb80
mov rbx, qword [rsp + 0x498]
add rsp, 0x470
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000b670
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x14005d3d0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r15, r9
mov r14, rdx
mov r12, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x30], r9
mov dword [rsp + 0x50], 0
mov r8d, 1
lea r9, [rsp + 0x50]
movzx edx, r8b
mov rcx, r15
call qword [sym.imp.imagehlp.dll_ImageDirectoryEntryToData]
mov qword [rsp + 0x38], rax
jmp 0x14000b6e9
test rax, rax
je 0x14000b7e4
lea rdi, [rax + 0xc]
cmp dword [rdi], 0
je 0x14000b7e4
lea rsi, [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [rdi]
add rcx, r15
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14000b742
mov ebx, dword [rsi]
add rbx, r15
je 0x14000b742
mov rax, qword [rbx]
test rax, rax
je 0x14000b742
cmp rax, r14
je 0x14000b755
add rbx, 8
mov rax, qword [rbx]
test rax, rax
jne 0x14000b731
add rsi, 0x14
add rdi, 0x14
cmp dword [rdi], 0
je 0x14000b7e4
jmp 0x14000b710
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x40]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14000b7e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e6
jne 0x14000b7e4
lea r9, [rsp + 0x48]
mov edx, 8
mov r8d, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000b7e4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x40]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x48]
mov edx, 8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000bb80
add rsp, 0x68
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14002514c
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14002515f
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rsp + 0x20]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.140025d98
lea rdx, [0x14005ab90]
lea rcx, [rsp + 0x20]
call fcn.14000d0f8
int3

Function at 0x140030b20
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x140061dbc]
xor edx, edx
jmp fcn.14002514c

Function at 0x1400314c4
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x140061dbc]
jmp fcn.14002514c

Function at 0x1400315e4
Capabilities:
Get thread local storage value

Disassembly:
mov rcx, qword [rcx + 0x40]
jmp 0x14003d950
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r13, r9
mov r12, r8
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov qword [rax + 8], rcx
call fcn.140025af0
nop
mov edi, dword [rbx + 4]
mov esi, dword [rbx + 4]
dec esi
mov eax, dword [rbx]
cmp esi, eax
jl 0x14003d92a
lea ebp, [rsi + 1]
movsxd r15, esi
movsxd rcx, dword [rbx + 8]
and rcx, r15
mov rax, qword [rbx + 0x20]
mov r14, qword [rax + rcx*8]
test r14, r14
je 0x14003d920
mov rdx, r12
mov rcx, r14
call qword [rsp + 0x78]
test al, al
je 0x14003d920
mov rdx, r12
mov rcx, r14
call r13
test al, al
je 0x14003d920
cmp ebp, edi
jne 0x14003d910
dec edi
jmp 0x14003d920
movsxd rcx, dword [rbx + 8]
and rcx, r15
mov rax, qword [rbx + 0x20]
and qword [rax + rcx*8], 0
dec esi
dec ebp
mov eax, dword [rbx]
cmp esi, eax
jge 0x14003d8d6
xchg dword [rbx + 4], edi
mov rcx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.140025b38
add rcx, 0xb0
jmp 0x14003d88c

Function at 0x14003d754
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r9, qword [rdx + 0x1a8]
mov r8, rcx
mov r9, qword [r9 + 8]
lea rdx, [0x14003d810]
add rcx, 0x40
jmp fcn.14002d4a4

Function at 0x14003d7e8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r9, qword [rdx + 0x1a8]
mov r8, rcx
mov r9, qword [r9 + 8]
lea rdx, [0x14003d820]
add rcx, 0x40
jmp fcn.14002d4a4
Function at 0x1400012e0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rax, qword gs:[0x30]
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
mov rcx, qword [rax + 0x60]
mov rdi, qword [rcx + 0x18]
lea rcx, [rsp + 0x230]
add rdi, 0x20
mov rbx, qword [rdi]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
cmp rbx, rdi
je 0x1400013e8
nop
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov r8, qword [rbx + 0x40]
lea rcx, [rsp + 0x230]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8, rsi
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
mov edx, 0x104
lea rcx, [rsp + 0x230]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcslwr_s]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x230]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
jne 0x14000141e
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140001350
mov rdx, rsi
lea rcx, str.failed_to_get_a_handle_to__ls_n
call fcn.140001aa0
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140001eb0
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rax, qword [rbx + 0x20]
jmp 0x1400013f9

Function at 0x140001430
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
movsxd rax, dword [rcx + 0x3c]
xor r9d, r9d
mov rdi, rdx
mov r11, rcx
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov esi, dword [r8 + 0x1c]
mov ebp, dword [r8 + 0x24]
add rsi, rcx
mov r10d, dword [r8 + 0x20]
add rbp, rcx
mov ebx, dword [r8 + 0x18]
add r10, rcx
test ebx, ebx
je 0x1400014b3
nop dword [rax]
mov r8d, dword [r10]
mov rax, rdi
add r8, r11
sub r8, rdi
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400014a3
inc rax
test ecx, ecx
jne 0x140001490
test edx, edx
je 0x1400014ca
inc r9d
add r10, 4
cmp r9d, ebx
jb 0x140001480
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
movzx ecx, word [rbp + r9*2]
mov eax, dword [rsi + rcx*4]
add rax, r11
jmp 0x1400014b5
Function at 0x1400024d4
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140013d10
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011302
Capabilities:
Create thread
Inject thread

Disassembly:
jmp 0x1400124b0
push rbp
push rdi
sub rsp, 0x3d8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x86
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x388], rax
lea rcx, [0x1400240f3]
call fcn.140011429
xor r9d, r9d
lea r8, [rbp + 0x10]
mov edx, 0x104
lea rcx, str.Kansqwe.dll
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea rax, str.cs2.exe
mov qword [rbp + 0x138], rax
mov dword [rbp + 0x154], 0
cmp dword [rbp + 0x154], 0
jne 0x140012546
mov rcx, qword [rbp + 0x138]
call fcn.140011307
mov dword [rbp + 0x154], eax
mov ecx, 0x1e
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001251e
mov r8d, dword [rbp + 0x154]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x178], rax
cmp qword [rbp + 0x178], 0xffffffffffffffff
je 0x14001268e
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtOpenFile
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x198], rax
cmp qword [rbp + 0x198], 0
je 0x1400125e0
mov r8d, 5
mov rdx, qword [rbp + 0x198]
lea rcx, [rbp + 0x1b4]
call fcn.140011226
mov qword [rsp + 0x20], 0
mov r9d, 5
lea r8, [rbp + 0x1b4]
mov rdx, qword [rbp + 0x198]
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x104
xor edx, edx
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x1d8], rax
lea rcx, [rbp + 0x10]
call fcn.1400111db
inc rax
mov qword [rsp + 0x20], 0
mov r9, rax
lea r8, [rbp + 0x10]
mov rdx, qword [rbp + 0x1d8]
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rbp + 0x1d8]
mov qword [rsp + 0x20], rax
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 0x1f8], rax
cmp qword [rbp + 0x1f8], 0
je 0x14001268e
mov rcx, qword [rbp + 0x1f8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0x178], 0
je 0x1400126a5
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.___Yandqwe_Injected_Successfulled_
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14001108c
lea rdx, [0x14001103c]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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 ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001acd0]
call fcn.1400113bb
mov eax, edi
mov rcx, qword [rbp + 0x388]
xor rcx, rbp
call fcn.140011221
lea rsp, [rbp + 0x398]
pop rdi
pop rbp
ret
Function at 0x140011307
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140012330
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x278
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x66
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x298]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x248], rax
lea rcx, [0x1400240f3]
call fcn.140011429
mov dword [rbp + 4], 0
xor edx, edx
mov ecx, 2
call fcn.140011208
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
je 0x1400123dd
mov dword [rbp + 0x50], 0x130
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.1400113ac
test eax, eax
je 0x1400123dd
mov rdx, qword [rbp + 0x270]
lea rcx, [rbp + 0x7c]
call qword [sym.imp.ucrtbased.dll__stricmp]
test eax, eax
jne 0x1400123cc
mov eax, dword [rbp + 0x58]
mov dword [rbp + 4], eax
jmp 0x1400123dd
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.140011433
test eax, eax
jne 0x1400123af
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ac00]
call fcn.1400113bb
mov eax, edi
mov rcx, qword [rbp + 0x248]
xor rcx, rbp
call fcn.140011221
lea rsp, [rbp + 0x258]
pop rdi
pop rbp
ret

Function at 0x140011311
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015060
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015080
xor al, al
jmp 0x140015101
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015093
xor al, al
jmp 0x140015101
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 0x1400150bd
xor al, al
jmp 0x140015101
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400150d1
xor al, al
jmp 0x140015101
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400150e3
xor al, al
jmp 0x140015101
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400150ff
xor al, al
jmp 0x140015101
mov al, 1
add rsp, 0x38
ret