joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bd5f4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14009b020
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400bd67e
cmp byte [rbp - 0x21], r15b
je 0x1400bd679
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400bd6b4
call fcn.1400b43c4
test eax, eax
jne 0x1400bd6a0
cmp byte [rbp - 0x21], r15b
je 0x1400bd698
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400bd6b4
cmp byte [rbp - 0x21], r15b
je 0x1400bd6b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400a062c
test eax, eax
jne 0x1400bd754
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14009b020
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400bd6f3
cmp byte [rbp - 0x21], r15b
je 0x1400bd728
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400bd728
call fcn.1400b43c4
test eax, eax
jne 0x1400bd714
cmp byte [rbp - 0x21], r15b
je 0x1400bd70d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400bd728
cmp byte [rbp - 0x21], r15b
je 0x1400bd725
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400a062c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400bd754
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400bd757
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400bd765
mov rcx, rdi
call fcn.14004abb0
cmp byte [rbp + 0x3f], r15b
je 0x1400bd774
mov rcx, qword [rbp + 0x27]
call fcn.14004abb0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400be5d8
Capabilities:
Encrypt data using rc4 prga

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, 0x20
mov rbx, rcx
mov ebp, 0x7ff
movzx ecx, word [rcx + 6]
mov esi, edx
shr cx, 4
and cx, bp
cmp cx, bp
jne 0x1400be639
test byte [rbx + 6], 0xf
jne 0x1400be62c
xor edi, edi
cmp word [rbx + 4], di
jne 0x1400be62c
cmp word [rbx + 2], di
jne 0x1400be62c
cmp word [rbx], di
jne 0x1400be62c
lea esi, [rdi + 1]
jmp 0x1400be631
mov esi, 2
movzx eax, si
jmp 0x1400be831
xor edi, edi
test cx, cx
jne 0x1400be654
mov rcx, rbx
call fcn.1400c362c
movzx ecx, ax
cmp di, ax
jl 0x1400be82e
movsx edx, cx
test esi, esi
jle 0x1400be684
sub ebp, edx
cmp ebp, esi
jg 0x1400be684
movsd xmm0, qword [0x14014cad0]
cmp word [rbx + 6], di
jge 0x1400be676
xorps xmm0, xmmword [0x140149c10]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x1400be831
movzx r11d, word [rbx + 6]
mov eax, edx
neg eax
cmp eax, esi
jge 0x1400be6b1
add si, cx
mov eax, 0x800f
shl si, 4
and r11w, ax
or si, r11w
mov word [rbx + 6], si
or eax, 0xffffffff
jmp 0x1400be831
movzx r15d, r11w
lea ebp, [rsi - 1]
and r11w, 0xf
mov r13d, 0x8000
mov r12d, 0x10
and r15w, r13w
or r11w, r12w
add ebp, edx
cmp ebp, 0xffffffcb
jl 0x1400be823
test ebp, ebp
jns 0x1400be823
lea esi, [r12 - 0xf]
movzx r14d, di
cmp bp, 0xfff0
jg 0x1400be746
movzx edx, word [rbx + 4]
mov eax, 0xfff0
movzx r8d, word [rbx + 2]
sub ax, bp
shr ax, 4
add ax, si
movzx ecx, ax
movzx eax, cx
shl ax, 4
add bp, ax
test r14w, r14w
mov eax, edi
setne al
movzx r14d, ax
or r14w, word [rbx]
mov word [rbx], r8w
movzx r8d, dx
movzx edx, r11w
mov r11d, edi
sub rcx, rsi
jne 0x1400be718
mov word [rbx + 4], dx
mov word [rbx + 2], r8w
neg bp
je 0x1400be7c5
movzx r8d, word [rbx]
mov eax, edi
movzx r9d, word [rbx + 2]
movzx edx, r8w
movsx r10d, bp
sub r12d, r10d
mov ecx, r12d
shl dx, cl
test r14w, r14w
movzx r14d, dx
movzx edx, word [rbx + 4]
setne al
or r14w, ax
movzx eax, r9w
shl ax, cl
movzx ecx, bp
shr r8w, cl
mov ecx, r12d
or ax, r8w
mov word [rbx], ax
movzx eax, dx
shl ax, cl
movzx ecx, bp
shr r9w, cl
mov ecx, r12d
or ax, r9w
mov word [rbx + 2], ax
movzx eax, r11w
shl ax, cl
movzx ecx, bp
shr dx, cl
mov ecx, r10d
or ax, dx
mov word [rbx + 4], ax
shr r11w, cl
or r11w, r15w
mov word [rbx + 6], r11w
cmp r13w, r14w
jb 0x1400be7db
jne 0x1400be7fa
test byte [rbx], sil
je 0x1400be7fa
add word [rbx], si
jne 0x1400be7fa
add word [rbx + 2], si
jne 0x1400be7fa
add word [rbx + 4], si
jne 0x1400be7fa
add r11w, si
mov word [rbx + 6], r11w
jmp 0x1400be6a9
cmp r11w, r15w
jne 0x1400be6a9
cmp word [rbx + 4], di
jne 0x1400be6a9
cmp word [rbx + 2], di
jne 0x1400be6a9
movzx eax, word [rbx]
neg ax
sbb ax, ax
jmp 0x1400be831
mov word [rbx + 6], r15w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400becc8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400becde
mov al, 1
jmp 0x1400bed3e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400becef
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400bed3c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400a4a8c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400bed3c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400bed3c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400bed3c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400bed3e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400d1a50
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x258
mov rax, qword [0x140181040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov sil, 1
cmp qword [0x140192f20], 0
je 0x1400d1a94
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140092f10
mov eax, esi
add rsp, 0x258
pop rdi
pop rsi
ret
mov rcx, qword [0x140192f28]
test rcx, rcx
je 0x1400d1b32
test byte [0x1401834bc], 1
je 0x1400d1a78
cmp byte [rcx + 0x17], 0
jns 0x1400d1ab6
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140192f20], rax
inc rax
cmp rax, 1
ja 0x1400d1a78
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400c53a0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400d1c12
xor esi, esi
jmp 0x1400d1a78
mov ecx, 0x18
call fcn.1400919f0
mov rsi, rax
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400c53a0
xor ecx, ecx
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x140152e90]
movups xmmword [rsi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsi + 0x10], rax
mov rcx, rsi
mov rdx, rdi
call fcn.140104eb0
movsx rcx, byte [rsi + 0x17]
test rcx, rcx
mov rax, qword [rsi]
mov r8, qword [rsi + 8]
mov r9, rcx
cmovs r9, r8
mov r10, rsi
cmovs r10, rax
test r9, r9
jne 0x1400d1bcf
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rsi
call fcn.140103db2
mov qword [0x140192f28], 0
jmp 0x1400d1b2b
add r9, r9
test r9, r9
je 0x1400d1baa
lea rdx, [r9 - 2]
cmp word [r10 + r9 - 2], 0x5c
mov r9, rdx
jne 0x1400d1bd2
cmp rdx, 0xfffffffffffffffe
je 0x1400d1baa
sar rdx, 1
lea r9, [rdx + 1]
test cl, cl
jns 0x1400d1ce5
cmp r8, rdx
jbe 0x1400d1cfc
mov qword [rsi + 8], r9
mov word [rax + rdx*2 + 2], 0
jmp 0x1400d1baa
mov rcx, qword [0x140192f28]
lea rdx, [rsp + 0x40]
call fcn.14005f2e4
mov rcx, qword [0x140192f28]
movsx rax, byte [rcx + 0x17]
test rax, rax
js 0x1400d1c41
test al, al
je 0x1400d1cfa
mov rdx, rcx
jmp 0x1400d1c51
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400d1cfa
mov rdx, qword [rcx]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x1400d1c72
lea rdx, [0x140158a8c]
mov r8d, 1
call fcn.140103db2
mov rcx, qword [0x140192f28]
lea rdx, str.debug.log
mov r8d, 9
call fcn.140103db2
mov rcx, qword [0x140192f28]
cmp byte [rcx + 0x17], 0
jns 0x1400d1c94
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140192f20], rax
inc rax
cmp rax, 1
ja 0x1400d1a78
mov qword [0x140192f20], 0
jmp 0x1400d1b2b
cmp rdx, rcx
jae 0x1400d1cfc
and r9b, 0x7f
mov byte [rsi + 0x17], r9b
mov rax, rsi
jmp 0x1400d1c09
ud2
mov rcx, rsi
call fcn.1400e6d8e
int3
Function at 0x1400d2980
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10050
call fcn.140092eb0
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x140181040]
xor rax, rsp
mov qword [rsp + 0x10048], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140152e90]
movaps xmmword [rdi], xmm0
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.140043610
test rsi, rsi
je 0x1400d2a58
lea rbx, [rsp + 0x4a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.1400c53a0
cmp byte [rsp + 0x47], 0
jns 0x1400d29fb
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
je 0x1400d2a2a
cmp eax, 0x7fff
jae 0x1400d2a7d
mov edx, eax
lea rcx, [rsp + 0x4a]
mov r8, rsi
call fcn.140064e40
cmp byte [rsp + 0x47], 0
jns 0x1400d2a3b
mov rcx, qword [rsp + 0x30]
call fcn.140091a2c
mov rcx, qword [rsp + 0x10048]
xor rcx, rsp
call fcn.140092f10
mov eax, ebx
add rsp, 0x10050
pop rbx
pop rdi
pop rsi
ret
cmp byte [rsp + 0x47], 0
js 0x1400d2a66
lea rcx, [rsp + 0x30]
jmp 0x1400d2a6b
mov rcx, qword [rsp + 0x30]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
jmp 0x1400d2a2a
int3
Function at 0x1400d2cd0
Capabilities:
Accept command line arguments

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140181040]
xor rax, rsp
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 3
call fcn.1400619d0
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
jne 0x1400d2d4b
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140092f10
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rsi
call fcn.140091a2c
jmp 0x1400d2d1e
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x1400d2d9f
lea rdx, [0x140164696]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400d2d9b
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [0x140174e48]
jmp 0x1400d2dad
xor ebx, ebx
jmp 0x1400d2db0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
movsxd r9, dword [rsp + 0x3c]
lea r8, [rbx + r9*8]
xorps xmm6, xmm6
lea r14, [rsp + 0x20]
movaps xmmword [r14], xmm6
mov qword [r14 + 0x10], 0
mov rcx, r14
mov rdx, rbx
call fcn.140068e00
mov rcx, rsi
mov rdx, r14
call fcn.1400d2b70
movups xmmword [rsi], xmm6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x1400d2dfd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x1400d2d1e
mov rdi, qword [rsp + 0x28]
mov rcx, rsi
cmp rdi, rsi
je 0x1400d2d3f
add rdi, 0xffffffffffffffe8
jmp 0x1400d2e3a
mov rcx, qword [rdi]
call fcn.140091a2c
lea rax, [rdi - 0x18]
cmp rdi, rsi
mov rdi, rax
je 0x1400d2d3a
test rdi, rdi
je 0x1400d2e47
cmp byte [rdi + 0x17], 0
jns 0x1400d2e2a
jmp 0x1400d2e22
ud2
Function at 0x1400df5dc
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x140181040]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsx rax, byte [r8 + 0x17]
test rax, rax
jns 0x1400df610
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400df624
bt ebx, 8
jae 0x1400df643
mov eax, ebx
and eax, 0x200
je 0x1400df643
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140092f10
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp edi, 2
lea rax, [0x140193f50]
lea rcx, [0x140194150]
cmove rcx, rax
cmp word [rcx], 0
jne 0x1400df624
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x1400df624
bt ebx, 8
jb 0x1400df624
shr ebx, 9
and ebx, 1
or bl, byte [0x140194550]
je 0x1400df624
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movsx rbp, byte [rsi + 0x17]
test rbp, rbp
js 0x1400df6de
mov rdi, rsi
mov ebx, 1
xor r14d, r14d
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x2c], 0
jmp 0x1400df725
mov rdi, qword [rsi]
mov rbp, qword [rsi + 8]
jmp 0x1400df6ba
cmp dword [rsp + 0x2c], 0
je 0x1400df624
jmp 0x1400df7aa
mov rdx, rcx
mov rbx, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
mov rbp, r13
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rax
xor r14d, r14d
mov rdi, rdx
jmp 0x1400df720
add r12, 0x28
inc r14
cmp r14, rbx
jae 0x1400df6e7
mov r15, qword [r12 + 8]
mov r13, rbp
sub r13, r15
jb 0x1400df719
mov rdx, qword [r12]
mov rcx, rdi
mov r8, r15
call fcn.1400aa770
test eax, eax
jne 0x1400df719
movzx edx, word [rdi + r15*2]
cmp edx, 0x5c
je 0x1400df753
test edx, edx
jne 0x1400df719
lea rcx, [rdi + r15*2]
mov r8d, dword [r12 + 0x10]
lea rax, str.WOW6432Node_
cmp r8d, 1
je 0x1400df785
cmp r8d, 2
je 0x1400df77b
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
jmp 0x1400df785
mov rdi, rcx
lea rax, str.WOW6432Node
cmp dx, 0x5c
mov dword [rsp + 0x2c], r8d
jne 0x1400df6f7
lea rdx, [rcx + 2]
dec r13
cmp word [rcx + 2], 0x5c
mov rcx, rdx
je 0x1400df794
jmp 0x1400df6fa
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x1400df7b6
mov rax, qword [rsi]
mov rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x1400df7e9
mov rbx, qword [rsp + 0x30]
sub rbx, rax
sar rbx, 1
mov rcx, rdi
call fcn.1400af0a4
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
mov r9, rax
call fcn.14005f102
jmp 0x1400df624
ud2
Function at 0x1400df7eb
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, r9
mov rdi, r8
mov r15, rdx
mov rbx, rcx
mov rax, qword [0x140181040]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [0x140193f40], 0
je 0x1400df875
xorps xmm0, xmm0
lea r14, [rsp + 0x50]
movaps xmmword [r14], xmm0
mov rcx, r14
mov rdx, r15
call sub.ntdll.dll_RtlInitUnicodeString
lea r13, [rsp + 0x4c]
mov dword [r13], 0x18
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x30]
mov qword [r15 + 0x10], rax
movaps xmm0, xmmword [0x140152e90]
movaps xmmword [r15], xmm0
mov edx, 0x18
mov rcx, r15
call fcn.140035d78
mov ebp, 5
jmp 0x1400df8c5
call fcn.14007b17a
test al, al
jne 0x1400df81f
xor esi, esi
jmp 0x1400df95c
mov rcx, r15
call fcn.14002ffde
mov r12, qword [rsp + 0x30]
mov eax, dword [rsp + 0x4c]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], eax
mov rcx, rbx
mov rdx, r14
mov r8d, 1
mov r9, r12
call sub.ntdll.dll_NtQueryValueKey
cmp eax, 0xc0000023
je 0x1400df8c1
cmp eax, 0x80000005
jne 0x1400df900
dec ebp
je 0x1400df933
mov eax, dword [rsp + 0x4c]
mov r12, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov r8, rcx
sub r8, r12
mov rdx, rax
sub rdx, r8
ja 0x1400df885
jae 0x1400df896
lea rdx, [r12 + rax]
mov r8, rcx
sub r8, rdx
dec rcx
cmp r8, rcx
ja 0x1400df992
mov qword [rsp + 0x38], rdx
jmp 0x1400df896
test eax, eax
js 0x1400df933
mov eax, dword [r12 + 4]
mov dword [rdi], eax
mov r9d, dword [r12 + 0xc]
test r9, r9
jne 0x1400df97c
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
mov rdx, rcx
sub rdx, rax
dec rcx
cmp rdx, rcx
ja 0x1400df992
mov qword [rsi + 8], rax
mov sil, 1
jmp 0x1400df935
xor esi, esi
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400df95c
mov rax, qword [rsp + 0x38]
mov rdx, rax
sub rdx, rcx
dec rax
cmp rdx, rax
ja 0x1400df992
mov qword [rsp + 0x38], rcx
call fcn.140091a2c
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140092f10
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edx, dword [r12 + 8]
add rdx, r12
lea r8, [rdx + r9]
mov rcx, rsi
call fcn.1400c6918
jmp 0x1400df92e
ud2
Function at 0x1401059e0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x140181040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 1
je 0x140105a09
mov rcx, qword [rsi]
jmp 0x140105a12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x140105a5b
mov dil, 1
test bl, bl
je 0x140105a44
cmp byte [rsi + 8], 1
je 0x140105a30
mov rcx, qword [rsi]
jmp 0x140105a39
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140092f10
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 1
jne 0x140105a72
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140105a75
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140105a88
xor edi, edi
jmp 0x140105a44
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 1
jne 0x140105aa1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140105aa4
mov rcx, qword [rsi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x140105a44
Function at 0x140105af0
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
movaps xmmword [rsp + 0x130], xmm6
mov ebx, r9d
mov edi, r8d
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x140181040]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov qword [rsp + 0x40], 0xd
mov rax, qword [0x140161200]
mov al, byte [rax + 0xd]
test al, al
jne 0x140105d9a
movabs r13, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x120], r13
movaps xmm6, xmmword [0x140152e90]
movaps xmmword [rsp + 0x110], xmm6
lea r15, [rsp + 0x80]
mov rcx, r14
mov rdx, r15
call fcn.140067fa0
cmp byte [r15 + 0x17], 0
js 0x140105c21
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x120], rax
movups xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x110], xmm0
lea r12, [rsp + 0x80]
mov rcx, r12
call fcn.140048d70
lea r15, [rsp + 0xf0]
mov qword [r15 + 0x10], r13
movaps xmmword [r15], xmm6
mov rcx, r14
mov rdx, r15
call fcn.140109a40
xorps xmm0, xmm0
movups xmmword [r12 + 0x60], xmm0
movups xmmword [r12 + 0x50], xmm0
movups xmmword [r12 + 0x40], xmm0
movups xmmword [r12 + 0x30], xmm0
movabs rax, 0x4000000070
mov qword [r12], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [r12 + 8], rax
lea rax, str.runas
mov qword [r12 + 0x10], rax
cmp byte [rsp + 0x127], 0
js 0x140105c43
lea rax, [rsp + 0x110]
jmp 0x140105c4b
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
lea rcx, [rsp + 0x110]
call fcn.140021762
jmp 0x140105ba2
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x98], rax
cmp byte [rsp + 0x107], 0
jns 0x140105c65
mov r15, qword [rsp + 0xf0]
lea rcx, [rsp + 0x80]
mov qword [rcx + 0x20], r15
xor r14d, r14d
mov qword [rcx + 0x28], r14
xor dil, 1
movzx eax, dil
mov dword [rcx + 0x30], eax
mov qword [rcx + 0x38], r14
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140105cfb
test bl, bl
je 0x140105cf3
lea rdi, [rsp + 0x40]
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.LaunchElevatedProcess
lea r8, str....._baseprocesslaunch_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0xbc
call fcn.140048ae0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14004c250
mov rcx, qword [rsp + 0xe8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call fcn.14004c2d0
mov r14, qword [rsp + 0xe8]
mov rcx, rsi
mov rdx, r14
call fcn.14008f890
cmp byte [rsp + 0x107], 0
jns 0x140105d1d
mov rcx, qword [rsp + 0xf0]
call fcn.140091a2c
cmp byte [rsp + 0x127], 0
jns 0x140105d34
mov rcx, qword [rsp + 0x110]
call fcn.140091a2c
mov qword [rsp + 0x40], 0xd
mov rax, qword [0x140161200]
mov al, byte [rax + 0xd]
test al, al
jne 0x140105d76
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.140092f10
movaps xmm6, xmmword [rsp + 0x130]
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, al
lea r8, [rsp + 0x80]
mov qword [r8], 0
lea rdx, [rsp + 0x40]
mov r9d, 2
call fcn.140038fa0
jmp 0x140105d4b
movzx ecx, al
lea rax, str.LaunchElevatedProcess
lea r8, [rsp + 0x80]
mov qword [r8], rax
lea rdx, [rsp + 0x40]
mov r9d, 1
call fcn.140038fa0
jmp 0x140105b43
Function at 0x1401060d0
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rsi, rcx
mov rax, qword [0x140181040]
xor rax, rsp
mov qword [rsp + 0x80], rax
movaps xmm0, xmmword [0x140152e90]
lea rbx, [rsp + 0x40]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.DeleteFileAfterReboot
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x237
call fcn.140048ae0
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14004c250
mov al, byte [rsi + 0x17]
test al, al
jns 0x14010614e
cmp qword [rsi + 8], 0x103
ja 0x14010616c
test al, al
jns 0x140106155
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
lea rcx, [rsp + 0x40]
call fcn.14004c2d0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140092f10
mov eax, edi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret