joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004fc80
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov rax, qword [0x1400b7a38]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov rbx, rcx
cmp dword [rcx + 0x448], 0
jne 0x14004fd16
or ebx, 0xffffffff
mov r8d, ebx
lea rdx, [0x14009b60c]
lea rcx, [rbp + 0x40]
call fcn.14002bcc4
nop
mov r8d, ebx
lea rdx, str.Operation_type_cannot_be_NONE
lea rcx, [rsp + 0x30]
call fcn.14002bcc4
nop
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x30]
lea edx, [rbx + 0xd]
mov ecx, 0x2712
call fcn.1400481d0
nop
lea rcx, [rsp + 0x30]
call fcn.14002bdc0
nop
lea rcx, [rbp + 0x40]
jmp 0x14004fe73
add rcx, 0x118
call fcn.14002bfd4
test al, al
jne 0x14004fe19
lea rcx, [rbx + 8]
call fcn.14002bfd4
test al, al
jne 0x14004fe19
lea rdx, [rbx + 0x228]
lea rcx, [rbp + 0x150]
call fcn.14002bd1c
nop
lea rdx, [rbx + 8]
lea rcx, [rbp + 0x150]
call fcn.14002c18c
mov ecx, dword [rbx + 0x448]
sub ecx, 1
jne 0x14004fe10
lea rcx, [rbp + 0x150]
call fcn.14002be50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004fe10
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14004fe10
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [case.0x14002de11.0]
test al, al
jne 0x14004fe10
or ebx, 0xffffffff
mov r8d, ebx
lea rdx, [0x14009b60c]
lea rcx, [rsp + 0x30]
call fcn.14002bcc4
nop
mov r8d, ebx
lea rdx, str.DeleteFile_Failed
lea rcx, [rbp + 0x40]
call fcn.14002bcc4
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x40]
lea edx, [rbx + 0xd]
mov ecx, 0x2717
call fcn.1400481d0
nop
lea rcx, [rbp + 0x40]
call fcn.14002bdc0
nop
lea rcx, [rsp + 0x30]
call fcn.14002bdc0
nop
lea rcx, [rbp + 0x150]
jmp 0x14004fe73
or ebx, 0xffffffff
mov r8d, ebx
lea rdx, [0x14009b60c]
lea rcx, [rsp + 0x30]
call fcn.14002bcc4
nop
mov r8d, ebx
lea rdx, str.File_ops_src_and_name_cannot_be_empty
lea rcx, [rbp + 0x40]
call fcn.14002bcc4
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp + 0x40]
lea edx, [rbx + 0xd]
mov ecx, 0x2712
call fcn.1400481d0
nop
lea rcx, [rbp + 0x40]
call fcn.14002bdc0
nop
lea rcx, [rsp + 0x30]
call fcn.14002bdc0
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.1400775a0
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140050b0c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov rax, qword [0x1400b7a38]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov r14, r8
mov rbx, rcx
xor dil, dil
mov rdx, qword [rcx]
add rdx, 0x118
lea rcx, [rbp + 0x150]
call fcn.14002bd1c
nop
mov rdx, qword [rbx]
add rdx, 8
lea rcx, [rbp + 0x150]
call fcn.14002c18c
lea rcx, [rbp + 0x150]
call fcn.14002be50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or r8d, 0xffffffff
lea rcx, [rsp + 0x30]
cmp eax, 0xffffffff
jne 0x140050bed
lea rdx, [0x14009b60c]
call fcn.14002bcc4
nop
or r8d, 0xffffffff
lea rdx, str.Failed_to_pass_security_check__File_not_exist
lea rcx, [rbp + 0x40]
call fcn.14002bcc4
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x40]
mov edx, 6
mov ecx, 0x2713
call fcn.1400481d0
nop
lea rcx, [rbp + 0x40]
call fcn.14002bdc0
nop
lea rcx, [rsp + 0x30]
call fcn.14002bdc0
jmp 0x140050c80
mov rdx, r14
call fcn.14002bcc4
nop
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x150]
call fcn.140050cb4
mov bl, al
lea rcx, [rsp + 0x30]
call fcn.14002bdc0
test bl, bl
jne 0x140050c7d
or r8d, 0xffffffff
lea rdx, [0x14009b60c]
lea rcx, [rbp + 0x40]
call fcn.14002bcc4
nop
or r8d, 0xffffffff
lea rdx, str.Failed_to_pass_security_check
lea rcx, [rsp + 0x30]
call fcn.14002bcc4
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
mov edx, 6
mov ecx, 0x2713
call fcn.1400481d0
nop
lea rcx, [rsp + 0x30]
call fcn.14002bdc0
nop
lea rcx, [rbp + 0x40]
jmp 0x140050be3
mov dil, 1
lea rcx, [rbp + 0x150]
call fcn.14002bdc0
mov al, dil
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.1400775a0
mov rbx, qword [rsp + 0x398]
add rsp, 0x370
pop r14
pop rdi
pop rbp
ret
Function at 0x140053438
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1360]
mov eax, 0x1460
call fcn.1400784f0
sub rsp, rax
mov rax, qword [0x1400b7a38]
xor rax, rsp
mov qword [rbp + 0x1350], rax
mov rdi, rcx
call fcn.14002bfe0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8, [rsp + 0x20]
mov edx, 0x1000
lea rcx, [rsp + 0x30]
call qword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x1400534eb
mov r9d, 0x1bb
lea r8, str.c:jenkinsworkspaceClientClientWindows_releaseclient_srcinstallwindowsNoMSIInstallerZoomProductUtil.cpp
lea edx, [rax + 1]
lea rcx, [rsp + 0x28]
call fcn.14000e788
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str._FindRunningInstance__failed_to_enum_processes__error_code:
lea rcx, [0x1400ba0c0]
call fcn.140007bbc
mov rcx, rax
mov edx, ebx
call fcn.140005910
nop
lea rcx, [rsp + 0x28]
call fcn.14000e9b4
xor eax, eax
jmp 0x140053648
mov esi, dword [rsp + 0x20]
shr esi, 2
xor r15d, r15d
test esi, esi
je 0x14005363a
lea r12, [rsp + 0x30]
mov r8d, dword [r12]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x1400535ee
movups xmm0, xmmword [str._unknown_]
movaps xmmword [rbp + 0xf30], xmm0
mov ebx, dword [0x1400a6f70]
mov dword [rbp + 0xf40], ebx
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0xf44]
call fcn.14007c100
movups xmm0, xmmword [str._unknown_]
movaps xmmword [rbp + 0x1140], xmm0
mov dword [rbp + 0x1150], ebx
xor edx, edx
mov r8d, 0x1f4
lea rcx, [rbp + 0x1154]
call fcn.14007c100
lea r9, [rsp + 0x20]
mov r8d, 8
lea rdx, [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x1400535c8
mov r9d, 0x104
lea r8, [rbp + 0xf30]
mov rdx, qword [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
mov r9d, 0x104
lea r8, [rbp + 0x1140]
mov rdx, qword [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 8
lea rdx, [rbp + 0xf30]
lea rcx, str.Zoom.exe
call fcn.14006249c
test eax, eax
je 0x1400535ff
inc r15d
add r12, 4
cmp r15d, esi
jae 0x14005363a
jmp 0x140053502
lea rdx, [rbp + 0x1140]
mov rcx, rdi
call fcn.14002c04c
mov edx, 0x5c
mov rcx, rdi
call fcn.14002c4a8
cmp eax, 0xffffffff
jne 0x140053630
lea edx, [rax + 0x30]
mov rcx, rdi
call fcn.14002c4a8
cmp eax, 0xffffffff
je 0x14005363a
mov edx, eax
mov rcx, rdi
call fcn.14002c250
mov rcx, rdi
call fcn.14002bfd4
movzx eax, al
xor eax, 1
mov rcx, qword [rbp + 0x1350]
xor rcx, rsp
call fcn.1400775a0
lea r11, [rsp + 0x1460]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400538bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400b7a38]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, r8
xor ebx, ebx
mov qword [r11 - 0x38], rbx
mov qword [r11 - 0x28], rbx
mov qword [r11 - 0x20], rbx
lea rcx, [r11 - 0x38]
call fcn.14000c6dc
nop
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400538ff
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rsp + 0x20]
call fcn.140008a9c
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x140053968
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053963
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053982
call fcn.14002a8f0
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400775a0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
call fcn.140058698
int3

Function at 0x140054160
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rcx + 8]
mov rbx, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x140054120]
and dword [rsp + 0x20], 0
mov r9, rdx
xor edx, edx
xor ecx, ecx
call fcn.1400625fc
mov qword [rbx], rax
add rsp, 0x30
pop rbx
ret
Function at 0x1400544f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push r14
sub rsp, 0x50
test dword [rcx], 0x100
mov r14, rcx
je 0x140054729
mov rax, qword [rcx + 0x10]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], rdi
mov byte [rax], 0
xor dword [rcx], 0x100
je 0x140054673
mov rbx, qword [rcx + 8]
mov qword [r11 + 0x20], rsi
mov rsi, rbx
cmp rbx, qword [rcx + 0x10]
jae 0x14005466b
mov qword [r11 + 0x18], rbp
mov qword [r11 - 0x18], r12
xor r12d, r12d
mov qword [r11 - 0x20], r13
lea r13, str.quot
mov qword [r11 - 0x28], r15
lea r15, [0x14009a370]
nop dword [rax]
mov ecx, dword [r14]
test cl, 2
je 0x1400545a3
movzx eax, byte [rbx]
cmp al, 0xd
jne 0x140054587
cmp byte [rbx + 1], 0xa
mov rax, r12
mov byte [rsi], 0xa
sete al
inc rax
add rbx, rax
jmp 0x140054645
cmp al, 0xa
jne 0x1400545a3
cmp byte [rbx + 1], 0xd
mov rax, r12
mov byte [rsi], 0xa
sete al
inc rax
add rbx, rax
jmp 0x140054645
test cl, 1
je 0x14005463d
cmp byte [rbx], 0x26
jne 0x14005463d
cmp byte [rbx + 1], 0x23
jne 0x1400545fd
xor eax, eax
mov dword [rsp + 0x60], r12d
lea r8, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
mov word [rsp + 0x28], ax
mov rcx, rbx
call fcn.140054740
test rax, rax
je 0x14005463d
movsxd rdi, dword [rsp + 0x60]
lea rdx, [rsp + 0x20]
mov r8, rdi
mov rcx, rsi
mov rbx, rax
call fcn.14007c4e0
jmp 0x14005464a
mov rdi, r13
movsxd r8, dword [rdi + 8]
lea rcx, [rbx + 1]
mov rdx, qword [rdi]
call fcn.140060950
test eax, eax
jne 0x14005461f
movsxd rax, dword [rdi + 8]
cmp byte [rax + rbx + 1], 0x3b
je 0x14005462a
add rdi, 0x10
cmp rdi, r15
jl 0x140054600
jmp 0x140054642
movzx eax, byte [rdi + 0xc]
mov byte [rsi], al
mov eax, dword [rdi + 8]
add eax, 2
cdqe
add rbx, rax
jmp 0x140054645
movzx eax, byte [rbx]
mov byte [rsi], al
inc rbx
mov edi, 1
add rsi, rdi
cmp rbx, qword [r14 + 0x10]
jb 0x140054560
mov r15, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x70]
mov byte [rsi], 0
mov rsi, qword [rsp + 0x78]
test byte [r14], 4
je 0x14005470d
mov rbx, qword [r14 + 8]
movzx ecx, byte [rbx]
movsx eax, cl
shr eax, 7
test al, 1
jne 0x14005469c
call fcn.14005dab0
test eax, eax
je 0x14005469c
inc rbx
jmp 0x140054681
mov qword [r14 + 8], rbx
movzx ecx, byte [rbx]
test cl, cl
je 0x14005470d
mov rdi, rbx
nop word [rax + rax]
movsx eax, cl
shr eax, 7
test al, 1
jne 0x1400546f8
movzx ecx, cl
call fcn.14005dab0
test eax, eax
je 0x1400546f8
nop word [rax + rax]
movzx ecx, byte [rbx]
movsx eax, cl
shr eax, 7
test al, 1
jne 0x1400546ee
call fcn.14005dab0
test eax, eax
je 0x1400546eb
inc rbx
jmp 0x1400546d0
movzx ecx, byte [rbx]
test cl, cl
je 0x14005470a
mov byte [rdi], 0x20
inc rdi
movzx eax, byte [rbx]
inc rbx
mov byte [rdi], al
inc rdi
movzx ecx, byte [rbx]
test cl, cl
jne 0x1400546b0
mov byte [rdi], 0
and dword [r14], 0x200
mov rax, qword [r14 + 8]
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop r14
ret
mov rax, qword [rcx + 8]
add rsp, 0x50
pop r14
ret
Function at 0x140056b50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x30
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x140056b85
lea r9, str.filename_null_
xor r8d, r8d
lea edx, [rsi + 4]
call fcn.140056ce0
mov eax, dword [rbx + 0x6c]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov qword [rsp + 0x40], rdi
call fcn.140056a40
lea r8, [0x1400a770c]
mov qword [rsp + 0x48], 0
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140062898
test eax, eax
jne 0x140056cae
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x140056cae
mov rcx, rbx
call fcn.140056a40
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14005ed34
mov rcx, rdi
call fcn.14005e038
cmp eax, 0xffffffff
jne 0x140056bf4
mov rcx, rdi
call fcn.1400626dc
test eax, eax
jne 0x140056c80
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 2]
call fcn.14005ed34
mov rcx, rdi
call fcn.140062dc0
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov rsi, rax
call fcn.14005ed34
cmp rsi, 0xffffffffffffffff
jae 0x140056c80
test rsi, rsi
jne 0x140056c2a
lea edx, [rsi + 0xd]
jmp 0x140056c85
lea rcx, [rsi + 1]
call fcn.1400778d8
mov r9, rdi
mov qword [rbx + 0x98], rax
mov r8, rsi
mov edx, 1
mov rcx, rax
call fcn.14005ea64
cmp rax, rsi
jne 0x140056c80
mov rax, qword [rbx + 0x98]
mov rcx, rbx
mov byte [rsi + rax], 0
call fcn.140056e80
mov rcx, rdi
call fcn.14005de20
mov eax, dword [rbx + 0x6c]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
mov edx, 5
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call fcn.140056ce0
mov rcx, rdi
call fcn.14005de20
mov eax, dword [rbx + 0x6c]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea r9, str.filename_s
mov rcx, rbx
lea edx, [r8 + 3]
call fcn.140056ce0
mov eax, dword [rbx + 0x6c]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rsi
ret
Function at 0x14007a180
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x1400b7a38]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov edi, 0xffff
xor r14d, r14d
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x14007a1c4
movzx eax, r14w
jmp 0x14007a2fa
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x14007a200
mov rax, qword [rcx + 0x58]
movsxd r9, dword [rax]
lea rdx, [r8 + r9*2]
cmp r8, rdx
jae 0x14007a200
lea ecx, [r9 - 1]
mov dword [rax], ecx
movzx eax, si
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
jmp 0x14007a2fa
cmp qword [rcx + 0x80], r14
je 0x14007a2f7
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14007a23e
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14007a267
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call fcn.14006b52c
cmp ax, di
je 0x14007a2f7
movzx edi, si
jmp 0x14007a2f7
lea r8, [rbp + 0xf]
mov word [rbp + 7], si
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rbp + 9]
lea r8, [rbp + 0x3f]
mov qword [rsp + 0x30], r8
lea r8, [rbp + 0x1f]
mov rax, qword [rax + 0x38]
mov qword [rsp + 0x28], r8
lea r8, [rbp + 0x17]
mov qword [rsp + 0x20], r8
lea r8, [rbp + 7]
call qword [case.0x14002de11.0]
test eax, eax
je 0x14007a2bc
sub eax, 1
je 0x14007a2bc
cmp eax, 2
jne 0x14007a2f7
movzx ecx, word [rbp + 7]
jmp 0x14007a24a
mov r14, qword [rbp + 0xf]
lea rax, [rbp + 0x1f]
sub r14, rax
je 0x14007a2e6
mov r9, qword [rbx + 0x80]
lea rcx, [rbp + 0x1f]
mov r8, r14
mov edx, 1
call fcn.14005e390
cmp r14, rax
jne 0x14007a2f7
lea rax, [rbp + 7]
mov byte [rbx + 0x72], 1
cmp qword [rbp + 0x17], rax
movzx eax, si
jne 0x14007a2fa
movzx eax, di
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400775a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180008170
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x180058220], 0
mov rdi, rdx
mov rbx, rcx
jne 0x1800081c4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800081b4
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180058218], rax
jmp 0x1800081bb
mov rax, qword [0x180058218]
mov byte [0x180058220], 1
jmp 0x1800081cb
mov rax, qword [0x180058218]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x1800081e1
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x1800081e7
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800082a4
Capabilities:
Set registry value

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
sub rsp, 0x30
xor edi, edi
mov rbx, r8
mov rbp, rdx
mov r12, rcx
cmp r8, rdi
jne 0x1800082d2
lea eax, [rdi + 0xd]
jmp 0x180008309
mov rsi, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea rsi, [rsi + rax*2]
lea edi, [rdi + rax*2]
cmp eax, 1
jne 0x1800082d5
mov rcx, qword [r12]
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x180008a9c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x180056150]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov edi, dword [rcx + 8]
xor eax, eax
mov rsi, rcx
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x58]
or edi, 0x2001f
xor r8d, r8d
mov r9d, edi
mov rbp, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x180008ba9
test rcx, rcx
je 0x180008b11
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
and edi, 0x300
mov dword [rsp + 0x50], edi
xor edi, edi
mov qword [rsp + 0x48], rcx
cmp ebx, edi
jmp 0x180008b43
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180008a9c
mov rcx, qword [rsp + 0x48]
mov ebx, eax
cmp eax, edi
jne 0x180008bab
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, edi
je 0x180008b2b
mov rcx, qword [rsp + 0x48]
cmp rcx, rdi
je 0x180008b91
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rdi
mov rdx, rbp
mov rcx, rsi
mov dword [rsp + 0x50], edi
call fcn.180008170
mov rcx, qword [rsp + 0x48]
mov ebx, eax
jmp 0x180008bab
xor edi, edi
cmp rcx, rdi
je 0x180008bb6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180022fd0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000ab84
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x180056150]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r12, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x70], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
cmp rax, rbx
jne 0x18000abf8
call fcn.180008130
mov ebx, eax
jmp 0x18000ad39
mov r8, r12
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
cmp rax, rbx
jne 0x18000ac1b
call fcn.180008130
mov ebx, eax
jmp 0x18000ad2f
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
mov qword [rsp + 0x40], rax
cmp rax, rbx
jne 0x18000ac40
call fcn.180008130
mov ebx, eax
jmp 0x18000ad2f
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x18000ac79
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x18000ac6f
lea rcx, [rsp + 0x70]
call fcn.180008a40
nop
mov eax, 0x8007000e
jmp 0x18000ad52
mov ecx, eax
cmp rcx, rbx
je 0x18000acb7
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x18000acad
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x18000acb7
lea rcx, [rsp + 0x70]
call fcn.180008a48
mov rax, qword [rsp + 0x70]
jmp 0x18000acc1
mov ecx, 0x80070057
call fcn.1800080ec
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x18000acd8
cmp rax, rbx
jne 0x18000ace4
mov ebx, 0x8007000e
jmp 0x18000ad2f
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r12
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x18000ad0b
call fcn.180008130
mov ebx, eax
jmp 0x18000ad2f
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.18000a900
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x18000ad50
lea rcx, [rsp + 0x70]
call fcn.180008a40
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.180022fd0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret
Function at 0x18000b14c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x1050
call fcn.18003be30
sub rsp, rax
mov rax, qword [0x180056150]
xor rax, rsp
mov qword [rsp + 0x1040], rax
xor edi, edi
mov rsi, rdx
mov rbp, rcx
cmp qword [rcx], rdi
jne 0x18000b187
xor eax, eax
jmp 0x18000b2be
mov rcx, qword [rcx]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x840]
mov ebx, 0x800
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
cmp eax, edi
jne 0x18000b1cd
mov rdx, qword [str.NoAssociate.KZ]
lea rcx, [rsp + 0x840]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, edi
je 0x18000b1cd
mov eax, 1
jmp 0x18000b2be
lea r8, [rsp + 0x38]
mov rdx, rsi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, edi
je 0x18000b23b
lea r8, [rsp + 0x38]
mov rdx, rsi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [str.NoAssociate.KZ]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r9, qword [str.NoAssociate.KZ]
mov rcx, qword [rbp]
lea eax, [rax + rax + 2]
mov r8d, 1
mov rdx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
cmp ebx, edi
jmp 0x18000b2b8
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbp + 8]
lea rcx, [rsp + 0x40]
call fcn.180022910
lea rcx, [rsp + 0x40]
cmp rax, rcx
jne 0x18000b28b
mov rdx, qword [str.NoAssociate.KZ]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rbp]
lea r9, [rsp + 0x40]
lea eax, [rax + rax + 2]
mov r8d, 1
mov rdx, rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
cmp eax, edi
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180022fd0
mov rbx, qword [rsp + 0x1080]
add rsp, 0x1050
pop rdi
pop rsi
pop rbp
ret