joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800010a4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rcx + 0x20], reloc.WS2_32.dll_ntohs
mov rbx, rcx
mov qword [rcx + 0x18], rax
mov byte [rsp + 0x28], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0x29], 0x59
mov byte [rsp + 0x38], al
mov byte [rsp + 0x2a], Ordinal_79
mov byte [rsp + 0x2b], 0x66
mov byte [rsp + 0x2c], 0x64
mov byte [rsp + 0x2d], Ordinal_41
mov byte [rsp + 0x2e], 0x41
mov byte [rsp + 0x2f], 0x75
mov byte [rsp + 0x30], 0x69
mov byte [rsp + 0x31], 0x33
mov byte [rsp + 0x32], 0x48
mov byte [rsp + 0x33], 0x55
mov byte [rsp + 0x34], 0x76
mov byte [rsp + 0x35], Ordinal_41
mov byte [rsp + 0x36], reloc.WS2_32.dll_gethostname
mov byte [rsp + 0x37], gethostname
mov byte [rcx + 8], al
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x28]
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x28]
mov dword [rsp + 0x20], eax
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.180001638
mov rax, rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18005cb30
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x180001164
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x1a0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rbx, rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x70], r12
mov byte [rsp + 0x60], r12b
lea rcx, [rsp + 0x58]
call fcn.180001638
nop
lea rcx, [rsp + 0x30]
call fcn.1800010a4
mov r8, qword [rsp + 0x70]
lea rbp, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rbp, qword [rsp + 0x60]
cmp qword [rax + 0x20], 0x10
jb 0x1800011e7
mov r10, qword [rax + 8]
jmp 0x1800011eb
lea r10, [rax + 8]
movzx eax, r12w
lea rcx, [rsp + 0x80]
mov r13d, 1
mov r9d, 0x100
mov byte [rcx], al
add ax, r13w
add rcx, r13
cmp ax, r9w
jl 0x180001203
mov byte [rsp + 0x180], r12b
mov byte [rsp + 0x181], r12b
mov sil, r12b
mov dil, r12b
lea r11, [rsp + 0x80]
mov r14d, 0xff
movzx eax, sil
movzx ecx, byte [rax + r10]
movzx eax, byte [r11]
add ecx, eax
movzx eax, dil
add eax, ecx
cdq
and edx, r14d
add eax, edx
and eax, r14d
sub eax, edx
mov edi, eax
movzx edx, al
mov cl, byte [r11]
mov al, byte [rsp + rdx + 0x80]
mov byte [r11], al
mov byte [rsp + rdx + 0x80], cl
movzx eax, sil
add eax, r13d
cdq
and edx, 0xf
lea esi, [rdx + rax]
and esi, 0xf
sub esi, edx
add r11, r13
sub r9, r13
jne 0x180001236
mov r10b, byte [rsp + 0x180]
mov r11b, byte [rsp + 0x181]
cmp r8d, r12d
jle 0x18000132f
mov r9d, r8d
movzx eax, r10b
add eax, r13d
cdq
and edx, r14d
add eax, edx
and eax, r14d
sub eax, edx
mov r10d, eax
movzx r8d, al
movzx ecx, byte [rsp + r8 + 0x80]
movzx eax, r11b
add eax, ecx
cdq
and edx, r14d
add eax, edx
and eax, r14d
sub eax, edx
mov r11d, eax
movzx edx, al
mov cl, byte [rsp + r8 + 0x80]
mov al, byte [rsp + rdx + 0x80]
mov byte [rsp + r8 + 0x80], al
mov byte [rsp + rdx + 0x80], cl
movzx ecx, cl
movzx eax, byte [rsp + r8 + 0x80]
add eax, ecx
cdq
and edx, r14d
add eax, edx
and eax, r14d
sub eax, edx
movzx eax, al
mov cl, byte [rsp + rax + 0x80]
xor byte [rbp], cl
add rbp, r13
sub r9, r13
jne 0x1800012a6
cmp qword [rsp + 0x50], 0x10
jb 0x180001341
mov rcx, qword [rsp + 0x38]
call fcn.18005c410
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.180002070
nop
cmp qword [rsp + 0x78], 0x10
jb 0x180001361
mov rcx, qword [rsp + 0x60]
call fcn.18005c410
mov rax, rbx
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.18005cb30
add rsp, 0x1a0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180005fc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x140
mov qword [rsp + 0x128], 0xfffffffffffffffe
mov rax, qword [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x150]
cmp qword [rax + 0x70], 0
je 0x18000600a
mov rax, qword [rsp + 0x150]
movzx eax, byte [rax + 0x79]
test eax, eax
jne 0x180006016
mov al, 1
jmp 0x180006242
mov dword [rsp + 0x30], 8
call fcn.180007f30
mov edx, eax
mov rax, qword [rsp + 0x150]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x150]
call qword [rax + ioctlsocket]
mov dword [rsp + 0x78], eax
call fcn.180007f30
mov dword [rsp + 0x7c], eax
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x7c]
call fcn.180007ec0
movzx eax, al
test eax, eax
je 0x180006065
xor al, al
jmp 0x180006242
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x48]
call fcn.180005a00
nop
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.1800027e0
mov rcx, rax
call fcn.180006480
mov rbx, rax
lea rcx, [rsp + 0x48]
call fcn.1800014c8
add rbx, rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x48]
call fcn.1800027e0
mov rcx, rax
call fcn.180006480
mov r8, rax
mov rdx, qword [rsp + 0x150]
add rdx, 0x7c
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov rcx, qword [rsp + 0x150]
mov rcx, qword [rcx + 0x70]
call fcn.1800067c0
mov dword [rsp + 0x130], eax
cmp dword [rsp + 0x130], 0
je 0x180006117
cmp dword [rsp + 0x130], 1
je 0x180006123
cmp dword [rsp + 0x130], 3
je 0x1800061fc
jmp 0x180006217
mov rax, qword [rsp + 0x150]
mov byte [rax + 0x79], 0
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x48]
call fcn.1800027e0
mov rcx, rax
call fcn.180006480
mov r11, rax
mov rax, qword [rsp + 0x38]
sub rax, r11
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jbe 0x1800061b5
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.1800027e0
mov rcx, rax
call fcn.180006480
mov r9, qword [rsp + 0x150]
mov r9, qword [r9 + 0x88]
mov r8, qword [rsp + 0x70]
mov edx, 1
mov rcx, rax
call fcn.18005f668
cmp qword [rsp + 0x70], rax
je 0x1800061b5
mov byte [rsp + 0xc0], 0
lea rcx, [rsp + 0x48]
call fcn.180001438
mov al, byte [rsp + 0xc0]
jmp 0x180006242
mov rax, qword [rsp + 0x150]
movzx eax, byte [rax + 0x79]
test eax, eax
jne 0x1800061e0
mov byte [rsp + 0xc1], 1
lea rcx, [rsp + 0x48]
call fcn.180001438
mov al, byte [rsp + 0xc1]
jmp 0x180006242
cmp qword [rsp + 0x70], 0
jne 0x1800061fa
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x48]
call fcn.180002470
jmp 0x180006232
mov byte [rsp + 0xc2], 1
lea rcx, [rsp + 0x48]
call fcn.180001438
mov al, byte [rsp + 0xc2]
jmp 0x180006242
mov byte [rsp + 0xc3], 0
lea rcx, [rsp + 0x48]
call fcn.180001438
mov al, byte [rsp + 0xc3]
jmp 0x180006242
jmp 0x180006078
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.18005cb30
add rsp, 0x140
pop rbx
ret
Function at 0x18000b800
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x1800aa220], 0
mov rdi, rdx
mov rbx, rcx
jne 0x18000b854
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000b844
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800aa218], rax
jmp 0x18000b84b
mov rax, qword [0x1800aa218]
mov byte [0x1800aa220], 1
jmp 0x18000b85b
mov rax, qword [0x1800aa218]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x18000b871
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x18000b877
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18000b934
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 0x18000b962
lea eax, [rdi + 0xd]
jmp 0x18000b999
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 0x18000b965
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 0x18000c1e0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1800a8120]
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 0x18000c2ed
test rcx, rcx
je 0x18000c255
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 0x18000c287
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.18000c1e0
mov rcx, qword [rsp + 0x48]
mov ebx, eax
cmp eax, edi
jne 0x18000c2ef
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 0x18000c26f
mov rcx, qword [rsp + 0x48]
cmp rcx, rdi
je 0x18000c2d5
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.18000b800
mov rcx, qword [rsp + 0x48]
mov ebx, eax
jmp 0x18000c2ef
xor edi, edi
cmp rcx, rdi
je 0x18000c2fa
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18005cb30
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000e2dc
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 [0x1800a8120]
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 0x18000e350
call fcn.18000b7c0
mov ebx, eax
jmp 0x18000e491
mov r8, r12
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
cmp rax, rbx
jne 0x18000e373
call fcn.18000b7c0
mov ebx, eax
jmp 0x18000e487
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 0x18000e398
call fcn.18000b7c0
mov ebx, eax
jmp 0x18000e487
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 0x18000e3d1
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x18000e3c7
lea rcx, [rsp + 0x70]
call fcn.18000c184
nop
mov eax, 0x8007000e
jmp 0x18000e4aa
mov ecx, eax
cmp rcx, rbx
je 0x18000e40f
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x18000e405
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x18000e40f
lea rcx, [rsp + 0x70]
call fcn.18000c18c
mov rax, qword [rsp + 0x70]
jmp 0x18000e419
mov ecx, 0x80070057
call fcn.180002f70
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x18000e430
cmp rax, rbx
jne 0x18000e43c
mov ebx, 0x8007000e
jmp 0x18000e487
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 0x18000e463
call fcn.18000b7c0
mov ebx, eax
jmp 0x18000e487
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.18000e058
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x18000e4a8
lea rcx, [rsp + 0x70]
call fcn.18000c184
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18005cb30
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret
Function at 0x18000e8a4
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.180080990
sub rsp, rax
mov rax, qword [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0x1040], rax
xor edi, edi
mov rsi, rdx
mov rbp, rcx
cmp qword [rcx], rdi
jne 0x18000e8df
xor eax, eax
jmp 0x18000ea16
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 0x18000e925
mov rdx, qword [str.NoAssociate.KZ]
lea rcx, [rsp + 0x840]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, edi
je 0x18000e925
mov eax, 1
jmp 0x18000ea16
lea r8, [rsp + 0x38]
mov rdx, rsi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, edi
je 0x18000e993
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 0x18000ea10
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.18005c474
lea rcx, [rsp + 0x40]
cmp rax, rcx
jne 0x18000e9e3
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.18005cb30
mov rbx, qword [rsp + 0x1080]
add rsp, 0x1050
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000ead4
Capabilities:
Delete registry key
Persist via default file association registry key
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
mov eax, 0x1260
call fcn.180080990
sub rsp, rax
mov rax, qword [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0x1250], rax
mov rbp, rdx
mov rdi, rcx
mov r8, rdx
lea rdx, [0x180086998]
lea rcx, [rsp + 0xa50]
lea r9, str._shellopencommand
call qword [sym.imp.USER32.dll_wsprintfW]
mov r12, 0xffffffff80000000
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xa50]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor ebx, ebx
mov esi, eax
cmp eax, ebx
jne 0x18000ebc8
lea rdx, [rdi + 0x210]
lea rcx, [rsp + 0x40]
cmp word [rdx], bx
je 0x18000eb64
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x18000eb80
mov edx, 0x104
call fcn.180010d80
lea rdx, [0x1800869a8]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, str.___1_
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x30]
xor edx, edx
lea eax, [rax + rax + 2]
lea r9, [rsp + 0x40]
lea r8d, [rdx + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rsp + 0x30]
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r9, str._shellPropertySheetHandlers
lea rdx, [0x180086a10]
lea rcx, [rsp + 0xa50]
mov r8, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, str._shellexopenddeexec
lea rdx, [0x180086a50]
lea rcx, [rsp + 0x250]
mov r8, rbp
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x250]
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
lea r9, [0x180086a60]
lea rdx, [0x180086a70]
lea rcx, [rsp + 0x250]
mov r8, rbp
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x250]
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp esi, ebx
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x1250]
xor rcx, rsp
call fcn.18005cb30
lea r11, [rsp + 0x1260]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x18000edb4
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x260
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rdx
mov rbx, rcx
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.180010d80
lea rdx, [0x180086780]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, case.0x180031f8c.6
mov rax, qword [case.0x180031f8c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov rcx, rbx
call fcn.18000e814
mov r9d, eax
lea r8, [rsp + 0x40]
lea rdx, str._s__d
lea rcx, [rsp + 0x30]
call fcn.180010c8c
mov rbx, qword [rsp + 0x30]
mov eax, dword [rbx - 0x10]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x20], eax
mov r9, rbx
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
xor edi, edi
test eax, eax
sete dil
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x18000ee86
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rioctlsocket + 8]
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18005cb30
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret

Function at 0x18000eeb4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x260
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, r8
mov dword [rsp + 0x24], r9d
mov dword [rsp + 0x20], 0x208
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x40]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
je 0x18000ef08
xor eax, eax
jmp 0x18000efc4
lea rcx, case.0x180031f8c.6
mov rax, qword [case.0x180031f8c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea r9, str.DefaultIcon
lea r8, [rsp + 0x40]
lea rdx, [0x1800867f8]
lea rcx, [rsp + 0x28]
call fcn.180010c8c
lea r8, [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x18000ef7c
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000ef78
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
xor eax, eax
jmp 0x18000efc4
lea r9, [rsp + 0x24]
mov r8, rdi
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov edi, eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
test edi, edi
sete sil
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x18000efc2
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rioctlsocket + 8]
mov eax, esi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18005cb30
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x18000eff4
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x270
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov esi, r8d
mov rdi, rdx
mov rbp, rcx
lea rcx, case.0x180031f8c.6
mov rax, qword [case.0x180031f8c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea r8, [rbp + 8]
lea rax, [0x1800867a8]
mov qword [rsp + 0x20], rax
mov r9, rdi
lea rdx, [0x1800867c0]
lea rcx, [rsp + 0x38]
call fcn.180010c8c
lea r8, [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor r12d, r12d
cmp eax, r12d
je 0x18000f0a3
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rdx, qword [rsp + 0x30]
cmp rdx, r12
jne 0x18000f0d0
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r12d
jg 0x18000f0c9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
xor eax, eax
jmp 0x18000f178
cmp esi, r12d
je 0x18000f0df
mov rcx, rdi
call fcn.18000edb4
jmp 0x18000f14a
mov word [rsp + 0x50], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.18005c800
mov r9d, 0x104
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, rbp
call fcn.18000eeb4
cmp eax, r12d
je 0x18000f13d
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x50]
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
jmp 0x18000f14a
mov rdx, qword [rsp + 0x30]
mov rcx, rdi
call fcn.18000edb4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
cmp ecx, r12d
jg 0x18000f173
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rioctlsocket + 8]
mov eax, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18005cb30
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x18000f234
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x490
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, rcx
lea rcx, case.0x180031f8c.6
mov rax, qword [case.0x180031f8c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.18000f1b4
lea r11, [rsp + 0x38]
mov qword [rsp + 0x20], r11
mov r9d, 0xf003f
xor r8d, r8d
mov rbx, qword [rsp + 0x40]
mov rdx, rbx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
cmp eax, esi
je 0x18000f2dc
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, esi
jg 0x18000f2d5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
xor eax, eax
jmp 0x18000f3a4
mov word [rsp + 0x60], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x62]
call fcn.18005c800
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, [0x1800866f8]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, [0x180086708]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, rdi
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, esi
jne 0x18000f378
lea rdx, [0x180086718]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, esi
jg 0x18000f39f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov eax, 1
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18005cb30
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret