joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000aaa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
bt edx, 0x1d
mov edi, r8d
mov rbx, rcx
jae 0x14000aace
mov rcx, qword [rcx + 0xcd8]
mov rax, qword [rcx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [rax + 0x38]
test r9, r9
jne 0x14000aae0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
sub edx, 0x10000212
je 0x14000ab63
sub edx, 3
je 0x14000ab3c
cmp edx, 0xed
jne 0x14000aad3
mov rax, qword [rcx + 0x768]
test rax, rax
je 0x14000ab2c
cmp dword [rax + 0x14], 0
je 0x14000ab2c
cmp qword [r9 + 0x18], 2
jne 0x14000ab2c
mov r8, qword [r9 + 0x10]
mov rdx, qword [r9 + 8]
mov rcx, rax
mov r8, qword [r8 + 0x10]
mov rdx, qword [rdx + 0x10]
mov r9d, 4
call fcn.14003da30
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
add rcx, 0x60
mov rdx, r9
call fcn.14003fba0
lea rcx, [rbx + 0x158]
mov r8d, edi
mov edx, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140042040
add rcx, 0x60
mov rdx, r9
call fcn.14003fba0
lea rcx, [rbx + 0x158]
mov r8d, edi
mov edx, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140040460
Function at 0x140010ef0
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, [0x140188e78]
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 0x14001108f
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov esi, eax
je 0x14001108f
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 0x14001108f
lea ecx, [r13 + 2]
mov rdx, rsi
mov rbp, rsi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rbx, rax
je 0x14001108f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, dword [rsp + 0x70]
test rax, rax
je 0x14001101e
mov r8, rbp
mov rdx, r12
mov rcx, rax
call fcn.140148c90
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 0x14001108f
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.140011ea0
test eax, eax
js 0x14001108f
call fcn.14003c8c0
test eax, eax
je 0x14001100a
test esi, esi
je 0x140010ffb
mov rcx, qword [rsp + 0x20]
xor edx, edx
call fcn.140011e30
jmp 0x140011006
mov rcx, qword [rdi + 8]
xor edx, edx
call fcn.140011dc0
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 0x140011033
mov rcx, rdi
call fcn.1400110e0
movss xmm1, dword [0x14019ac6c]
movss xmm0, dword [0x1401ec4ec]
ucomiss xmm0, xmm1
jp 0x140011059
jne 0x140011059
movss xmm0, dword [0x1401ec5a4]
ucomiss xmm0, xmm1
jp 0x140011059
je 0x140011088
mov edx, 3
mov eax, 7
test esi, esi
cmovne edx, eax
mov rcx, rdi
call fcn.1400112d0
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x140011088
mov r8, qword [rcx]
mov edx, 1
call qword [r8]
mov qword [rdi + 0x48], r13
mov eax, 1
jmp 0x1400110bd
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400110a4
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x20], r13
test rbx, rbx
je 0x1400110bb
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 0x140018bb0
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, [0x140188e78]
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 0x140018cc4
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov esi, eax
je 0x140018cc4
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 0x140018cc4
lea ecx, [rbx + 2]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
test rax, rax
mov rbx, rax
je 0x140018cc4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140018c98
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call fcn.140148c90
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 0x140018cc4
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140018cdd
xor edx, edx
call fcn.140011e30
test rax, rax
mov rdi, rax
je 0x140018cc4
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.1400186f0
test rdi, rdi
mov rbx, rax
je 0x140018cbf
mov r8, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [r8]
mov rax, rbx
jmp 0x140018cf6
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140018cdd
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x58], 0
test rbx, rbx
je 0x140018cf4
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 0x1400340f0
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 0x140034179
mov ecx, 0x114
mov ebx, 1
call fcn.140146510
test rax, rax
mov rdi, rax
je 0x1400341ee
xor edx, edx
mov r8d, 0x114
mov rcx, rax
call fcn.1401489d0
mov rcx, rdi
mov dword [rdi], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r11d, dword [rdi + 4]
cmp r11d, 4
jne 0x140034154
lea ebx, [r11 + 1]
jmp 0x1400341e6
cmp r11d, 5
jne 0x1400341e6
cmp dword [rdi + 8], 0
jne 0x14003416a
lea ebx, [r11 + 1]
jmp 0x1400341e6
cmp r11d, 5
jne 0x1400341e6
cmp dword [rdi + 8], ebx
lea eax, [r11 + 2]
jmp 0x1400341e3
cmp al, 4
jae 0x14003418a
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x114
mov ebx, 2
call fcn.140146510
test rax, rax
mov rdi, rax
je 0x1400341ee
xor edx, edx
mov r8d, 0x114
mov rcx, rax
call fcn.1401489d0
mov rcx, rdi
mov dword [rdi], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r11d, dword [rdi + 4]
cmp r11d, 4
jne 0x1400341e6
cmp dword [rdi + 8], 0xa
jne 0x1400341d6
lea ebx, [r11 - 1]
jmp 0x1400341e6
cmp r11d, 4
jne 0x1400341e6
cmp dword [rdi + 8], 0x5a
mov eax, r11d
cmove ebx, eax
mov rcx, rdi
call fcn.1401465e0
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14003b9f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x2a8
mov rax, qword [0x1401ea158]
xor rax, rsp
mov qword [rsp + 0x290], rax
cmp dword [0x140208574], 0
jne 0x14003bb4e
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 [0x140208574], edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003bb46
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 0x14003bb3b
mov rax, qword [str.Windows_Classic.theme]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x2b0], rbx
mov qword [rcx], rax
mov rax, qword [0x1401886f8]
mov qword [rcx + 8], rax
mov rax, qword [0x140188700]
mov qword [rcx + 0x10], rax
mov rax, qword [0x140188708]
mov qword [rcx + 0x18], rax
mov rax, qword [0x140188710]
mov qword [rcx + 0x20], rax
mov eax, dword [0x140188718]
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 0x14003bb33
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 [0x140208570]
test eax, eax
cmove ecx, edi
mov dword [0x140208570], 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 [0x140208570]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1401447b0
add rsp, 0x2a8
ret
Function at 0x14003c9b0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
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 0x14003c9f5
cvtsi2ss xmm1, esi
cvtsi2ss xmm0, edi
divss xmm1, xmm0
movss dword [0x1401ec61c], xmm1
jmp 0x14003c9fd
movss xmm1, dword [0x1401ec61c]
cmp eax, ebx
jge 0x14003ca17
cvtsi2ss xmm2, eax
cvtsi2ss xmm0, ebx
divss xmm2, xmm0
movss dword [0x1401ec6d4], xmm2
jmp 0x14003ca1f
movss xmm2, dword [0x1401ec6d4]
comiss xmm1, xmm2
jbe 0x14003ca31
movss dword [0x1401ec61c], xmm2
movaps xmm1, xmm2
jmp 0x14003ca41
comiss xmm2, xmm1
jbe 0x14003ca41
movss dword [0x1401ec6d4], xmm1
movaps xmm2, xmm1
movss xmm0, dword [0x14019ac6c]
comiss xmm0, xmm2
jbe 0x14003caf9
cmp eax, 0x258
movss xmm3, dword [0x14019bc9c]
jg 0x14003ca64
movaps xmm0, xmm3
divss xmm0, xmm2
comiss xmm0, dword [0x14019bc98]
movss dword [0x1401ec6d4], xmm0
movaps xmm2, xmm0
jbe 0x14003ca89
movss dword [0x1401ec6d4], xmm3
movaps xmm2, xmm3
jmp 0x14003caee
comiss xmm0, dword [0x14019bc94]
jbe 0x14003ca9c
movss xmm2, dword [0x14019bc90]
jmp 0x14003cae6
comiss xmm0, dword [0x14019bc8c]
jbe 0x14003caaf
movss xmm2, dword [0x14019bc88]
jmp 0x14003cae6
comiss xmm0, dword [0x14019bc84]
jbe 0x14003cac2
movss xmm2, dword [0x14019bc80]
jmp 0x14003cae6
comiss xmm0, dword [0x14019ae38]
jbe 0x14003cad5
movss xmm2, dword [0x14019ac98]
jmp 0x14003cae6
comiss xmm0, dword [0x14019bc7c]
jbe 0x14003caee
movss xmm2, dword [0x14019bc78]
movss dword [0x1401ec6d4], xmm2
movss dword [0x1401ec61c], xmm2
movaps xmm1, xmm2
movss xmm0, dword [0x1401ec4ec]
lea rax, [rsp + 0x50]
lea rdx, str.SoftwareRealtekAudioGUI_INFORMATION
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
mulss xmm0, xmm1
movss xmm1, dword [0x1401ec5a4]
mulss xmm1, xmm2
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x20], rax
movss dword [0x1401ec4ec], xmm0
movss dword [0x1401ec5a4], xmm1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003cbb4
movss xmm0, dword [0x1401ec6d4]
mov rbx, qword [rsp + 0x50]
lea rdx, str.CplScalingFactor
addss xmm0, dword [0x14019ac70]
mov r9d, 4
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], 4
mulss xmm0, dword [0x14019ac68]
cvttss2si rax, xmm0
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rbx, rbx
je 0x14003cbb4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14003d570
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x14003d5cc
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 0x14003d5ba
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 0x14003d5e1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14003d5f8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0
add rsp, 0x20
pop rbx
ret

Function at 0x1400430e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
xor r12d, r12d
mov rbx, qword [rcx + 0x10]
test rdx, rdx
je 0x14004325d
mov rcx, qword [rbx + 0x198]
test rcx, rcx
je 0x140043258
lea r8, [0x140188e78]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140043253
mov rdx, rax
mov rcx, qword [rbx + 0x198]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
je 0x14004324e
mov rdx, rdi
mov rcx, qword [rbx + 0x198]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140043249
lea ecx, [r12 + 0x50]
call fcn.1401281a0
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14004319a
mov edx, 0x400
mov rcx, rax
call fcn.14013d68c
mov rsi, rax
jmp 0x14004319d
mov rsi, r12
test rsi, rsi
je 0x140043244
xor r9d, r9d
mov r8d, ebp
mov rdx, rbx
mov rcx, rsi
call fcn.14013d6d8
mov ecx, 0x78
call fcn.1401281a0
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140043213
lea rax, vtable.v.0
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], r12
mov dword [rdi + 0x18], 0x11
mov qword [rdi + 0x20], r12
mov qword [rdi + 0x28], r12
mov qword [rdi + 0x30], r12
mov qword [rdi + 0x38], 0xa
mov edx, 0xa
lea rcx, [rdi + 0x40]
call fcn.140139b24
lea r11, method..45.virtual_0
mov qword [rdi + 0x40], r11
jmp 0x140043216
mov rdi, r12
mov dword [rdi], r12d
mov dword [rdi + 4], r12d
mov rdx, rdi
mov rcx, rsi
call fcn.14000cba0
mov rcx, rsi
call fcn.14013d71c
mov r11, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [r11 + reloc.OLEAUT32.dll_VariantClear]
mov rax, rdi
jmp 0x140043260
mov rax, r12
jmp 0x140043260
mov rax, r12
jmp 0x140043260
mov rax, r12
jmp 0x140043260
mov rax, r12
jmp 0x140043260
mov rax, r12
jmp 0x140043260
mov rax, r12
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x14004bcc0
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, [0x1401f1378]
lea r13, str.Arabic
lea r14d, [rbp + 0x12]
mov r12d, 0x804
je 0x14004bdbf
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 0x14004bd4b
add ecx, 1
add rdx, 0x10
cmp ecx, 0x21
jb 0x14004bd30
jmp 0x14004bd58
movsxd rax, ecx
shl rax, 4
mov r8w, word [rax + r13 + 8]
mov ax, r11w
and eax, 0x3ff
cmp eax, 4
je 0x14004bda3
cmp eax, 0x16
je 0x14004bd8a
cmp eax, 0x1a
jne 0x14004bdb7
shr r11w, 0xa
cmp r11w, 2
je 0x14004bd83
cmp r11w, 9
jne 0x14004bdb7
mov r8w, 0x81a
jmp 0x14004bdb7
and r11w, 0xfc00
mov r8d, 0x816
cmp r11w, 0x400
cmove r8w, r14w
jmp 0x14004bdb7
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, [0x140206e90]
xor r9d, r9d
mov dword [rsi + 8], 1
mov word [rsi + 0xc], ax
call fcn.1401380a8
test ax, ax
mov r11d, eax
je 0x14004bea1
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 0x14004be2c
add edx, 1
add rax, 0x10
cmp edx, 0x21
jb 0x14004be10
jmp 0x14004be39
movsxd rax, edx
shl rax, 4
mov r8w, word [rax + r13 + 8]
mov ax, r11w
and eax, 0x3ff
cmp eax, 4
je 0x14004be84
cmp eax, 0x16
je 0x14004be6b
cmp eax, 0x1a
jne 0x14004be99
shr r11w, 0xa
cmp r11w, 2
je 0x14004be64
cmp r11w, 9
jne 0x14004be99
mov r8w, 0x81a
jmp 0x14004be99
and r11w, 0xfc00
mov r8d, 0x816
cmp r11w, 0x400
cmove r8w, r14w
jmp 0x14004be99
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 0x14004beb2
mov dword [rsi + 0xf4], 0x20
jmp 0x14004becf
movzx eax, word [rsi + 0xc]
cmp word [rdi], ax
je 0x14004bec9
add ebx, 1
add rdi, 0x10
cmp ebx, 0x21
jb 0x14004beb6
jmp 0x14004becf
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 0x14004d420
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 0x14004d582
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14004d582
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x14004d582
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x14004d4c6
nop
cmp rdi, r11
jae 0x14004d582
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x14004d4b0
cmp rdi, r11
jae 0x14004d582
movzx eax, word [rdi]
test ax, ax
je 0x14004d582
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 0x14004d4fc
mov edx, ebx
mov rcx, rsi
call fcn.140002da0
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x14004d519
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.1401448d0
test eax, eax
je 0x14004d558
cmp eax, 0xc
je 0x14004d552
cmp eax, 0x16
je 0x14004d54c
cmp eax, 0x22
je 0x14004d54c
cmp eax, 0x50
je 0x14004d558
call fcn.1401298b4
int3
call fcn.1401298b4
int3
call fcn.14012986c
int3
test ebx, ebx
js 0x14004d577
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x14004d577
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x14004d584
mov ecx, 0x80070057
call fcn.140002d80
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 0x14004fca9
Capabilities:
Create process on windows

Disassembly:
test rdx, rdx
je 0x14004fdde
push rbx
mov eax, 0x100f0
call fcn.140166d30
sub rsp, rax
mov rax, qword [0x1401ea158]
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.140146390
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 0x14004fd37
lea r8, str.CPLUtl64.exe__x
lea rcx, [rsp + 0xe0]
mov edx, 0x7fff
call fcn.140146390
lea rcx, [rsp + 0xe0]
mov r8, rbx
mov edx, 0x7fff
call fcn.140146440
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.1401489d0
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 0x14004fdb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14004fdc6
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.1401447b0
add rsp, 0x100f0
pop rbx
ret 0
Function at 0x14004fdf0
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 [0x1401ea158]
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.1401489d0
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14004ffd6
mov word [rsp + 0x246], 0
call fcn.140129a50
mov rdx, rax
xor r12d, r12d
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x14004fe85
mov ecx, 0x80004005
call fcn.140002d80
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.140004be0
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 0x14004fedd
cmp rax, qword [rbp - 0x18]
jne 0x14004fedd
lea rbx, [rbp - 0x18]
lock add dword [rbp - 8], 1
jmp 0x14004ff1b
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbp - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x14004fef9
call fcn.1400b7790
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.1401448d0
add rbx, 0x18
mov qword [rsp + 0x30], rbx
xor eax, eax
lea rdi, [0x14017f438]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x14004ff3f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
jne 0x14004ff67
lea rdx, [rbx - 0x18]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14004ffb7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14004ffb7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14004ff94
lea rdx, [rbx - 0x18]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14004ffb7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14004ffb7
lea rdx, [rbx - 0x18]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14004ffb1
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 0x14004ffd1
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
lea rdx, [rbp - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
jmp 0x14004ffd8
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1401447b0
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