joyce8/EMBER2024-capa huggingface dataset:
Function at 0x541240
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0076a704]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x5413c8
mov rax, qword [0x0076a708]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x54128c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x541315
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x541270
mov rcx, rbx
call fcn.00541ee0
test rax, rax
mov r12, rax
je 0x5413fd
mov rax, qword [0x0076a708]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00542010
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0076a708]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x5413e0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x54130e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x541370
add dword [0x0076a704], 1
cmp edi, 8
jae 0x541343
test dil, 4
jne 0x5413b4
test edi, edi
je 0x541338
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x5413cf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x541338
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x54135c
jmp 0x541338
add rsi, qword [0x0076a708]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x54130e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00542530
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x541338
xor esi, esi
jmp 0x541297
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x541338
mov rax, qword [0x0076a708]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00542530
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00542530
nop
nop dword [rax]

Function at 0x541b50
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0076a9e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0076a9c0]
test rbx, rbx
je 0x541ba4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x541b9b
test rsi, rsi
je 0x541b9b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x541b80
lea rcx, [0x0076a9e0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x541ee0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x006d6040]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x541f4d
mov rcx, r8
call fcn.00541dc0
test eax, eax
je 0x541f4d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x541f4d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x541f44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x541f4f
add rax, 0x28
cmp rax, r9
jne 0x541f30
xor eax, eax
add rsp, 0x28
ret

Function at 0x542530
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.005424c0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.005424c0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x4beb20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004c4624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4beca8
mov rax, qword [0x004c4628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4beb6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4bebf5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4beb50
mov rcx, rbx
call fcn.004bf7c0
test rax, rax
mov r12, rax
je 0x4becdd
mov rax, qword [0x004c4628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.004bf8f0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004c4628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4becc0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4bebee
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4bec50
add dword [0x004c4624], 1
cmp edi, 8
jae 0x4bec23
test dil, 4
jne 0x4bec94
test edi, edi
je 0x4bec18
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4becaf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4bec18
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4bec3c
jmp 0x4bec18
add rsi, qword [0x004c4628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4bebee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004bfcb0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4bec18
xor esi, esi
jmp 0x4beb77
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4bec18
mov rax, qword [0x004c4628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.004bfcb0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004bfcb0
nop
nop dword [rax]

Function at 0x4bf430
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004c4900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004c48e0]
test rbx, rbx
je 0x4bf484
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4bf47b
test rsi, rsi
je 0x4bf47b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4bf460
lea rcx, [0x004c4900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4bf7c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004c1360]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4bf82d
mov rcx, r8
call fcn.004bf6a0
test eax, eax
je 0x4bf82d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4bf82d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4bf824
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4bf82f
add rax, 0x28
cmp rax, r9
jne 0x4bf810
xor eax, eax
add rsp, 0x28
ret

Function at 0x4bfcb0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.004bfb80
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.004bfb80
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140001020
Capabilities:
Hash data using djb2

Disassembly:
xor eax, eax
test rcx, rcx
je 0x14000106c
mov r9, rcx
mov eax, 0x1505
mov r8b, byte [r9]
test rdx, rdx
jne 0x14000103e
test r8b, r8b
jne 0x140001053
jmp 0x14000106c
mov r10, r9
sub r10, rcx
cmp r10, rdx
jae 0x14000106c
test r8b, r8b
jne 0x140001053
inc r9
jmp 0x14000105d
cmp r8b, 0x60
jbe 0x14000105d
sub r8d, 0x20
imul eax, eax, 0x21
movzx r8d, r8b
inc r9
add eax, r8d
jmp 0x14000102f
ret

Function at 0x140001550
Capabilities:
Check os version
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x20], 0
mov rbx, rcx
je 0x140001571
cmp qword [rcx + 0x28], 0
je 0x140001571
cmp qword [rcx + 0x30], 0
jne 0x140001605
mov rax, qword [0x140004040]
mov edx, 0x38
lea rcx, [rax + 0x1e8]
call fcn.140002120
mov rax, qword gs:[0x60]
test rax, rax
jne 0x14000159b
xor eax, eax
jmp 0x14000160a
cmp dword [rax + 0x118], 0xa
jne 0x140001597
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
cmp word [rax], 0x5a4d
mov qword [rbx], rax
mov qword [rbx + 8], rax
jne 0x140001597
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
mov qword [rbx + 0x10], rdx
jne 0x140001597
mov edx, dword [rdx + 0x88]
add rdx, rax
cmp dword [rdx + 0x10], 0
mov qword [rbx + 0x18], rdx
je 0x140001597
mov ecx, dword [rdx + 0x1c]
add rcx, rax
mov qword [rbx + 0x20], rcx
mov ecx, dword [rdx + 0x20]
mov edx, dword [rdx + 0x24]
add rcx, rax
add rax, rdx
mov qword [rbx + 0x28], rcx
mov qword [rbx + 0x30], rax
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x1400018e0
Capabilities:
Access peb ldr_data

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x10]
mov esi, ecx
lea rdi, [rax + 0x10]
cmp rbx, rdi
je 0x140001923
movzx edx, word [rbx + 0x58]
mov rcx, qword [rbx + 0x60]
call fcn.140001020
cmp eax, esi
jne 0x14000191e
mov rax, qword [rbx + 0x30]
jmp 0x140001925
mov rbx, qword [rbx]
jmp 0x140001902
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14000192d
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140001947
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
je 0x140001947
xor eax, eax
ret
Function at 0x1400074b0
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 r8d, 6
add ax, 1
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x140007612
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140007612
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x140007612
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x140007556
nop
cmp rdi, r11
jae 0x140007612
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140007540
cmp rdi, r11
jae 0x140007612
movzx eax, word [rdi]
test ax, ax
je 0x140007612
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 0x14000758c
mov edx, ebx
mov rcx, rsi
call fcn.140003c90
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x1400075a9
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.140216220
test eax, eax
je 0x1400075e8
cmp eax, 0xc
je 0x1400075e2
cmp eax, 0x16
je 0x1400075dc
cmp eax, 0x22
je 0x1400075dc
cmp eax, 0x50
je 0x1400075e8
call fcn.1401e7838
int3
call fcn.1401e7838
int3
call fcn.1401e77f0
int3
test ebx, ebx
js 0x140007607
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x140007607
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x140007614
mov ecx, 0x80070057
call fcn.140003c70
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 0x140007630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140007663
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
je 0x1400076a7
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x1400076a2
cmp rbx, r11
jae 0x1400076a7
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140007690
cmp rbx, r11
jb 0x1400076ab
xor eax, eax
jmp 0x1400076b7
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001eaa0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
lea rbx, [rcx + 0x430]
mov rdi, rcx
test rbx, rbx
je 0x14001eac0
cmp qword [rbx + 0x40], 0
jne 0x14001eade
mov rax, qword [rbx]
mov dword [rcx + 0x714], 0xcbd
xor r8d, r8d
mov edx, 0x1d3
mov rcx, rbx
call qword [rax + 0x268]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
call fcn.1401e23d0
cmp rax, rbx
je 0x14001eba3
mov rcx, qword [rdi + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test rbx, rbx
jne 0x14001eb12
xor edi, edi
jmp 0x14001eb16
mov rdi, qword [rbx + 0x40]
mov edx, 0xfffffff0
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowLongW]
bt eax, 0x1d
jae 0x14001eb41
mov edx, 3
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rdi
call qword [sym.imp.USER32.dll_UpdateWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
mov ebp, eax
je 0x14001eb70
mov r8d, 1
mov edx, eax
mov ecx, esi
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
cmp esi, ebp
je 0x14001eb8a
xor r8d, r8d
mov edx, ebp
mov ecx, esi
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov edx, 1
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.1401dc71c
Function at 0x14001efd0
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0xa8], 0
mov rbx, rcx
je 0x14001f0b3
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
call fcn.1401e23d0
cmp qword [rbx + 0xa8], rax
je 0x14001f0b3
mov rcx, qword [rbx + 0x40]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rbx, qword [rbx + 0xa8]
test rbx, rbx
je 0x14001f026
mov rbx, qword [rbx + 0x40]
mov edx, 0xfffffff0
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowLongW]
bt eax, 0x1d
jae 0x14001f051
mov edx, 3
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_UpdateWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
mov esi, eax
je 0x14001f080
mov r8d, 1
mov edx, eax
mov ecx, edi
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
cmp edi, esi
je 0x14001f09a
xor r8d, r8d
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x1400225d9
Capabilities:
Create process on windows

Disassembly:
test rdx, rdx
je 0x14002270e
push rbx
mov eax, 0x100f0
call fcn.140237890
sub rsp, rax
mov rax, qword [0x140300da0]
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.1402174f0
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 0x140022667
lea r8, str.CPLUtl64.exe__x
lea rcx, [rsp + 0xe0]
mov edx, 0x7fff
call fcn.1402174f0
lea rcx, [rsp + 0xe0]
mov r8, rbx
mov edx, 0x7fff
call fcn.1402175a0
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.1402197d0
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 0x1400226e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400226f6
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.140216200
add rsp, 0x100f0
pop rbx
ret 0
Function at 0x140022720
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 [0x140300da0]
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.1402197d0
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140022906
mov word [rsp + 0x246], 0
call fcn.1401e9268
mov rdx, rax
xor r12d, r12d
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400227b5
mov ecx, 0x80004005
call fcn.140003c70
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.140004020
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 0x14002280d
cmp rax, qword [rbp - 0x18]
jne 0x14002280d
lea rbx, [rbp - 0x18]
lock add dword [rbp - 8], 1
jmp 0x14002284b
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbp - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x140022829
call fcn.1400f0ca0
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.140216220
add rbx, 0x18
mov qword [rsp + 0x30], rbx
xor eax, eax
lea rdi, [0x140260b08]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x14002286f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
jne 0x140022897
lea rdx, [rbx - 0x18]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1400228e7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400228e7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400228c4
lea rdx, [rbx - 0x18]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1400228e7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400228e7
lea rdx, [rbx - 0x18]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1400228e1
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 0x140022901
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
lea rdx, [rbp - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
jmp 0x140022908
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140216200
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 0x14002ed80
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 0x14002ee09
mov ecx, 0x114
mov ebx, 1
call fcn.1402176d0
test rax, rax
mov rdi, rax
je 0x14002ee7e
xor edx, edx
mov r8d, 0x114
mov rcx, rax
call fcn.1402197d0
mov rcx, rdi
mov dword [rdi], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r11d, dword [rdi + 4]
cmp r11d, 4
jne 0x14002ede4
lea ebx, [r11 + 1]
jmp 0x14002ee76
cmp r11d, 5
jne 0x14002ee76
cmp dword [rdi + 8], 0
jne 0x14002edfa
lea ebx, [r11 + 1]
jmp 0x14002ee76
cmp r11d, 5
jne 0x14002ee76
cmp dword [rdi + 8], ebx
lea eax, [r11 + 2]
jmp 0x14002ee73
cmp al, 4
jae 0x14002ee1a
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x114
mov ebx, 2
call fcn.1402176d0
test rax, rax
mov rdi, rax
je 0x14002ee7e
xor edx, edx
mov r8d, 0x114
mov rcx, rax
call fcn.1402197d0
mov rcx, rdi
mov dword [rdi], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r11d, dword [rdi + 4]
cmp r11d, 4
jne 0x14002ee76
cmp dword [rdi + 8], 0xa
jne 0x14002ee66
lea ebx, [r11 - 1]
jmp 0x14002ee76
cmp r11d, 4
jne 0x14002ee76
cmp dword [rdi + 8], 0x5a
mov eax, r11d
cmove ebx, eax
mov rcx, rdi
call fcn.1402177a0
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret