joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400086e0
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x140098720]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x20c
lea rcx, [rsp + 0x20]
call fcn.140048c40
cmp qword [rdi + 0x18], 8
jb 0x140008722
mov rdi, qword [rdi]
cmp qword [rbx + 0x18], 8
jb 0x14000872c
mov rbx, qword [rbx]
lea r9, [rsp + 0x20]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x14000877c
xor eax, eax
mov r8, 0xffffffffffffffff
mov word [rsp + 0x22a], ax
lea rax, [rsp + 0x20]
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140008760
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140004300
mov al, 1
jmp 0x14000877e
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140046d90
add rsp, 0x240
pop rdi
pop rsi
pop rbx
ret

Function at 0x140026ad0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x140098720]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
xor edx, edx
add rcx, 4
mov r8d, 0x118
call fcn.140048c40
mov rcx, rbx
mov dword [rbx], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140026c32
cmp dword [rbx + 4], 6
mov qword [rsp + 0x188], rdi
ja 0x140026b34
jne 0x140026bd5
cmp dword [rbx + 8], 2
jb 0x140026bd5
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x140026bd5
mov edx, 1
mov rcx, rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140026bd5
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140026bd5
movups xmm0, xmmword [0x14007b868]
mov rcx, rax
movups xmm1, xmmword [0x14007b878]
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm1
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x140026bd5
lea rcx, [rax + 6]
lea rdx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140026bd5
cmp word [rdi + 2], ax
jbe 0x140026bd5
movzx edx, word [rdi + 0x32]
movzx eax, word [rdi + 0x30]
movzx ecx, word [rdi + 0x36]
mov dword [rbx + 4], edx
mov dword [rbx + 8], eax
mov dword [rbx + 0xc], ecx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140026c26
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call fcn.140048c40
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call rdi
test eax, eax
jne 0x140026c26
mov eax, dword [rsp + 0x2c]
mov dword [rbx + 0xc], eax
mov rdi, qword [rsp + 0x188]
mov al, 1
jmp 0x140026c34
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140046d90
add rsp, 0x170
pop rbx
ret
Function at 0x14002e270
Capabilities:
Check mutex on windows

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov rax, qword [0x140098720]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [rcx]
xor r14d, r14d
test rcx, rcx
je 0x14002e2b5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], r14
mov word [rdi + 8], r14w
mov qword [rsp + 0x28], r14
lea rcx, [rsp + 0x28]
call fcn.140030570
nop
mov rbx, qword [rsp + 0x28]
cmp qword [rbx], 0
lea rbp, [rbx + 0x10]
jne 0x14002e2dc
mov rbp, r14
cmp qword [rsi + 0x10], 0
je 0x14002e2f2
mov r8, rsi
cmp qword [rsi + 0x18], 8
jb 0x14002e2f5
mov r8, qword [rsi]
jmp 0x14002e2f5
mov r8, r14
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi], rax
test rax, rax
jne 0x14002e343
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x14002e343
lea ecx, [rax + 5]
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rsi + 0x10], 0
je 0x14002e32f
cmp qword [rsi + 0x18], 8
jb 0x14002e332
mov rsi, qword [rsi]
jmp 0x14002e332
mov rsi, r14
mov r8, rsi
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi], rax
mov rax, qword [rdi]
test rax, rax
je 0x14002e36a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14002e35c
mov byte [rdi + 9], 1
mov rcx, qword [rdi]
call fcn.14002fb80
mov rax, qword [rdi]
test rax, rax
setne sil
mov rdi, qword [rbx]
test rdi, rdi
je 0x14002e38d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r14
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002e3a0
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 8], r14
mov edx, 0x58
mov rcx, rbx
call fcn.140046df0
mov qword [rsp + 0x28], r14
movzx eax, sil
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140046d90
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x14002eb50
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x140098720]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov ecx, 1
call fcn.140046db4
mov qword [rbx], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x118
mov byte [rax], 0
call fcn.140048c40
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x14002ebb7
cmp dword [rsp + 0x24], 6
mov rcx, qword [rbx]
setae dl
mov byte [rcx], dl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140046d90
add rsp, 0x150
pop rbx
ret
Function at 0x140033690
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rax, qword [0x140098720]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x28], rcx
test rcx, rcx
je 0x1400336dd
mov rcx, qword [rcx]
test rcx, rcx
je 0x1400336dd
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsi + 0x38]
cmp eax, 0x7530
jb 0x140033763
lea rcx, [rsi + 8]
call fcn.1400060d0
lea rcx, [rsi + 0x20]
call fcn.1400060d0
lea rdx, [rsi + 8]
mov rcx, rsi
call fcn.1400337a0
lea r9, [rsi + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.140033aa0
lea r9, [rsi + 0x20]
mov r8b, 1
xor edx, edx
mov rcx, rsi
call fcn.140033aa0
lea r9, [rsi + 0x20]
xor r8d, r8d
mov dl, 1
mov rcx, rsi
call fcn.140033aa0
lea r9, [rsi + 0x20]
mov r8b, 1
movzx edx, r8b
mov rcx, rsi
call fcn.140033aa0
lea rdx, [rsi + 0x20]
call fcn.140034c20
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x38], eax
mov rcx, qword [rsi]
test rcx, rcx
je 0x140033771
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140046d90
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140044940
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140098720]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], 0x114
mov r8d, 0x110
lea rcx, [rsp + 0x24]
call fcn.140048c40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1400449ae
mov eax, dword [rsp + 0x24]
cmp eax, 5
ja 0x140044994
jne 0x1400449ae
cmp dword [rsp + 0x28], 0
jbe 0x1400449ae
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140046d90
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140046d90
add rsp, 0x158
ret

Function at 0x1400449d0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140098720]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], 0x114
mov r8d, 0x110
lea rcx, [rsp + 0x24]
call fcn.140048c40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140044a2a
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140046d90
add rsp, 0x158
ret
cmp dword [rsp + 0x24], 6
setae al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140046d90
add rsp, 0x158
ret

Function at 0x140044a50
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140098720]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], 0x114
mov r8d, 0x110
lea rcx, [rsp + 0x24]
call fcn.140048c40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140044aaa
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140046d90
add rsp, 0x158
ret
cmp dword [rsp + 0x24], 0xa
setae al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140046d90
add rsp, 0x158
ret

Function at 0x140045360
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x450
mov rax, qword [0x140098720]
xor rax, rsp
mov qword [rsp + 0x440], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, dword [rsp + 0x460]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x1400453b9
xor al, al
jmp 0x14004540b
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x1400453e4
cmp qword [rsp + 0x20], 0
je 0x1400453e0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x14004540b
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x468]
call fcn.140005040
cmp qword [rsp + 0x20], 0
je 0x140045409
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140046d90
add rsp, 0x450
pop rdi
ret
Function at 0x140045430
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140098720]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor edi, edi
mov rbx, rcx
mov qword [rcx], rdi
cmp qword [0x1400986d8], rdi
jne 0x1400454bb
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x20a
call fcn.140048c40
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rax, [rsp + 0x30]
mov word [rsp + 0x236], di
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], di
jne 0x1400454a0
lea rdx, [rsp + 0x30]
lea rcx, [0x1400986c8]
call fcn.140004300
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140046d90
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret

Function at 0x140045560
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x260
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140098720]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov eax, dword [0x14009a2c0]
test eax, eax
jle 0x1400455ae
inc eax
mov dword [0x14009a2c0], eax
mov al, 1
jmp 0x1400456cd
xor sil, sil
xor ebp, ebp
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
lea rcx, [rsp + 0x30]
call fcn.14002eb50
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.14002f870
movzx ebx, al
lea rcx, [rsp + 0x30]
call fcn.14002ebd0
test bl, bl
je 0x1400456b9
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1400456b9
lea rdx, str.ImpersonateLoggedOnUser
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x28]
call rax
test eax, eax
je 0x1400456b0
inc dword [0x14009a2c0]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14004563c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x28]
mov qword [rdi], rax
mov qword [rsp + 0x28], rbp
mov sil, 1
cmp qword [0x1400986f8], 0
jne 0x1400456b0
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x40]
call fcn.140048c40
mov dword [rsp + 0x20], 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov word [rsp + 0x246], bp
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140045694
lea rdx, [rsp + 0x40]
lea rcx, [0x1400986e8]
call fcn.140004300
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1400456c9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, sil
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140046d90
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140045870
Capabilities:
Delete registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x140098720]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
jne 0x14004589f
xor al, al
jmp 0x1400458ea
mov r9d, dword [rcx + 4]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x4a8], rbp
or r9d, 0x20019
xor ebp, ebp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rbp
call fcn.140045c90
test al, al
je 0x1400458e0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [rdi], bpl
je 0x140045905
mov byte [rdi + 1], 1
mov al, 1
mov rbp, qword [rsp + 0x4a8]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140046d90
add rsp, 0x470
pop rdi
pop rsi
pop rbx
ret
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x140045912
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
je 0x1400458e0
cmp qword [rbx + 0x18], 8
jb 0x140045929
mov rbx, qword [rbx]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x412
call fcn.140048c40
lea rax, [rsp + 0x40]
mov r9d, 0x208
sub rbx, rax
lea rdx, [rsp + 0x40]
nop
lea rax, [r9 + 0x7ffffdf6]
test rax, rax
je 0x140045972
movzx eax, word [rbx + rdx]
test ax, ax
je 0x140045972
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x140045950
mov r8d, dword [rdi + 4]
lea rax, [rdx - 2]
test r9, r9
mov rcx, rsi
cmovne rax, rdx
lea rdx, [rsp + 0x40]
mov word [rax], bp
call fcn.140046020
test eax, eax
setne al
jmp 0x1400458e2

Function at 0x1400459a0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
je 0x140045a24
mov r9d, dword [rcx + 4]
lea rax, [rsp + 0x48]
or r9d, 0x20019
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x20], rax
call fcn.140045c90
test al, al
je 0x1400459f8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [rdi], 0
je 0x140045a0a
mov byte [rdi + 1], 1
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp qword [rbx + 0x18], 8
jb 0x140045a14
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x1400459f8
mov rbx, qword [rsp + 0x40]
xor al, al
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140045a40
Capabilities:
Delete registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x140098720]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
jne 0x140045a78
xor al, al
jmp 0x140045bb9
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
movdqa xmm1, xmmword [0x14007e010]
movdqu xmmword [rsp + 0x58], xmm1
xor r14d, r14d
mov word [rsp + 0x48], r14w
mov rdx, rbx
cmp qword [r8 + 0x18], 8
jb 0x140045aa5
mov rdx, qword [r8]
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x14007e010]
movdqu xmmword [rsp + 0x38], xmm1
mov word [rsp + 0x28], r14w
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140045ad0
lea rcx, [rsp + 0x28]
call fcn.140004300
nop
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x28]
mov rdx, rsi
mov rcx, rdi
call fcn.140045de0
movzx ebp, al
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x140045b40
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045b3b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140045bfc
call fcn.140046df0
movdqa xmm0, xmmword [0x14007e010]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r14w
test bpl, bpl
je 0x140045b62
cmp byte [rdi], 0
je 0x140045bd1
mov byte [rdi + 1], 1
mov bl, 1
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140045ba2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045b9d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140045bf6
call fcn.140046df0
movdqa xmm0, xmmword [0x14007e010]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r14w
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140046d90
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp qword [rbx + 0x18], 8
jb 0x140045bdb
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x140045b62
xor bl, bl
jmp 0x140045b64
call fcn.14004b0f4
nop
call fcn.14004b0f4
int3
Function at 0x140046020
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x290
mov rax, qword [0x140098720]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.140048c40
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x140046099
mov r9d, r14d
lea rax, [rsp + 0x48]
or r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400460ba
cmp eax, 2
jne 0x14004621f
mov eax, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140046d90
add rsp, 0x290
pop r14
pop rsi
pop rbp
ret
mov qword [rsp + 0x288], rdi
mov rcx, rsi
mov qword [rsp + 0x280], r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
xor r15d, r15d
cmp word [rsi + rcx*2 - 2], 0x5c
lea rdi, [rsi + rcx*2]
je 0x1400460f5
mov eax, 0x5c
mov word [rdi], ax
add rdi, 2
mov word [rdi], r15w
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], r15
xor edx, edx
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400461eb
mov qword [rsp + 0x2c8], rbx
lea rbx, [rsp + 0x60]
sub rbx, rdi
nop word [rax + rax]
mov edx, 0x208
mov rax, rdi
nop dword [rax + rax]
lea rcx, [rdx + 0x7ffffdf6]
test rcx, rcx
je 0x140046182
movzx ecx, word [rbx + rax]
test cx, cx
je 0x140046182
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x140046160
test rdx, rdx
lea rcx, [rax - 2]
mov r8d, r14d
mov rdx, rsi
cmovne rcx, rax
mov word [rcx], r15w
mov rcx, rbp
call fcn.140046020
test eax, eax
je 0x1400461e3
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r15
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], r15
xor edx, edx
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140046150
mov rbx, qword [rsp + 0x2c8]
mov word [rdi - 2], r15w
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov r15, qword [rsp + 0x280]
mov rdi, qword [rsp + 0x288]
test eax, eax
je 0x140046099
xor eax, eax
jmp 0x14004609e
Function at 0x140046250
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x140098720]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, r9
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
test rdx, rdx
jne 0x14004628b
xor al, al
jmp 0x1400463c9
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
movdqa xmm1, xmmword [0x14007e010]
movdqu xmmword [rsp + 0x48], xmm1
xor r14d, r14d
mov word [rsp + 0x38], r14w
lea r9, [rsp + 0x38]
call fcn.140045de0
test al, al
je 0x1400462d4
cmp byte [rsp + 0xb0], r14b
je 0x1400462e4
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140004720
test al, al
jne 0x140046329
cmp byte [rsi], 0
je 0x14004632d
mov byte [rsi + 1], 1
mov bl, 1
jmp 0x140046374
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400462f1
mov rcx, qword [rbx]
lea r8, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x48]
cmp rdx, qword [rbx + 0x10]
jne 0x1400462d4
test rdx, rdx
je 0x140046329
sub r8, rcx
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x1400462d4
add rcx, 2
sub rdx, 1
jne 0x140046315
mov bl, 1
jmp 0x140046374
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 8
jb 0x14004633b
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x140046345
mov rdi, qword [rdi]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140046372
mov bl, 1
jmp 0x140046374
xor bl, bl
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x1400463b2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400463ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400463e1
call fcn.140046df0
movdqa xmm0, xmmword [0x14007e010]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r14w
movzx eax, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140046d90
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14004b0f4
int3

Function at 0x14005208c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140051df0