joyce8/EMBER2024-capa huggingface dataset:
Function at 0x62d96240
Capabilities:
Hash data with md5

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
mov rbx, rcx
mov rsi, rdx
je 0x62d96450
test rdx, rdx
je 0x62d96469
mov edx, dword [rcx + 0x18]
mov eax, 0x10
cmp edx, 0x3f
jbe 0x62d96274
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
lea r8d, [rdx*8]
add r8, qword [rcx]
mov eax, edx
mov qword [rcx], r8
lea ecx, [rdx + 1]
cmp ecx, 0x38
mov dword [rbx + 0x18], ecx
mov byte [rbx + rax + 0x1c], pe_nt_image_headers64
ja 0x62d963d0
cmp ecx, 0x38
lea rdi, [rbx + 0x1c]
je 0x62d96399
mov edx, ecx
lea r9d, [rcx + 1]
mov eax, ecx
not edx
mov byte [rbx + rax + 0x1c], 0
and edx, 7
cmp r9d, 0x38
je 0x62d96392
test edx, edx
je 0x62d9633d
cmp edx, 1
je 0x62d9632b
cmp edx, 2
je 0x62d9631f
cmp edx, 3
je 0x62d96313
cmp edx, 4
je 0x62d96306
cmp edx, 5
je 0x62d962f9
cmp edx, 6
je 0x62d962ed
mov byte [rbx + r9 + 0x1c], 0
lea r9d, [rcx + 2]
mov ecx, r9d
add r9d, 1
mov byte [rbx + rcx + 0x1c], 0
mov r10d, r9d
add r9d, 1
mov byte [rbx + r10 + 0x1c], 0
mov r11d, r9d
add r9d, 1
mov byte [rbx + r11 + 0x1c], 0
mov edx, r9d
add r9d, 1
mov byte [rbx + rdx + 0x1c], 0
mov eax, r9d
add r9d, 1
mov byte [rbx + rax + 0x1c], 0
mov ecx, r9d
add r9d, 1
cmp r9d, 0x38
mov byte [rbx + rcx + 0x1c], 0
je 0x62d96392
lea r11d, [r9 + 1]
lea edx, [r9 + 2]
mov r10d, r9d
mov byte [rbx + r10 + 0x1c], 0
lea eax, [r9 + 3]
lea ecx, [r9 + 4]
mov byte [rbx + r11 + 0x1c], 0
lea r10d, [r9 + 5]
mov byte [rbx + rdx + 0x1c], 0
lea r11d, [r9 + 6]
lea edx, [r9 + 7]
add r9d, 8
cmp r9d, 0x38
mov byte [rbx + rax + 0x1c], 0
mov byte [rbx + rcx + 0x1c], 0
mov byte [rbx + r10 + 0x1c], 0
mov byte [rbx + r11 + 0x1c], 0
mov byte [rbx + rdx + 0x1c], 0
jne 0x62d9633d
mov dword [rbx + 0x18], 0x38
mov qword [rbx + 0x54], r8
mov rdx, rdi
mov rcx, rbx
call fcn.62d959a0
mov r9d, dword [rbx + 8]
xor eax, eax
mov dword [rsi], r9d
mov edi, dword [rbx + 0xc]
mov dword [rsi + 4], edi
mov r8d, dword [rbx + 0x10]
mov dword [rsi + 8], r8d
mov ebx, dword [rbx + 0x14]
mov dword [rsi + 0xc], ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
cmp ecx, 0x40
je 0x62d96437
lea edi, [rdx + 2]
mov byte [rbx + rcx + 0x1c], 0
cmp edi, 0x40
je 0x62d96430
lea r8d, [rdx + 3]
mov byte [rbx + rdi + 0x1c], 0
cmp r8d, 0x40
je 0x62d96430
lea r9d, [rdx + 4]
mov byte [rbx + r8 + 0x1c], 0
cmp r9d, 0x40
je 0x62d96430
lea r10d, [rdx + 5]
mov byte [rbx + r9 + 0x1c], 0
cmp r10d, 0x40
je 0x62d96430
lea r11d, [rdx + 6]
mov byte [rbx + r10 + 0x1c], 0
cmp r11d, 0x40
je 0x62d96430
cmp edx, 0x38
mov byte [rbx + r11 + 0x1c], 0
jne 0x62d96430
mov byte [rbx + 0x5b], 0
mov dword [rbx + 0x18], 0x40
lea rdi, [rbx + 0x1c]
mov rcx, rbx
mov rdx, rdi
call fcn.62d959a0
mov r8, qword [rbx]
xor ecx, ecx
jmp 0x62d962a5
lea rdx, str.src_hashes_md5.c
lea rcx, [0x62e0a0b1]
mov r8d, 0x106
call fcn.62d9b180
lea rdx, str.src_hashes_md5.c
lea rcx, [0x62e0a0bc]
mov r8d, 0x107
call fcn.62d9b180
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x62ddd6f0
Capabilities:
Check for software breakpoints

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
test r8d, r8d
mov rbp, rcx
je 0x62ddd730
mov rcx, qword [rdx + 0x10]
cmp dword [rcx + 8], 0xcd
je 0x62ddd722
test byte [rcx + 0xd], 0x10
jne 0x62ddd722
cmp qword [rdx + 0x28], 0
jne 0x62ddd722
cmp qword [rcx + 0x28], rdx
je 0x62ddd733
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rdx
mov rsi, qword [rdx + 0x18]
mov rbx, qword [rcx]
mov rdi, qword [rdx + 0x20]
and esi, 0x7fff
test rbx, rbx
je 0x62ddd722
mov edx, dword [rbx + 8]
movsxd r12, esi
cmp edx, 0x5c
je 0x62ddd7b3
ja 0x62ddd7d0
lea eax, [rdx - 7]
cmp eax, 1
jbe 0x62ddd722
mov rcx, rbp
call fcn.62ddd2e0
test al, 4
jne 0x62ddd722
mov edx, eax
and edx, 3
cmp edx, 3
je 0x62ddd850
mov edx, eax
and edx, 0x300
cmp edx, 0x300
je 0x62ddd880
and eax, 0x30000
mov rcx, rbx
cmp eax, 0x30000
je 0x62ddd8a6
mov rbx, qword [rcx]
test rbx, rbx
je 0x62ddd722
mov edx, dword [rbx + 8]
cmp edx, 0x5c
jne 0x62ddd754
mov rax, qword [rbx + 0x10]
and eax, 0x7fff
cmp r12, rax
je 0x62ddd7e3
mov rcx, rbx
jmp 0x62ddd79f
cmp edx, 0xcd
jne 0x62ddd75e
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp word [rbx + 0xc], 0
jne 0x62ddd722
cmp qword [rbx + 0x18], rdi
jne 0x62ddd722
cmp rcx, rbx
mov rax, qword [rbx]
je 0x62ddd8e0
mov qword [rcx], rax
mov qword [rbx], 0
mov qword [rbx + 8], 0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
mov qword [rbx + 0x20], 0
mov qword [rbx + 0x28], 0
mov rax, qword [rbp + 0x38]
mov rdx, qword [rax + 0x100]
mov qword [rbx], rdx
mov qword [rax + 0x100], rbx
jmp 0x62ddd79f
test al, 8
je 0x62ddd8c0
mov edx, dword [rbx + 0x10]
and edx, 0x7fff
cmp edx, esi
je 0x62ddd722
mov edx, dword [rbx + 0x14]
and edx, 0x7fff
cmp edx, esi
jne 0x62ddd778
jmp 0x62ddd722
mov rdx, qword [rbx + 0x18]
and edx, 0x7fff
cmp r12, rdx
je 0x62ddd722
and eax, 0x30000
mov rcx, rbx
cmp eax, 0x30000
jne 0x62ddd79f
mov rax, qword [rbx + 0x20]
and eax, 0x7fff
cmp r12, rax
jne 0x62ddd79f
jmp 0x62ddd722
mov rdx, qword [rbx + 0x10]
and edx, 0x7fff
cmp r12, rdx
jne 0x62ddd778
jmp 0x62ddd722
mov rdx, qword [rbp + 0x38]
mov qword [rdx], rax
jmp 0x62ddd807
Function at 0x62dfbc10
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
and rsp, 0xfffffffffffffff0
sub rsp, 0x20
cmp dword [rcx + 0x244], 0x10
ja 0x62dfbc90
mov rbx, rcx
mov ecx, dword [rcx + 0x238]
mov rsi, rdx
mov edi, r8d
call fcn.62dfc4a0
test eax, eax
mov r14d, eax
jne 0x62dfbc96
mov eax, dword [rbx + 0x240]
test eax, eax
jne 0x62dfbc81
movsxd rcx, dword [rbx + 0x244]
test ecx, ecx
jne 0x62dfbcb0
cmp qword [rbx + 0x248], 0
je 0x62dfbea0
lea r13, [rbx + 0x228]
lea r12, [rbx + 0x1f8]
jmp 0x62dfbd2a
cmp eax, 1
je 0x62dfbeb0
nop word [rax + rax]
mov r14d, 0x10
lea rsp, [rbp - 0x38]
mov eax, r14d
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, dword [rbx + 0x23c]
lea r13, [rbx + 0x228]
test eax, eax
jne 0x62dfbcf0
cmp ecx, 0xc
jne 0x62dfbcf0
mov rax, qword [rbx + 0x228]
mov qword [rbx + 0x208], rax
mov eax, dword [r13 + 8]
mov dword [rbx + 0x214], 0x1000000
mov dword [rbx + 0x210], eax
jmp 0x62dfbd95
lea eax, [rcx - 1]
lea r12, [rbx + 0x1f8]
lea r8, [rbx + rax + 0x1f9]
mov rdx, r12
movzx eax, byte [rdx + 0x30]
xor byte [rdx], al
add rdx, 1
cmp rdx, r8
jne 0x62dfbd05
shl rcx, 3
add qword [rbx + 0x248], rcx
mov rdx, r12
mov rcx, rbx
call fcn.62dfc460
mov edx, 8
mov rcx, r13
call fcn.62d9bc90
mov rax, qword [rbx + 0x248]
mov rdx, r12
bswap rax
mov qword [rbx + 0x230], rax
lea rax, [rbx + 0x208]
movzx ecx, byte [rdx + 0x30]
xor byte [rdx], cl
add rdx, 1
cmp rax, rdx
jne 0x62dfbd52
mov rdx, r12
mov rcx, rbx
call fcn.62dfc460
mov rdx, qword [rbx + 0x200]
mov rax, qword [rbx + 0x1f8]
mov rcx, r12
mov qword [rbx + 0x210], rdx
mov qword [rbx + 0x208], rax
mov edx, 0x10
call fcn.62d9bc90
mov rdx, qword [rbx + 0x210]
mov rax, qword [rbx + 0x208]
mov rcx, r13
mov qword [rbx + 0x220], rdx
mov qword [rbx + 0x218], rax
mov edx, 0x10
call fcn.62d9bc90
mov qword [rbx + 0x240], 1
mov qword [rbx + 0x248], 0
mov r13d, edi
and r13d, 0xfffffff0
je 0x62dfbed0
lea r15, [rbx + 0x1f8]
xor r12d, r12d
nop dword [rax + rax]
mov eax, r12d
mov rdx, r15
mov rcx, rbx
mov rax, qword [rsi + rax]
xor qword [rbx + 0x1f8], rax
lea eax, [r12 + 8]
add r12d, 0x10
mov rax, qword [rsi + rax]
xor qword [rbx + 0x200], rax
call fcn.62dfc460
sub qword [rbx + 0x248], 0xffffffffffffff80
cmp r12d, r13d
jb 0x62dfbdf0
mov eax, r12d
add rsi, rax
cmp edi, r12d
jbe 0x62dfbc96
sub edi, 1
sub edi, r12d
lea r12, [rsi + rdi + 1]
lea rdi, [rbx + 0x1f8]
jmp 0x62dfbe59
cmp rsi, r12
je 0x62dfbc96
movsxd rdx, dword [rbx + 0x244]
add rsi, 1
movzx ecx, byte [rsi - 1]
lea eax, [rdx + 1]
mov dword [rbx + 0x244], eax
xor byte [rbx + rdx + 0x1f8], cl
cmp eax, 0x10
jne 0x62dfbe50
mov rdx, rdi
mov rcx, rbx
call fcn.62dfc460
mov dword [rbx + 0x244], 0
sub qword [rbx + 0x248], 0xffffffffffffff80
jmp 0x62dfbe50
mov r14d, 1
jmp 0x62dfbc96
mov eax, dword [rbx + 0x244]
cmp eax, 0xf
jg 0x62dfbc90
xor r12d, r12d
test eax, eax
jne 0x62dfbe30
jmp 0x62dfbdd4
xor r12d, r12d
jmp 0x62dfbe30
Function at 0x62dfc300
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
mov ebp, 0x10
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x240]
test eax, eax
jne 0x62dfc441
cmp dword [rcx + 0x244], 0xf
mov rbx, rcx
ja 0x62dfc441
mov ecx, dword [rcx + 0x238]
mov rsi, rdx
mov r12d, r8d
call fcn.62dfc4a0
test eax, eax
mov ebp, eax
jne 0x62dfc441
mov eax, dword [rbx + 0x244]
lea edx, [rax + r12]
cmp edx, 0xc
jbe 0x62dfc362
or dword [rbx + 0x23c], 1
xor edi, edi
test eax, eax
jne 0x62dfc3bb
mov r13d, r12d
and r13d, 0xfffffff0
je 0x62dfc452
lea r14, [rbx + 0x1f8]
nop dword [rax]
mov eax, edi
mov rdx, r14
mov rcx, rbx
mov rax, qword [rsi + rax]
xor qword [rbx + 0x1f8], rax
lea eax, [rdi + 8]
add edi, 0x10
mov rax, qword [rsi + rax]
xor qword [rbx + 0x200], rax
call fcn.62dfc460
sub qword [rbx + 0x248], 0xffffffffffffff80
cmp edi, r13d
jb 0x62dfc380
mov eax, edi
add rsi, rax
cmp r12d, edi
jbe 0x62dfc441
sub r12d, 1
lea r13, [rbx + 0x1f8]
sub r12d, edi
lea rdi, [rbx + 0x208]
lea r12, [rsi + r12 + 1]
jmp 0x62dfc3e5
cmp r12, rsi
je 0x62dfc441
movsxd rdx, dword [rbx + 0x244]
add rsi, 1
lea ecx, [rdx + 1]
mov dword [rbx + 0x244], ecx
movzx eax, byte [rsi - 1]
cmp ecx, 0x10
mov byte [rbx + rdx + 0x228], al
jne 0x62dfc3e0
mov rdx, r13
nop dword [rax]
movzx ecx, byte [rdx + 0x30]
xor byte [rdx], cl
add rdx, 1
cmp rdi, rdx
jne 0x62dfc410
mov rdx, r13
mov rcx, rbx
call fcn.62dfc460
sub qword [rbx + 0x248], 0xffffffffffffff80
cmp r12, rsi
mov dword [rbx + 0x244], 0
jne 0x62dfc3e5
add rsp, 0x20
mov eax, ebp
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov edi, eax
jmp 0x62dfc3bb
Function at 0x63562058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.635621df
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 0x63562089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x6356206f
add dl, dl
jne 0x63562096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x635620f6
xor eax, eax
add dl, dl
jne 0x635620a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x635621ad
add dl, dl
jne 0x635620b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x635620c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x635620d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x635620dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x635620ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x6356207e
mov eax, 1
add dl, dl
jne 0x63562106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x63562113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x635620fb
sub eax, ebx
mov ebx, 1
jne 0x6356214c
mov ecx, 1
add dl, dl
jne 0x6356212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x6356213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x63562123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x6356207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x63562168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x63562175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x6356215d
cmp eax, 0x7d00
jae 0x6356219b
cmp eax, 0x500
jb 0x63562196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x6356207e
cmp eax, 0x7f
ja 0x6356219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x6356207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x635621d2
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 0x6356207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003470
Capabilities:
Check for peb beingdebugged flag

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rcx
mov rax, qword [rsp + 0x48]
mov dword [rax], 0
mov rax, qword [rsp + 0x50]
mov qword [rax], 0
mov rcx, qword [rsp + 0x40]
xor eax, eax
mov edx, eax
call sym.chomp
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x40]
call sym.lstrlenW
mov ecx, dword [rsp + 0x28]
add eax, ecx
cdqe
lea r8, [rax + rax + 2]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rcx, qword [rax + 0x30]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov qword [rsp + 0x30], rax
cmp rax, 0
jne 0x1400034f0
jmp 0x1400035e1
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call sym.chomp
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp + 0x28]
lea r8, [rax*8 + 8]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rcx, qword [rax + 0x30]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov qword [rsp + 0x38], rax
cmp rax, 0
jne 0x14000355b
mov r8, qword [rsp + 0x30]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rcx, qword [rax + 0x30]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1400035e1
mov dword [rsp + 0x2c], 0
mov eax, dword [rsp + 0x2c]
cmp eax, dword [rsp + 0x28]
jge 0x1400035b7
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rsp + 0x2c]
mov qword [rax + rcx*8], rdx
mov rcx, qword [rsp + 0x30]
call sym.lstrlenW
mov ecx, eax
add ecx, 1
mov rax, qword [rsp + 0x30]
movsxd rcx, ecx
shl rcx, 1
add rax, rcx
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x2c]
add eax, 1
mov dword [rsp + 0x2c], eax
jmp 0x140003563
mov rax, qword [rsp + 0x38]
movsxd rcx, dword [rsp + 0x2c]
mov qword [rax + rcx*8], 0
mov ecx, dword [rsp + 0x28]
mov rax, qword [rsp + 0x48]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x50]
mov qword [rax], rcx
add rsp, 0x58
ret
Function at 0x140003650
Capabilities:
Check for peb beingdebugged flag
Query or enumerate registry value

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x34], 0
mov rcx, 0xffffffff80000002
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionInstallerRunOnceEntries
lea r8, [rsp + 0x48]
call qword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
je 0x1400036b0
mov dword [rsp + 0x74], 0
jmp 0x140003828
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
xor eax, eax
mov r8d, eax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], rax
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x140003815
cmp dword [rsp + 0x40], 1
jne 0x140003815
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov rcx, qword [rax]
call sym.lstrlenW
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x44]
movsxd rcx, dword [rsp + 0x30]
lea r8, [rax + rcx*2 + 2]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rcx, qword [rax + 0x30]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov qword [rsp + 0x38], rax
cmp rax, 0
jne 0x140003759
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [rsp + 0x74], 0
jmp 0x140003828
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov rdx, qword [rax]
movsxd r8, dword [rsp + 0x30]
shl r8, 1
call sub.ucrtbase.dll_memcpy
mov rax, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x30]
mov edx, ecx
add edx, 1
mov dword [rsp + 0x30], edx
movsxd rcx, ecx
mov word [rax + rcx*2], 0x20
mov r10, qword [rsp + 0x38]
movsxd rax, dword [rsp + 0x30]
shl rax, 1
add r10, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
xor eax, eax
mov r8d, eax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], r10
mov qword [rsp + 0x28], rax
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x1400037f7
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call sym.process_args
mov dword [rsp + 0x34], 1
mov r8, qword [rsp + 0x38]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rcx, qword [rax + 0x30]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x74]
add rsp, 0x78
ret
Function at 0x1400040b0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x40]
call sym.lstrlenW
mov ecx, eax
mov eax, ecx
lea eax, [rax + rax + 0xa]
movsxd r8, eax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rcx, qword [rax + 0x30]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140004158
jmp 0x140004102
movzx eax, byte [section..data]
and eax, 2
cmp eax, 0
je 0x140004148
lea rax, section..data
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x24], 1
lea rdx, section..data
lea r8, str.StringListAppend
lea r9, str.Out_of_memory__n
mov ecx, 1
call sym.wine_dbg_log
jmp 0x14000414d
mov ecx, 1
call qword [sym.imp.kernel32.dll_ExitProcess]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
add rcx, 8
call sym.lstrcpyW
mov rax, qword [rsp + 0x30]
mov qword [rax], 0
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140004198
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
jmp 0x140004177
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rax], rcx
add rsp, 0x48
ret

Function at 0x140004d10
Capabilities:
Create service
Get common file path

Disassembly:
sub rsp, 0x2a8
mov dword [rsp + 0x68], 0
xor eax, eax
mov ecx, eax
lea rdx, str.ServicesActive
mov r8d, 2
call qword [sym.imp.advapi32.dll_OpenSCManagerW]
mov qword [rsp + 0x298], rax
cmp rax, 0
jne 0x140004d72
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Failed_to_open_the_service_control_manager._n
call sym.fprintf
mov dword [rsp + 0x2a4], 1
jmp 0x140004e8c
lea rcx, [rsp + 0x70]
mov edx, 0x104
call qword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov dword [rsp + 0x6c], eax
lea rcx, [rsp + 0x70]
mov eax, dword [rsp + 0x6c]
shl rax, 1
add rcx, rax
lea rdx, str.msiexec__V
call sym.lstrcpyW
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x298]
lea r8, [0x140008618]
mov r9d, 0x10000000
xor edx, edx
mov rdx, r8
mov dword [rsp + 0x20], 0x20
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
call qword [sym.imp.advapi32.dll_CreateServiceW]
mov qword [rsp + 0x290], rax
cmp rax, 0
je 0x140004e36
mov rcx, qword [rsp + 0x290]
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x140004e73
mov rax, qword gs:[0x30]
cmp dword [rax + 0x68], 0x431
je 0x140004e6e
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Failed_to_create_MSI_service_n
call sym.fprintf
mov dword [rsp + 0x68], 1
jmp 0x140004e73
mov rcx, qword [rsp + 0x298]
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x2a4], eax
mov eax, dword [rsp + 0x2a4]
add rsp, 0x2a8
ret
Function at 0x140004ea0
Capabilities:
Delete service

Disassembly:
sub rsp, 0x48
mov dword [rsp + 0x2c], 0
xor eax, eax
mov ecx, eax
lea rdx, str.ServicesActive
mov r8d, 1
call qword [sym.imp.advapi32.dll_OpenSCManagerW]
mov qword [rsp + 0x38], rax
cmp rax, 0
jne 0x140004ef9
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Failed_to_open_service_control_manager_n
call sym.fprintf
mov dword [rsp + 0x44], 1
jmp 0x140004fb6
mov rcx, qword [rsp + 0x38]
lea rdx, [0x140008618]
mov r8d, 0x10000
call qword [sym.imp.advapi32.dll_OpenServiceW]
mov qword [rsp + 0x30], rax
cmp rax, 0
je 0x140004f66
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.advapi32.dll_DeleteService]
cmp eax, 0
jne 0x140004f56
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Failed_to_delete_MSI_service_n
call sym.fprintf
mov dword [rsp + 0x2c], 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
jmp 0x140004fa3
mov rax, qword gs:[0x30]
cmp dword [rax + 0x68], 0x424
je 0x140004f9e
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Failed_to_open_MSI_service_n
call sym.fprintf
mov dword [rsp + 0x2c], 1
jmp 0x140004fa3
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x2c]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
add rsp, 0x48
ret

Function at 0x140005af0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x40]
xor eax, eax
mov edx, eax
mov r8d, 8
call qword [sym.imp.kernel32.dll_LoadLibraryExW]
mov rcx, rax
mov rax, qword [rsp + 0x50]
mov qword [rax], rcx
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
jne 0x140005b6b
mov rcx, qword [rsp + 0x40]
call sym.wine_dbgstr_w
mov qword [rsp + 0x30], rax
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov r8, qword [rsp + 0x30]
mov rcx, rax
lea rdx, str.Unable_to_load_dll__s_n
call sym.fprintf
mov ecx, 1
call qword [sym.imp.kernel32.dll_ExitProcess]
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140005be5
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call sym.wine_dbgstr_w
mov qword [rsp + 0x20], rax
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov r8, qword [rsp + 0x20]
mov r9, qword [rsp + 0x28]
mov rcx, rax
lea rdx, str.Dll__s_does_not_implement_function__s_n
call sym.fprintf
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.kernel32.dll_FreeLibrary]
mov ecx, 1
call qword [sym.imp.kernel32.dll_ExitProcess]
mov rax, qword [rsp + 0x38]
add rsp, 0x58
ret
Function at 0x140006170
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
mov r9d, eax
lea r8, [sym.ServiceExecutionThread]
xor eax, eax
lea rax, [rsp + 0x30]
mov rcx, r9
mov rdx, r9
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov qword [0x14000a060], rax
cmp qword [0x14000a060], 0
jne 0x1400061dc
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Failed_to_create_thread_n
call sym.fprintf_1
mov dword [rsp + 0x34], 0
jmp 0x1400061e4
mov dword [rsp + 0x34], 1
mov eax, dword [rsp + 0x34]
add rsp, 0x38
ret

Function at 0x140006520
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x38]
mov rax, qword [sym.imp.ucrtbase.dll_strlen]
call rax
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140006555
mov dword [rsp + 0x44], 0
jmp 0x1400065c7
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
sub rcx, 1
movsx eax, byte [rax + rcx]
cmp eax, 0xa
je 0x14000658b
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x48]
call sym.HandleToULong
mov dword [rsp + 0x2c], eax
jmp 0x140006596
xor eax, eax
mov dword [rsp + 0x2c], eax
jmp 0x140006596
mov eax, dword [rsp + 0x2c]
xchg dword [0x14000a194], eax
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov r9, rax
mov r8, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov edx, 1
call qword [sym.imp.ucrtbase.dll_fwrite]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
add rsp, 0x48
ret