joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001f90
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x140099010]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov rax, qword gs:[0x30]
mov ebp, ecx
mov rdx, qword [rax + 0x60]
mov rax, qword [rdx + 0x18]
mov r14, qword [rax + 0x10]
nop
mov rbx, qword [r14 + 0x30]
movsxd rax, dword [rbx + 0x3c]
mov rdx, qword [rax + rbx + 0x88]
mov r15, rdx
mov esi, edx
shr r15, 0x20
add rsi, rbx
cmp rsi, rbx
je 0x14000206d
mov edi, dword [rsi + 0x18]
xor r11d, r11d
test edi, edi
je 0x14000206d
mov r10d, dword [rsi + 0x20]
add r10, rbx
nop dword [rax]
nop word [rax + rax]
mov eax, dword [r10]
mov r9d, 0x811c9dc5
add rax, rbx
movzx r8d, byte [rax]
inc rax
test r8b, r8b
je 0x14000205c
nop dword [rax + rax]
movsx ecx, r8b
lea rax, [rax + 1]
sub r8b, 0x41
mov edx, ecx
or edx, 0x20
cmp r8b, 0x19
movzx r8d, byte [rax - 1]
cmova edx, ecx
xor edx, r9d
imul r9d, edx, 0x1000193
test r8b, r8b
jne 0x140002030
cmp r9d, ebp
je 0x140002075
inc r11d
add r10, 4
cmp r11d, edi
jb 0x140002010
mov r14, qword [r14]
jmp 0x140001fd0
mov eax, dword [rsi + 0x24]
mov ecx, dword [rsi + 0x1c]
add rax, rbx
add rcx, rbx
movzx edx, word [rax + r11*2]
mov r8d, dword [rcx + rdx*4]
add r8, rbx
cmp r8, rsi
jbe 0x1400020a9
lea rax, [r15 + rsi]
cmp r8, rax
jae 0x1400020a9
mov edx, 0x811c9dc5
mov ecx, edx
call fcn.1400020e0
jmp 0x1400020ac
mov rax, r8
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.14004e660
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1400020e0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
push r15
mov r14d, ecx
nop dword [rax]
mov rax, qword gs:[0x30]
mov r8, qword [rax + 0x60]
mov rax, qword [r8 + 0x18]
mov r15, qword [rax + 0x10]
nop word [rax + rax]
cmp edx, 0x811c9dc5
jne 0x1400021be
mov rdi, qword [r15 + 0x30]
movsxd rax, dword [rdi + 0x3c]
mov rcx, qword [rax + rdi + 0x88]
mov r12, rcx
mov ebp, ecx
shr r12, 0x20
add rbp, rdi
cmp rbp, rdi
je 0x1400021be
mov esi, dword [rbp + 0x18]
xor ebx, ebx
test esi, esi
je 0x1400021be
mov r11d, dword [rbp + 0x20]
add r11, rdi
nop dword [rax]
mov eax, dword [r11]
mov r10d, 0x811c9dc5
add rax, rdi
movzx r9d, byte [rax]
inc rax
test r9b, r9b
je 0x1400021af
nop dword [rax + rax]
movsx ecx, r9b
lea rax, [rax + 1]
sub r9b, 0x41
mov r8d, ecx
or r8d, 0x20
cmp r9b, 0x19
movzx r9d, byte [rax - 1]
cmova r8d, ecx
xor r8d, r10d
imul r10d, r8d, 0x1000193
test r9b, r9b
jne 0x140002180
cmp r10d, r14d
je 0x1400021c6
inc ebx
add r11, 4
cmp ebx, esi
jb 0x140002160
mov r15, qword [r15]
jmp 0x140002120
mov eax, dword [rbp + 0x24]
mov ecx, dword [rbp + 0x1c]
add rax, rdi
add rcx, rdi
movzx edx, word [rax + rbx*2]
mov r8d, dword [rcx + rdx*4]
add r8, rdi
cmp r8, rbp
jbe 0x1400021f8
lea rax, [r12 + rbp]
cmp r8, rax
jae 0x1400021f8
mov edx, 0x811c9dc5
mov r14d, edx
jmp 0x140002100
mov rbx, qword [rsp + 0x28]
mov rax, r8
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r15
pop r14
pop r12
pop rdi
ret
Function at 0x14000b300
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rbp, rdx
mov qword [rsp + 0x20], rdx
mov rdi, rcx
mov qword [rsp + 0x70], rcx
lea rcx, [0x14008d958]
jmp 0x1406a2ece
Function at 0x140014e70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140014ea4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140014e90
ret
Function at 0x140025cc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
lea r11, [0x14008d1d0]
mov r9, rdx
not ecx
cmp r8, 4
jb 0x140025d39
mov r10, r8
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r8, rax
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
add r9, 4
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x140025ce0
test r8, r8
je 0x140025d5d
nop
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r8, 1
jne 0x140025d40
not ecx
mov eax, ecx
ret
Function at 0x14002bca0
Capabilities:
Hash data using fnv

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x4f]
sub rsp, 0x98
mov rbx, rcx
lea rcx, [0x14008e208]
jmp 0x1406a5ae1
Function at 0xb9e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00b9e1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xb9e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xb9e06f
add dl, dl
jne 0xb9e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xb9e0f6
xor eax, eax
add dl, dl
jne 0xb9e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xb9e1ad
add dl, dl
jne 0xb9e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb9e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb9e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb9e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xb9e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xb9e07e
mov eax, 1
add dl, dl
jne 0xb9e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb9e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xb9e0fb
sub eax, ebx
mov ebx, 1
jne 0xb9e14c
mov ecx, 1
add dl, dl
jne 0xb9e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb9e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xb9e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xb9e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb9e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb9e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xb9e15d
cmp eax, 0x7d00
jae 0xb9e19b
cmp eax, 0x500
jb 0xb9e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xb9e07e
cmp eax, 0x7f
ja 0xb9e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xb9e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xb9e1d2
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 0xb9e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004330
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 case.default.0x140004360
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 0x140004388
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000438a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400043e3
test ecx, ecx
jle 0x1400043c3
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 0x1400043e3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400043e3
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
scasd eax, dword [rdi]
wait
sub byte [rbx + 0x778a55b1], ch
invalid
Function at 0x140004410
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140004441
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140004458
mov rbp, qword [rsp + 0x40]
mov rsi, 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__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x38], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000447b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000447d
xor ecx, ecx
mov qword [rsp + 0x30], rbx
movsxd rax, ecx
test ecx, ecx
je 0x1400044b7
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rdi, rbx
add r14, rbx
mov r8, rdi
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140004557
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x1400044f2
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 rbx, r8
cmp r8, 0xfff
jbe 0x140004531
nop
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 rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x140004578
cmp rdi, rax
ja 0x140004500
mov r8, rbx
test rbx, rbx
je 0x140004557
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rbx
sub r8, rax
sub rbp, r8
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub rbp, rdi
jmp 0x14000455a
sti
invalid
Function at 0x140001cc0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
xor ebx, ebx
mov rsi, rcx
mov rbp, rbx
test rcx, rcx
je 0x140001d9a
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov r12d, eax
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea rdx, [rcx - 1]
lea ecx, [r12 + 1]
add rdx, rcx
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x140001d9d
mov edx, r12d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [rax - 1]
cmp word [rbp + rcx*2], 0x5c
je 0x140001d4c
mov ecx, eax
mov edx, 0x5c
inc eax
mov word [rbp + rcx*2], dx
or rcx, 0xffffffffffffffff
movsxd r8, eax
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x140001d9a
mov rdx, rsi
lea r8, [rbp + r8*2]
nop dword [rax]
movzx eax, word [rdx]
or rcx, 0xffffffffffffffff
inc ebx
mov word [r8], ax
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
mov eax, ebx
add rdx, 2
not rcx
add r8, 2
dec rcx
cmp rax, rcx
jb 0x140001d70
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x140001f70
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, 0x40
mov edx, eax
mov edi, eax
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140001fd2
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140001fc7
cmp edi, eax
jb 0x140001fc7
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140003230
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov rax, qword [0x14077b1e0]
xor esi, esi
mov rdi, r8
mov r12, rdx
mov ebp, ecx
test rax, rax
jne 0x140003279
lea rcx, str.Setupapi.dll
xor edx, edx
call fcn.140002970
mov qword [0x14077b1e0], rax
test rax, rax
je 0x140003356
cmp qword [0x14077b1e8], rsi
jne 0x1400032a9
lea rdx, [0x1402fa1f8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14077b1e8], rax
test rax, rax
je 0x140003356
mov rax, qword [0x14077b1e0]
cmp qword [0x14077b1f0], rsi
jne 0x1400032d9
lea rdx, [0x1402fa1e0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14077b1f0], rax
test rax, rax
je 0x140003356
mov rax, qword [0x14077b1e0]
cmp qword [0x14077b200], rsi
jne 0x140003305
lea rdx, [0x1402fa1b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14077b200], rax
test rax, rax
je 0x140003356
mov rax, qword [0x14077b1e0]
cmp qword [0x14077b1f8], rsi
jne 0x140003331
lea rdx, str.SetupDiGetDeviceInterfaceDetailW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14077b1f8], rax
test rax, rax
je 0x140003356
mov rax, qword [0x14077b1e0]
cmp qword [0x14077b210], rsi
jne 0x14000335d
lea rdx, [0x1402fa170]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14077b210], rax
test rax, rax
jne 0x14000335d
xor eax, eax
jmp 0x1400033fd
mov r9d, 6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x30], rbx
call qword [0x14077b1e8]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400033f6
xor eax, eax
mov r8, rdi
xor edx, edx
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov rcx, rbx
mov dword [rdi], reloc.WLDAP32.dll_Ordinal_32
call qword [0x14077b1f0]
test eax, eax
je 0x1400033ed
nop word [rax + rax]
mov r8, rdi
mov rdx, rbx
mov ecx, ebp
call fcn.140002150
cmp eax, 1
je 0x140003413
xor eax, eax
inc esi
mov r8, rdi
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov edx, esi
mov rcx, rbx
mov dword [rdi], reloc.WLDAP32.dll_Ordinal_32
call qword [0x14077b1f0]
test eax, eax
jne 0x1400033b0
mov rcx, rbx
call qword [0x14077b210]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov qword [r12], rbx
mov eax, 1
jmp 0x1400033f8
Function at 0x140004b90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
xor ecx, ecx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x140004d9d
mov rcx, rdi
call fcn.140001dc0
test eax, eax
jne 0x140004d9d
mov rcx, rdi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
call fcn.140004890
mov rbp, rax
test rax, rax
je 0x140004cae
mov qword [rsp + 0x50], r12
call fcn.140001f70
mov r12, rax
test rax, rax
je 0x140004c9b
mov rcx, rbp
call fcn.140001dc0
test eax, eax
je 0x140004c84
lea rax, str.system32_
lea rbx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
mov rdx, qword [rbx]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdi, [rcx - 1]
mov rcx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp
test eax, eax
je 0x140004c57
lea rax, [rsp + 0x30]
add rbx, 8
cmp rbx, rax
jb 0x140004c21
jmp 0x140004c67
lea rdx, [rbp + rdi*2]
mov rcx, r12
call fcn.140003eb0
mov rsi, rax
lea rax, [rsp + 0x30]
cmp rbx, rax
jne 0x140004c92
mov rcx, rbp
call fcn.140001e20
test eax, eax
je 0x140004c92
mov rsi, rbp
xor ebp, ebp
jmp 0x140004c92
mov rdx, rbp
mov rcx, r12
call fcn.140003eb0
mov rsi, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r12, qword [rsp + 0x50]
jmp 0x140004d4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x140004d72
mov rcx, rdi
call fcn.140003420
mov rbx, rax
test rax, rax
je 0x140004d72
mov ecx, 0x37e4
call fcn.140003000
test eax, eax
je 0x140004ceb
xor ecx, ecx
call fcn.140004520
mov rdi, rax
jmp 0x140004cf3
call fcn.140001f70
mov rdi, rax
test rdi, rdi
je 0x140004d44
mov rdx, rbx
mov rcx, rdi
call fcn.140003eb0
mov rsi, rax
test rax, rax
je 0x140004d3b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140004d1d
test al, 0x50
je 0x140004d3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140004d30
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rsi, rsi
je 0x140004d72
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140004d85
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x1400056b0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xf0
mov rax, qword [0x140726340]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rdx, qword [rcx + 0x10]
xor eax, eax
mov qword [r11 - 0x24], rax
xorps xmm0, xmm0
mov dword [r11 - 0x1c], eax
xor ebx, ebx
lea rax, [0x14053eb28]
movups xmmword [r11 - 0x54], xmm0
movups xmmword [r11 - 0x44], xmm0
movups xmmword [r11 - 0x34], xmm0
mov dword [rsp + reloc.WS2_32.dll_WSASetLastError], 0x70
mov dword [rsp + 0x74], 0x40
mov qword [r11 - 0x78], rax
lea rax, str.cmd.exe
mov qword [r11 - 0x70], rax
movabs rax, 0x7fffffffffffffff
sub rax, rdx
mov qword [r11 - 0x80], rbx
cmp rax, 3
jb 0x1400057f8
cmp qword [rcx + 0x18], 0xf
mov rax, rcx
jbe 0x14000573d
mov rax, qword [rcx]
mov qword [rsp + 0x30], rdx
lea r9, [0x14053eb38]
movzx edx, byte [rsp + 0x40]
mov r8, rcx
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], 3
call fcn.140006740
cmp qword [rsp + 0x60], 0xf
lea rax, [rsp + 0x48]
lea rcx, [rsp + 0x48]
cmova rax, qword [rsp + 0x48]
mov qword [rsp + 0x90], rax
call fcn.1400062c0
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x98], rbx
mov dword [rsp + 0xa0], ebx
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x1400057d1
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.ShellExecuteEx_failed
call fcn.1400063d0
lea rdx, [0x1400065a0]
mov rcx, rax
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 al, al
jmp 0x1400057df
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1402cbf10
add rsp, 0xf0
pop rbx
ret
call fcn.140005690
int3
Function at 0x140005800
Capabilities:
Clear windows event logs

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
call fcn.140005970
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
mov r8d, gethostname
lea rdx, str.del__s__q__f___systemdrive__Recycle.bin__nul_2_nul
lea rcx, [rbp - 0x20]
call fcn.140006600
nop
lea rcx, [rbp - 0x20]
call fcn.1400056b0
nop
lea rcx, [rbp - 0x20]
call fcn.1400062c0
call fcn.140005c70
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
mov r8d, reloc.WLDAP32.dll_Ordinal_27
lea rdx, str.wevtutil.exe_cl_Application
lea rcx, [rbp - 0x20]
call fcn.140006600
nop
lea rcx, [rbp - 0x20]
call fcn.1400056b0
nop
lea rcx, [rbp - 0x20]
call fcn.1400062c0
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
mov r8d, reloc.WLDAP32.dll_Ordinal_22
lea rdx, str.wevtutil.exe_cl_System
lea rcx, [rbp - 0x20]
call fcn.140006600
nop
lea rcx, [rbp - 0x20]
call fcn.1400056b0
nop
lea rcx, [rbp - 0x20]
call fcn.1400062c0
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
mov r8d, reloc.WLDAP32.dll_Ordinal_45
lea rdx, str.del__s__f__q__SYSTEMDRIVE_AMD.__nul_2_nul
lea rcx, [rbp - 0x20]
call fcn.140006600
nop
lea rcx, [rbp - 0x20]
call fcn.1400056b0
nop
lea rcx, [rbp - 0x20]
call fcn.1400062c0
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
mov r8d, Ordinal_50
lea rdx, str.del__s__f__q__SYSTEMDRIVE_NVIDIA.__nul_2_nul
lea rcx, [rbp - 0x20]
call fcn.140006600
nop
lea rcx, [rbp - 0x20]
call fcn.1400056b0
nop
lea rcx, [rbp - 0x20]
call fcn.1400062c0
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
mov r8d, Ordinal_50
lea rdx, str.del__s__f__q__SYSTEMDRIVE_INTEL.__nul_2_nul
lea rcx, [rbp - 0x20]
call fcn.140006600
nop
lea rcx, [rbp - 0x20]
call fcn.1400056b0
nop
lea rcx, [rbp - 0x20]
call fcn.1400062c0
add rsp, 0x40
pop rbp
ret