joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400282e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
cmp dword [0x14008e738], ebx
jne 0x14002835d
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x14008e738], ecx
jne 0x14002835d
mov rdi, qword [0x14008e728]
mov qword [0x14008e750], rbx
mov qword [0x14008e748], rbx
mov qword [0x14008e740], rbx
jmp 0x140028345
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rdi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x14002834c
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x140028325
jmp 0x140028353
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
mov dword [0x14008e73c], ebx
mov eax, ebx
jmp 0x140028362
mov eax, 0x10dd
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140028544
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r15, r9
mov r14, rdx
xor edi, edi
mov qword [rbp - 8], rdi
lea rdx, [rbp - 8]
call fcn.14000b254
mov ebx, eax
test eax, eax
js 0x14002867d
mov rcx, qword [rbp - 8]
call fcn.14000d7fc
mov rsi, rax
test rax, rax
jne 0x14002859b
lea ebx, [rdi + 1]
jmp 0x14002867d
mov dword [rbp + 0x30], edi
mov dword [rbp + 0x40], 0x200
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x30]
xor r8d, r8d
lea rdx, str.Assembly
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, 1
test eax, eax
jne 0x140028674
cmp dword [rbp + 0x30], ebx
jne 0x140028674
mov dword [rbp + 0x40], 0x200
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x30]
xor r8d, r8d
lea rdx, str.Class
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140028674
cmp dword [rbp + 0x30], ebx
jne 0x140028674
mov dword [rbp - 0x10], edi
mov dword [rbp + 0x40], 4
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x30]
xor r8d, r8d
lea rdx, str.InitializeNewDomainFlags
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140028668
cmp dword [rbp + 0x30], 4
jne 0x140028668
mov rcx, qword [rbp + 0x48]
mov eax, dword [rbp - 0x10]
mov dword [rcx], eax
jmp 0x14002867f
mov rax, qword [rbp + 0x48]
mov dword [rax], 2
jmp 0x14002867f
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, ebx
mov rcx, qword [rbp - 8]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
Function at 0x14002ca18
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov dil, dl
mov rbx, rcx
test rcx, rcx
jne 0x14002ca38
xor al, al
jmp 0x14002cad1
lea r8, [rsp + 0x68]
mov qword [rsp + 0x68], rbp
mov rdx, rbx
mov rcx, 0xffffffff80000002
call fcn.14002cae0
test eax, eax
jne 0x14002cace
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14002cace
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbp
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x68]
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x14002ca99
cmp esi, 0xea
jne 0x14002cace
cmp dword [rsp + 0x50], ebp
je 0x14002cace
mov r8, qword [str.Disable]
lea r9, [rsp + 0x60]
mov rdx, rbx
mov dword [rsp + 0x60], ebp
mov rcx, 0xffffffff80000002
call fcn.14002424c
mov ecx, dword [rsp + 0x60]
test eax, eax
cmovne ecx, ebp
test ecx, ecx
sete al
jmp 0x14002cad1
mov al, dil
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x14002d040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, r8
mov rdi, rdx
mov rbp, rcx
test r8, r8
jne 0x14002d068
mov eax, 0x80004003
jmp 0x14002d137
test rdi, rdi
je 0x14002d132
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
test rax, rax
je 0x14002d132
and qword [rsp + 0x78], 0
lea r8, [rsp + 0x78]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, eax
test eax, eax
js 0x14002d11e
and dword [rsp + 0x70], 0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rbx]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
lea r9, [rsp + 0x70]
mov r8d, edi
mov rcx, rbx
call qword [rsi + 0x20]
mov ebx, eax
test eax, eax
js 0x14002d11e
and dword [rsp + 0x20], 0
and dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x20]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
mov ebx, eax
test eax, eax
js 0x14002d11e
mov rcx, qword [rsp + 0x78]
mov qword [r14], rcx
test rcx, rcx
je 0x14002d11a
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x78]
xor ebx, ebx
jmp 0x14002d123
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14002d12e
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, ebx
jmp 0x14002d137
mov eax, 0x80070057
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002d5b0
Capabilities:
Get system information on windows
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rdi, r9
mov rbx, rcx
mov qword [rsp + 0x70], r9
mov rdx, qword [rbp + 0xe0]
mov r14b, byte [rbp + 0x108]
mov esi, dword [0x14008de48]
cmp qword [0x14008df90], 0
je 0x14002d60e
mov rcx, qword [r9 + 0x38]
jmp 0x14002d796
cmp qword [rcx + 0x80], 0
je 0x14002d61a
jmp 0x14002d605
lea rax, [rsp + 0x58]
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x58]
call fcn.140002cec
mov r15, rax
and qword [rbp - 0x10], 0
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14002d660
mov r8, qword [rcx]
lea rdx, [rbp - 0x48]
call qword [r8]
mov qword [rbp - 0x10], rax
call fcn.1400027c4
mov rcx, rax
test rax, rax
je 0x14002d7d5
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.140003970
mov byte [rsp + 0x40], r14b
mov rax, qword [rbp + 0xf0]
mov qword [rsp + 0x38], rax
mov eax, dword [rbp + 0xe8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x48]
lea rdx, [rsp + 0x50]
lea rcx, [rbp]
call fcn.14002cd24
lea rcx, [rbx + 8]
lea rdx, [rbp]
call fcn.14002ce40
test esi, esi
jne 0x14002d726
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rbp - 0x68], xmm0
movups xmmword [rbp - 0x58], xmm0
lea rcx, [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rbp - 0x58], 1
jbe 0x14002d726
mov rcx, rbx
call fcn.14002d954
mov rbx, rax
test rax, rax
je 0x14002d726
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp]
call fcn.14002d7e0
jmp 0x14002d792
lea rdx, [rbp]
call fcn.14002e448
test al, al
je 0x14002d76a
lea rdx, [rbp]
lea rcx, [rsp + 0x78]
call fcn.14002d84c
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x60], xmm0
cmp qword [0x14008df90], 0
je 0x14002d765
xor r8d, r8d
lea rdx, [rsp + 0x60]
call fcn.14002e1d0
test al, al
jne 0x14002d76a
call fcn.1400075b0
test esi, esi
je 0x14002d788
xor r9d, r9d
lea r8, str.Splash_Screen
lea rdx, str.Click_OK_to_continue
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
lea rcx, [rbp]
call fcn.14002d7e0
nop
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14002d7af
cmp rcx, rdi
sete dl
mov rax, qword [rcx]
xor dl, 1
call qword [rax + 0x20]
and qword [rdi + 0x38], 0
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x190
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400312f0
int3
Function at 0x14002d954
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor r9d, r9d
xor r8d, r8d
lea ebx, [r9 + 1]
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14002dab3
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rsi, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14002daaa
lea ecx, [rbx + 0x17]
call fcn.140002cbc
mov rbx, rax
test rax, rax
je 0x14002d9cb
and qword [rax + 8], 0
and qword [rax + 0x10], 0
jmp 0x14002d9cd
xor ebx, ebx
mov qword [rbx], r14
mov rcx, rdi
call fcn.14002dabc
mov qword [rbx + 8], rax
mov rcx, rsi
call fcn.14002dabc
mov qword [rbx + 0x10], rax
cmp qword [rbx + 8], 0
je 0x14002da3a
test rax, rax
je 0x14002da3a
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, rbx
lea r8, [0x140007c68]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x14002da3a
mov rax, rdi
xor edi, edi
mov qword [r14 + 0x80], rax
mov rax, rsi
xor esi, esi
mov qword [r14 + 0x88], rax
xor ebx, ebx
jmp 0x14002da3c
xor ebp, ebp
test rbx, rbx
je 0x14002da77
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14002da55
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x10], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002da69
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 8], 0
mov edx, DispGetParam
mov rcx, rbx
call fcn.140002da0
nop
test rsi, rsi
je 0x14002da86
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test rdi, rdi
je 0x14002da94
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
call fcn.1400374c0
nop
jmp 0x14002dab2
nop
call fcn.1400374c0
int3

Function at 0x14002e928
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002e972
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002e972
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002e972
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002e972
cmp dword [rcx + 0x84], 0xe
jbe 0x14002e972
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002e974
xor al, al
add rsp, 0x28
ret
Function at 0x140032bf8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x140032c8a
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x140032c64
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140032c83
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140032c83
mov rdx, qword [rdi]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
jmp 0x140032c73
cmp dword [rdi + 8], 0
je 0x140032c83
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, 1
jmp 0x140032c73
cmp byte [0x140090088], 0
jne 0x140032cd5
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140032cc1
lea rdx, [0x1400686e0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x140090080], rax
jmp 0x140032cc8
mov r10, qword [0x140090080]
mov eax, 1
mov byte [0x140090088], al
jmp 0x140032cdc
mov r10, qword [0x140090080]
mov rcx, qword [rbx]
mov rdx, rsi
test r10, r10
je 0x140032c6d
mov r8d, dword [rbx + 8]
xor r9d, r9d
call r10
jmp 0x140032c73
Function at 0x140033930
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x60], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400339b4
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400339b4
call fcn.140031c70
mov ebx, eax
jmp 0x140033abf
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400339d5
call fcn.140031c70
jmp 0x140033aae
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400339cb
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140033a10
mov ebx, 0x8007000e
jmp 0x140033ab0
mov ecx, eax
test eax, eax
je 0x140033a42
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140033af7
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140033a42
lea rcx, [rsp + 0x60]
call fcn.140031c44
jmp 0x140033a4c
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x140033a5e
cmp qword [rsp + 0x60], rdi
je 0x140033a06
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1400339cb
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.140033788
mov ebx, eax
test rsi, rsi
je 0x140033abf
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x140033ad6
lea rcx, [rsp + 0x60]
call fcn.140031c20
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140001020
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.1400312f0
int3
Function at 0x140034d68
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x260
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x278], rbx
mov rax, qword [0x14008d310]
xor rax, rbp
mov qword [rbp + 0x210], rax
mov r12, r8
mov esi, edx
mov rdi, rcx
xor r13d, r13d
mov ebx, r13d
mov qword [rbp + 8], rbx
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r15, rax
or r14, 0xffffffffffffffff
test rax, rax
je 0x140034f07
cmp rax, r14
je 0x140034f07
cmp rax, 7
je 0x140034f07
xor eax, eax
mov dword [rbp], eax
lea r8d, [r13 + 2]
lea rdx, [rbp]
lea rcx, str.vsconsoleoutput
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, r13d
cmp word [rbp], 0x31
sete al
test eax, eax
je 0x140034f07
test r12, r12
je 0x140034f72
mov rax, r14
inc rax
cmp word [r12 + rax*2], r13w
jne 0x140034e11
inc eax
cdqe
lea r14, [rax + rax]
mov eax, 0x80000000
add rax, r14
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x140034ed8
movsxd rdi, r14d
cmp r14d, 0x400
jg 0x140034e77
mov rcx, rdi
call fcn.1400374e0
test al, al
je 0x140034e77
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x140034e64
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400020e0
sub rsp, rax
lea rsi, [rsp + 0x40]
jmp 0x140034ea0
mov rax, rdi
not rax
cmp rax, 0x10
jb 0x140034fae
lea rcx, [rdi + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140034ed8
mov qword [rax], r13
mov rbx, rax
lea rsi, [rax + 0x10]
test rsi, rsi
je 0x140034ed8
mov byte [rsi], r13b
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rsi
or r9d, 0xffffffff
mov r8, r12
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb rdi, rdi
and rdi, rsi
jmp 0x140034edb
mov rdi, r13
test rdi, rdi
je 0x140034f72
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov r8d, eax
mov qword [rsp + 0x20], r13
lea r9, [rbp]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140034f72
mov word [rbp + 0x10], r13w
mov r9d, 0x100
lea r8, [rbp + 0x10]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadStringW]
mov rdx, r12
lea rcx, [rbp]
call fcn.140002cec
nop
lea rcx, [rbp]
call fcn.140008880
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [rbp + 0x10]
mov rdx, qword [rbp]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rbp]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140034f6e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp + 8]
jmp 0x140034f80
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
jne 0x140034f74
mov rcx, qword [rbp + 0x210]
xor rcx, rbp
call fcn.140001020
mov rbx, qword [rbp + 0x278]
lea rsp, [rbp + 0x220]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80070216
call fcn.1400312f0
int3
Function at 0x140035318
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rbx, rcx
and qword [rbp - 0x20], 0
and dword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
lea rdx, str.NewConfigurationWritten
lea rcx, [rbp + 0x28]
call fcn.140002cec
and qword [rbp + 0x20], 0
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, [0x14008eab0]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400353a7
mov rcx, qword [rbp + 0x20]
mov qword [rbp - 0x20], rcx
and dword [rbp - 0x18], eax
mov dword [rbp + 0x18], 1
lea r9d, [rax + 4]
mov dword [rsp + 0x28], r9d
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rbp + 0x28]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400353c6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1400353d5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret

Function at 0x1400354f0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbx
sub rsp, 0x50
and qword [rax - 0x28], 0
and dword [rax - 0x20], 0
and qword [rax - 0x18], 0
and qword [rax + 0x10], 0
lea rax, [rax + 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, [0x14008eab0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140035566
mov rbx, qword [rsp + 0x68]
mov dword [rsp + 0x28], 0x34
lea rax, str.DevenvUpdateConfiguration
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ConfigurationChangedReason
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1400355be
call fcn.1400027c4
mov rcx, rax
test rax, rax
je 0x1400355d2
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea r8, str.ConfigurationChangedReason
lea rdx, str.Cannot_find_a_place_to_write_out_the__s__values_
lea rcx, [rsp + 0x68]
call fcn.1400069fc
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400355b9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1400355cc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x50
pop rbx
ret
mov ecx, 0x80004005
call fcn.1400312f0
int3
Function at 0x1400355e0
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov dil, r9b
mov r15, r8
mov r14, rdx
mov r12, rcx
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov rbx, qword [rbp - 0x28]
xor esi, esi
mov qword [rbp - 0x40], rsi
and dword [rbp - 0x38], esi
and qword [rbp - 0x30], rsi
test dil, dil
je 0x140035678
and qword [rbp - 0x48], rsi
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 2]
xor r8d, r8d
mov rdx, r14
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140035678
mov rsi, qword [rbp - 0x48]
mov qword [rbp - 0x40], rsi
and dword [rbp - 0x38], eax
test eax, eax
je 0x140035713
and qword [rbp - 0x50], 0
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
mov rdx, r14
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400356bd
test rsi, rsi
je 0x1400356ad
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rbp - 0x50]
mov qword [rbp - 0x40], rsi
and dword [rbp - 0x38], 0
test eax, eax
je 0x140035713
call fcn.1400027c4
mov rcx, rax
test rax, rax
je 0x14003576a
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x50], rax
mov r8, r15
lea rdx, str.Cannot_find_a_place_to_write_out_the__s_value_
lea rcx, [rbp - 0x50]
call fcn.1400069fc
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003570d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rbp - 0x40]
jmp 0x14003573e
mov qword [rbp - 0x50], rbx
mov dword [rsp + 0x28], 8
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, SafeArrayDestroy
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
test rsi, rsi
je 0x14003574c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140001020
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400312f0
int3
Function at 0x140035e4c
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edi, edi
mov rsi, r9
mov rax, r8
mov rbx, rcx
test r9, r9
je 0x140035f1a
test rax, rax
je 0x140035f1a
cmp qword [rcx], rdi
je 0x140035f1a
mov qword [rsp + 0x20], r9
xor r8d, r8d
xor r9d, r9d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140035eac
lea eax, [rdi + 2]
jmp 0x140035f1f
mov rdx, qword [rbx]
lea rcx, [rsp + 0x30]
call fcn.14003717c
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140035f02
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rcx + rdx], dil
jne 0x140035ec7
inc rdx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strlwr_s]
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsi]
xor r9d, r9d
mov r8d, eax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x140035f07
mov edi, 3
lea rax, [rsp + 0x38]
cmp rcx, rax
je 0x140035f16
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, edi
jmp 0x140035f1f
mov eax, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140001020
add rsp, 0xd0
pop rdi
pop rsi
pop rbx
ret