joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140039e90
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140098080]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov r14, rdx
mov esi, ecx
xor r15d, r15d
mov qword [rbp - 0x21], r15
mov dword [rbp - 0x25], r15d
lea rax, [rbp - 0x25]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x21]
xor edx, edx
xor ecx, ecx
mov r8d, 1
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
cmp eax, 1
je 0x140039f40
lea rax, str.WTSEnumerateProcessesW:
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], 0x18
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x19], xmm0
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x17]
call fcn.140001310
mov rbx, rax
mov rdx, rax
mov rcx, r14
call fcn.140002cc0
mov eax, dword [rbx + 0x20]
mov dword [r14 + 0x20], eax
lea rcx, [rbp + 0x17]
call fcn.1400012a0
mov eax, 0xffffffff
jmp 0x14003a066
mov eax, dword [rbp - 0x25]
lea rcx, [rax + rax*2]
mov rbx, qword [rbp - 0x21]
lea rdi, [rbx + rcx*8]
cmp rbx, rdi
je 0x140039fc4
cmp dword [rbx], esi
jne 0x140039fbb
mov rcx, qword [rbx + 8]
mov qword [rbp - 0x19], rcx
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140039f70
mov qword [rbp - 0x11], rax
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 9], xmm0
movups xmm1, xmmword [str.winlogon.exe]
movaps xmmword [rbp + 7], xmm1
lea rdx, [rbp - 9]
lea rcx, [rbp + 7]
call fcn.1400300d0
test al, al
je 0x140039fbb
mov edx, 0x16
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
cmp eax, 1
je 0x14003a08f
add rbx, 0x18
cmp rbx, rdi
jne 0x140039f54
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
movdqa xmm1, xmmword [0x14008ea00]
movdqu xmmword [rbp + 0x27], xmm1
mov word [rbp + 0x17], r15w
mov dword [rbp + 0x37], r15d
lea r9, str.a_suitable_system_process_could_not_be_found
movzx r8d, byte [rbp - 0x29]
mov edx, 0x2c
lea rcx, [rbp + 0x17]
call fcn.14000bcc0
mov dword [rbp + 0x37], 1
lea rdx, [rbp + 0x17]
mov rcx, r14
call fcn.140002cc0
mov eax, dword [rbp + 0x37]
mov dword [r14 + 0x20], eax
mov rdx, qword [rbp + 0x2f]
cmp rdx, 7
jbe 0x14003a051
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003a04c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003a094
call fcn.14003bb8c
mov ebx, 0xffffffff
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x14003a064
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, ebx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14003bb30
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ebx, dword [rbx + 4]
jmp 0x14003a056
call fcn.140041a3c
int3
Function at 0x14003a8f0
Capabilities:
Get token privileges

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140098080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, rcx
test rdx, rdx
jne 0x14003aa1a
cmp rcx, 0xffffffffffffffff
je 0x14003a9a6
lea rax, [rsp + 0x30]
xor esi, esi
xor r9d, r9d
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 3
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14003a9a6
mov ebx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14003a9a6
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, 1
je 0x14003a9b0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor bl, bl
movzx eax, bl
jmp 0x14003aa98
mov eax, dword [rdi]
lea rdx, [rax*2 + 1]
add rdx, rax
lea rax, [rdi + 4]
lea rdx, [rdi + rdx*4]
cmp rax, rdx
je 0x14003a9e0
nop word [rax + rax]
mov dword [rax + 8], 2
add rax, 0xc
cmp rax, rdx
jne 0x14003a9d0
mov qword [rsp + 0x28], rsi
xor r9d, r9d
mov r8, rdi
mov qword [rsp + 0x20], rsi
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, 1
sete bl
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
movzx eax, bl
jmp 0x14003aa98
mov rbx, qword [rdx]
mov rdi, qword [rdx + 8]
cmp rbx, rdi
je 0x14003aa96
xor esi, esi
nop dword [rax + rax]
mov rdx, qword [rbx]
lea r8, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, 1
jne 0x14003aa8d
mov dword [rsp + 0x38], eax
lea r8, [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov r9d, 0x10
mov qword [rsp + 0x28], rsi
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x3c], rax
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, 1
jne 0x14003aa8d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
je 0x14003aab5
add rbx, 8
cmp rbx, rdi
jne 0x14003aa30
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14003bb30
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
xor al, al
jmp 0x14003aa98
Function at 0x14003aba0
Capabilities:
Query service status
Start service

Disassembly:
push rbx
push rdi
sub rsp, 0x98
mov rax, qword [0x140098080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbx], rax
test rax, rax
jne 0x14003ac2b
lea rax, [0x14005cc80]
mov qword [rsp + 0x48], 0x24
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
movaps xmm0, xmmword [rsp + 0x40]
lea rcx, [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm0
call fcn.140001310
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call fcn.140002cc0
mov eax, dword [rbx + 0x20]
lea rcx, [rsp + 0x50]
mov dword [rdi + 0x20], eax
call fcn.1400012a0
xor al, al
jmp 0x14003ad6f
mov r8d, 0x14
lea rdx, str.TrustedInstaller
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbx + 8], rax
test rax, rax
jne 0x14003ac5c
lea rax, str.TiElevator::Elevate_OpenServiceW_
mov qword [rsp + 0x48], 0x22
jmp 0x14003abe7
mov qword [rsp + 0xc0], rbp
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x90], rsi
lea r8, [rbx + 0x20]
mov qword [rsp + 0x20], rcx
xor ebp, ebp
mov qword [rsp + 0x88], r14
mov rcx, rax
mov r9d, 0x24
mov qword [rsp + 0x80], r15
xor edx, edx
mov dword [rsp + 0x30], ebp
mov r14d, ebp
xor dil, dil
xor sil, sil
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp eax, 1
jne 0x14003ad4d
mov eax, dword [rbx + 0x24]
cmp eax, 1
jne 0x14003acd9
test sil, sil
jne 0x14003ad24
mov rcx, qword [rbx + 8]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
cmp eax, 1
jne 0x14003ad24
movzx esi, al
jmp 0x14003ad24
add eax, 0xfffffffe
cmp eax, 1
ja 0x14003ad93
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, rax
mov eax, dword [rbx + 0x34]
test dil, dil
je 0x14003ad0f
cmp eax, ebp
jbe 0x14003acff
xor dil, dil
jmp 0x14003ad24
mov eax, dword [rbx + 0x38]
sub rcx, r14
cmp rcx, rax
ja 0x14003ad86
xor dil, dil
jmp 0x14003ad24
mov r14, rcx
xor edx, edx
mov ecx, 0xfa
mov ebp, eax
mov dil, 1
call qword [sym.imp.KERNEL32.dll_SleepEx]
mov rcx, qword [rbx + 8]
lea rax, [rsp + 0x30]
mov r9d, 0x24
mov qword [rsp + 0x20], rax
lea r8, [rbx + 0x20]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp eax, 1
je 0x14003acb3
xor al, al
mov r14, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14003bb30
add rsp, 0x98
pop rdi
pop rbx
ret
mov ecx, 0x5b4
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14003ad4d
mov al, 1
jmp 0x14003ad4f
Function at 0x14003b558
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14003b592
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14003b597
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14003b5e0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14005d0c0]
cmp byte [rcx + rax], 0
je 0x14003b5e0
dec r8
sub rdx, 1
jne 0x14003b5c6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14003c868
Capabilities:
Parse pe header

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

Function at 0x140041bb8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140041c27
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140041c27
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140041c27
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140041c27
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140041c27
cmp dword [rcx + 0x84], 0xe
jbe 0x140041c27
cmp dword [rcx + 0xf8], 0
je 0x140041c27
mov ecx, ebx
call fcn.140041cd8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140041ab4
nop
cmp dword [rbp + 0x20], 0
je 0x140041c75
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140041c80
int3
xor r8d, r8d
xor edx, edx
jmp 0x140041bb8
Function at 0x140041dbc
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140041c27
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140041c27
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140041c27
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140041c27
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140041c27
cmp dword [rcx + 0x84], 0xe
jbe 0x140041c27
cmp dword [rcx + 0xf8], 0
je 0x140041c27
mov ecx, ebx
call fcn.140041cd8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140041ab4
nop
cmp dword [rbp + 0x20], 0
je 0x140041c75
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140041c80
int3
xor r8d, r8d
xor edx, edx
jmp 0x140041bb8

Function at 0x1400486c8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400565e0
sub rsp, rax
mov rax, qword [0x140098080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14004912c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140048717
mov rax, rbp
jmp 0x14004881f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x99ed0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14004e5b4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x99ed0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004881b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004881b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14004e5b4
test rax, rax
js 0x14004881b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004881b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004880d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004880d
cmp byte [rcx], 0xd
jne 0x1400487f3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140048802
cmp byte [rcx + 1], 0xa
jne 0x140048802
inc rcx
jmp 0x140048802
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x98490]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400487d5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004881f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14003bb30
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004d9f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140099ed0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14004da47
cmp word [rdx], r13w
jne 0x14004da47
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14004da4c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14004db71
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14004db92
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14004da85
mov rdx, r9
mov word [rbx], cx
jmp 0x14004daac
cmp r9, r8
jae 0x14004dabc
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14004da66
jmp 0x14004db71
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004db66
cmp dword [rsp + 0x80], esi
je 0x14004db66
lea r8, [0x140099ed0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004db3e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004db0e
mov word [rbx], r13w
jmp 0x14004db6e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14004db1b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14004db6e
cmp word [rsp + 0x70], r13w
jne 0x14004db4b
cmp rbx, r14
je 0x14004db08
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14004e5bc
cmp word [rsp + 0x70], r13w
je 0x14004db71
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140099ed0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14004db6b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14004db71
Function at 0x140050264
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400502eb
mov rsi, rbx
cmp word [rax], bp
je 0x1400502aa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140050294
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140050290
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004c52c
mov rdi, rax
test rax, rax
je 0x1400502d8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140056950
mov rbp, rdi
xor ecx, ecx
call fcn.14004a5d4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140054c14
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14004e5bc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14004e5bc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140054d64
cmp rax, 0xffffffffffffffff
je 0x140054d64
xor edi, edi
test rbp, rbp
jle 0x140054d0f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14004a55c
mov rbx, rax
test rax, rax
jne 0x140054c9c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140054d05
mov edx, 0x8000
mov ecx, r14d
call fcn.14004a198
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140051c88
cmp eax, 0xffffffff
je 0x140054ce5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140054cac
mov edx, r15d
mov ecx, r14d
call fcn.14004a198
jmp 0x140054d05
cmp byte [rsi + 0x38], dil
je 0x140054cfc
cmp dword [rsi + 0x34], 5
jne 0x140054cfc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140054d05
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14004a5d4
jmp 0x140054d78
jns 0x140054d78
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14004e5bc
cmp rax, 0xffffffffffffffff
jne 0x140054d30
cmp byte [rsi + 0x30], dil
je 0x140054d78
mov edi, dword [rsi + 0x2c]
jmp 0x140054d78
mov ecx, r14d
call fcn.1400490b4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140054d78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140054d78
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140054d71
mov eax, dword [rsi + 0x2c]
jmp 0x140054d76
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14004e5bc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140056510
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140056538
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140056538
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140e85058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140e851df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140e85089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e8506f
add dl, dl
jne 0x140e85096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e850f6
xor eax, eax
add dl, dl
jne 0x140e850a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e851ad
add dl, dl
jne 0x140e850b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e850c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e850d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e850dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140e850ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140e8507e
mov eax, 1
add dl, dl
jne 0x140e85106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e85113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e850fb
sub eax, ebx
mov ebx, 1
jne 0x140e8514c
mov ecx, 1
add dl, dl
jne 0x140e8512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e8513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e85123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e8507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140e85168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e85175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e8515d
cmp eax, 0x7d00
jae 0x140e8519b
cmp eax, 0x500
jb 0x140e85196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e8507e
cmp eax, 0x7f
ja 0x140e8519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e8507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140e851d2
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 0x140e8507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001100f
Capabilities:
Delete registry value

Disassembly:
jmp 0x1400148a0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rcx, [0x14002c19a]
call fcn.1400114d3
nop
mov r8, qword [rbp + 0x110]
mov rdx, qword [rbp + 0x108]
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 2
jne 0x1400148f2
jmp 0x14001495e
cmp dword [rbp + 4], 0
jne 0x140014934
mov rcx, qword [rbp + 0x100]
call fcn.14001113b
mov dword [rsp + 0x28], 0xc4
mov dword [rsp + 0x20], 0xc0
mov r9, qword [rbp + 0x110]
mov r8, qword [rbp + 0x108]
mov rdx, rax
lea rcx, str._ws_ws_ws_n_c_c_deleted_n_n
call fcn.140011235
nop
jmp 0x14001495e
mov rcx, qword [rbp + 0x100]
call fcn.14001113b
mov r9, qword [rbp + 0x110]
mov r8, qword [rbp + 0x108]
mov rdx, rax
lea rcx, str.Failed_to_delete_value:__ws_ws_ws_n_n
call fcn.140011235
nop
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x140011046
Capabilities:
Set registry value

Disassembly:
jmp 0x140015e40
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x178]
mov rax, qword [0x140026080]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x14002c19a]
call fcn.1400114d3
nop
mov qword [rbp + 8], 0
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rbp + 0x148]
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140015eee
mov rcx, qword [rbp + 0x140]
call fcn.14001113b
mov r8, qword [rbp + 0x148]
mov rdx, rax
lea rcx, str.Failed_to_open_key:__ws_ws_n_n
call fcn.140011235
nop
jmp 0x140015fa2
mov rax, qword [rbp + 8]
mov qword [rbp + 0x28], rax
lea rax, [rbp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
call qword [sym.imp.ucrtbased.dll_rand]
mov dword [rbp + 0x48], eax
call qword [sym.imp.ucrtbased.dll_rand]
mov dword [rbp + 0x4c], eax
mov dword [rsp + 0x28], 8
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
xor r8d, r8d
mov rdx, qword [rbp + 0x150]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140015f77
mov rcx, qword [rbp + 0x28]
call fcn.14001113b
mov dword [rsp + 0x20], 0xc4
mov r9d, 0xc0
mov r8, qword [rbp + 0x150]
mov rdx, rax
lea rcx, str._ws_ws_n_c_c_qword_n_n
call fcn.140011235
nop
jmp 0x140015f97
mov rcx, qword [rbp + 0x28]
call fcn.14001113b
mov r8, qword [rbp + 0x150]
mov rdx, rax
lea rcx, str.Failed_to_write:__ws_ws_n_n
call fcn.140011235
nop
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x140022320]
call fcn.14001142e
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.140011253
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret