joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140043d30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x14006b040]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r8, rcx
test al, al
je 0x140043d70
cmp al, 0x25
jne 0x140043d64
cmp byte [r8 + 1], al
jne 0x140043d70
inc r8
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x140043d57
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x140043eda
cmp byte [r8 + 1], dl
je 0x140043eda
lea r11, [rsp + 0x20]
mov r9, r8
nop
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x140043dad
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x140043dd5
sub dl, 0x61
cmp dl, 0x19
ja 0x140043dc7
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x140043dd5
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x140043d90
jmp 0x140043dd8
inc r9
cmp r8, r9
jae 0x140043e0f
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x140043e04
bt rdx, rax
jb 0x140043e0a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x140043df0
xorps xmm3, xmm3
mov byte [r11], 0
cvtss2sd xmm3, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
movq r9, xmm3
call fcn.140004d30
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x140043e48
nop
inc rcx
cmp byte [rcx], 0x20
je 0x140043e40
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x140043ec8
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x140043e6a
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, r8b
cmp r8b, 0x2b
jne 0x140043e78
movzx eax, byte [rcx + 1]
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
cmp al, 0x30
jl 0x140043eb6
movss xmm2, dword [0x1400624ec]
nop
cmp al, 0x39
ja 0x140043eb6
movzx eax, al
inc rdx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x140043e90
cmp r9b, 0x2d
jne 0x140043ed5
xorps xmm1, xmmword [0x140062820]
movaps xmm0, xmm1
jmp 0x140043edd
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x140043edd
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140058f90
add rsp, 0x90
pop rbx
ret
Function at 0x140043f00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x14006b040]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r8, rcx
test al, al
je 0x140043f40
cmp al, 0x25
jne 0x140043f34
cmp byte [r8 + 1], al
jne 0x140043f40
inc r8
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x140043f27
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x1400440a4
cmp byte [r8 + 1], dl
je 0x1400440a4
lea r11, [rsp + 0x20]
mov r9, r8
nop
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x140043f7d
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x140043fa5
sub dl, 0x61
cmp dl, 0x19
ja 0x140043f97
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x140043fa5
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x140043f60
jmp 0x140043fa8
inc r9
cmp r8, r9
jae 0x140043fdf
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x140043fd4
bt rdx, rax
jb 0x140043fda
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x140043fc0
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.140004d30
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x140044018
nop dword [rax + rax]
inc rcx
cmp byte [rcx], 0x20
je 0x140044010
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x140044096
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x14004403a
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, r8b
cmp r8b, 0x2b
jne 0x140044048
movzx eax, byte [rcx + 1]
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
cmp al, 0x30
jl 0x140044084
movsd xmm2, qword [0x1400623f0]
nop
cmp al, 0x39
ja 0x140044084
movzx eax, al
inc rdx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x140044060
cmp r9b, 0x2d
jne 0x14004409f
xorps xmm1, xmmword [0x140062810]
movaps xmm0, xmm1
jmp 0x1400440a7
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x1400440a7
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140058f90
add rsp, 0x90
pop rbx
ret
Function at 0x140059c18
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140004650], rbx
je 0x140002228
cmp rax, rbx
jne 0x14000221b
mov ebx, 1
mov esi, ebx
jmp 0x14000222d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002200
mov ebx, 1
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x140002243
mov ecx, 0x1f
call fcn.14011f000
jmp 0x1400022a8
mov eax, dword [0x140004658]
test eax, eax
jne 0x1400022a2
mov dword [0x140004658], ebx
lea r15, [0x1400033b0]
lea rdi, [0x140003398]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140002294
test eax, eax
jne 0x140002298
cmp qword [rdi], 0
je 0x140002289
mov rax, qword [rdi]
mov rcx, qword [0x140003378]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000226a
test eax, eax
je 0x1400022a8
mov eax, 0xff
jmp 0x140002384
mov dword [0x140004064], ebx
mov eax, dword [0x140004658]
cmp eax, ebx
jne 0x1400022cf
lea rdx, [0x140003390]
lea rcx, [0x140003380]
call sub.msvcrt.dll__initterm
mov dword [0x140004658], 2
test esi, esi
jne 0x1400022dc
xor eax, eax
xchg qword [0x140004650], rax
cmp qword [0x140004660], 0
je 0x140002310
lea rcx, [0x140004660]
call fcn.140002540
test eax, eax
je 0x140002310
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140004660]
mov r9, qword [0x140003378]
call r9
mov r8, qword [0x140004078]
mov rdx, qword [0x140004070]
mov ecx, dword [0x140004068]
call fcn.140001800
mov dword [0x140004060], eax
cmp dword [0x140004080], 0
jne 0x140002340
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140004064], 0
jne 0x140002355
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140004060]
jmp 0x140002384
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400025c0
add rsp, 0x28
jmp 0x1400021dc

Function at 0x140002450
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000249c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002494
cmp dword [rcx + 0x3c], edx
jl 0x140002494
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002494
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000249c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140003010
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1400be010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
xor ebp, ebp
mov ecx, 0x1030
mov dword [rsp + 0x40], ebp
mov r14, rdx
call fcn.140055768
xor edx, edx
mov r8d, 0x1024
mov rdi, rax
lea rcx, [rax + 0xc]
call fcn.140059e60
mov qword [rdi], 0x32
lea rsi, [rdi + 8]
lea rcx, [rbx + 8]
mov dword [rsi], 3
mov dword [rsi + 4], 2
mov qword [rsi + 8], 2
mov dword [rsi + 0x10], 0x28
mov dword [rsi + 0x14], 0x1000
cmp qword [rcx + 0x18], 8
jb 0x140003097
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400031a6
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov r9d, 0x1030
mov dword [rsp + 0x28], 0x1030
mov r8, rdi
mov edx, 0x2d1400
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400031a6
mov ecx, dword [rsi + 0x10]
add rcx, rsi
mov sil, 1
movzx eax, byte [rcx]
and al, 1
mov byte [r14], al
movzx eax, byte [rcx]
shr al, 1
and al, 1
mov byte [r14 + 1], al
movzx eax, byte [rcx]
shr al, 2
and al, 1
mov byte [r14 + 2], al
movzx eax, byte [rcx]
shr al, 3
and al, 1
mov byte [r14 + 3], al
movzx eax, byte [rcx]
shr al, 4
and al, 1
mov byte [r14 + 4], al
movzx eax, byte [rcx + 3]
mov byte [r14 + 5], al
movzx eax, byte [rcx + 4]
mov byte [r14 + 6], al
imul rax, qword [rcx + 0x20], 0x7d000
shr rax, 0xa
shr rax, 0xa
shr rax, 0xa
mov qword [r14 + 8], rax
imul rax, qword [rcx + 0x30], 0x7d000
shr rax, 0xa
shr rax, 0xa
shr rax, 0xa
mov qword [r14 + 0x10], rax
mov rax, qword [rcx + 0x70]
mov qword [r14 + 0x18], rax
mov rax, qword [rcx + 0x80]
mov qword [r14 + 0x20], rax
mov rax, qword [rcx + 0x90]
mov qword [r14 + 0x28], rax
jmp 0x1400031a9
xor sil, sil
lea rdx, [rbx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x1400031bc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.140055724
movzx eax, sil
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140055700
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400032e0
Capabilities:
Get storage device properties

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0xa0
mov rax, qword [0x1400be010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov qword [r11 + 0x18], rbx
add rcx, 8
xor ebx, ebx
mov qword [r11 + 0x20], rbp
mov qword [r11 - 0x18], r14
mov edi, ebx
mov r14, rdx
cmp qword [rcx + 0x18], 8
jb 0x14000331e
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov edx, 0xc0000000
mov qword [rsp + 0x98], rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400034a7
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x70]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0x28
mov r9d, 0xc
mov qword [rsp + 0x20], rax
mov edx, 0x2d1400
mov qword [rsp + 0x74], rbx
mov rcx, rbp
mov dword [rsp + 0x70], ebx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400034a7
mov ecx, dword [rsp + 0x44]
call fcn.140060764
mov ecx, dword [rsp + 0x44]
lea r8, [rsp + 0x70]
mov rdi, rax
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x68]
mov r9d, 0xc
mov qword [rsp + 0x30], rax
mov edx, 0x2d1400
mov dword [rsp + 0x28], ecx
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400034a7
mov eax, dword [rdi + 0x1c]
mov sil, 1
mov dword [r14 + 4], eax
mov rbx, 0xffffffffffffffff
movzx eax, byte [rdi + 8]
mov byte [r14 + 1], al
movzx eax, byte [rdi + 9]
mov byte [r14 + 2], al
cmp byte [rdi + 0xa], sil
sete al
mov byte [r14], al
mov eax, dword [rdi + 0x18]
test eax, eax
je 0x140003439
lea rdx, [rdi + rax]
mov r8, rbx
inc r8
cmp byte [rdx + r8], 0
jne 0x140003426
lea rcx, [r14 + 0x68]
call fcn.140002770
mov eax, dword [rdi + 0xc]
test eax, eax
je 0x140003463
lea rdx, [rdi + rax]
mov r8, rbx
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140003450
lea rcx, [r14 + 8]
call fcn.140002770
mov eax, dword [rdi + 0x10]
test eax, eax
je 0x140003484
lea rdx, [rdi + rax]
mov r8, rbx
inc r8
cmp byte [rdx + r8], 0
jne 0x140003471
lea rcx, [r14 + 0x28]
call fcn.140002770
mov eax, dword [rdi + 0x14]
test eax, eax
je 0x1400034aa
lea rdx, [rdi + rax]
nop
inc rbx
cmp byte [rdx + rbx], 0
jne 0x140003490
mov r8, rbx
lea rcx, [r14 + 0x48]
call fcn.140002770
jmp 0x1400034aa
xor sil, sil
mov r14, qword [rsp + 0x90]
lea rcx, [rbp - 1]
mov rbx, qword [rsp + 0xc0]
cmp rcx, 0xfffffffffffffffd
ja 0x1400034cd
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0xc8]
test rdi, rdi
je 0x1400034e2
mov rcx, rdi
call fcn.140060750
movzx eax, sil
mov rsi, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140055700
add rsp, 0xa0
pop rdi
ret
Function at 0x140018dc0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400be010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov edx, dword [0x1400beb98]
lea rcx, str.IsNBHealthTableSupport_Start_s_healthyTableValue_value:__d
call fcn.140036ce0
lea rcx, str.IsNBHealthTableSupport_Start
call fcn.140036ce0
mov edx, dword [0x1400beb98]
cmp edx, 0xffffffff
jne 0x140018ee7
mov qword [rsp + 0x50], rbx
lea rcx, str.NBHealthTableVersionThread_Start
mov qword [rsp + 0x40], rdi
call fcn.140036ce0
xor eax, eax
lea r8, [0x140018c70]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0x7d0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, eax
lea rcx, str.NBHealthTableVersionThread_ret_:__u
mov ebx, eax
call fcn.140036ce0
test ebx, ebx
mov rbx, qword [rsp + 0x50]
jne 0x140018eaf
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edx, dword [rsp + 0x30]
lea rcx, str.NBHealthTableVersionThread_ExitCode:__u
call fcn.140036ce0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
mov dword [0x1400beb98], eax
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140055700
add rsp, 0x48
ret
lea rcx, str.NBHealthTableVersionThread_Timeout
call fcn.140036ce0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 1
mov dword [0x1400beb98], 1
lea rcx, str.IsNBHealthTableSupport_HealthyTableValue:__d
call fcn.140036ce0
mov eax, dword [0x1400beb98]
jmp 0x140018e98
lea rcx, str.IsNBHealthTableSupport_HealthyTableValue:__d
call fcn.140036ce0
mov eax, dword [0x1400beb98]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140055700
add rsp, 0x48
ret
Function at 0x1400366c0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x678
mov rax, qword [0x1400be010]
xor rax, rsp
mov qword [rsp + 0x660], rax
xor edx, edx
lea rcx, str.C:ProgramData
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400366fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14003681d
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140059e60
lea rax, str.ASUS
mov edx, 0x104
lea r9, str.C:ProgramData
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rsp + 0x30]
call fcn.140004a70
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14003675a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14003681d
xor edx, edx
lea rcx, [rsp + 0x240]
mov r8d, 0x208
call fcn.140059e60
lea rax, str.ASUS_System_Control_Interface
mov edx, 0x104
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rsp + 0x240]
call fcn.140004a70
xor edx, edx
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400367ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14003681d
xor edx, edx
lea rcx, [rsp + 0x450]
mov r8d, 0x208
call fcn.140059e60
lea rax, str.AsusSystemDiagnosis
mov edx, 0x104
lea r9, [rsp + 0x240]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rsp + 0x450]
call fcn.140004a70
xor edx, edx
lea rcx, [rsp + 0x450]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140036837
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140036837
xor al, al
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.140055700
add rsp, 0x678
ret
mov al, 1
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.140055700
add rsp, 0x678
ret
Function at 0x140037200
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x470
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1400be010]
xor rax, rsp
mov qword [rsp + 0x460], rax
movdqa xmm0, xmmword [0x1400ac8b0]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], 0
mov r8d, reloc.OLEAUT32.dll_SafeArrayPutElement
lea rdx, str._SystemDiagnosisService_
lea rcx, [rsp + 0x38]
call fcn.140002770
nop
lea rbx, [rsp + 0x488]
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x60]
call fcn.140059e60
call fcn.140002f20
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x480]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, qword [rax]
call fcn.14006059c
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400372b6
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.14002b960
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140037320
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003731b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140037339
call fcn.140055724
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140055700
add rsp, 0x470
pop rbx
ret
call fcn.14005c4ec
int3
Function at 0x140037bf0
Capabilities:
Compare security identifiers

Disassembly:
push rdi
mov eax, 0x1090
call fcn.140085740
sub rsp, rax
mov rax, qword [0x1400be010]
xor rax, rsp
mov qword [rsp + 0x1080], rax
xor edi, edi
mov qword [rsp + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea rdx, [rsp + 0x60]
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x140037c56
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WTSQueryUserToken_Fail:__u
call fcn.140037200
lea rcx, str.IsCurrentUserAdmin_End_r_n
call fcn.140036ce0
xor al, al
jmp 0x140037d71
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x78]
mov r9d, 0x1000
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x80]
mov dword [rsp + 0x78], 0x1000
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140037cb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Cannot_get_group_list_from_token___lu_.n
mov edx, eax
call fcn.140036e30
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140037d71
lea rax, [rsp + 0x68]
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x48], edi
mov r9d, 0x220
mov dword [rsp + 0x40], edi
mov r8d, 0x20
mov dword [rsp + 0x38], edi
mov dl, 2
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov word [rsp + 0x74], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140037d09
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Cannot_create_SID_for_Administrators___lu_.n
jmp 0x140037c97
mov qword [rsp + 0x10a0], rbx
mov ebx, edi
cmp dword [rsp + 0x80], edi
jbe 0x140037d4e
nop dword [rax]
mov rcx, qword [rsp + 0x68]
mov edx, ebx
add rdx, rdx
mov rdx, qword [rsp + rdx*8 + 0x88]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140037d49
inc ebx
cmp ebx, dword [rsp + 0x80]
jb 0x140037d20
jmp 0x140037d4e
mov edi, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x10a0]
test edi, edi
setne al
mov rcx, qword [rsp + 0x1080]
xor rcx, rsp
call fcn.140055700
add rsp, 0x1090
pop rdi
ret
Function at 0x1400380b0
Capabilities:
Create process on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x340], rbx
mov rax, qword [0x1400be010]
xor rax, rsp
mov qword [rbp + 0x220], rax
lea rcx, str.OpenTaskmgrWindowNormal_Start
call fcn.140036ce0
xor ebx, ebx
mov qword [rsp + 0x68], rbx
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea rdx, [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x140038132
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.WTSQueryUserToken_Fail:__u
call fcn.140037200
lea rcx, str.OpenTaskmgrWindowNormal_End_r_n
call fcn.140036ce0
jmp 0x140038291
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x70]
call fcn.140059e60
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x70], 0x68
lea rax, str.winsta0default
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x34], 1
mov eax, 5
mov word [rbp - 0x30], ax
movdqa xmm0, xmmword [0x1400ac8a0]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], bx
lea r8d, [rax + 6]
lea rdx, str.taskmgr.exe
lea rcx, [rbp]
call fcn.140001a50
nop
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x20]
call fcn.140059e60
lea r8, [rbp]
cmp qword [rbp + 0x18], 8
cmovae r8, qword [rbp]
mov edx, 0x100
lea rcx, [rbp + 0x20]
call fcn.140067d98
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, str.C:WindowsSystem32_
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x430
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rbp + 0x20]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x140038227
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateProcess_taskmgr.exe_Fail:__u
call fcn.140037200
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.OpenTaskmgrWindowNormal_End_r_n
call fcn.140036ce0
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x140038291
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003828c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400382b1
call fcn.140055724
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.140055700
mov rbx, qword [rsp + 0x340]
add rsp, 0x330
pop rbp
ret
call fcn.14005c4ec
int3