joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14041e420
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x24]
mov rbx, rcx
cmp eax, 0xca
jne 0x14041e459
call fcn.140428c40
cmp byte [rbx + 0x160], 0
je 0x14041e450
mov dword [rbx + 0x24], 0xcf
mov al, 1
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x24], 0xcb
jmp 0x14041e464
cmp eax, 0xcb
jne 0x14041e4e7
mov rax, qword [rbx + 0x328]
cmp byte [rax + 0x20], 0
je 0x14041e4ce
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14041e47f
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx + 0x328]
mov rcx, rbx
call qword [rax]
test eax, eax
je 0x14041e4c6
cmp eax, 2
je 0x14041e4ce
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14041e471
cmp eax, 3
je 0x14041e4a7
cmp eax, 1
jne 0x14041e471
inc dword [rcx + 8]
mov rdx, qword [rbx + 0x10]
mov r8d, dword [rdx + 0xc]
cmp dword [rcx + 8], r8d
jl 0x14041e471
mov ecx, dword [rbx + 0x28c]
add ecx, r8d
mov dword [rdx + 0xc], ecx
jmp 0x14041e471
xor al, al
add rsp, 0x20
pop rbx
ret
mov eax, dword [rbx + 0x1a4]
mov rcx, rbx
mov dword [rbx + 0x1ac], eax
add rsp, 0x20
pop rbx
jmp 0x14041e840
cmp eax, 0xcc
je 0x14041e509
mov rax, qword [rcx]
mov dword [rax + 0x28], 0x14
mov rcx, qword [rcx]
mov eax, dword [rbx + 0x24]
mov dword [rcx + 0x2c], eax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp 0x14041e840
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x20
xor ebp, ebp
mov rbx, rcx
cmp dword [rcx + 0x24], 0xcc
je 0x14041e86e
mov rax, qword [rcx + 0x308]
call qword [rax]
mov dword [rbx + 0x1a0], ebp
mov dword [rbx + 0x24], 0xcc
mov rax, qword [rbx + 0x308]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
cmp byte [rax + 0x10], bpl
je 0x14041e926
mov ecx, dword [rbx + 0x1a0]
nop
cmp ecx, dword [rbx + 0x180]
jae 0x14041e8f5
nop dword [rax + rax]
mov rax, qword [rbx + 0x10]
mov edi, ecx
test rax, rax
je 0x14041e8ca
mov dword [rax + 8], ecx
mov rcx, qword [rbx + 0x10]
mov eax, dword [rbx + 0x180]
mov dword [rcx + 0xc], eax
mov rcx, rbx
mov rax, qword [rbx + 0x10]
call qword [rax]
mov edi, dword [rbx + 0x1a0]
mov rax, qword [rbx + 0x310]
lea r8, [rbx + 0x1a0]
xor r9d, r9d
xor edx, edx
mov rcx, rbx
call qword [rax + 8]
mov ecx, dword [rbx + 0x1a0]
cmp ecx, edi
je 0x14041e951
cmp ecx, dword [rbx + 0x180]
jb 0x14041e8a0
mov rax, qword [rbx + 0x308]
mov rcx, rbx
call qword [rax + 8]
mov rax, qword [rbx + 0x308]
mov rcx, rbx
call qword [rax]
mov dword [rbx + 0x1a0], ebp
mov ecx, ebp
mov rax, qword [rbx + 0x308]
cmp byte [rax + 0x10], cl
jne 0x14041e890
cmp byte [rbx + 0x161], bpl
mov al, 1
setne bpl
add ebp, 0xcd
mov dword [rbx + 0x24], ebp
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret
xor al, al
jmp 0x14041e93c
Function at 0x14042ff70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rdi
push r13
push r15
sub rsp, 0x30
mov r13d, dword [rcx + 0x16c]
mov rdi, rcx
mov rbx, qword [rcx + 0x358]
cmp r13d, 1
mov r8d, 0x2fe
mov qword [rsp + 0x68], rbx
sete al
mov edx, 1
mov byte [rbx + 0x38], al
mov rax, qword [rcx + 8]
mov ecx, 0x100
mov r9d, dword [rdi + 0x184]
cmovne r8d, ecx
mov rcx, rdi
call qword [rax + 0x10]
mov ebp, dword [rbx + 0x28]
xor r15d, r15d
mov qword [rbx + 0x30], rax
cmp dword [rdi + 0x184], r15d
jle 0x1404300f4
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x28], r12
lea r12, [rbx + 0x3c]
mov qword [rsp + 0x20], r14
xor r14d, r14d
mov esi, dword [r12]
mov eax, ebp
cdq
idiv esi
mov ebp, eax
cmp r13d, 1
jne 0x14043000f
mov rax, qword [rbx + 0x30]
add qword [r14 + rax], 0xff
mov rax, qword [rbx + 0x30]
lea r11d, [rsi*2 - 2]
xor r8d, r8d
xor r10d, r10d
mov rdi, qword [r14 + rax]
lea eax, [rsi + 0xfe]
cdq
idiv r11d
xor ebx, ebx
mov r9d, eax
cmp r10d, r9d
jle 0x140430067
imul eax, r8d, 0x1fe
lea ecx, [rsi + 0xfe]
add ecx, eax
nop dword [rax + rax]
add ecx, 0x1fe
inc r8d
mov eax, ecx
cdq
idiv r11d
mov r9d, eax
cmp r10d, eax
jg 0x140430050
movzx eax, bpl
inc r10d
movzx ecx, r8b
imul ecx, eax
mov byte [rbx + rdi], cl
inc rbx
cmp rbx, 0xff
jle 0x140430034
cmp r13d, 1
jne 0x1404300c3
mov ecx, r13d
lea rdx, [rdi - 1]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi]
mov byte [rdx], al
lea rdx, [rdx - 1]
movzx eax, byte [rdi + 0xff]
mov byte [rdi + rcx + 0xff], al
inc rcx
cmp rcx, 0xff
jle 0x1404300a0
mov rax, qword [rsp + 0x60]
inc r15d
mov rbx, qword [rsp + 0x68]
add r12, 4
add r14, 8
cmp r15d, dword [rax + 0x184]
jl 0x14042fff2
mov r14, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r13
pop rdi
pop rbp
pop rbx
ret
Function at 0x100001400
Capabilities:
Terminate process

Disassembly:
mov word [rbx], di
add rbx, 2
cmp word [rbx], di
je 0x100001683
lea rdx, str._ProcessID
lea rcx, [rsp + 0x90]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, edi
jne 0x100001683
lea rax, [rsp + 0x30]
mov edx, 0x29
lea rcx, [rsp + 0x30]
sub rbx, rax
mov r8d, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea rax, [rdx + 0x7fffffd5]
cmp rax, rdi
je 0x100001072
movzx eax, word [rbx + rcx]
cmp ax, di
je 0x100001072
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x100001050
cmp rdx, rdi
je 0x100001690
cmp r8d, edi
mov word [rcx], di
jl 0x1000010c8
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ole32.dll_CLSIDFromString]
cmp eax, edi
jl 0x1000010c8
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, edi
jl 0x1000010c8
lea rcx, [rsp + 0x20]
xor edx, edx
call sub.ole32.dll_CoRegisterSurrogateEx
call qword [sym.imp.ole32.dll_CoUninitialize]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.100128000
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2b0
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2b0
mov rax, qword [0x100003018]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xor r9d, r9d
mov rbx, r8
xor ecx, ecx
lea edx, [r9 + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
xor edi, edi
lea rax, [rsp + 0x90]
mov r11d, 0x105
lea rcx, [rsp + 0x90]
mov edx, edi
sub rbx, rax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea rax, [r11 + 0x7ffffef9]
cmp rax, rdi
je 0x100001482
movzx eax, word [rbx + rcx]
cmp ax, di
je 0x100001482
mov word [rcx], ax
add rcx, 2
sub r11, 1
jne 0x100001460
cmp r11, rdi
je 0x100001670
cmp edx, edi
mov word [rcx], di
jl 0x1000010c8
lea rbx, [rsp + 0x90]
cmp word [rsp + 0x90], di
je 0x100001683
cmp word [rbx], 0x3a
je section..text
add rbx, 2
cmp word [rbx], di
jne 0x1000014ac
jmp 0x10000167e
sub rcx, 2
mov edx, 0x8007007a
jmp 0x10000148b
jmp 0x100001007
lea rbx, [rsp + 0x90]
jmp 0x10000102d
sub rcx, 2
mov r8d, 0x8007007a
jmp 0x10000107b
Function at 0x1400012f4
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140016018]
xor rax, rsp
mov qword [rbp - 8], rax
xor edi, edi
mov word [rbp - 0xc], 0x500
lea rax, [rbp - 0x18]
mov dword [rbp - 0x20], edi
mov qword [r11 - 0x38], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], edi
xor r9d, r9d
mov dword [rsp + 0x40], edi
lea esi, [rdi + 1]
mov dword [rsp + 0x38], edi
lea r8d, [rdi + 0x12]
mov dword [rsp + 0x30], edi
mov dl, sil
mov dword [rsp + 0x28], edi
mov ebx, edi
mov dword [rsp + 0x20], edi
mov dword [rbp - 0x10], edi
mov qword [rbp - 0x18], rdi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x140001391
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
je 0x140001391
cmp dword [rbp - 0x20], edi
cmovne ebx, esi
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400013a6
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14000f1e0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x1400013d4
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140016018]
xor rax, rsp
mov qword [rbp - 8], rax
xor edi, edi
mov word [rbp - 0xc], 0x500
lea rax, [rbp - 0x18]
mov dword [rbp - 0x20], edi
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], edi
mov r9d, 0x220
mov dword [rsp + 0x40], edi
lea r8d, [rdi + 0x20]
mov dword [rsp + 0x38], edi
mov dl, 2
mov dword [rsp + 0x30], edi
mov ebx, edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov dword [rbp - 0x10], edi
mov qword [rbp - 0x18], rdi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x140001492
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
je 0x140001492
cmp dword [rbp - 0x20], edi
je 0x140001492
lea rdx, [rbp - 0x1c]
mov dword [rbp - 0x1c], 0x1000
xor ecx, ecx
call qword [sym.imp.iertutil.dll_Ordinal_35]
nop dword [rax + rax]
test eax, eax
jne 0x140001492
cmp dword [rbp - 0x1c], 0x3000
setae bl
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400014a7
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14000f1e0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140002154
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
xor ecx, ecx
xor esi, esi
mov qword [rax + 8], rcx
mov r14, r9
mov r15d, r8d
mov r12, rdx
lea ebp, [rbx + 1]
test r8d, r8d
je 0x14000222b
mov rdi, r9
test ebp, ebp
je 0x1400021bb
lea r8, [rsp + 0x60]
mov rcx, r12
lea rdx, str.Distribution_Units
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x140002207
mov rcx, qword [rsp + 0x60]
xor ebp, ebp
test r14, r14
je 0x1400021fa
mov rdx, qword [rdi]
test rdx, rdx
je 0x1400021fa
lea rax, [0x140012c00]
mov dword [rsp + 0x28], 1
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140002207
mov rcx, qword [rsp + 0x60]
inc esi
add rdi, 8
cmp esi, r15d
jae 0x14000221a
jmp 0x140002191
mov rcx, qword [rsp + 0x60]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test rcx, rcx
je 0x14000222b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140002578
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 8], 0
lea rcx, [rbp - 8]
and qword [rbp - 0x10], 0
mov rdi, rdx
and dword [rbp + 0x38], 0
and dword [rbp + 0x20], 0
mov dword [rbp + 0x30], 4
call fcn.14000ab1c
mov ebx, eax
test eax, eax
jne 0x140002680
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionSharedDlls
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140002602
mov rcx, qword [rbp - 8]
lea r8, [rbp - 0x10]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionSharedDlls
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x140002672
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x38]
lea rax, [rbp + 0x20]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
test eax, eax
jne 0x140002639
mov eax, dword [rbp + 0x20]
inc eax
jmp 0x14000263e
mov eax, 1
mov rcx, qword [rbp - 0x10]
mov r9d, 4
mov dword [rbp + 0x20], eax
xor r8d, r8d
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], 4
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
nop dword [rax + rax]
test eax, eax
je 0x140002680
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140002695
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
Function at 0x140003f04
Capabilities:
Create thread

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, 0x40
mov r14, rcx
mov dword [rax - 0x18], 0x8007000e
mov ecx, Ordinal_34
mov ebp, r9d
mov rsi, r8
mov rdi, rdx
call fcn.14000123c
mov rbx, rax
test rax, rax
je 0x140004059
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov qword [rbx + 8], rax
test rax, rax
je 0x140004051
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x140004041
mov eax, dword [rsp + 0x70]
lea r8, [0x140003a00]
and qword [rsp + 0x28], 0
mov r9, rbx
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
mov dword [rbx + 0x1c], eax
mov qword [rbx], r14
mov dword [rbx + 0x18], ebp
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140004013
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
je 0x140003fee
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x30], ecx
jmp 0x140004002
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140004031
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rcx, qword [rbx + 8]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rcx, rbx
call fcn.1400012b8
mov eax, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140004218
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r9
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
xor ebx, ebx
mov r14, r8
and qword [rbp - 8], rbx
mov rdi, rdx
and qword [rbp - 0x10], rbx
mov rsi, rcx
and qword [rbp + 0x20], rbx
cmp dword [rcx], ebx
je 0x1400043db
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rsi + 0x30], 7
jge 0x140004271
mov ebx, 0x8007139f
jmp 0x14000439a
test rdi, rdi
je 0x140004395
test r14, r14
je 0x140004395
mov rdx, qword [rsi + 0x40]
sub rdx, rdi
movzx eax, word [rdi]
movzx ecx, word [rdi + rdx]
sub eax, ecx
jne 0x14000429d
add rdi, 2
test ecx, ecx
jne 0x14000428a
test eax, eax
je 0x1400042ab
mov ebx, 0x80070005
jmp 0x14000439a
lea rax, [rbp - 8]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.CLSID
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140004385
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov edi, 0x2001f
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140004385
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x20]
mov r9d, edi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.LanguageCheckPeriod
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140004353
mov rcx, qword [rbp - 0x10]
lea r8, [rbp + 0x20]
lea rdx, str.LanguageCheckPeriod
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x140004385
mov rcx, qword [rbp + 0x20]
lea rax, [rbp + 0x3c]
mov r9d, 4
lea rdx, str.LastCheckedHi
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14000439a
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000439a
mov ebx, 0x80070057
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x1400043af
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400043c4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x1400043e0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x1400043e0
mov ebx, 0x8007000e
cmp dword [rsi], 0
je 0x1400043f5
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x1400053b4
Capabilities:
Delete file
Set 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], ebx
je 0x140005437
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rdi + 0x30], 4
jge 0x1400053ec
mov ebx, 0x8007139f
jmp 0x14000543c
test rsi, rsi
jne 0x1400053f8
mov ebx, 0x80070057
jmp 0x14000543c
mov rdx, qword [rdi + 0x80]
mov rcx, rsi
call fcn.140006cf8
test eax, eax
jne 0x140005412
mov ebx, 0x80070005
jmp 0x14000543c
mov edx, 0x80
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
jmp 0x14000543c
mov ebx, 0x8007000e
lea rcx, [rdi + 8]
cmp dword [rdi], 0
je 0x140005451
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400070e4
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x140016018]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edi, edi
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x140007192
cmp dword [rbx + 0x10], 0
jne 0x140007189
cmp qword [rbx], 0
je 0x140007189
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call sub.msvcrt.dll_memset
mov rdx, qword [rbx]
lea r9, [rsp + 0x30]
mov r8d, 0x104
mov dword [rsp + 0x20], 0x104
mov rcx, rsi
call fcn.140006e98
test eax, eax
je 0x140007184
mov edx, 0x80
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop dword [rax + rax]
test eax, eax
je 0x140007184
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [rax + rax]
test eax, eax
jne 0x140007189
mov edi, 1
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140007115
mov eax, edi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14000f1e0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400075d4
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
xor r9d, r9d
and dword [rax - 0x20], 0
xor r8d, r8d
mov edx, 0x20000
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400076bb
and qword [rsp + 0x68], 0
lea rdx, [rsp + 0x68]
lea rcx, [0x14001329c]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
nop dword [rax + rax]
test eax, eax
je 0x140007690
and qword [rsp + 0x60], 0
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140008aec
mov ebx, eax
test eax, eax
js 0x14000767d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
xor ebx, ebx
test eax, eax
sete bl
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
jmp 0x1400076aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x1400076d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140007c38
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x140016018]
xor rax, rsp
mov qword [rbp + 0xf0], rax
cmp dword [0x140016758], 0
mov rsi, rdx
mov r14, rcx
mov edi, 1
mov ebx, 0x80004005
je 0x140007c92
lea rcx, [0x140016760]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp edi, 0x1f4
jg 0x140007ce1
lea rax, [0x1400132b4]
mov dword [rsp + 0x28], edi
mov r9, r14
mov qword [rsp + 0x20], rax
lea r8, str._s_s_d.tmp
mov edx, 0x104
mov rcx, rsi
call fcn.140006480
inc edi
mov ebx, eax
test eax, eax
js 0x140007e1b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140007c92
test ebx, ebx
js 0x140007e1b
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x48]
and qword [rsp + 0x48], 0
lea r9, [rbp + 0x50]
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0xa0]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x70]
lea rax, [rbp]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.1400079ac
mov ebx, eax
test eax, eax
js 0x140007e1b
lea r8, [rsp + 0x50]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateDirectoryExA]
nop dword [rax + rax]
mov r14d, 0x80070000
test eax, eax
jne 0x140007d6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140007def
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x2000000
xor r8d, r8d
mov edx, 0x1f0000
mov dword [rsp + 0x20], 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140007dd8
mov edx, 0x1240
mov r8d, 0x1200a9
mov rcx, rax
call qword [sym.imp.iertutil.dll_Ordinal_134]
nop dword [rax + rax]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140007def
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140007e05
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140007e1b
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
cmp dword [0x140016758], 0
je 0x140007e37
lea rcx, [0x140016760]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.14000f1e0
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret