joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000f0a0
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x260
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x280], rbx
mov rax, qword [0x1800ac2b8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rdx
mov rbx, rcx
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.180011660
lea rdx, [0x180089780]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, case.0x180034a3c.6
mov rax, qword [case.0x180034a3c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov rcx, rbx
call fcn.18000ea10
mov r9d, eax
lea r8, [rsp + 0x40]
lea rdx, str._s__d
lea rcx, [rsp + 0x30]
call fcn.180011550
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 0x18000f178
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rioctlsocket + 8]
mov eax, edi
jmp 0x18000f17a
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18005f4d0
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret

Function at 0x18000f1b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x260
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1800ac2b8]
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 0x18000f204
xor eax, eax
jmp 0x18000f2c0
lea rcx, case.0x180034a3c.6
mov rax, qword [case.0x180034a3c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea r9, str.DefaultIcon
lea r8, [rsp + 0x40]
lea rdx, [0x1800897f8]
lea rcx, [rsp + 0x28]
call fcn.180011550
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 0x18000f278
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000f274
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
xor eax, eax
jmp 0x18000f2c0
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 eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000f2be
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.18005f4d0
add rsp, 0x260
pop rdi
pop rsi
pop rbx
ret
Function at 0x18000f2f0
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x270
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x2a0], rbx
mov rax, qword [0x1800ac2b8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov esi, r8d
mov rdi, rdx
mov rbp, rcx
lea rcx, case.0x180034a3c.6
mov rax, qword [case.0x180034a3c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea r8, [rbp + 8]
lea rax, [0x1800897a8]
mov qword [rsp + 0x20], rax
mov r9, rdi
lea rdx, [0x1800897c0]
lea rcx, [rsp + 0x38]
call fcn.180011550
lea r8, [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x18000f398
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rdx, qword [rsp + 0x30]
test rdx, rdx
jne 0x18000f3c4
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000f3bd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
xor eax, eax
jmp 0x18000f46a
test esi, esi
je 0x18000f3d2
mov rcx, rdi
call fcn.18000f0a0
jmp 0x18000f43d
xor eax, eax
mov word [rsp + 0x50], ax
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.18005f790
mov r9d, 0x104
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, rbp
call fcn.18000f1b0
test eax, eax
je 0x18000f430
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 0x18000f43d
mov rdx, qword [rsp + 0x30]
mov rcx, rdi
call fcn.18000f0a0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000f465
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.18005f4d0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000f800
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x1800ac2b8]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rcx, qword [rcx]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x38], 0x800
mov word [rsp + 0x40], si
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x18000f86e
mov rdx, qword [str.NoAssociate.KZ]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18000f891
mov rdx, rdi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor eax, eax
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.18005f4d0
mov rsi, qword [rsp + 0x878]
add rsp, 0x850
pop rdi
ret
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x30], rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x18000f86e
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x870], rbx
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, rdi
call fcn.18000f520
test ebx, ebx
mov rbx, qword [rsp + 0x870]
sete sil
mov eax, esi
jmp 0x18000f870
Function at 0x180010530
Capabilities:
Delete registry value

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov r12, rcx
lea rax, [r11 + 0x10]
mov qword [r11 - 0x48], rax
lea rax, [r11 + 0x20]
mov qword [r11 - 0x50], rax
xor edi, edi
mov qword [r11 - 0x58], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, rcx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebp, edi
or ebx, 0xffffffff
test eax, eax
je 0x180010685
mov rdx, r12
lea rcx, [rsp + 0xa0]
call fcn.1800035d0
nop
lea r8, [0x180089680]
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.180011230
mov rcx, qword [rsp + 0xa0]
call fcn.1800178d0
test al, al
jne 0x1800105ef
mov rdx, qword [rsp + 0xa0]
add rdx, 0xffffffffffffffe8
or ebx, ebx
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x1800105e8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
xor eax, eax
jmp 0x180010700
lea rax, [rsp + 0x98]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x18001065e
mov rdx, qword [rsp + 0xa0]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x180010657
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
xor eax, eax
jmp 0x180010700
mov ebp, 1
mov rdx, qword [rsp + 0xa0]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180010685
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
lea rdx, [0x1800896a8]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
je 0x1800106f8
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.1800035d0
nop
lea r8, str.HKEY_CURRENT_USER_
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.180011230
mov rcx, qword [rsp + 0x50]
call fcn.1800178c0
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x1800106f8
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rioctlsocket + 8]
test esi, esi
sete dil
mov eax, edi
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180010c50
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xa70
mov rax, qword [0x1800ac2b8]
xor rax, rsp
mov qword [rsp + 0xa60], rax
mov ebp, r8d
mov rbx, rdx
mov rdi, rcx
call fcn.18000f910
mov rdx, rbx
mov rcx, rdi
test eax, eax
je 0x180010c9b
mov r8d, ebp
call fcn.18000f2f0
mov eax, 1
jmp 0x180010dd4
call fcn.18000eac0
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, 1
test eax, eax
je 0x180010cd5
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebp, esi
xor eax, eax
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x50], ax
call fcn.18005f790
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x50]
xor edx, edx
mov dword [rsp + 0x38], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
xor eax, eax
lea r8, [rdi + 8]
cmp ax, word [rsp + 0x50]
lea rdx, [0x1800897d0]
lea rcx, [rsp + 0x260]
mov r9, rbx
cmove ebp, esi
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x260]
lea eax, [rax + rax + 2]
mov r8d, esi
xor edx, edx
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x260]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x180010d8e
xor eax, eax
jmp 0x180010dd4
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
call fcn.180010920
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.18000f2f0
lea rdx, [rsp + 0x260]
mov rcx, rdi
call fcn.18000ed00
mov edi, eax
test eax, eax
je 0x180010dd2
mov rcx, rbx
call fcn.180010720
mov eax, edi
mov rcx, qword [rsp + 0xa60]
xor rcx, rsp
call fcn.18005f4d0
mov rbx, qword [rsp + 0xaa0]
add rsp, 0xa70
pop rdi
pop rsi
pop rbp
ret
Function at 0x180011660
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1800ac2b8]
xor rax, rsp
mov qword [rsp + 0x250], rax
movsxd rdi, edx
lea rax, [rsp + 0x30]
mov rbx, rcx
lea rdx, str.SoftwareKuaiZipSFX_
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180011786
mov qword [rsp + 0x280], rsi
test rbx, rbx
je 0x180011777
test edi, edi
je 0x180011777
lea rcx, [rsp + 0x42]
xor esi, esi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], si
call fcn.18005f790
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, [0x180089d00]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x38], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18001173e
lea r8, [rsp + 0x40]
mov rdx, rdi
mov rcx, rbx
call fcn.180060e8c
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180011777
mov word [rbx], si
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rsi, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18005f4d0
mov rbx, qword [rsp + 0x288]
add rsp, 0x260
pop rdi
ret
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x18001174e
mov eax, 1
jmp 0x180011756

Function at 0x180011810
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x1800ac2b8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov rdi, rdx
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x103
mov dword [rsp + 0x20], 0
mov byte [rsp + 0x30], 0
call fcn.18005f790
cmp qword [rdi + 0x20], 0x10
jb 0x180011861
mov rcx, qword [rdi + 8]
jmp 0x180011865
lea rcx, [rdi + 8]
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rbx + 0x20], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x18], 0
mov byte [rbx + 8], 0
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x30]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.180001638
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18005f4d0
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rdi
ret
Function at 0x180012de0
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x100
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1800ac2b8]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov qword [r11 - 0x20], 7
xor ebx, ebx
mov qword [r11 - 0x28], rbx
mov word [r11 - 0x38], bx
mov qword [r11 - 0x48], 7
mov qword [r11 - 0x50], rbx
mov word [r11 - 0x60], bx
lea r9, [r11 - 0x68]
lea r8, [r11 - 0x40]
call fcn.180012ba0
test eax, eax
jne 0x180012e8e
cmp qword [rsp + 0xc0], 8
jb 0x180012e53
mov rcx, qword [rsp + 0xa8]
call fcn.18005eeb4
mov qword [rsp + 0xc0], 7
mov qword [rsp + 0xb8], rbx
mov word [rsp + 0xa8], bx
cmp qword [rsp + 0xe8], 8
jb 0x180012e87
mov rcx, qword [rsp + 0xd0]
call fcn.18005eeb4
xor eax, eax
jmp 0x180012fab
xor edx, edx
lea r8d, [rdx + 0x70]
lea rcx, [rsp + 0x30]
call fcn.18005f790
mov dword [rsp + 0x30], reloc.WS2_32.dll_WSASetLastError
lea rax, [rsp + 0xd0]
cmp qword [rsp + 0xe8], 8
cmovae rax, qword [rsp + 0xd0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 8
cmovae rax, qword [rsp + 0xa8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x180012f4b
cmp qword [rsp + 0xc0], 8
jb 0x180012f13
mov rcx, qword [rsp + 0xa8]
call fcn.18005eeb4
mov qword [rsp + 0xc0], 7
mov qword [rsp + 0xb8], rbx
mov word [rsp + 0xa8], bx
cmp qword [rsp + 0xe8], 8
jb 0x180012f47
mov rcx, qword [rsp + 0xd0]
call fcn.18005eeb4
xor eax, eax
jmp 0x180012fab
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rsp + 0xc0], 8
jb 0x180012f72
mov rcx, qword [rsp + 0xa8]
call fcn.18005eeb4
mov qword [rsp + 0xc0], 7
mov qword [rsp + 0xb8], rbx
mov word [rsp + 0xa8], bx
cmp qword [rsp + 0xe8], 8
jb 0x180012fa6
mov rcx, qword [rsp + 0xd0]
call fcn.18005eeb4
mov eax, 1
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.18005f4d0
add rsp, 0x100
pop rbx
ret
Function at 0x180013bd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x270
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800ac2b8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rdx
mov rbx, rcx
lea rcx, case.0x180034a3c.6
mov rax, qword [case.0x180034a3c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea r8, [0x18008a330]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180011550
xor ebp, ebp
mov rdi, rbp
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9d, [rbp + 3]
xor r8d, r8d
mov rbx, qword [rsp + 0x38]
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180013d16
mov rdi, qword [rsp + 0x40]
mov word [rsp + 0x50], bp
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.18005f790
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180013cd6
mov eax, dword [rsp + 0x34]
cmp eax, 1
je 0x180013ccb
cmp eax, 2
jne 0x180013cd6
cmp dword [rsp + 0x30], ebp
jne 0x180013cd6
mov word [rsp + 0x50], bp
mov rdx, rsi
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x180013d16
test rdi, rdi
je 0x180013cf7
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180013d12
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
xor eax, eax
jmp 0x180013d59
xor r9d, r9d
mov r8, rsi
mov rdx, rbx
mov rcx, 0xffffffff80000000
call fcn.1800144a0
mov esi, eax
test rdi, rdi
je 0x180013d3c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180013d57
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov eax, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18005f4d0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180013d90
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x130
mov rax, qword [0x1800ac2b8]
xor rax, rsp
mov qword [rsp + 0x120], rax
lea rcx, [0x1800ae370]
mov edx, 1
call fcn.1800151d0
mov edi, eax
test eax, eax
js 0x180013ef5
lea rdx, [rsp + 0xb0]
lea rcx, [0x18008be48]
mov r8d, reloc.WLDAP32.dll_Ordinal_50
mov qword [rsp + 0x140], rbx
call qword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jle 0x180013eeb
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0x40]
lea rcx, [0x18008a350]
call fcn.180013bd0
lea rdx, [rsp + 0x40]
lea rcx, [0x18008a3a0]
call fcn.180013bd0
lea rdx, [rsp + 0x40]
lea rcx, str.drive_shellexContextMenuHandlers_
call fcn.180013bd0
call qword [sym.imp.KERNEL32.dll_GetVersion]
bt eax, 0x1f
jb 0x180013eeb
lea rax, [rsp + 0x30]
lea rdx, [0x18008a460]
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180013ed6
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x148], rsi
lea rsi, str.KuaiZip_Shell_Extension
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [rsp + 0x40]
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rsi, qword [rsp + 0x148]
test eax, eax
je 0x180013edd
test rbx, rbx
je 0x180013ed6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80070005
jmp 0x180013eed
test rbx, rbx
je 0x180013eeb
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rbx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.18005f4d0
add rsp, 0x130
pop rdi
ret
Function at 0x1800144a0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x60
lea rax, [r11 - 0x18]
xor edi, edi
mov rbp, r9
mov qword [r11 - 0x28], rax
lea rax, [r11 - 0x10]
mov rsi, r8
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], rdi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x2001f
mov qword [r11 - 0x10], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x1800144f9
mov ebx, edi
mov rdi, qword [rsp + 0x58]
test ebx, ebx
jne 0x180014534
test rsi, rsi
jne 0x180014507
lea ebx, [rsi + 0xd]
jmp 0x180014534
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r9d, 1
xor r8d, r8d
lea eax, [rax + rax + 2]
mov rdx, rbp
mov rcx, rdi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test rdi, rdi
je 0x180014542
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x1800169d0
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x490
mov rax, qword [0x1800ac2b8]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r12, rdx
mov rsi, rcx
mov rdx, rcx
lea rcx, [rsp + 0x270]
mov r13, r8
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str..dll
lea rcx, [rsp + 0x270]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x24]
xor ebp, ebp
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x20], ebp
call fcn.18005f790
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180016a5b
xor eax, eax
jmp 0x180016af5
mov qword [rsp + 0x4d8], rbx
lea rdx, reloc.WLDAP32.dll_Ordinal_46
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180016ac9
lea rdx, [0x18008ab10]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180016ac9
test byte [rsp + 0x20], 0x10
jne 0x180016ac9
lea rcx, [rsi + 0x410]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0x4c]
lea rcx, [rsi + 0x410]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [rsi + 0x410]
mov rcx, r13
call r12
test eax, eax
jne 0x180016add
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180016a63
jmp 0x180016ae2
mov ebp, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x4d8]
mov eax, ebp
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.18005f4d0
add rsp, 0x490
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180016ea0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1800ac2b8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, rdx
mov rdi, rcx
mov rdx, rcx
mov rcx, rax
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rdx, str.Lang
xor ebx, ebx
mov rcx, rdi
mov word [rax], bx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rax, [0x180099a08]
lea rsi, [rdi + 0x208]
lea r9, [0x18008abd8]
lea r8, [0x18008abd8]
lea rdx, [0x18008abb0]
lea rcx, [rsp + 0x40]
mov word [rsi], bx
mov word [rdi + 0x410], bx
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_wsprintfW]
lea r11, [rsp + 0x38]
lea r9d, [rbx + 1]
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180016fa0
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rdx, str.LangModule
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x30], 0x208
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test rbx, rbx
je 0x180016fa0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18005f4d0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret