joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bcf20
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x1400bd044
cmp r8d, 0xff
jne 0x1400bcf81
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x1400bcf6b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0xe2200]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.140099760
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.140099760
cmp r8d, 0xfb
jne 0x1400bcf93
lea r9, str.WILL
jmp 0x1400bcfd1
cmp r8d, 0xfc
jne 0x1400bcfa5
lea r9, str.WONT
jmp 0x1400bcfd1
cmp r8d, 0xfd
jne 0x1400bcfb7
lea r9, [0x1400e2c24]
jmp 0x1400bcfd1
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x1400bd02d
cmp r10d, 0x27
jg 0x1400bd004
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0xe2820]
test r8, r8
jne 0x1400bd014
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.140099760
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x1400bcfeb
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.140099760
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.140099760
add rsp, 0x38
ret

Function at 0x1400bd390
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400bd3ef
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400995e0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1400bcf20
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bd5a0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1400bd748
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x1400bd605
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x1400bd605
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x1400bd605
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400bd63c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400bd692
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400bd692
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400bd692
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400bd692
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400bd692
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400bd050
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x1400bd6f4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400995e0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1400bd420
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400bd740
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400995e0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400beeb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400fd0c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400bef45
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400befa6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400995e0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400d33d0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400bf061
sub ecx, 1
je 0x1400bf0d4
sub ecx, 1
je 0x1400bf010
cmp ecx, 1
je 0x1400beff3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400e0680]
call fcn.1400995e0
jmp 0x1400bf0d4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400bebe0
test eax, eax
je 0x1400bf0d4
jmp 0x1400bef7a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400bf0d4
sub rax, rsi
cmp rax, rbp
jae 0x1400bf0d4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140099760
jmp 0x1400bf0d4
cmp r8d, 4
jle 0x1400bf0d4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400bf0d4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140099500
mov esi, eax
test eax, eax
je 0x1400bf0b3
mov edx, 5
mov rcx, rbx
call fcn.1400bfba0
mov eax, esi
jmp 0x1400bef7a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400a7fd0
mov rcx, r14
call fcn.1400a82b0
test eax, eax
je 0x1400bef78
mov edx, 5
mov rcx, rbx
call fcn.1400bfba0
mov eax, Ordinal_46
jmp 0x1400bef7a
Function at 0x1400d3190
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400d31d2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400d3219
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400d3272
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400d3230
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400d32b3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400e792a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400e792b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400d3280
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400d4258
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d42a2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d42a2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d42a2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d42a2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d42a2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400d42a4
xor al, al
add rsp, 0x28
ret
Function at 0x140002594
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
lea r8, [0x1403f34d0]
xor edx, edx
mov ecx, 0x1f0001
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
xor ebx, ebx
mov qword [0x1403f4948], rax
test rax, rax
jne 0x1400025f0
lea r8, [0x1403f34d0]
xor ecx, ecx
lea edx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x1403f4948], rax
test rax, rax
je 0x1400025de
xor eax, eax
jmp 0x140002605
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
mov eax, ebx
jmp 0x140002605
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
mov qword [0x1403f4948], rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1400029a8
Capabilities:
Delete directory
Set current directory

Disassembly:
sub rsp, 0x28
cmp qword [0x1403f34c8], 0
je 0x140002a25
and qword [rsp + 0x30], 0
cmp dword [0x1403f3be8], 0
jne 0x140002a19
cmp word [0x1403f35d2], 0x3a
jne 0x1400029f0
movzx ecx, word [0x1403f35d0]
call fcn.1402817c4
lea ecx, [rax - 0x40]
call fcn.140286830
lea rcx, [0x1403f35d0]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, qword [0x1403f34c8]
jmp 0x140002a03
mov rcx, rax
call fcn.140003b74
xor ecx, ecx
lea r8, [rsp + 0x30]
lea rdx, [0x1402e0da8]
call fcn.1402818a4
test rax, rax
jne 0x1400029f9
mov rcx, qword [0x1403f34c8]
call fcn.140006d9c
cmp dword [0x1403e9104], 0
jne 0x140002a3b
lea rcx, [0x1403f35d0]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
add rsp, 0x28
ret

Function at 0x140002a48
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1403eab08]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor edx, edx
mov rsi, rcx
call fcn.140283630
xor edi, edi
test eax, eax
je 0x140002b18
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140281940
lea ebp, [rdi + 0x5c]
mov edx, ebp
lea rcx, [rsp + 0x20]
call fcn.14025a480
mov rbx, rax
lea rax, [rsp + 0x20]
cmp rbx, rax
jne 0x140002ac3
cmp word [rbx + 2], bp
jne 0x140002ac3
mov edx, ebp
lea rcx, [rsp + 0x24]
call fcn.14025a480
mov rbx, rax
test rbx, rbx
je 0x140002b00
cmp word [rbx - 2], 0x3a
je 0x140002aed
lea rcx, [rsp + 0x20]
mov word [rbx], di
call fcn.1402834b0
test eax, eax
je 0x140002aea
lea rcx, [rsp + 0x20]
call fcn.140283604
mov word [rbx], bp
mov edx, ebp
lea rcx, [rbx + 2]
call fcn.14025a480
mov rbx, rax
test rax, rax
jne 0x140002ac8
lea rcx, [rsp + 0x20]
call fcn.1402834b0
test eax, eax
je 0x140002b18
lea rcx, [rsp + 0x20]
call fcn.140283604
xor edx, edx
mov rcx, rsi
call fcn.140283630
test eax, eax
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140257b10
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400037cc
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1403eab08]
xor rax, rsp
mov qword [rsp + 0x260], rax
and dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x1400038ca
mov ecx, dword [rsp + 0x40]
call fcn.140006d94
lea rdx, [rsp + 0x40]
mov rcx, rax
mov rdi, rax
mov rbx, rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test rbx, rbx
je 0x1400038c2
test byte [rbx + 0x1a4], 6
je 0x1400038b6
movzx ecx, byte [rbx + 0x19d]
movzx edx, byte [rbx + 0x19b]
movzx eax, byte [rbx + 0x19c]
movzx r10d, byte [rbx + 0x19a]
movzx r9d, byte [rbx + 0x199]
movzx r8d, byte [rbx + 0x198]
mov dword [rsp + 0x38], ecx
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edx
lea rdx, str._02X_02X_02X_02X_02X_02X
mov dword [rsp + 0x20], r10d
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, rsi
call fcn.1402823bc
test rax, rax
je 0x1400038a9
lea rdx, [0x1402e0da8]
mov rcx, rsi
call fcn.1402818dc
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.1402818dc
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140003834
mov rcx, rdi
call fcn.140006d9c
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140257b10
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140003b74
Capabilities:
Delete file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rdx, [0x1402e0db0]
mov rdi, rcx
call fcn.140268700
mov rbx, rax
test rax, rax
je 0x140003bd5
mov rcx, rax
call fcn.140280ab4
mov ecx, eax
call fcn.1402867b0
test eax, eax
jle 0x140003bcd
mov esi, eax
mov edx, 2
lea rcx, [0x1402e0db8]
mov r9, rbx
lea r8d, [rdx - 1]
call fcn.140280de0
sub rsi, 1
jne 0x140003baf
mov rcx, rbx
call fcn.140280a48
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_DeleteFileW]

Function at 0x14000553c
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov r8d, dword [rcx + 0x41c]
lea rdx, [rcx + 0x19]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rbx, rcx
inc r8d
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140005579
or dword [rbx + 0x41c], 0xffffffff
add rsp, 0x30
pop rbx
ret
mov rcx, rbx
call fcn.140005314
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140004c80
lea rdx, [0x1403e3180]
lea rcx, [rsp + 0x40]
call fcn.14025b8fc
int3

Function at 0x140005c04
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x438], 0
mov rdi, rdx
mov rbx, rcx
je 0x140005c2e
mov al, byte [rcx + 0x43a]
mov byte [rcx + 0x438], 0
mov byte [rdx], al
jmp 0x140005c9c
mov ecx, dword [rcx + 0x41c]
lea eax, [rcx + 1]
test eax, 0xfffffbff
je 0x140005c51
lea eax, [rcx + 1]
mov dword [rbx + 0x41c], eax
cmp eax, dword [rbx + 0x420]
jl 0x140005c94
jmp 0x140005c82
mov rcx, qword [rbx + 0x10]
lea rdx, [rbx + 0x19]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140005ca7
mov eax, dword [rsp + 0x50]
mov dword [rbx + 0x420], eax
test eax, eax
jne 0x140005c8b
mov byte [rbx + 0x18], 1
mov byte [rdi], 0
jmp 0x140005c9c
and dword [rbx + 0x41c], 0
xor eax, eax
cdqe
mov cl, byte [rax + rbx + 0x19]
mov byte [rdi], cl
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
and dword [rbx + 0x420], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x40]
call fcn.140004c80
lea rdx, [0x1403e3180]
lea rcx, [rsp + 0x40]
call fcn.14025b8fc
int3
Function at 0x14000f94c
Capabilities:
Delete registry key

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rdi, r8
mov rbx, rcx
lea rcx, [rsp + 0x40]
call fcn.14000750c
nop
cmp rbx, 0xffffffff80000000
jne 0x14000f9d6
call fcn.14000d848
cmp eax, 1
jne 0x14000f9d6
lea r8, [rsp + 0x40]
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x50]
call fcn.14000e714
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14000aef8
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000f9cf
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400643c6.0]
mov rbx, 0xffffffff80000001
test rdi, rdi
je 0x14000f9ed
mov r8, qword [rsp + 0x40]
mov rdx, rbx
mov rcx, rdi
call fcn.140010220
jmp 0x14000f9fb
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000fa23
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400643c6.0]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14000fc50
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x30
mov qword [rax - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, r9
mov rsi, r8
mov rbx, rcx
lea rcx, [rax + 8]
call fcn.14000750c
nop
cmp rbx, 0xffffffff80000000
jne 0x14000fce0
call fcn.14000d848
cmp eax, 1
jne 0x14000fce0
lea r8, [rsp + 0x40]
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x20]
call fcn.14000e714
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14000aef8
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000fcd9
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400643c6.0]
mov rbx, 0xffffffff80000001
mov r9, rdi
mov r8, rsi
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14000fd1c
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x1400643c6.0]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000fd30
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x40
mov qword [rax - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, r9
mov esi, r8d
mov rbx, rcx
lea rcx, [rax + 8]
call fcn.14000750c
nop
cmp rbx, 0xffffffff80000000
jne 0x14000fdc0
call fcn.14000d848
cmp eax, 1
jne 0x14000fdc0
lea r8, [rsp + 0x50]
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x30]
call fcn.14000e714
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000aef8
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000fdb9
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400643c6.0]
mov rbx, 0xffffffff80000001
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8d, esi
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ebx, eax
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14000fe04
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x1400643c6.0]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140010220
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140010287
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001029b
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001029b
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call qword [case.0x1400643c6.0]
jmp 0x1400102a0
cmp dword [rcx + 8], 0
je 0x14001029b
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x1400102a0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14001c120
Capabilities:
Delete registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x40
and dword [rax - 0x20], 0
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionPreviewHandlers
and qword [rax - 0x18], 0
mov rdi, rcx
mov rdx, 0xffffffff80000002
lea rcx, [rax - 0x28]
mov r9d, 0x2001f
mov qword [rax - 0x28], rdx
call fcn.14001c340
test eax, eax
jne 0x14001c185
mov rcx, qword [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp qword [rsp + 0x20], 0
je 0x14001c180
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x20], 0
and dword [rsp + 0x28], 0
mov r9d, 0x2001f
lea r8, str.CLSID
mov rdx, 0xffffffff80000000
lea rcx, [rsp + 0x20]
call fcn.14001c340
test eax, eax
jne 0x14001c1c8
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.14001c3cc
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14001c1d8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
jmp 0x14001c1cd
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14001c1d8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x40
pop rdi
ret

Function at 0x14001c1f0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14001c216
mov r8, rdx
mov rdx, qword [rbx]
call fcn.140010220
jmp 0x14001c281
cmp byte [0x1403f4f80], 0
jne 0x14001c25a
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001c24a
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1403f4f78], rax
jmp 0x14001c251
mov rax, qword [0x1403f4f78]
mov byte [0x1403f4f80], 1
jmp 0x14001c261
mov rax, qword [0x1403f4f78]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14001c27b
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [case.0x1400643c6.0]
jmp 0x14001c281
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14001db5c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rdx
mov rbx, rcx
je 0x14001dba7
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001dbb8
lea rdx, str.DeleteFileTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001dbb8
mov rdx, qword [rbx]
mov rcx, rdi
call qword [case.0x1400643c6.0]
jmp 0x14001dbba
cmp dword [rcx + 8], 0
je 0x14001dbb8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14001dbba
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret