joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003260
Capabilities:
Get graphical window text

Disassembly:
jmp 0x140003260
push rbp
push rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140074150]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, r9
mov rdi, r8
mov rbp, rcx
test r8, r8
jne 0x140003292
xor eax, eax
jmp 0x14000335b
sub edx, dword [rcx + 0x31c]
mov qword [rsp + 0x248], rbx
lea r8, [0x14005d0ac]
lea r9, [rdx + 0x1f]
mov ebx, edx
mov rdx, rsi
lea r9, [r9 + r9*4]
shl r9, 5
add r9, qword [rcx + 0x2d0]
mov rcx, rdi
call fcn.140001546
mov rax, qword [rbp + 0x2d0]
mov edx, dword [rax + rbx*4 + 0x5500]
sub edx, 0x502
cmp edx, 1
ja 0x14000334e
mov rcx, rbp
call fcn.1400010dc
mov rbx, rax
test rax, rax
je 0x140003353
xor eax, eax
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], ax
call fcn.14001cc90
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x14000334e
lea r8, [0x14005d0b4]
mov rdx, rsi
mov rcx, rdi
call fcn.1400013cf
lea r8, [rsp + 0x20]
mov rdx, rsi
mov rcx, rdi
call fcn.1400013cf
mov eax, 1
mov rbx, qword [rsp + 0x248]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14001cc60
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000e260
Capabilities:
Terminate thread

Disassembly:
jmp 0x14000e260
jmp 0x14000dbd0
lea rax, vtable.IToolbarBand.0
mov qword [rcx], rax
jmp 0x140001050
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x2f0]
test rcx, rcx
je 0x14000e2a5
or edx, 0xffffffff
call qword [sym.imp.COMCTL32.dll_ImageList_Remove]
mov rcx, qword [rbx + 0x2f0]
xor edx, edx
call qword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
mov rcx, qword [rbx + 0x2f0]
call qword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov qword [rbx + 0x2f0], 0
mov rcx, qword [rbx + 0x2f8]
test rcx, rcx
je 0x14000e2d1
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x2f8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x2f8], 0
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14000e2e8
call qword [sym.imp.USER32.dll_DestroyWindow]
mov qword [rbx + 0x18], 0
add rsp, 0x20
pop rbx
ret

Function at 0x14000e4b0
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14000e4b0
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140074150]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor eax, eax
xor esi, esi
mov rdi, rcx
mov dword [rdx], esi
mov qword [rdx + 4], rax
mov dword [rdx + 0xc], eax
mov rcx, qword [rcx + 0x2d0]
mov rbx, rdx
lea rdx, [rbp + 0x1f]
mov qword [rbp + 0x1f], rsi
call fcn.1400011bd
test eax, eax
je 0x14000e5f5
mov rcx, qword [rbp + 0x1f]
lea rax, [rbp + 0x17]
lea rdx, str.Toolbar
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0xf]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov qword [rbp + 0xf], rsi
mov dword [rbp + 0x17], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000e5eb
mov rcx, qword [rbp + 0xf]
lea rax, [rbp + 7]
lea rdx, [rdi + 0x24]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 1]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov qword [rbp - 1], rsi
mov dword [rbp + 7], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000e5e1
mov rcx, qword [rbp - 1]
lea rax, [rbp + 0x27]
xorps xmm0, xmm0
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2f]
lea r9, [rbp - 9]
movdqu xmmword [rbp + 0x2f], xmm0
lea rdx, [0x14005d940]
xor r8d, r8d
mov dword [rbp + 0x27], 0x10
mov qword [rsp + 0x20], rax
mov dword [rbp - 9], 3
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000e5d7
movups xmm0, xmmword [rbp + 0x2f]
movups xmmword [rbx], xmm0
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14001cc60
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000f8f0
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x14000f8f0
push rbx
sub rsp, 0x40
mov rbx, r8
test r8, r8
je 0x14000f94d
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000f94d
mov eax, dword [rsp + 0x60]
mov dword [rbx], eax
mov eax, 1
add rsp, 0x40
pop rbx
ret
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x14000f970
Capabilities:
Set registry value

Disassembly:
jmp 0x14000f970
sub rsp, 0x38
test r8, r8
jne 0x14000f980
xor eax, eax
add rsp, 0x38
ret
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9d, 4
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x38
ret
Function at 0x140010a20
Capabilities:
Check for unmoving mouse cursor

Disassembly:
jmp 0x140010a20
push rbx
sub rsp, 0x40
mov rax, qword [0x140074150]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
mov rcx, qword [0x1400767d8]
test rcx, rcx
je 0x140010beb
mov qword [rsp + 0x60], rdi
dec edx
je 0x140010b55
dec edx
je 0x140010ad8
dec edx
je 0x140010abb
dec edx
je 0x140010a89
cmp edx, 2
jne 0x140010be6
mov edx, 6
mov rcx, rbx
call qword [sym.imp.USER32.dll_KillTimer]
mov rcx, qword [0x1400767e0]
call fcn.140001569
jmp 0x140010be6
mov edx, 4
mov rcx, rbx
call qword [sym.imp.USER32.dll_KillTimer]
mov rcx, qword [0x1400767d8]
call fcn.1400014f6
mov rcx, qword [0x1400767d8]
mov r8d, dword [rax + 0x1c]
mov edx, dword [rax + 0x24]
call fcn.1400013f7
jmp 0x140010be6
mov edx, 3
mov rcx, rbx
call qword [sym.imp.USER32.dll_KillTimer]
mov dword [0x1400767c0], 0
jmp 0x140010be6
call fcn.1400014f6
mov edx, 2
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.USER32.dll_KillTimer]
lea rdx, [rsp + 0x28]
xorps xmm0, xmm0
mov rcx, rbx
movdqu xmmword [rsp + 0x28], xmm0
call qword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [rdi], 0
je 0x140010be6
cmp dword [rdi + 8], 0
je 0x140010be6
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x140010be6
mov rcx, qword [0x1400767d8]
call fcn.14000116d
jmp 0x140010be6
call fcn.1400014f6
cmp dword [rax], 0
je 0x140010be6
cmp dword [rax + 8], 0
jne 0x140010be6
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_GetCursorPos]
lea rdx, [rsp + 0x28]
mov rcx, rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
call qword [sym.imp.USER32.dll_GetWindowRect]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x28]
mov rdi, rax
call qword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x140010be6
cmp rdi, rbx
je 0x140010be6
test rdi, rdi
je 0x140010be6
lea edx, [rax + 4]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindow]
cmp rax, rbx
je 0x140010be6
mov edx, 1
mov rcx, rbx
call qword [sym.imp.USER32.dll_KillTimer]
mov rcx, qword [0x1400767d8]
call fcn.14000135c
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14001cc60
add rsp, 0x40
pop rbx
ret
Function at 0x1400128b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov edi, edx
mov rsi, rcx
mov qword [rcx], 0
call fcn.1400140e0
lea rcx, [0x140076ad0]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x1400740b8]
mov r15d, 0xf00dbaad
cmp rax, r15
je 0x14001290b
mov rbx, qword [0x1400740b8]
jmp 0x140012912
mov rbx, qword [0x1400740c0]
lea rcx, [0x140076ad0]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsp + 0x50], rbx
mov rdx, rdi
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14001299b
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
test rbp, rbp
je 0x14001299b
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov ecx, r14d
call fcn.14001b634
mov rdi, rax
mov r8d, r14d
mov rdx, rbx
mov rcx, rax
call fcn.14001b9a0
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadMenuIndirectW]
mov qword [rsi], rax
mov rcx, rdi
call fcn.14001d03c
nop
lea rcx, [0x140076ad0]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movzx eax, word [0x140076ad8]
test ax, ax
je 0x1400129da
mov edx, 0xffff
add ax, dx
mov word [0x140076ad8], ax
mov rcx, qword [0x1400740b8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp word [0x140076ad8], 0
jne 0x1400129e1
mov qword [0x1400740b8], r15
lea rcx, [0x140076ad0]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rax, rsi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140018b40
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x58]
xor r9d, r9d
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x140018ca0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x140018dc0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov r9d, dword [0x140076d34]
xor eax, eax
xor bl, bl
mov rdi, rdx
mov rsi, rcx
mov dword [rsp + 0x58], edx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x50], eax
test r9d, r9d
jne 0x140018e30
mov dword [0x140076d34], 0x20019
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x140018e29
cmp dword [rsp + 0x50], 0
je 0x140018e29
mov r9d, dword [0x140076d34]
bts r9d, 8
mov dword [0x140076d34], r9d
jmp 0x140018e30
mov r9d, dword [0x140076d34]
test rsi, rsi
je 0x140018f05
test rdi, rdi
je 0x140018f05
lea rax, [rsp + 0x60]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallNVIDIA_nView_Desktop_Manager
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018ea2
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
lea rdx, str.InstallLocation
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x60]
test eax, eax
sete bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x140018f05
mov r9d, dword [0x140076d34]
lea rax, [rsp + 0x60]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallB2FE1952_0186_46C3_BAEC_A80AA35AC5B8_Display.NView
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018f05
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
lea rdx, str.InstallLocation
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x60]
test eax, eax
sete bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400192b0
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x140074150]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor ebx, ebx
mov rdi, rcx
mov dword [rcx], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
lea edx, [rbx + 8]
mov rcx, rax
mov qword [rsp + 0x38], rbx
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140019313
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x140019426
mov ebx, eax
jmp 0x1400193d1
xor edx, edx
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x50]
lea ecx, [rdx + 0x1a]
mov dword [rsp + 0x34], 0x44
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x1400192fe
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
xor ecx, ecx
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x1400192fe
cmp dword [rsp + 0x30], ebx
jne 0x1400193cb
mov rcx, qword [rsp + 0x38]
mov r9d, 8
lea rax, [rsp + 0x34]
lea r8, [rsp + 0x40]
lea edx, [r9 + 0xb]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400193a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add eax, 0xfffffae0
test eax, 0xfffffffd
je 0x1400193d1
test ecx, ecx
jg 0x14001939d
mov ebx, ecx
jmp 0x1400193d1
movzx ebx, cx
or ebx, 0x80070000
jmp 0x1400193d1
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x1400192fe
cmp dword [rsp + 0x30], ebx
je 0x1400193d1
mov dword [rdi], 1
test rsi, rsi
je 0x1400193df
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400193ef
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400193ff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14001cc60
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1400193d1
Function at 0x140019440
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140074150]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor ebx, ebx
mov rsi, rcx
mov rbp, r8
mov dword [rsp + 0x50], edx
lea rcx, [rsp + 0x62]
mov r8d, 0x206
xor edx, edx
mov edi, ebx
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x60], bx
call fcn.14001cc90
lea edx, [rbx + 4]
mov r8, rbp
mov rcx, rsi
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x14001956a
nop word [rax + rax]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov edx, edi
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test eax, eax
je 0x1400194eb
cmp eax, 0xea
jne 0x140019539
lea rax, [rsp + 0x48]
lea rdx, [rsp + 0x60]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140019539
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov r8, rbp
call fcn.140019440
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x140019564
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x208
inc edi
mov dword [rsp + 0x40], 0x104
call fcn.14001cc90
cmp ebx, 0xea
jne 0x14001956e
xor ebx, ebx
jmp 0x1400194b0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140019573
mov eax, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001cc60
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140019a60
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140074150]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rsp + 0x60]
mov ecx, 0x104
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rbx, [rdi + 0x4010]
cmp word [rbx], 0
jne 0x140019abd
mov r8d, 0x104
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], esi
lea r9, str._snw__s__d.log
lea rcx, [rsp + 0x60]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call fcn.14001dbf0
lea r8, [0x14005f048]
lea rdx, [rsp + 0x60]
lea rcx, [rdi + 0x4218]
call fcn.14001e188
mov ebx, eax
test eax, eax
jne 0x140019b63
call fcn.1400198b0
lea r9, str.Logger.cpp
lea r8, str.Logger::openLogFile
mov rcx, rax
lea rax, str.05:27:28
lea edx, [rbx + 3]
mov qword [rsp + 0x40], rax
lea rax, str.Jul__4_2018
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, str.logging_to_file__s__logger_build__s__s_
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x160
call fcn.140019ff0
mov al, 1
jmp 0x140019c22
xor eax, eax
mov r9d, 0x400
mov r8d, ebx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov qword [rdi + 0x4218], rax
lea rax, [rsp + 0x50]
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
call fcn.1400198b0
mov rcx, rax
mov rax, qword [rsp + 0x50]
lea r9, str.Logger.cpp
mov qword [rsp + 0x38], rax
lea rax, str.API_function_failed_with__d:__s
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
lea r8, str.Logger::openLogFile
mov edx, 1
mov dword [rsp + 0x20], 0x166
call fcn.140019ff0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.1400198b0
lea r9, str.Logger.cpp
mov rcx, rax
lea rax, [rsp + 0x60]
lea r8, str.Logger::openLogFile
mov qword [rsp + 0x30], rax
lea rax, str.failed_to_open_log_file__s_
mov edx, 2
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x167
call fcn.140019ff0
xor al, al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001cc60
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14001a500
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
xor r14d, r14d
mov rsi, r8
lea ebp, [r14 + 1]
movzx ebx, r14w
dec edx
je 0x14001a540
dec edx
je 0x14001a539
dec edx
jne 0x14001a543
lea ebx, [rbp + 3]
jmp 0x14001a543
mov ebx, 2
jmp 0x14001a543
movzx ebx, bp
lea rdx, str.nview
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x14001a58e
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], r14d
xor r8d, r8d
mov r9d, ebp
movzx edx, bx
mov rcx, rax
mov word [rsp + 0x28], bp
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x14004637c
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x68]
sub rsp, 0x160
mov rax, qword [0x140074150]
xor rax, rsp
mov qword [rbp + 0x50], rax
lea rax, [rsp + 0x38]
mov rdi, rcx
lea rdx, str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140046483
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov esi, 0x104
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140046474
cmp dword [rsp + 0x30], 2
mov byte [rbp + 0x43], bl
lea rcx, [rsp + 0x40]
jne 0x14004643e
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
cmp eax, 0x103
setbe bl
jmp 0x140046474
mov edx, ebx
sub rcx, rdi
lea rax, [rsi + 0x7ffffefa]
test rax, rax
je 0x140046460
mov al, byte [rcx + rdi]
test al, al
je 0x140046460
mov byte [rdi], al
inc rdi
dec rsi
jne 0x140046443
test rsi, rsi
jne 0x14004646d
dec rdi
mov edx, 0x8007007a
test edx, edx
mov byte [rdi], bl
setns bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140046485
xor eax, eax
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14001cc60
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140046db0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x140046e73
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or rdx, 0xffffffffffffffff
mov ebp, eax
inc rdx
cmp word [rbx + rdx*2], si
jne 0x140046de4
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140046e76
mov edx, ebp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x140046e2f
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140046e33
test rax, rax
je 0x140046e73
mov rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
or rax, 0xffffffffffffffff
mov edx, edi
inc rax
cmp word [rbx + rax*2], 0
jne 0x140046e64
cmp rdx, rax
jb 0x140046e50
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret