joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ca30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov ebp, r9d
mov r13, r8
mov r12d, edx
mov rsi, rcx
cmp rcx, 0xffffffffffffffff
jne 0x14000ca5f
xor eax, eax
jmp 0x14000cc2a
xor r14d, r14d
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
mov edi, 1
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x80], r14d
mov qword [rsp + 0x40], r14
mov ebx, edi
mov dword [rsp + 0x34], r14d
call fcn.14000c9cc
cmp eax, r14d
je 0x14000cc02
cmp qword [rsp + 0x40], r14
je 0x14000cc02
lea rcx, [0x1400be770]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ecx, ecx
call fcn.14000de78
cmp eax, r14d
jne 0x14000cad1
mov ebx, r14d
jmp 0x14000cbf5
cmp dword [0x1400b7964], r14d
je 0x14000cae6
xor edx, edx
mov ecx, 0x72766c72
call fcn.140011d08
lea rcx, [rsp + 0x38]
mov dword [0x1400b7964], edi
mov dword [rsp + 0x38], r14d
call fcn.14000b6a4
mov edi, dword [rsp + 0x80]
cmp eax, edi
jne 0x14000cb10
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x38], eax
je 0x14000cb6b
mov rcx, qword [rsp + 0x40]
cmp dword [rsp + 0x34], r14d
je 0x14000cb28
cmp rcx, r14
je 0x14000cb2d
call fcn.140009d1c
jmp 0x14000cb2d
call fcn.140009e7c
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call fcn.14000c9cc
cmp eax, r14d
je 0x14000cb55
cmp qword [rsp + 0x40], r14
jne 0x14000cb64
xor edx, edx
mov ecx, 0x72766c73
call fcn.140011d08
mov ebx, r14d
mov edi, dword [rsp + 0x80]
cmp ebp, r14d
jne 0x14000cb7c
cmp edi, 0xea60
ja 0x14000cac9
cmp ebx, r14d
je 0x14000cb97
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov r9d, r12d
mov edx, edi
call fcn.14000c6f4
mov ebx, eax
mov dword [0x1400b7964], r14d
cmp ebx, r14d
je 0x14000cbe9
mov rdx, qword [rsp + 0x40]
lea r9, [rsp + 0x80]
mov r8d, edi
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, r14d
je 0x14000cbd4
mov ebx, 1
cmp dword [rsp + 0x80], edi
je 0x14000cbd7
mov ebx, r14d
mov rdx, qword [rsp + 0x40]
mov r8d, edi
mov rcx, r13
call fcn.14000b750
jmp 0x14000cbf5
xor edx, edx
mov ecx, 0x74697970
call fcn.140011d08
lea rcx, [0x1400be770]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
cmp rcx, r14
je 0x14000cc28
cmp dword [rsp + 0x34], r14d
je 0x14000cc23
call fcn.140009d1c
jmp 0x14000cc28
call fcn.140009e7c
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14000cfc0
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x10], 0
mov rdi, r8
mov rbp, rdx
mov esi, ecx
test rdx, rdx
jne 0x14000cff6
mov ecx, 0x36717370
xor edx, edx
call fcn.140011d08
jmp 0x14000d131
test r8, r8
jne 0x14000d002
mov ecx, 0x36717371
jmp 0x14000cfea
cmp ecx, 2
je 0x14000d018
cmp ecx, 8
je 0x14000d018
cmp ecx, 3
je 0x14000d018
mov ecx, 0x36717372
jmp 0x14000cfea
cmp qword [rdx], 0
je 0x14000d02a
xor edx, edx
mov ecx, 0x36717373
call fcn.140011d08
cmp dword [rdi], 0
je 0x14000d03b
xor edx, edx
mov ecx, 0x37667270
call fcn.140011d08
and dword [rdi], 0
mov r8, rdi
xor edx, edx
mov ecx, esi
call sub.Secur32.dll_GetUserNameExW
movzx ebx, al
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x14000d10a
cmp eax, 0xea
jne 0x14000d10a
mov ecx, dword [rdi]
lea eax, [rbx + 2]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140009ce4
mov rdx, rax
mov qword [rbp], rax
test rax, rax
jne 0x14000d094
mov ecx, 0x36717375
jmp 0x14000d10f
mov eax, dword [rdi]
lea r8, [rsp + 0x38]
mov ecx, esi
mov dword [rsp + 0x38], eax
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x14000d0b1
mov ecx, 0x36717376
jmp 0x14000d10f
mov eax, dword [rdi]
dec eax
cmp dword [rsp + 0x38], eax
je 0x14000d0c7
xor edx, edx
mov ecx, 0x36717377
call fcn.140011d08
cmp esi, 2
jne 0x14000d0e2
mov edx, dword [rdi]
mov rcx, qword [rbp]
call fcn.14000cf00
test eax, eax
jne 0x14000d131
mov ecx, 0x36717378
jmp 0x14000d10f
cmp esi, 8
jne 0x14000d0fb
mov rcx, qword [rbp]
call fcn.14000b954
test eax, eax
jne 0x14000d131
mov ecx, 0x36717379
jmp 0x14000d10f
cmp esi, 3
je 0x14000d131
mov ecx, 0x3671737a
jmp 0x14000cfea
mov ecx, 0x36717374
xor edx, edx
call fcn.140011d08
mov rcx, qword [rbp]
test rcx, rcx
je 0x14000d129
call fcn.140009d1c
and qword [rbp], 0
cmp dword [rdi], 0
je 0x14000d131
and dword [rdi], 0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14000d8d0
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x140050318]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbp, rcx
movsxd r12, edx
lea rcx, [rsp + 0x70]
mov edx, 0x104
call fcn.14000c5dc
xor r13d, r13d
cmp eax, r13d
jne 0x14000d945
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140008a98
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdi, [rsp + 0x70]
cmp word [rsp + 0x70], r13w
je 0x14000d95c
add rdi, 2
cmp word [rdi], r13w
jne 0x14000d952
mov esi, 1
mov ecx, esi
call fcn.14000b058
lea rcx, str.QMNFN
call fcn.1400124f4
mov r14, rdi
cmp eax, 0x64
mov ebx, eax
mov r15d, eax
cmova ebx, esi
lea rax, [rsp + 0x70]
sub r14, rax
sar r14, 1
or rsi, 0xffffffffffffffff
lea r8, str.msodata_03d.dat
lea rcx, [rsp + 0x48]
mov r9d, ebx
mov rdx, rsi
call fcn.14000b924
cmp r14, r13
jl 0x14000db52
lea rcx, [rsp + 0x40]
mov r8, r14
mov edx, 0x104
call fcn.14000d29c
cmp qword [rax], 0x7fffffff
ja 0x14000db3c
mov r8d, dword [rax]
lea rcx, [rsp + 0x48]
mov rdx, rdi
call fcn.140019ac0
mov eax, 1
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r13
lea rcx, [rsp + 0x70]
mov r8d, eax
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], eax
call fcn.140022c34
mov r13, rax
cmp rax, rsi
jne 0x14000daeb
cmp ebx, 0x64
mov r13d, 0
sbb eax, eax
and ebx, eax
inc ebx
cmp ebx, r15d
jne 0x14000d991
lea r8, str.msodata_03d.dat
lea rcx, [rsp + 0x48]
mov r9d, ebx
mov rdx, rsi
call fcn.14000b924
test r14, r14
jns 0x14000da66
lea edx, [r13 + 1]
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc0000095
call qword [sym.imp.KERNEL32.dll_RaiseException]
lea rcx, [rsp + 0x40]
mov r8, r14
mov edx, 0x104
call fcn.14000d29c
mov rcx, qword [rax]
cmp rcx, 0x7fffffff
jbe 0x14000da9a
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc0000095
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov r8d, ecx
lea rcx, [rsp + 0x48]
mov rdx, rdi
call fcn.140019ac0
mov edi, 0x80
lea rcx, [rsp + 0x70]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and dword [rsp + 0x38], r13d
and qword [rsp + 0x30], r13
lea r8d, [rdi - 0x7f]
lea rcx, [rsp + 0x70]
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 2
call fcn.140022c34
mov r13, rax
cmp ebx, 0x64
lea rcx, str.QMNFN
sbb edx, edx
and edx, ebx
inc edx
call fcn.140011f84
call fcn.140014fb4
test eax, eax
jne 0x14000db16
mov rcx, qword [0x140082b18]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test rbp, rbp
je 0x14000db34
test r12d, r12d
jle 0x14000db34
lea r8, [rsp + 0x70]
mov rdx, r12
mov r9, rsi
mov rcx, rbp
call qword [sym.imp.MSVCR90.dll_wcsncpy_s]
mov rax, r13
jmp 0x14000d91a
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc0000095
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc0000095
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x14000db68
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [0x140050318]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rcx, [rsp + 0x30]
mov edx, 0x104
mov ebx, 1
call fcn.14000c5dc
test eax, eax
je 0x14000dc53
lea rdx, [rsp + 0x30]
lea rcx, str.msodatalast.dat
mov r8d, 0x104
call fcn.14001b1bc
lea rcx, [rsp + 0x20]
call fcn.14000b444
cmp dword [rsp + 0x20], 0
je 0x14000dc51
call fcn.14000b378
test eax, eax
jne 0x14000dc51
call fcn.14000ce68
test eax, eax
jne 0x14000dbf4
call fcn.14000c580
test eax, eax
je 0x14000dc51
mov ecx, dword [0x1400b76e8]
call fcn.14000eb34
test eax, eax
jne 0x14000dc51
call fcn.14000c528
lea rcx, [rsp + 0x240]
mov edx, 0x104
call fcn.14000d8d0
lea r8, [rsp + 0x30]
xor r9d, r9d
mov rcx, rax
mov edx, ebx
call fcn.14000ca30
mov ebx, eax
test eax, eax
jne 0x14000dc33
lea rcx, [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000dc51
lea r8, [rsp + 0x240]
lea rcx, [0x1400b7738]
or r9, 0xffffffffffffffff
mov edx, 0x104
call qword [sym.imp.MSVCR90.dll_wcsncpy_s]
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140008a98
add rsp, 0x460
pop rbx
ret

Function at 0x14000e570
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
lock add dword [0x1400b76d4], 1
xor ebx, ebx
cmp rcx, rbx
jne 0x14000e598
mov edi, 0x80004003
jmp 0x14000e5f7
xor ecx, ecx
mov edi, ebx
call fcn.14000de78
cmp eax, ebx
je 0x14000e5f2
mov dword [rsp + 0x38], ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [r9 + 1]
mov edx, 0xc0000000
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call fcn.140022c34
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.14000ca30
cmp eax, ebx
jne 0x14000e5f7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 0x80004005
lock add dword [0x1400b76d4], 0xffffffff
mov rsi, qword [rsp + 0x58]
cmp edi, ebx
setge bl
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14000e618
Capabilities:
Copy file
Get common file path

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 r12
sub rsp, 0x30
mov edi, edx
mov rsi, rcx
mov rdx, rcx
xor r12d, r12d
mov ecx, edi
mov ebx, r12d
call sub.KERNEL32.dll_GetTempPathW
movsxd rbp, eax
cmp ebp, r12d
je 0x14000e6c9
cmp ebp, edi
ja 0x14000e6c9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub edi, ebp
lea rcx, [rsi + rbp*2]
lea r9, [0x1400509f0]
mov edx, edi
or r8, 0xffffffffffffffff
mov dword [rsp + 0x20], eax
call qword [sym.imp.MSVCR90.dll__snwprintf_s]
cmp eax, r12d
jle 0x14000e6c9
xor ecx, ecx
call fcn.14000de78
cmp eax, r12d
je 0x14000e695
mov rcx, rsi
call fcn.14000e570
mov ebx, eax
cmp eax, r12d
jne 0x14000e6c9
xor ecx, ecx
call fcn.14000de78
cmp eax, r12d
jne 0x14000e6c9
cmp word [0x1400b7738], r12w
je 0x14000e6c9
mov edi, 1
lea rcx, [0x1400b7738]
mov rdx, rsi
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, r12d
cmovne ebx, edi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop r12
ret

Function at 0x14000ec54
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov ebx, edx
mov rdi, rcx
test rcx, rcx
je 0x14000ecd3
cmp edx, 0x104
jb 0x14000ecd3
lea r9, [rsp + 0x50]
lea rdx, str.SoftwareWow6432NodeMicrosoftPCHealthErrorReportingDWInstalled
mov r8d, 0x20019
mov rcx, 0xffffffff80000002
call fcn.140022b10
test eax, eax
jne 0x14000ecd3
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea rdx, [0x140050a38]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x40], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000ecd3
lea eax, [rbx + 1]
jmp 0x14000ecd5
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140011268
Capabilities:
Identify system language via api

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, r9
mov r9d, dword [0x1400be798]
mov rdi, r8
mov rbp, rcx
lea r8, [rax + 0x28]
mov rsi, rdx
mov rdx, rbx
mov rcx, rdi
call fcn.140010d40
call fcn.140011224
lea r8, [rsp + 0x50]
mov r9d, eax
mov rdx, rbx
mov rcx, rdi
call fcn.140010d40
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
lea r8, [rsp + 0x50]
movzx r9d, ax
mov rdx, rbx
mov rcx, rdi
call fcn.140010d40
call fcn.140010208
lea r8, [rsp + 0x50]
movzx r9d, ax
mov rdx, rbx
mov rcx, rdi
call fcn.140010d40
mov r9, qword [rsp + 0x50]
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.140010cb0

Function at 0x140011ab4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x140082c50]
cmp ecx, 0xffffffff
je 0x140011afa
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140011aec
mov rcx, qword [rax + 0x10]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rbx
call fcn.140009d1c
mov ecx, dword [0x140082c50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140011b08
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [0x1400be798], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140082c50], eax
cmp eax, 0xffffffff
jne 0x140011b2d
xor eax, eax
jmp 0x140011b8d
lea rcx, [0x1400be770]
mov edx, 0xfa0
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
je 0x140011b29
call fcn.14000a4c8
test eax, eax
je 0x140011b29
call fcn.1400229bc
call fcn.14002e0a4
xor ecx, ecx
mov edx, eax
call fcn.14002e274
call fcn.140017e0c
cmp dword [0x1400bfafc], 0
jne 0x140011b7d
xor ecx, ecx
call fcn.140014f50
cmp dword [0x1400bfafc], 0
je 0x140011b29
call fcn.140011ab4
mov eax, 1
mov dword [0x1400be79c], eax
add rsp, 0x28
ret
Function at 0x14001324c
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rbp, rcx
test rcx, rcx
jne 0x140013270
mov eax, 0xa0
jmp 0x1400133b0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
xor ebx, ebx
cmp dword [0x1400be7f8], ebx
je 0x140013298
lea rcx, [0x1400be770]
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx r9d, word [rbp + 0x18]
mov rcx, qword [rbp + 0x10]
and qword [rsp + 0x20], 0
shr r9d, 1
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x50]
and r9d, 0x10
call fcn.140012af4
mov edi, eax
test eax, eax
jne 0x140013394
mov rcx, qword [rbp]
mov r12, qword [rsp + 0x50]
xor esi, esi
test rcx, rcx
je 0x1400132f5
call fcn.14001b900
mov rsi, rax
test rax, rax
jne 0x1400132f5
xor edx, edx
mov ecx, 0x77626966
call fcn.140011d08
lea edi, [rsi + 8]
jmp 0x14001330e
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x140013303
mov rcx, qword [r12]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
test rsi, rsi
je 0x14001331b
mov rcx, rsi
call fcn.140009e7c
cmp edi, 0x3f2
je 0x140013330
cmp edi, 0x3fa
je 0x140013330
cmp edi, 6
jne 0x140013385
movsxd rcx, edi
mov edx, 0x796d7463
call fcn.140011e00
mov edx, 0x796d7466
xor ecx, ecx
call fcn.140011e00
lea rcx, [0x1400be800]
mov rdx, r12
call fcn.140012a68
and qword [rsp + 0x50], 0
cmp dword [0x1400be7f8], 0
je 0x14001327c
test ebx, ebx
je 0x14001327c
lea rcx, [0x1400be770]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14001327c
lea rcx, [0x1400be800]
mov rdx, r12
call fcn.140012944
cmp dword [0x1400be7f8], 0
je 0x1400133ae
test ebx, ebx
je 0x1400133ae
lea rcx, [0x1400be770]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1400133c4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov edi, edx
mov rsi, rcx
test rcx, rcx
jne 0x1400133e5
xor eax, eax
jmp 0x140013541
test edx, edx
je 0x1400133f2
cmp dword [0x1400be7e8], 0
je 0x1400133de
xor ebp, ebp
call fcn.140014fb4
mov ecx, dword [0x1400bfb04]
test eax, eax
cmovne ecx, dword [0x1400be7f4]
test ecx, ecx
je 0x140013412
test byte [rsi + 0x18], 0x10
je 0x1400133de
and qword [rsp + 0x60], rbp
and qword [rsp + 0x70], rbp
xor ebx, ebx
cmp dword [0x1400be7f8], ebx
je 0x140013438
lea rcx, [0x1400be770]
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
neg edi
sbb r13d, r13d
and r13d, 2
and qword [rsp + 0x20], rbp
movzx r9d, word [rsi + 0x18]
mov rcx, qword [rsi + 0x10]
lea r8, [rsp + 0x70]
shr r9d, 1
lea rdx, [rsp + 0x60]
and r9d, 0x10
or r9d, r13d
call fcn.140012af4
mov edi, eax
test eax, eax
jne 0x14001351d
mov rcx, qword [rsi]
test rcx, rcx
je 0x140013482
call fcn.14001b900
mov rbp, rax
mov rcx, qword [rsp + 0x70]
mov r12, qword [rsp + 0x60]
test rcx, rcx
jne 0x140013495
mov rcx, qword [r12]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rdi, eax
test rbp, rbp
je 0x1400134c0
mov rcx, rbp
call fcn.140009e7c
cmp edi, 0x3f2
je 0x1400134d5
cmp edi, 0x3fa
je 0x1400134d5
cmp edi, 6
jne 0x14001350e
mov rcx, rdi
mov edx, 0x796d7463
call fcn.140011e00
mov edx, 0x796d7468
xor ecx, ecx
call fcn.140011e00
lea rcx, [0x1400be800]
mov rdx, r12
call fcn.140012a68
and qword [rsp + 0x60], 0
and qword [rsp + 0x20], 0
jmp 0x140013446
lea rcx, [0x1400be800]
mov rdx, r12
call fcn.140012944
xor esi, esi
test edi, edi
sete sil
cmp dword [0x1400be7f8], 0
je 0x14001353f
test ebx, ebx
je 0x14001353f
lea rcx, [0x1400be770]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140013aa8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
sub rsp, 0x30
mov esi, dword [rsp + 0x70]
xor r13d, r13d
mov rbp, r9
mov r10, r8
mov rax, rdx
mov rdi, rcx
mov dword [rsp + 0x70], esi
cmp rdx, r13
jne 0x140013ad9
mov rax, qword [rcx]
lea rcx, [rsp + 0x70]
xor r8d, r8d
mov rdx, r10
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x70], 2
mov ecx, dword [rsp + 0x58]
mov ebx, eax
jae 0x140013b18
cmp ecx, 1
je 0x140013b13
cmp ecx, 2
jne 0x140013b18
mov ebx, 2
cmp ebx, 0x3f2
je 0x140013bb1
cmp ebx, 0x3fa
je 0x140013bb1
cmp ebx, 6
je 0x140013bb1
cmp ebx, r13d
jne 0x140013ba0
cmp ecx, 2
je 0x140013b44
cmp ecx, 1
jne 0x140013b55
mov eax, dword [rsp + 0x70]
shr rax, 1
mov word [rbp + rax*2 - 2], r13w
mov ecx, dword [rsp + 0x58]
cmp ecx, 2
je 0x140013b61
cmp byte [rsp + 0x78], 2
jne 0x140013b7d
shr esi, 1
mov rcx, rbp
mov edx, esi
call fcn.140011e74
cmp eax, r13d
jne 0x140013b79
mov ebx, 0xea
jmp 0x140013ba0
mov ecx, dword [rsp + 0x58]
movzx edx, byte [rsp + 0x78]
cmp ecx, edx
je 0x140013ba0
sub ecx, 1
je 0x140013b96
cmp ecx, 1
jne 0x140013b9b
cmp edx, ecx
jne 0x140013b9b
jmp 0x140013ba0
cmp edx, 2
je 0x140013ba0
mov ebx, 2
lea rcx, [0x1400be800]
mov rdx, rdi
call fcn.140012944
jmp 0x140013bd9
movsxd rcx, ebx
mov edx, 0x796d7463
call fcn.140011e00
mov edx, 0x796d746b
xor ecx, ecx
call fcn.140011e00
lea rcx, [0x1400be800]
mov rdx, rdi
call fcn.140012a68
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r13
pop rdi
pop rsi
ret
Function at 0x140013bf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor ebp, ebp
mov r14, r9
mov r15d, r8d
mov esi, ebp
mov r13, rcx
or edi, 0xffffffff
cmp esi, ebp
jne 0x140013c32
cmp dword [0x1400be7e8], ebp
je 0x140013c4f
lea r12d, [rdi + 3]
jmp 0x140013c5d
cmp esi, 1
jne 0x140013c4f
call fcn.140014fb4
mov ecx, dword [0x1400bfb04]
cmp eax, ebp
cmovne ecx, dword [0x1400be7f4]
cmp ecx, ebp
je 0x140013c5a
test byte [r13 + 0x18], 0x10
je 0x140013d91
mov r12d, ebp
mov ebx, ebp
cmp dword [0x1400be7f8], ebp
je 0x140013c79
lea rcx, [0x1400be770]
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsp + 0x40], rbp
movzx r9d, word [r13 + 0x18]
mov rcx, qword [r13 + 0x10]
lea r8, [rsp + 0x40]
shr r9d, 1
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], rbp
and r9d, 0x10
mov qword [rsp + 0x38], rbp
or r9d, r12d
call fcn.140012af4
mov edi, eax
cmp eax, ebp
jne 0x140013d78
mov rcx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov dword [r14], r15d
test rcx, rcx
jne 0x140013cca
mov rcx, qword [rbp]
mov rax, qword [rsp + 0x88]
mov rdx, qword [rsp + 0xa0]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movsxd rdi, eax
cmp edi, 0x3f2
je 0x140013d0a
cmp edi, 0x3fa
je 0x140013d0a
cmp edi, 6
jne 0x140013d39
mov rcx, rdi
mov edx, 0x796d7463
call fcn.140011e00
mov edx, 0x796d746c
xor ecx, ecx
call fcn.140011e00
lea rcx, [0x1400be800]
mov rdx, rbp
call fcn.140012a68
xor ebp, ebp
jmp 0x140013c7e
lea rcx, [0x1400be800]
mov rdx, rbp
call fcn.140012944
xor ebp, ebp
cmp edi, ebp
jne 0x140013d78
mov cx, word [r13 + 0x18]
mov eax, ecx
and eax, 0xf
cmp dword [rsp + 0x30], eax
je 0x140013dbc
cmp dword [rsp + 0x30], 3
jne 0x140013d73
cmp dword [r14], 4
jne 0x140013d73
and cl, 0xf
cmp cl, 4
je 0x140013dbc
mov edi, 2
cmp dword [0x1400be7f8], ebp
je 0x140013d91
cmp ebx, ebp
je 0x140013d91
lea rcx, [0x1400be770]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc esi
cmp esi, 2
jl 0x140013c1d
mov eax, edi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, qword [rsp + 0xa8]
mov dword [rax], 1
cmp dword [0x1400be7f8], ebp
je 0x140013de3
cmp ebx, ebp
je 0x140013de3
lea rcx, [0x1400be770]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x140013d9e