joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001e024
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1000301f8], rdi
je 0x10001e07d
cmp rax, rdi
jne 0x10001e070
mov esi, 1
jmp 0x10001e07d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001e057
mov eax, dword [0x1000301f0]
cmp eax, 1
jne 0x10001e092
lea ecx, [rax + 0x1e]
call fcn.10016c000
jmp 0x10001e0f7
mov eax, dword [0x1000301f0]
test eax, eax
jne 0x10001e0ed
mov dword [0x1000301f0], 1
lea r12, [0x100001690]
lea rdi, [0x100001678]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x10001e0df
test eax, eax
jne 0x10001e0df
mov rcx, qword [rdi]
test rcx, rcx
je 0x10001e0d4
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x10001e0bd
test eax, eax
je 0x10001e0f7
mov eax, 0xff
jmp 0x10001e241
mov dword [0x10002f924], 1
mov eax, dword [0x1000301f0]
cmp eax, 1
jne 0x10001e11f
lea rdx, [0x100001670]
lea rcx, [0x1000015f8]
call sub.msvcrt.dll__initterm
mov dword [0x1000301f0], 2
test esi, esi
jne 0x10001e12c
xor eax, eax
xchg qword [0x1000301f8], rax
cmp qword [0x100030210], 0
je 0x10001e155
lea rcx, [0x100030210]
call fcn.10001e5dc
test eax, eax
je 0x10001e155
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100030210]
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
ja 0x10001e1e0
cmp byte [rdi], 0
je 0x10001e176
test esi, esi
jne 0x10001e1e0
cmp byte [rdi], 0
je 0x10001e18a
cmp byte [rdi], 0x20
ja 0x10001e18a
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10001e176
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rdi
xor edx, edx
lea rcx, [0x100000000]
call fcn.100008db4
mov dword [0x10002f920], eax
cmp dword [0x10002f904], 0
jne 0x10001e1c9
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x10002f924], 0
jne 0x10001e1de
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x10002f920]
jmp 0x10001e241
cmp byte [rdi], 0x22
jne 0x10001e1f2
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x10001e207
inc rdi
mov qword [rsp + 0x28], rdi
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10001e168
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
sub rsp, 0x28
call fcn.10001e6e4
add rsp, 0x28
jmp 0x10001e024
Function at 0x140001000
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [rsp + 8], ecx
push rbp
sub rsp, 0x1a0
lea rbp, [rsp + 0x20]
lea rcx, [0x14000a0a4]
call fcn.1400013d0
mov eax, dword [rbp + 0x190]
test rax, rax
jne 0x14000102f
xor eax, eax
jmp 0x14000111a
mov rax, qword gs:[0x60]
mov qword [rbp], rax
mov rax, qword [rbp]
mov rax, qword [rax + 0x18]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
mov qword [rbp + 0x10], rax
cmp qword [rbp + 0x10], 0
je 0x140001118
mov rax, qword [rbp + 0x10]
movzx eax, word [rax + 0x48]
test rax, rax
je 0x140001106
mov rax, qword [rbp + 0x10]
movzx eax, word [rax + 0x48]
cmp eax, 0x104
jge 0x140001106
mov dword [rbp + 0x130], 0
mov eax, dword [rbp + 0x130]
mov rcx, qword [rbp + 0x10]
mov rcx, qword [rcx + 0x50]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x1400010d4
mov eax, dword [rbp + 0x130]
mov rcx, qword [rbp + 0x10]
mov rcx, qword [rcx + 0x50]
movzx ecx, byte [rcx + rax*2]
call fcn.140004180
mov ecx, dword [rbp + 0x130]
mov byte [rbp + rcx + 0x20], al
mov eax, dword [rbp + 0x130]
inc eax
mov dword [rbp + 0x130], eax
jmp 0x14000108d
mov eax, dword [rbp + 0x130]
mov byte [rbp + rax + 0x20], 0
lea rcx, [rbp + 0x20]
call fcn.140001300
cmp eax, dword [rbp + 0x190]
jne 0x140001104
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x10]
mov rax, qword [rcx + rax + 0x20]
jmp 0x14000111a
jmp 0x140001108
jmp 0x140001118
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov qword [rbp + 0x10], rax
jmp 0x140001054
xor eax, eax
lea rsp, [rbp + 0x180]
pop rbp
ret
Function at 0x140001130
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x1b0
lea rbp, [rsp + 0x20]
lea rcx, [0x14000a0a4]
call fcn.1400013d0
cmp qword [rbp + 0x1b0], 0
je 0x140001169
mov eax, dword [rbp + 0x1b8]
test rax, rax
jne 0x140001170
xor eax, eax
jmp 0x1400012e6
mov rax, qword [rbp + 0x1b0]
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140001198
xor eax, eax
jmp 0x1400012e6
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
cmp dword [rax], 0x4550
je 0x1400011c1
xor eax, eax
jmp 0x1400012e6
lea rax, [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rdi, rax
lea rsi, [rcx + 0x18]
mov ecx, 0xf0
rep movsb byte [rdi], byte [rsi]
mov eax, 8
imul rax, rax, 0
mov eax, dword [rbp + rax + 0x90]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x110], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x120], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov dword [rbp + 0x130], 0
jmp 0x140001263
mov eax, dword [rbp + 0x130]
inc eax
mov dword [rbp + 0x130], eax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x14]
cmp dword [rbp + 0x130], eax
jae 0x1400012e4
mov eax, dword [rbp + 0x130]
mov rcx, qword [rbp + 0x118]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x138], rax
mov eax, dword [rbp + 0x130]
mov rcx, qword [rbp + 0x128]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rbp + 0x120]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x140], rax
mov rcx, qword [rbp + 0x138]
call fcn.140001300
cmp dword [rbp + 0x1b8], eax
jne 0x1400012df
mov rax, qword [rbp + 0x140]
jmp 0x1400012e6
jmp 0x140001255
xor eax, eax
lea rsp, [rbp + 0x190]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001a70
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x1d0
lea rbp, [rsp + 0x30]
lea rcx, [0x14000a294]
call fcn.1400013d0
mov rax, qword [rbp + 0x1c0]
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140001ac2
xor eax, eax
jmp 0x140001ca8
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
cmp dword [rax], 0x4550
je 0x140001aeb
xor eax, eax
jmp 0x140001ca8
lea rax, [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rdi, rax
lea rsi, [rcx + 0x18]
mov ecx, 0xf0
rep movsb byte [rdi], byte [rsi]
mov eax, 8
imul rax, rax, 0
mov eax, dword [rbp + rax + 0x90]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x110], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x120], rax
mov rax, qword [rbp + 0x110]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
call fcn.140004100
mov dword [rbp + 0x130], eax
xor edx, edx
mov eax, dword [rbp + 0x130]
mov rcx, qword [rbp + 0x110]
div dword [rcx + 0x14]
mov eax, edx
mov dword [rbp + 0x130], eax
xor eax, eax
cmp eax, 1
je 0x140001c35
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0x400
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x138], rax
cmp qword [rbp + 0x138], 0
je 0x140001c35
mov r8d, dword [rbp + 0x130]
lea rdx, str.e_34m_t___Selected_export_number:__d_ne_0m
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.USER32.dll_wsprintfA]
mov dword [rbp + 0x140], eax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbp + 0x140]
mov rdx, qword [rbp + 0x138]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0x138]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
movsxd rax, dword [rbp + 0x130]
mov rcx, qword [rbp + 0x118]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x148], rax
movsxd rax, dword [rbp + 0x130]
mov rcx, qword [rbp + 0x128]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rbp + 0x120]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x150], rax
mov rax, qword [rbp + 0x1c8]
mov rcx, qword [rbp + 0x148]
mov qword [rax], rcx
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rbp + 0x150]
mov qword [rax], rcx
xor eax, eax
lea rsp, [rbp + 0x1a0]
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000189c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400018e8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400018e0
cmp dword [rcx + 0x3c], edx
jl 0x1400018e0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400018e0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400018e8
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140001d54
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 [0x140017018]
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 0x140001e12
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 0x140001e12
cmp dword [rbp - 0x20], edi
je 0x140001e12
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 0x140001e12
cmp dword [rbp - 0x1c], 0x3000
setae bl
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140001e27
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140001560
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140001e54
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 [0x140017018]
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 0x140001ef1
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 0x140001ef1
cmp dword [rbp - 0x20], edi
cmovne ebx, esi
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140001f06
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140001560
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 0x140002814
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 0x140002897
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rdi + 0x30], 4
jge 0x14000284c
mov ebx, 0x8007139f
jmp 0x14000289c
test rsi, rsi
jne 0x140002858
mov ebx, 0x80070057
jmp 0x14000289c
mov rdx, qword [rdi + 0x80]
mov rcx, rsi
call fcn.140008a6c
test eax, eax
jne 0x140002872
mov ebx, 0x80070005
jmp 0x14000289c
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 0x14000289c
mov ebx, 0x8007000e
lea rcx, [rdi + 8]
cmp dword [rdi], 0
je 0x1400028b1
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 0x140004268
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_35
mov ebp, r9d
mov rsi, r8
mov rdi, rdx
call fcn.140001b88
mov rbx, rax
test rax, rax
je 0x1400043b9
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov qword [rbx + 8], rax
test rax, rax
je 0x1400043b1
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1400043a1
mov eax, dword [rsp + 0x70]
lea r8, [0x140003940]
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 0x140004375
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
je 0x140004350
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14000434a
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x30], eax
jmp 0x140004364
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 0x140004391
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14000438d
movzx eax, ax
or eax, 0x80070000
mov dword [rsp + 0x30], eax
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.140001c04
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 0x1400044d0
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 esi, esi
and qword [rax + 8], rbx
mov r14, r9
mov r15d, r8d
mov r12, rdx
lea ebp, [rbx + 1]
test r8d, r8d
je 0x1400045a1
mov rdi, r9
test ebp, ebp
je 0x140004530
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 0x14000457c
xor ebp, ebp
test r14, r14
je 0x14000456f
mov rdx, qword [rdi]
test rdx, rdx
je 0x14000456f
mov rcx, qword [rsp + 0x60]
lea rax, [0x140013cb0]
mov dword [rsp + 0x28], 1
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000457c
inc esi
add rdi, 8
cmp esi, r15d
jae 0x14000458b
jmp 0x14000450b
jg 0x140004582
mov ebx, eax
jmp 0x14000458b
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400045a1
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 0x140005170
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 0x140005334
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rsi + 0x30], 7
jge 0x1400051c9
mov ebx, 0x8007139f
jmp 0x1400052f3
test rdi, rdi
je 0x1400052ee
test r14, r14
je 0x1400052ee
mov rdx, qword [rsi + 0x40]
sub rdx, rdi
movzx eax, word [rdi]
movzx ecx, word [rdi + rdx]
sub eax, ecx
jne 0x1400051f5
add rdi, 2
test ecx, ecx
jne 0x1400051e2
test eax, eax
je 0x140005203
mov ebx, 0x80070005
jmp 0x1400052f3
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 0x1400052dd
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 0x1400052dd
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 0x1400052ab
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 0x1400052dd
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 0x1400052f3
jg 0x1400052e3
mov ebx, eax
jmp 0x1400052f3
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1400052f3
mov ebx, 0x80070057
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x140005308
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14000531d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140005339
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x140005339
mov ebx, 0x8007000e
cmp dword [rsi], 0
je 0x14000534e
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 0x140005700
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.14000b79c
mov ebx, eax
test eax, eax
jne 0x140005809
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 0x14000578a
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 0x1400057fa
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 0x1400057c1
mov eax, dword [rbp + 0x20]
inc eax
jmp 0x1400057c6
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 0x140005809
jg 0x140005800
mov ebx, eax
jmp 0x140005809
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14000581e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret