joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400038e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14001db20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003900
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003908
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003900
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140003955
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000394c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003900
add rax, 0x28
cmp rax, r9
jne 0x140003938
xor eax, eax
ret

Function at 0x140003960
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001db20]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140003980
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003988
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003980
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140003a10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001db20]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140003a30
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140003a38
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140005200
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14001dba0]
mov rax, qword [rsi]
test rax, rax
je 0x140005290
cmp qword [rax + 0x30], 0
jne 0x1400052b0
lea rbx, [0x14001b088]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140005260
cmp qword [rax + 0x30], 0
jne 0x140005280
lea rdx, [0x14001b088]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x14001a4d0
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14000a100
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140005242
test rax, rax
jne 0x140005280
call fcn.14000a100
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140005250
call fcn.14000a100
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140005220
test rax, rax
jne 0x1400052b0
call fcn.14000a100
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x14000522b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x1400052c0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1400053d2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400053aa
add rax, 1
cmp rax, 0x6b
je 0x1400053c7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x1400053a0
cmp edx, 0x6a
je 0x1400053c7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400053bb
Function at 0x140005de0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x14001dba0]
mov rax, qword [rsi]
test rax, rax
je 0x140005fd0
cmp qword [rax + 0x28], 0
jne 0x140005fb8
lea rcx, [0x1400211d8]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140005fc5
call fcn.1400053f0
mov rax, qword [rsi]
test rax, rax
je 0x140005e60
cmp qword [rax + 0x30], 0
jne 0x140005e80
lea rdx, [0x14001b088]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x140005e94
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14000a100
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140005e30
test rax, rax
jne 0x140005e80
call fcn.14000a100
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x140005e4e
call fcn.140004f30
cmp qword [0x140024050], 0
mov rbx, rax
je 0x140005e4e
test rax, rax
je 0x140005e4e
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14000bfa0
cmp eax, 1
je 0x14000603d
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14001a4d6
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x140006018
cmp qword [rax + 0x30], 0
je 0x140006000
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14001a4d6
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x140005e1c
mov rax, qword [rsi]
jmp 0x140005e29
call fcn.14000a100
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x140005e08
test rax, rax
jne 0x140005fb8
call fcn.14000a100
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x140005e1c
jmp 0x140005e21
lea rdx, [0x14001b088]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x140005f8e
call fcn.14000a100
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140006000
test rax, rax
jne 0x140005f8a
call fcn.14000a100
jmp 0x140005f8a
call fcn.1400052c0
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x14001dba0]
mov rdx, qword [rax]
lea rax, [0x1400211e8]
mov qword [rdx + 0x10], rax
ret
Function at 0x140009f80
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140009fa0
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140009fe8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140009f94
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140009fd5
Function at 0x14000a100
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1400212c0]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x14000a123
lea rax, [0x1400212c8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x14000a16b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000a168
lea rax, [0x140021300]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x14000a19b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000a198
xor ecx, ecx
mov byte [0x140021319], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140021322], rdx
lea r8, [0x1400212c0]
lea rbx, [0x14002131a]
mov qword [0x140021332], rdx
mov qword [0x140021342], rdx
mov qword [0x140021352], rdx
xor edx, edx
mov qword [0x14002131a], rax
mov qword [0x14002132a], rax
mov qword [0x14002133a], rax
mov qword [0x14002134a], rax
mov byte [0x14002135a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000a376
lea rcx, [0x140021300]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x14000a2c1
lea rsi, [0x140021200]
lea r8, [0x14002135a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14000a26d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x14000a260
lea rcx, [0x140021300]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x14000a363
lea rcx, [0x14000a010]
mov qword [0x140021200], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x140021200]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x140021300]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14002135a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x14000a396
nop dword [rax]
cmp byte [rax], 0x41
jne 0x14000a313
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x14000a300
mov rax, rdx
mov qword [0x140021200], rax
lea rsi, [0x140021200]
jmp 0x14000a339
cmp rdx, rsi
je 0x14000a29f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x14000a330
cmp rdx, rsi
je 0x14000a29f
mov qword [rdx + 8], rsi
lea rcx, [0x14000a010]
call sub.msvcrt.dll__onexit
jmp 0x14000a29f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140009f80
xor eax, eax
jmp 0x14000a2b8
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140009f80
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.140009f80
xor eax, eax
jmp 0x14000a31f
Function at 0x1400105d8
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rcx, qword [rcx + 0x40]
mov rsi, rdx
xor ebx, ebx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140010638
lea ecx, [rbx + 1]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
test rax, rax
je 0x140010632
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140010632
mov rdx, rax
mov rcx, rsi
call fcn.140002f88
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, 1
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001c498
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [rdx]
sub rcx, 0x18
call fcn.140003e68
lea rbx, [rax + 0x18]
test rdi, rdi
jne 0x14001c4cc
xor ecx, ecx
jmp 0x14001c4d0
mov rcx, qword [rdi + 0x40]
mov dword [rsp + 0x28], 5
and qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rbx
lea rdx, str.open
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
cmp eax, 0x20
mov eax, ebx
jg 0x14001c536
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14001c513
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsi]
sub rcx, 0x18
call fcn.140003e68
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x70]
call fcn.14001c578
mov edi, eax
jmp 0x14001c54f
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14001c54a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, 1
mov rdx, qword [rsi]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14001c56c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x14001c9ac
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1402a48e0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, qword [rdx]
lea r9, [rsp + 0x20]
mov rbx, rcx
mov dword [rsp + 0x20], 0x104
mov rcx, rdi
lea r8, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea rax, [rsp + 0x30]
sub rbx, rax
lea rdx, [rsp + 0x30]
movzx eax, word [rdx]
mov word [rbx + rdx], ax
lea rdx, [rdx + 2]
test ax, ax
jne 0x14001c9fb
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401bf180
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret

Function at 0x14001d5cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
cmp rdx, 0x10000
jae 0x14001d60b
cmp dword [rcx + 0xe8], 0
jne 0x14001d60b
movzx eax, di
mov dword [rcx + 0xe8], eax
call fcn.14002adbc
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.14001d990
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001d668
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 r14
push r15
sub rsp, 0x20
mov r14, r8
mov rbx, rdx
mov r15, rcx
xor edi, edi
call fcn.14002adbc
lea r8d, [rdi + 5]
mov rdx, rbx
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x14001d6c4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov r9, rbp
mov r8, r14
mov rdx, rdi
mov rcx, r15
call fcn.14001d6fc
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140022264
Capabilities:
Extract resource via kernel32 functions

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, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov r14, rcx
test rdx, rdx
je 0x1400222cc
call fcn.14002adbc
mov r8d, 0xf0
mov rdx, rsi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400222cc
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x1400222ee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, r14
call fcn.140053790
mov esi, eax
test rdi, rdi
je 0x1400222ec
test rbx, rbx
je 0x1400222ec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400230b8
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 r14
push r15
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140023190
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x140023190
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140023190
test rsi, rsi
je 0x140023190
xor r15d, r15d
xor ebp, ebp
xor edi, edi
call fcn.14002adbc
lea r8, str.AFX_DIALOG_LAYOUT
mov rdx, rsi
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14002315d
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rsi
mov rcx, r14
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140023190
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
mov r8d, r15d
mov rdx, rbp
mov rcx, rbx
call fcn.140057f1c
mov esi, eax
test rbp, rbp
je 0x140023180
test rdi, rdi
je 0x140023180
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
je 0x14002318c
mov rcx, rbx
call fcn.140022d78
mov eax, esi
jmp 0x140023192
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140024104
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rbx, r8
mov rcx, qword [rcx + 0x40]
call fcn.140054504
mov rdi, rax
test rax, rax
je 0x140024180
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x14002417b
cmp dword [rbx], 0x40
jb 0x14002417b
mov rcx, qword [rbp + 0x40]
xor r9d, r9d
or dword [rbx + 4], 1
xor r8d, r8d
or qword [rbx + 0x30], 0xffffffffffffffff
mov edx, 0x87
mov qword [rbx + 8], rcx
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x14002417b
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x140024184
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140028850
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
movsxd rsi, r8d
mov rbx, rdx
mov rdi, rcx
cmp qword [rcx + 0xd0], 0
jne 0x14002888e
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x140028938
call fcn.14001e84c
mov rcx, rax
test rax, rax
je 0x14002894e
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14007d236.0]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rdi + 0xd0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
mov rax, qword [rax + 0x118]
call qword [case.0x14007d236.0]
mov rdx, rsi
or rdi, 0xffffffffffffffff
mov r9, rdi
mov r8, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1401d28f0
test eax, eax
je 0x140028900
cmp eax, 0xc
je 0x140028948
cmp eax, 0x16
je 0x14002895f
cmp eax, 0x22
je 0x14002895f
cmp eax, 0x50
jne 0x140028959
test rbx, rbx
je 0x140028910
mov rcx, rbx
call fcn.1401c7164
mov rbx, rax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, edi
test ecx, ecx
jg 0x140028936
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14007d236.0]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call fcn.14001f668
nop
mov ecx, 0x80004005
call fcn.140003084
nop
call fcn.14001f644
int3
call fcn.14001f644
int3

Function at 0x140029294
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x78
test rdx, rdx
je 0x1400292fc
mov r10, qword [rcx + 0x10]
test r10, r10
je 0x1400292e6
cmp qword [rcx + 0x18], 0
jne 0x1400292e1
mov eax, dword [rcx + 0xc]
cmp eax, dword [rcx + 0x30]
jae 0x140029302
mov qword [rsp + 0x58], rdx
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x50
mov edx, eax
mov dword [rsp + 0x24], 0x40
mov r8d, 1
mov rcx, qword [r10 + 8]
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
add rsp, 0x78
ret
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x1400292fc
mov rcx, qword [rcx + 0x40]
add rsp, 0x78
jmp fcn.1400541c0
call fcn.14001f644
int3
call fcn.14001f644
int3
Function at 0x140043ca4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r15, rdx
mov r14, rcx
call fcn.14002adbc
mov r8d, 0xf1
mov rdx, r15
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r12d, r12d
test rax, rax
je 0x140043dc7
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140043dc7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140043dc7
movzx ecx, word [rax + 6]
lea eax, [r12 + 4]
mul rcx
lea rcx, [r12 - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.14001d2a8
movzx ecx, word [rbx + 6]
mov rbp, rax
mov eax, r12d
cmp r12w, cx
jae 0x140043d60
mov rdx, rbp
lea r8, [rbx + 8]
movzx ecx, word [r8]
inc eax
mov dword [rdx], ecx
lea r8, [r8 + 2]
movzx ecx, word [rbx + 6]
lea rdx, [rdx + 4]
cmp eax, ecx
jl 0x140043d48
movzx r8d, cx
mov rdx, rbp
mov rcx, r14
call fcn.1400445d8
mov rcx, rbp
mov esi, eax
call fcn.14001d2a0
test esi, esi
je 0x140043dba
movzx ecx, word [rbx + 4]
movzx eax, word [rbx + 2]
mov dword [rsp + 0x60], eax
add eax, 7
mov dword [rsp + 0x68], eax
lea eax, [rcx + 7]
mov dword [rsp + 0x64], ecx
mov r8, qword [rsp + 0x60]
mov rcx, r14
mov dword [rsp + 0x6c], eax
mov rdx, qword [rsp + 0x68]
call fcn.1400447e0
mov rdx, r15
mov rcx, r14
call fcn.140043c28
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x140043dc9
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x14004be24
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xb0], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x14004be9f
xor r8d, r8d
call fcn.14004c0ec
mov rsi, rax
test rax, rax
je 0x14004be9b
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14004be9b
mov eax, dword [rsp + 0x30]
jmp 0x14004beb5
mov eax, edi
jmp 0x14004beb5
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret