joyce8/EMBER2024-capa huggingface dataset:
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 [0x1800a7120]
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.18000164c
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.18005bda0
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.180002084
nop
cmp qword [rsp + 0x78], 0x10
jb 0x180001361
mov rcx, qword [rsp + 0x60]
call fcn.18005bda0
mov rax, rbx
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.18005c4c0
add rsp, 0x1a0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180006020
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x140
mov qword [rsp + 0x128], 0xfffffffffffffffe
mov rax, qword [0x1800a7120]
xor rax, rsp
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x150]
cmp qword [rax + 0x70], 0
je 0x18000606a
mov rax, qword [rsp + 0x150]
movzx eax, byte [rax + 0x79]
test eax, eax
jne 0x180006076
mov al, 1
jmp 0x1800062a2
mov dword [rsp + 0x30], 8
call fcn.180007f60
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.180007f60
mov dword [rsp + 0x7c], eax
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x7c]
call fcn.180007f10
movzx eax, al
test eax, eax
je 0x1800060c5
xor al, al
jmp 0x1800062a2
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x48]
call fcn.180005a40
nop
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.1800027e0
mov rcx, rax
call fcn.1800064e0
mov rbx, rax
lea rcx, [rsp + 0x48]
call fcn.180001534
add rbx, rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x48]
call fcn.1800027e0
mov rcx, rax
call fcn.1800064e0
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.180006820
mov dword [rsp + 0x130], eax
cmp dword [rsp + 0x130], 0
je 0x180006177
cmp dword [rsp + 0x130], 1
je 0x180006183
cmp dword [rsp + 0x130], 3
je 0x18000625c
jmp 0x180006277
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.1800064e0
mov r11, rax
mov rax, qword [rsp + 0x38]
sub rax, r11
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jbe 0x180006215
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.1800027e0
mov rcx, rax
call fcn.1800064e0
mov r9, qword [rsp + 0x150]
mov r9, qword [r9 + 0x88]
mov r8, qword [rsp + 0x70]
mov edx, 1
mov rcx, rax
call fcn.18005f008
cmp qword [rsp + 0x70], rax
je 0x180006215
mov byte [rsp + 0xc0], 0
lea rcx, [rsp + 0x48]
call fcn.180001498
mov al, byte [rsp + 0xc0]
jmp 0x1800062a2
mov rax, qword [rsp + 0x150]
movzx eax, byte [rax + 0x79]
test eax, eax
jne 0x180006240
mov byte [rsp + 0xc1], 1
lea rcx, [rsp + 0x48]
call fcn.180001498
mov al, byte [rsp + 0xc1]
jmp 0x1800062a2
cmp qword [rsp + 0x70], 0
jne 0x18000625a
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x48]
call fcn.180002470
jmp 0x180006292
mov byte [rsp + 0xc2], 1
lea rcx, [rsp + 0x48]
call fcn.180001498
mov al, byte [rsp + 0xc2]
jmp 0x1800062a2
mov byte [rsp + 0xc3], 0
lea rcx, [rsp + 0x48]
call fcn.180001498
mov al, byte [rsp + 0xc3]
jmp 0x1800062a2
jmp 0x1800060d8
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.18005c4c0
add rsp, 0x140
pop rbx
ret
Function at 0x18000b7a0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x1800a9220], 0
mov rdi, rdx
mov rbx, rcx
jne 0x18000b7f4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000b7e4
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800a9218], rax
jmp 0x18000b7eb
mov rax, qword [0x1800a9218]
mov byte [0x1800a9220], 1
jmp 0x18000b7fb
mov rax, qword [0x1800a9218]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x18000b811
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x18000b817
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18000b8d4
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 0x18000b902
lea eax, [rdi + 0xd]
jmp 0x18000b939
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 0x18000b905
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 0x18000c17c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1800a7120]
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 0x18000c289
test rcx, rcx
je 0x18000c1f1
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 0x18000c223
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.18000c17c
mov rcx, qword [rsp + 0x48]
mov ebx, eax
cmp eax, edi
jne 0x18000c28b
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 0x18000c20b
mov rcx, qword [rsp + 0x48]
cmp rcx, rdi
je 0x18000c271
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.18000b7a0
mov rcx, qword [rsp + 0x48]
mov ebx, eax
jmp 0x18000c28b
xor edi, edi
cmp rcx, rdi
je 0x18000c296
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18005c4c0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000e268
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 [0x1800a7120]
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 0x18000e2dc
call fcn.18000b760
mov ebx, eax
jmp 0x18000e41d
mov r8, r12
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
cmp rax, rbx
jne 0x18000e2ff
call fcn.18000b760
mov ebx, eax
jmp 0x18000e413
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 0x18000e324
call fcn.18000b760
mov ebx, eax
jmp 0x18000e413
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 0x18000e35d
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x18000e353
lea rcx, [rsp + 0x70]
call fcn.18000c120
nop
mov eax, 0x8007000e
jmp 0x18000e436
mov ecx, eax
cmp rcx, rbx
je 0x18000e39b
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x18000e391
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x18000e39b
lea rcx, [rsp + 0x70]
call fcn.18000c128
mov rax, qword [rsp + 0x70]
jmp 0x18000e3a5
mov ecx, 0x80070057
call fcn.180002f90
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x18000e3bc
cmp rax, rbx
jne 0x18000e3c8
mov ebx, 0x8007000e
jmp 0x18000e413
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 0x18000e3ef
call fcn.18000b760
mov ebx, eax
jmp 0x18000e413
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.18000dfe4
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x18000e434
lea rcx, [rsp + 0x70]
call fcn.18000c120
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18005c4c0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret
Function at 0x18000e830
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.180080020
sub rsp, rax
mov rax, qword [0x1800a7120]
xor rax, rsp
mov qword [rsp + 0x1040], rax
xor edi, edi
mov rsi, rdx
mov rbp, rcx
cmp qword [rcx], rdi
jne 0x18000e86b
xor eax, eax
jmp 0x18000e9a2
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 0x18000e8b1
mov rdx, qword [str.NoAssociate.KZ]
lea rcx, [rsp + 0x840]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
cmp eax, edi
je 0x18000e8b1
mov eax, 1
jmp 0x18000e9a2
lea r8, [rsp + 0x38]
mov rdx, rsi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, edi
je 0x18000e91f
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 0x18000e99c
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.18005be04
lea rcx, [rsp + 0x40]
cmp rax, rcx
jne 0x18000e96f
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.18005c4c0
mov rbx, qword [rsp + 0x1080]
add rsp, 0x1050
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000ea60
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.180080020
sub rsp, rax
mov rax, qword [0x1800a7120]
xor rax, rsp
mov qword [rsp + 0x1250], rax
mov rbp, rdx
mov rdi, rcx
mov r8, rdx
lea rdx, [0x180085998]
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 0x18000eb54
lea rdx, [rdi + 0x210]
lea rcx, [rsp + 0x40]
cmp word [rdx], bx
je 0x18000eaf0
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x18000eb0c
mov edx, 0x104
call fcn.180010d0c
lea rdx, [0x1800859a8]
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, [0x180085a10]
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, [0x180085a50]
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, [0x180085a60]
lea rdx, [0x180085a70]
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.18005c4c0
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 0x18000ed40
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 [0x1800a7120]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rdx
mov rbx, rcx
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.180010d0c
lea rdx, [0x180085780]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, case.0x18003191c.6
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov rcx, rbx
call fcn.18000e7a0
mov r9d, eax
lea r8, [rsp + 0x40]
lea rdx, str._s__d
lea rcx, [rsp + 0x30]
call fcn.180010c18
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 0x18000ee12
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.18005c4c0
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret

Function at 0x18000ee40
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x260
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1800a7120]
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 0x18000ee94
xor eax, eax
jmp 0x18000ef50
lea rcx, case.0x18003191c.6
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea r9, str.DefaultIcon
lea r8, [rsp + 0x40]
lea rdx, [0x1800857f8]
lea rcx, [rsp + 0x28]
call fcn.180010c18
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 0x18000ef08
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000ef04
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
xor eax, eax
jmp 0x18000ef50
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 0x18000ef4e
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.18005c4c0
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x18000ef80
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 [0x1800a7120]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov esi, r8d
mov rdi, rdx
mov rbp, rcx
lea rcx, case.0x18003191c.6
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea r8, [rbp + 8]
lea rax, [0x1800857a8]
mov qword [rsp + 0x20], rax
mov r9, rdi
lea rdx, [0x1800857c0]
lea rcx, [rsp + 0x38]
call fcn.180010c18
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 0x18000f02f
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 0x18000f05c
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r12d
jg 0x18000f055
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
xor eax, eax
jmp 0x18000f104
cmp esi, r12d
je 0x18000f06b
mov rcx, rdi
call fcn.18000ed40
jmp 0x18000f0d6
mov word [rsp + 0x50], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.18005c190
mov r9d, 0x104
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, rbp
call fcn.18000ee40
cmp eax, r12d
je 0x18000f0c9
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 0x18000f0d6
mov rdx, qword [rsp + 0x30]
mov rcx, rdi
call fcn.18000ed40
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 0x18000f0ff
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.18005c4c0
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 0x18000f1c0
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 [0x1800a7120]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, rcx
lea rcx, case.0x18003191c.6
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.18000f140
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 0x18000f268
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, esi
jg 0x18000f261
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
xor eax, eax
jmp 0x18000f330
mov word [rsp + 0x60], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x62]
call fcn.18005c190
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, [0x1800856f8]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, [0x180085708]
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 0x18000f304
lea rdx, [0x180085718]
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 0x18000f32b
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.18005c4c0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18000f360
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x1800a7120]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rcx, qword [rcx]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
xor edi, edi
mov rsi, rdx
mov dword [rsp + 0x38], 0x800
mov word [rsp + 0x40], di
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
cmp eax, edi
jne 0x18000f3d3
mov rdx, qword [str.NoAssociate.KZ]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov rdx, rsi
mov rcx, 0xffffffff80000000
cmp eax, edi
jne 0x18000f3fa
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor eax, eax
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.18005c4c0
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, edi
jne 0x18000f3d3
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 ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call fcn.18000f1c0
cmp ebx, edi
sete dil
mov eax, edi
jmp 0x18000f3d5