joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014f80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rax, r8
mov rbp, rdx
mov rdi, rcx
xor r13d, r13d
lea r8, [0x1401a6db0]
mov rdx, rax
mov rcx, rbp
mov rbx, r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x14001511f
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov esi, eax
je 0x14001511f
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov r12, rax
je 0x14001511f
lea ecx, [r13 + 2]
mov rdx, rsi
mov rbp, rsi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rbx, rax
je 0x14001511f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, dword [rsp + 0x70]
test rax, rax
je 0x1400150ae
mov r8, rbp
mov rdx, r12
mov rcx, rax
call fcn.140161150
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], r13
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x14001511f
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.140015f30
test eax, eax
js 0x14001511f
call fcn.140040ba0
test eax, eax
je 0x14001509a
test esi, esi
je 0x14001508b
mov rcx, qword [rsp + 0x20]
xor edx, edx
call fcn.140015ec0
jmp 0x140015096
mov rcx, qword [rdi + 8]
xor edx, edx
call fcn.140015e50
mov qword [rdi + 0x48], rax
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
je 0x1400150c3
mov rcx, rdi
call fcn.140015170
movss xmm1, dword [0x1401ba658]
movss xmm0, dword [0x1402121ec]
ucomiss xmm0, xmm1
jp 0x1400150e9
jne 0x1400150e9
movss xmm0, dword [0x1402122a4]
ucomiss xmm0, xmm1
jp 0x1400150e9
je 0x140015118
mov edx, 3
mov eax, 7
test esi, esi
cmovne edx, eax
mov rcx, rdi
call fcn.140015360
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x140015118
mov r8, qword [rcx]
mov edx, 1
call qword [r8]
mov qword [rdi + 0x48], r13
mov eax, 1
jmp 0x14001514d
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140015134
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x20], r13
test rbx, rbx
je 0x14001514b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x14001cc00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
lea r8, [0x1401a6db0]
xor ebx, ebx
mov rbp, rcx
mov qword [rsp + 0x58], rbx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x14001cd14
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov esi, eax
je 0x14001cd14
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbp, rax
je 0x14001cd14
lea ecx, [rbx + 2]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rbx, rax
je 0x14001cd14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14001cce8
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call fcn.140161150
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x58], rdi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x14001cd14
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001cd2d
xor edx, edx
call fcn.140015ec0
test rax, rax
mov rdi, rax
je 0x14001cd14
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, rdi
call fcn.14001c740
test rdi, rdi
mov rbx, rax
je 0x14001cd0f
mov r8, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [r8]
mov rax, rbx
jmp 0x14001cd46
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001cd2d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x58], 0
test rbx, rbx
je 0x14001cd44
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x1400383d0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x140038459
mov ecx, 0x114
mov ebx, 1
call fcn.14015e740
test rax, rax
mov rdi, rax
je 0x1400384ce
xor edx, edx
mov r8d, 0x114
mov rcx, rax
call fcn.140160e90
mov rcx, rdi
mov dword [rdi], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r11d, dword [rdi + 4]
cmp r11d, 4
jne 0x140038434
lea ebx, [r11 + 1]
jmp 0x1400384c6
cmp r11d, 5
jne 0x1400384c6
cmp dword [rdi + 8], 0
jne 0x14003844a
lea ebx, [r11 + 1]
jmp 0x1400384c6
cmp r11d, 5
jne 0x1400384c6
cmp dword [rdi + 8], ebx
lea eax, [r11 + 2]
jmp 0x1400384c3
cmp al, 4
jae 0x14003846a
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x114
mov ebx, 2
call fcn.14015e740
test rax, rax
mov rdi, rax
je 0x1400384ce
xor edx, edx
mov r8d, 0x114
mov rcx, rax
call fcn.140160e90
mov rcx, rdi
mov dword [rdi], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r11d, dword [rdi + 4]
cmp r11d, 4
jne 0x1400384c6
cmp dword [rdi + 8], 0xa
jne 0x1400384b6
lea ebx, [r11 - 1]
jmp 0x1400384c6
cmp r11d, 4
jne 0x1400384c6
cmp dword [rdi + 8], 0x5a
mov eax, r11d
cmove ebx, eax
mov rcx, rdi
call fcn.14015e810
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14003fcd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x2a8
mov rax, qword [0x140210348]
xor rax, rsp
mov qword [rsp + 0x290], rax
cmp dword [0x1402301a0], 0
jne 0x14003fe2e
lea rax, [rsp + 0x38]
mov qword [rsp + 0x2a0], rdi
lea rdx, str.SoftwareMicrosoftPlus_ThemesCurrent
mov edi, 1
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov dword [0x1402301a0], edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003fe26
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], 0x104
mov dword [rsp + 0x34], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003fe1b
mov rax, qword [str.Windows_Classic.theme]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x2b0], rbx
mov qword [rcx], rax
mov rax, qword [0x1401a6548]
mov qword [rcx + 8], rax
mov rax, qword [0x1401a6550]
mov qword [rcx + 0x10], rax
mov rax, qword [0x1401a6558]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1401a6560]
mov qword [rcx + 0x20], rax
mov eax, dword [0x1401a6568]
mov dword [rcx + 0x28], eax
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x40]
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp ebx, eax
jl 0x14003fe13
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [rsp + 0x40]
movsxd rcx, eax
mov rax, rbx
sub rax, rcx
lea rcx, [rsp + rax*2 + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ecx, dword [0x14023019c]
test eax, eax
cmove ecx, edi
mov dword [0x14023019c], ecx
mov rbx, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x2a0]
mov eax, dword [0x14023019c]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14015d000
add rsp, 0x2a8
ret
Function at 0x140040bd0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov edi, ecx
mov ecx, 0x10
mov ebx, edx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 0x11
mov esi, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp esi, edi
jge 0x140040c15
cvtsi2ss xmm1, esi
cvtsi2ss xmm0, edi
divss xmm1, xmm0
movss dword [0x14021233c], xmm1
jmp 0x140040c1d
movss xmm1, dword [0x14021233c]
cmp eax, ebx
jge 0x140040c37
cvtsi2ss xmm2, eax
cvtsi2ss xmm0, ebx
divss xmm2, xmm0
movss dword [0x1402123f4], xmm2
jmp 0x140040c3f
movss xmm2, dword [0x1402123f4]
comiss xmm1, xmm2
jbe 0x140040c51
movss dword [0x14021233c], xmm2
movaps xmm1, xmm2
jmp 0x140040c61
comiss xmm2, xmm1
jbe 0x140040c61
movss dword [0x1402123f4], xmm1
movaps xmm2, xmm1
movss xmm0, dword [0x1401ba658]
comiss xmm0, xmm2
jbe 0x140040cfc
comiss xmm2, dword [0x1401c56e8]
ja 0x140040ce1
cmp eax, 0x258
jle 0x140040ce1
comiss xmm2, dword [0x1401c56e4]
jbe 0x140040c95
movss xmm2, dword [0x1401c56e0]
jmp 0x140040ce9
comiss xmm2, dword [0x1401c56dc]
jbe 0x140040ca8
movss xmm2, dword [0x1401c56d8]
jmp 0x140040ce9
comiss xmm2, dword [0x1401c56d4]
jbe 0x140040cbb
movss xmm2, dword [0x1401c56d0]
jmp 0x140040ce9
comiss xmm2, dword [0x1401ba828]
jbe 0x140040cce
movss xmm2, dword [0x1401ba680]
jmp 0x140040ce9
comiss xmm2, dword [0x1401c56cc]
jbe 0x140040cf1
movss xmm2, dword [0x1401c56c8]
jmp 0x140040ce9
movss xmm2, dword [0x1401c1378]
movss dword [0x1402123f4], xmm2
movss dword [0x14021233c], xmm2
movaps xmm1, xmm2
movss xmm0, dword [0x1402121ec]
lea rcx, str.CDpiScaler::InitUIScaleFactor:_FullScreen__d_X__d__RealWindowSize__d_X__d__DPI__.2f__UIScale__.2f
mov r9d, edi
mov r8d, eax
mov edx, esi
mulss xmm0, xmm1
movss xmm1, dword [0x1402122a4]
mulss xmm1, xmm2
movss dword [0x1402121ec], xmm0
cvtss2sd xmm0, xmm2
movsd qword [rsp + 0x30], xmm0
movss dword [0x1402122a4], xmm1
cvtss2sd xmm1, xmm1
movsd qword [rsp + 0x28], xmm1
mov dword [rsp + 0x20], ebx
call fcn.140001600
lea rax, [rsp + 0x60]
lea rdx, str.SoftwareRealtekAudioGUI_INFORMATION
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], 0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140040de3
movss xmm0, dword [0x1402123f4]
mov rbx, qword [rsp + 0x60]
lea rdx, str.CplScalingFactor
addss xmm0, dword [0x1401ba65c]
mov r9d, 4
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], 4
mulss xmm0, dword [0x1401ba620]
cvttss2si rax, xmm0
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x140040de3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1400417a0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x1400417fc
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 8]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x10]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400417ea
mov rcx, qword [rbx + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], 0
mov rcx, qword [rbx]
test rcx, rcx
je 0x140041811
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140041828
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0
add rsp, 0x20
pop rbx
ret
Function at 0x140050720
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov rsi, rcx
mov word [rcx + 0xf0], 0x409
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ebp, 0x404
xor ebx, ebx
test ax, ax
movzx r11d, ax
lea rdi, [0x140217208]
lea r13, str.Arabic
lea r14d, [rbp + 0x12]
mov r12d, 0x804
je 0x14005081f
movzx r9d, ax
mov r8w, 0x409
mov ecx, ebx
and r9w, 0x3ff
mov rdx, rdi
movzx eax, word [rdx]
and ax, 0x3ff
cmp r9w, ax
je 0x1400507ab
add ecx, 1
add rdx, 0x10
cmp ecx, 0x21
jb 0x140050790
jmp 0x1400507b8
movsxd rax, ecx
shl rax, 4
mov r8w, word [rax + r13 + 8]
mov ax, r11w
and eax, 0x3ff
cmp eax, 4
je 0x140050803
cmp eax, 0x16
je 0x1400507ea
cmp eax, 0x1a
jne 0x140050817
shr r11w, 0xa
cmp r11w, 2
je 0x1400507e3
cmp r11w, 9
jne 0x140050817
mov r8w, 0x81a
jmp 0x140050817
and r11w, 0xfc00
mov r8d, 0x816
cmp r11w, 0x400
cmove r8w, r14w
jmp 0x140050817
and r11w, 0xfc00
mov r8d, ebp
cmp r11w, 0x800
cmove r8w, r12w
mov word [rsi + 0xf0], r8w
movzx eax, word [rsi + 0xf0]
lea r8, str.Language
lea rdx, str.General
lea rcx, [0x14022e890]
xor r9d, r9d
mov dword [rsi + 8], 1
mov word [rsi + 0xc], ax
call fcn.14014ba50
test ax, ax
mov r11d, eax
je 0x140050901
movzx r9d, ax
mov r8w, 0x409
mov edx, ebx
and r9w, 0x3ff
mov rax, rdi
nop
movzx ecx, word [rax]
and cx, 0x3ff
cmp r9w, cx
je 0x14005088c
add edx, 1
add rax, 0x10
cmp edx, 0x21
jb 0x140050870
jmp 0x140050899
movsxd rax, edx
shl rax, 4
mov r8w, word [rax + r13 + 8]
mov ax, r11w
and eax, 0x3ff
cmp eax, 4
je 0x1400508e4
cmp eax, 0x16
je 0x1400508cb
cmp eax, 0x1a
jne 0x1400508f9
shr r11w, 0xa
cmp r11w, 2
je 0x1400508c4
cmp r11w, 9
jne 0x1400508f9
mov r8w, 0x81a
jmp 0x1400508f9
and r11w, 0xfc00
mov r8d, 0x816
cmp r11w, 0x400
cmove r8w, r14w
jmp 0x1400508f9
and r11w, 0xfc00
cmp r11w, 0x800
cmove bp, r12w
mov r8w, bp
mov word [rsi + 0xc], r8w
mov dword [rsi + 8], ebx
cmp dword [rsi + 8], ebx
je 0x140050912
mov dword [rsi + 0xf4], 0x20
jmp 0x14005092f
movzx eax, word [rsi + 0xc]
cmp word [rdi], ax
je 0x140050929
add ebx, 1
add rdi, 0x10
cmp ebx, 0x21
jb 0x140050916
jmp 0x14005092f
mov dword [rsi + 0xf4], ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x140051e80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov ebx, r8d
shr eax, 4
mov rsi, rcx
mov edx, 6
add ax, 1
mov rcx, rbp
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
mov r12, rax
je 0x140051fe2
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140051fe2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x140051fe2
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x140051f26
nop
cmp rdi, r11
jae 0x140051fe2
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140051f10
cmp rdi, r11
jae 0x140051fe2
movzx eax, word [rdi]
test ax, ax
je 0x140051fe2
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x140051f5c
mov edx, ebx
mov rcx, rsi
call fcn.140001df0
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x140051f79
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.14015cd30
test eax, eax
je 0x140051fb8
cmp eax, 0xc
je 0x140051fb2
cmp eax, 0x16
je 0x140051fac
cmp eax, 0x22
je 0x140051fac
cmp eax, 0x50
je 0x140051fb8
call fcn.14013d908
int3
call fcn.14013d908
int3
call fcn.14013d8c0
int3
test ebx, ebx
js 0x140051fd7
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x140051fd7
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x140051fe4
mov ecx, 0x80070057
call fcn.140001c00
int3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x140054729
Capabilities:
Create process on windows

Disassembly:
test rdx, rdx
je 0x14005485e
push rbx
mov eax, 0x100f0
call fcn.140181870
sub rsp, rax
mov rax, qword [0x140210348]
xor rax, rsp
mov qword [rsp + 0x100e0], rax
mov rbx, rdx
mov r8, rdx
mov qword [rsp + 0x10100], rdi
lea rcx, [rsp + 0xe0]
xor edi, edi
mov edx, 0x7fff
mov dword [rsp + 0x50], edi
call fcn.14015e5c0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [rsp + 0x50], edi
je 0x1400547b7
lea r8, str.CPLUtl64.exe__x
lea rcx, [rsp + 0xe0]
mov edx, 0x7fff
call fcn.14015e5c0
lea rcx, [rsp + 0xe0]
mov r8, rbx
mov edx, 0x7fff
call fcn.14015e670
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.140160e90
xor eax, eax
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor ecx, ecx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rdi, qword [rsp + 0x10100]
test eax, eax
jne 0x140054830
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140054846
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x100e0]
xor rcx, rsp
call fcn.14015d000
add rsp, 0x100f0
pop rbx
ret 0
Function at 0x140054870
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
push r12
sub rsp, 0x450
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140210348]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov word [rsp + 0x40], 0
xor edx, edx
mov r8d, 0x3fe
lea rcx, [rsp + 0x42]
call fcn.140160e90
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140054a56
mov word [rsp + 0x246], 0
call fcn.14013d07c
mov rdx, rax
xor r12d, r12d
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x140054905
mov ecx, 0x80004005
call fcn.140001c00
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea r9, str.SoundRecorder.exe
lea r8, [rsp + 0x40]
lea rdx, str._s_s
lea rcx, [rsp + 0x20]
call fcn.140001f50
mov rbp, qword [rsp + 0x20]
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbp - 8], 0
jl 0x14005495d
cmp rax, qword [rbp - 0x18]
jne 0x14005495d
lea rbx, [rbp - 0x18]
lock add dword [rbp - 8], 1
jmp 0x14005499b
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbp - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x140054979
call fcn.1400c5210
int3
mov eax, dword [rbp - 0x10]
mov dword [rbx + 8], eax
mov eax, dword [rbp - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rbp
add rdx, rdx
lea rcx, [rbx + 0x18]
call fcn.14015cd30
add rbx, 0x18
mov qword [rsp + 0x30], rbx
xor eax, eax
lea rdi, [0x14019cf88]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x1400549bf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
jne 0x1400549e7
lea rdx, [rbx - 0x18]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140054a37
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140054a37
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140054a14
lea rdx, [rbx - 0x18]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140054a37
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140054a37
lea rdx, [rbx - 0x18]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140054a31
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r12d, 1
lock xadd dword [rbp - 8], edi
add edi, 0xffffffff
test edi, edi
jg 0x140054a51
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
lea rdx, [rbp - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
jmp 0x140054a58
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14015d000
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x14005b5b0
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [rcx + 0x98]
mov rdi, rcx
test rax, rax
je 0x14005b5d3
bt dword [rax + 0x548], 0xe
jae 0x14005b77a
lea rax, [rsp + 0x80]
mov qword [rsp + 0x58], rbx
lea rdx, str.SoftwareRealtekAudioGUI_INFORMATIONDriverInfomation
xor ebx, ebx
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x80], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005b61a
mov rbx, qword [rsp + 0x80]
jmp 0x14005b674
lea rax, [rsp + 0x78]
lea rdx, str.SoftwareRealtekAudioGUI_INFORMATIONDriverInfomation
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x88]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x2001f
mov qword [rsp + 0x88], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14005b775
mov rbx, qword [rsp + 0x88]
mov eax, dword [rdi + 0x5ec]
lea rdx, str.MultiStreamPlaybackSupport
mov r9d, 4
shr eax, 5
xor r8d, r8d
mov rcx, rbx
and eax, 1
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r11d, dword [rdi + 0x5ec]
shr r11d, 6
lea rax, [rsp + 0x70]
lea rdx, str.MultiStreamRecordingSupport
and r11d, 1
mov r9d, 4
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x70], r11d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r11d, dword [rdi + 0x5ec]
lea rax, [rsp + 0x70]
and r11d, 1
lea rdx, str.MultiStreamPlaybackEnable
mov r9d, 4
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x70], r11d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r11d, dword [rdi + 0x5ec]
lea rax, [rsp + 0x70]
shr r11d, 1
lea rdx, str.MultiStreamRecordingEnable
mov r9d, 4
and r11d, 1
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], r11d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x14005b775
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x58]
add rsp, 0x60
pop rdi
ret