joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180010999
Capabilities:
Encode data using xor
Set registry value

Disassembly:
test rcx, rcx
je 0x180010b54
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, r8
mov edi, edx
mov rsi, rcx
test edx, edx
je 0x180010b31
and qword [rbp - 0x48], 0
mov dword [rsp + 0x20], 1
lea rdx, str.360scan
mov r9, rdx
xor r8d, r8d
lea rcx, [rbp - 0x40]
call fcn.180056700
nop
lea r8, [rbp - 0x48]
mov rdx, qword [rbp - 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x180010b13
cmp qword [rbp - 0x48], 0
je 0x180010b13
lea rcx, [rdi + 4]
lea rdx, [0x1800c8054]
call fcn.18006f9d0
mov rbx, rax
test rax, rax
je 0x180010b08
mov r9d, 0x64
mov dword [rbp - 0x50], r9d
movups xmm0, xmmword [str.softwareMicrosoftWindows]
movups xmmword [rbp - 0x30], xmm0
movsd xmm1, qword [0x18008b7c0]
movsd qword [rbp - 0x20], xmm1
movzx ecx, word [0x18008b7c8]
mov word [rbp - 0x18], cx
mov cl, byte [0x18008b7ca]
mov byte [rbp - 0x16], cl
xor r10d, r10d
test edi, edi
je 0x180010abe
mov r8, rax
sub r8, rsi
movsxd rcx, r10d
movabs rax, 0x97b425ed097b425f
mul rcx
shr rdx, 4
imul rax, rdx, 0x1b
sub rcx, rax
mov al, byte [rbp + rcx - 0x30]
xor al, byte [rsi]
mov byte [r8 + rsi + 4], al
movzx eax, byte [rsi]
add r9d, eax
inc r10d
inc rsi
cmp r10d, edi
jb 0x180010a83
mov dword [rbp - 0x50], r9d
xor r9d, r9d
mov rcx, rbx
lea r8, [rbp - 0x50]
sub r8, rbx
mov al, byte [r8 + rcx]
mov byte [rcx], al
inc r9d
inc rcx
cmp r9d, 4
jb 0x180010acb
lea eax, [rdi + 4]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 3
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180010b31
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800782d0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180011110
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rbp + 0x47], rax
call fcn.18000a7ac
mov rcx, rax
test rax, rax
je 0x1800112fd
mov rax, qword [rax]
call qword [rax + ILCombine]
add rax, 0x18
mov qword [rbp - 0x29], rax
mov edi, 7
mov dword [rsp + 0x20], edi
lea r9, str.dfafidjalkfjdalksjfjklfads
mov r8d, edi
lea rdx, [0x18008c200]
lea rcx, [rbp + 7]
call fcn.180064fbc
mov rbx, rax
mov dword [rsp + 0x20], edi
lea r9, str.dfafidjalkfjdalksjfjklfads
mov r8d, edi
lea rdx, [0x18008c200]
lea rcx, [rbp - 0x19]
call fcn.180064fbc
nop
cmp qword [rbx + 0x18], 8
jb 0x1800111ab
mov rbx, qword [rbx]
cmp qword [rax + 0x18], 8
jb 0x1800111b5
mov rax, qword [rax]
mov dword [rsp + 0x20], 1
mov r9, rbx
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x31]
call fcn.180056700
nop
lea rcx, [rbp - 0x19]
call fcn.1800101e0
nop
lea rcx, [rbp + 7]
call fcn.1800101e0
mov dword [rsp + 0x20], edi
lea r9, str.dfafidjalkfjdalksjfjklfads
mov r8d, 6
lea rdx, [0x18008c1e0]
lea rcx, [rbp + 0x27]
call fcn.180064fbc
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x180011211
mov rdi, qword [rax]
xor ebx, ebx
and qword [rbp - 0x39], rbx
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp - 0x31]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180011287
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x180011287
and dword [rbp - 0x49], ebx
and dword [rbp - 0x41], ebx
mov dword [rbp - 0x45], 4
lea rax, [rbp - 0x45]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x41]
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove ebx, dword [rbp - 0x49]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp + 0x27]
call fcn.1800101e0
nop
xor edi, edi
test ebx, ebx
setne dil
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1800112bb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
test ecx, ecx
jg 0x1800112da
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1800782d0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov ecx, 0x80004005
call fcn.18000a540
int3
Function at 0x180014138
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rbp + 0x130], rax
cmp byte [0x180169323], 0
jne 0x1800142bb
mov edi, 0x208
lea rcx, [rsp + 0x20]
mov r8d, edi
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, qword [0x180169370]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, str..._safemon360Cactus.tpi
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call fcn.180065ee4
movzx ecx, byte [0x180169322]
test eax, eax
mov ebx, 1
cmovne ecx, ebx
mov byte [0x180169322], cl
test cl, cl
jne 0x1800142b3
mov r8d, edi
lea rcx, [rsp + 0x20]
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, qword [0x180169370]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, str...360sd.exe
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180014277
mov r8d, edi
lea rcx, [rsp + 0x20]
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, qword [0x180169370]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, str...360SkinMgr.exe
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
movzx ecx, byte [0x180169322]
test eax, eax
cmove ecx, ebx
mov byte [0x180169322], cl
jmp 0x18001427d
mov cl, byte [0x180169322]
test cl, cl
jne 0x1800142b3
call fcn.1800562d0
movzx ecx, byte [0x180169322]
test eax, eax
cmovne ecx, ebx
mov byte [0x180169322], cl
test cl, cl
jne 0x1800142b3
call fcn.180056534
movzx ecx, byte [0x180169322]
test eax, eax
cmovne ecx, ebx
mov byte [0x180169322], cl
mov byte [0x180169323], bl
jmp 0x1800142c1
mov cl, byte [0x180169322]
mov al, cl
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.1800782d0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x180019044
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov r12, r8
mov dword [rdx], ebx
mov r13, rdx
mov dword [r8], ebx
xor edx, edx
mov edi, ebx
lea r8d, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
test rax, rax
je 0x1800190f8
lea edx, [rbx + 1]
mov rcx, rax
lea r8d, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x1800190ef
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbp
mov rcx, rsi
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
je 0x1800190ef
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x1800190e6
mov ecx, r15d
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1800190e6
mov r8d, r15d
mov rdx, r14
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rdi, rdi
je 0x180019145
lea r9, [rsp + 0x68]
mov qword [rsp + 0x70], rbx
lea r8, [rsp + 0x70]
mov dword [rsp + 0x68], ebx
lea rdx, [0x18008ad94]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x18001913c
mov rcx, qword [rsp + 0x70]
mov ebx, 1
mov eax, dword [rcx + 8]
mov dword [r13], eax
mov eax, dword [rcx + 0xc]
mov dword [r12], eax
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180019224
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x250
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
call fcn.180004cfc
mov eax, dword [0x18016b380]
xor edi, edi
test al, 1
jne 0x18001929a
or eax, 1
mov dword [0x18016b380], eax
call fcn.18000a7ac
mov rcx, rax
test rax, rax
je 0x180019339
mov rax, qword [rax]
call qword [rax + ILCombine]
add rax, 0x18
mov qword [0x18016b388], rax
lea rcx, [0x180085518]
call fcn.18006f680
nop
mov rdx, qword [0x18016b388]
cmp dword [rdx - 0x10], edi
jne 0x180019309
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, str._userprofile_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rsp + 0x30]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x1800192d9
mov r8d, eax
lea rdx, [rsp + 0x30]
lea rcx, [0x18016b388]
call fcn.180005498
lea rcx, [0x18016b388]
call fcn.180004cfc
mov rdx, qword [0x18016b388]
lea r8, str._userprofile_
mov rcx, rbx
call fcn.180004d74
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800782d0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
mov ecx, 0x80004005
call fcn.18000a540
int3
Function at 0x180019344
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rdx
mov rbx, rcx
call fcn.1800055b8
xor esi, esi
lea rcx, [rsp + 0x20]
mov edx, 0x104
mov word [rsp + 0x20], si
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x1800193d6
lea rcx, [rsp + 0x20]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x18001939c
mov r8d, eax
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.180005498
mov rcx, rbx
call fcn.18001915c
mov r8, rdi
lea rdx, [0x18008c650]
mov rcx, rbx
call fcn.18001a168
mov eax, 1
jmp 0x1800193d8
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1800782d0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1800197dc
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push rsi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
call fcn.18001ae64
xor ebx, ebx
test eax, eax
je 0x180019809
lea ecx, [rax - 1]
cmp ecx, 1
setbe bl
jmp 0x1800198f8
mov eax, dword [0x180169368]
lea rsi, [0x180169358]
test al, 1
jne 0x180019855
or eax, 1
mov dword [0x180169368], eax
mov qword [rsp + 0x40], rsi
mov qword [0x180169358], rbx
mov qword [0x180169360], rbx
call fcn.18000f2d0
mov qword [0x180169358], rax
call fcn.18000b684
nop
lea rcx, [0x18008554c]
call fcn.18006f680
nop
lea r8, str.LocalQ360MonMutex
mov edx, 1
mov ecx, 0x1f0001
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
jne 0x1800198ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1800198f3
mov eax, dword [0x180169368]
test al, 1
jne 0x1800198c1
or eax, 1
mov dword [0x180169368], eax
mov qword [rsp + 0x40], rsi
mov qword [0x180169358], rbx
mov qword [0x180169360], rbx
call fcn.18000f2d0
mov qword [0x180169358], rax
call fcn.18000b684
nop
lea rcx, [0x18008554c]
call fcn.18006f680
nop
lea r8, str.LocalQ360SafeI18NTray
mov edx, 1
mov ecx, 0x1f0001
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
jne 0x1800198ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1800198f3
jmp 0x1800198f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
Function at 0x18001b208
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x18006ff80
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov r9, qword [0x1800ce5e1]
xor r8d, r8d
mov dword [rax + 8], 0x62756373
jae 0x180070005
jne 0x180070006
mov byte [rax + 0xc], r8b
movsxd rax, dword [r9 + 0x3c]
mov ecx, dword [rax + r9 + 0x88]
mov byte [rax], al
add byte [rax], al
test ecx, ecx
je 0x18007002b
lea rax, [r9 + rcx]
mov r10d, r8d
mov esi, dword [rax + 0x18]
jo 0x18006ffda
test esi, esi
jle 0x18007002b
mov r11d, dword [rax + 0x20]
mov ebx, dword [rax + 0x24]
mov r14d, dword [rax + 0x1c]
add r11, r9
add rbx, r9
movzx eax, word [rbx]
lea rdi, [rsp + 0x40]
lea rcx, [r14 + rax*4]
mov eax, dword [r11]
mov ebp, dword [rcx + r9]
add rax, r9
jmp 0x18006fff9
cmp cl, byte [rdi]
jne 0x18006ffff
inc rax
inc rdi
mov cl, byte [rax]
test cl, cl
jne 0x18006ffef
mov cl, byte [rax]
mov edx, r8d
mov eax, r8d
cmp cl, byte [rdi]
seta dl
cmp byte [rdi], cl
seta al
cmp edx, eax
je 0x180070027
inc r10d
add rbx, 2
add r11, 4
cmp r10d, esi
jl 0x18006ffd7
jmp 0x18007002b
lea r8, [r9 + rbp]
call r8
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x18001da78
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rdi
sub rsp, 0x30
mov qword [rax - 0x10], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rdi, rdx
mov rbx, rcx
and dword [rax - 0x18], 0
mov eax, dword [rcx + 0x54]
mov dword [r8], eax
lea rdx, [rcx + 0x38]
mov rcx, rdi
call fcn.1800053f4
mov dword [rsp + 0x20], 1
mov rcx, qword [rbx + 0x40]
cmp dword [rcx - 0x10], 0
je 0x18001dad5
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18001dad5
lea rdx, [rbx + 0x40]
mov rcx, rdi
call fcn.18000525c
mov rax, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x18001e200
Capabilities:
Delete registry key

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 r14
sub rsp, 0x20
mov rdi, qword [rcx]
xor ebp, ebp
xor esi, esi
mov rbx, rdx
mov r14, rcx
test rdi, rdi
je 0x18001e271
lea ecx, [rbp + 0x39]
call fcn.18000a354
mov rdx, rbx
mov rcx, rdi
test rax, rax
je 0x18001e242
call rax
jmp 0x18001e248
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x18001e26b
mov ecx, 0x39
call fcn.18000a354
mov rdx, rbx
mov rcx, rdi
test rax, rax
je 0x18001e265
call rax
jmp 0x18001e26b
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bpl
mov rdi, qword [r14 + 8]
test rdi, rdi
je 0x18001e2c2
mov ecx, 0x39
call fcn.18000a354
mov rdx, rbx
mov rcx, rdi
test rax, rax
je 0x18001e293
call rax
jmp 0x18001e299
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x18001e2bc
mov ecx, 0x39
call fcn.18000a354
mov rdx, rbx
mov rcx, rdi
test rax, rax
je 0x18001e2b6
call rax
jmp 0x18001e2bc
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete sil
test ebp, ebp
jne 0x18001e2cf
test esi, esi
jne 0x18001e2cf
or eax, 0xffffffff
jmp 0x18001e2d1
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x18001e4f4
Capabilities:
Delete 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 r14
sub rsp, 0x20
mov rdi, qword [rcx]
xor esi, esi
xor ebx, ebx
mov rbp, rdx
mov r14, rcx
test rdi, rdi
je 0x18001e542
lea ecx, [rsi + 0x3b]
call fcn.18000a354
mov rdx, rbp
mov rcx, rdi
test rax, rax
je 0x18001e536
call rax
jmp 0x18001e53c
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
sete sil
mov rdi, qword [r14 + 8]
test rdi, rdi
je 0x18001e56f
mov ecx, 0x3b
call fcn.18000a354
mov rdx, rbp
mov rcx, rdi
test rax, rax
je 0x18001e564
call rax
jmp 0x18001e56a
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
sete bl
test esi, esi
jne 0x18001e57c
test ebx, ebx
jne 0x18001e57c
or eax, 0xffffffff
jmp 0x18001e57e
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18002c644
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
cmp dword [rcx + 0x60], ebx
je 0x18002c686
cmp dword [rcx + 0x9c], ebx
jne 0x18002c68a
mov rcx, qword [rcx + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18002c68a
mov rcx, qword [rdi + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18002c68a
mov rbx, qword [rdi + 0x38]
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_ILClone]
mov rbx, qword [rsp + 0x30]
mov qword [rsi], rax
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18003a8d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r13, r8
mov rcx, rdx
mov r12, r9
xor edx, edx
mov edi, ebx
lea r8d, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
test rax, rax
je 0x18003a992
lea edx, [rbx + 1]
mov rcx, rax
lea r8d, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x18003a989
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rbp
mov rcx, rsi
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
je 0x18003a989
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x18003a980
mov ecx, r15d
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x18003a980
mov r8d, r15d
mov rdx, r14
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rdi, rdi
je 0x18003a9df
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x20]
mov dword [rsp + 0x60], ebx
lea rdx, [0x18008ad94]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x18003a9d6
mov rcx, qword [rsp + 0x20]
mov ebx, 1
mov eax, dword [rcx + 8]
mov dword [r13], eax
mov eax, dword [rcx + 0xc]
mov dword [r12], eax
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18003aea0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
mov rbx, r9
mov ecx, 0x41
mov rdi, r8
mov esi, edx
call fcn.18000a354
mov r9, rbx
mov edx, esi
mov rcx, rbp
test rax, rax
je 0x18003af07
mov r10, qword [rsp + 0x88]
mov r8, qword [rsp + 0x78]
mov qword [rsp + 0x38], r10
mov r10, qword [rsp + 0x80]
mov qword [rsp + 0x30], r10
mov qword [rsp + 0x28], r8
mov r8, rdi
and qword [rsp + 0x20], 0
call rax
jmp 0x18003af3a
mov rax, qword [rsp + 0x88]
mov r8, rdi
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x18003af50
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbp, rcx
mov rbx, r9
mov ecx, 0x3f
mov rdi, r8
mov esi, edx
call fcn.18000a354
xor ecx, ecx
mov r9, rbx
mov r8, rdi
mov edx, esi
test rax, rax
je 0x18003afab
mov r10, qword [rsp + 0x88]
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov rcx, rbp
call rax
jmp 0x18003afd0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x18003bc0c
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
sub rsp, 0x30
and qword [rsp + 0x50], 0
mov rbx, rcx
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x18003bc70
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x18003bc6c
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000008
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x18003bc70
xor eax, eax
jmp 0x18003bc94
mov rcx, qword [rsp + 0x50]
mov r8, rbx
mov edx, ILClone
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x18003c614
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov eax, dword [0x180169bfc]
xor ebx, ebx
test eax, eax
je 0x18003c64a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x180169bfc]
sub eax, ecx
cmp eax, 0x493e0
jae 0x18003c64a
mov eax, dword [0x180169bf8]
jmp 0x18003c6ca
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], ebx
xor ecx, ecx
call fcn.18003c5f0
cmp eax, 0x7a
jne 0x18003c6c8
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x18003c6c8
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.18003c5f0
test eax, eax
jne 0x18003c6ae
cmp dword [rdi], ebx
jbe 0x18003c6ae
lea rax, [rdi + 4]
test byte [rax + 0x16], 5
je 0x18003c698
cmp dword [rax], 0x100007f
jne 0x18003c6a4
inc ebx
add rax, 0x18
cmp ebx, dword [rdi]
jae 0x18003c6ae
jmp 0x18003c68a
mov dword [0x180169bf8], 1
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x180169bfc], eax
jmp 0x18003c63f
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18003c7d8
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1800c5470]
xor rax, rsp
mov qword [rsp + 0x230], rax
call fcn.18001ad68
cmp dword [rax + 0x28], 1
jne 0x18003c805
mov eax, 1
jmp 0x18003c875
call fcn.18001ad68
cmp dword [rax + 0x28], 2
je 0x18003c873
mov rcx, qword [0x180169370]
lea rdx, [rsp + 0x20]
xor ebx, ebx
mov r8d, 0x104
mov word [rsp + 0x20], bx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, str...360NetBase64.dll
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18003c873
call fcn.180018e8c
test eax, eax
jne 0x18003c867
lea rcx, [rsp + 0x20]
call fcn.18006998c
test eax, eax
je 0x18003c873
lea rcx, [rsp + 0x20]
call fcn.18003c6d8
jmp 0x18003c875
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1800782d0
add rsp, 0x240
pop rbx
ret