joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180134350
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x20
mov r15, qword [rsp + 0x70]
xor r13d, r13d
movsxd rdi, r9d
mov rsi, r8
mov r14d, edx
mov r8, rcx
mov r10d, edx
mov dword [r15], r13d
test rcx, rcx
je 0x180134493
lea eax, [rdi - 1]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], r12
lea r9d, [r13 + 0xd]
movsxd rdx, eax
test eax, eax
js 0x1801343b7
nop dword [rax + rax]
movsx ecx, byte [rsi + rdx]
lea eax, [r9*8]
xor ecx, eax
xor r9d, ecx
sub rdx, 1
jns 0x1801343a0
lea ecx, [r9*8]
mov eax, r9d
xor rcx, r10
xor rcx, rax
and ecx, 0x1ff
mov rbx, qword [r8 + rcx*8]
lea r12, [r8 + rcx*8]
test rbx, rbx
je 0x180134406
nop dword [rax + rax]
cmp dword [rbx + 0xc], r14d
jne 0x1801343fd
cmp dword [rbx + 8], edi
jne 0x1801343fd
mov rcx, qword [rbx]
mov r8, rdi
mov rdx, rsi
call fcn.1800025db
test eax, eax
je 0x180134479
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1801343e0
mov qword [rsp + 0x58], rbp
lea rbp, [rdi + 0x18]
call fcn.180003c56
test eax, eax
jne 0x180134485
mov rcx, rbp
call fcn.1801408c0
mov rbx, rax
test rax, rax
je 0x180134485
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.180003b25
lea rcx, [rbx + 0x18]
mov dword [rbx + 8], edi
mov r8, rdi
mov qword [rbx], rcx
mov rdx, rsi
mov dword [rbx + 0xc], r14d
call fcn.180002c16
mov rcx, qword [r12]
mov eax, r13d
mov qword [rbx + 0x10], rcx
mov qword [r12], rbx
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r12, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
mov dword [r15], 1
mov eax, r13d
jmp 0x180134462
test rbp, rbp
mov eax, 7
cmovle eax, r13d
jmp 0x18013445d
mov eax, r13d
add rsp, 0x20
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x2fc4d7ce0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d8dc0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d86e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fb108]
test eax, eax
je 0x2fc4d877a
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fb110]
mov qword [rbp - 8], rax
jmp 0x2fc4d875e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d8752
cmp qword [rbp - 0x10], 0
je 0x2fc4d8752
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d8718
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d877b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d8880
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d88a8
mov eax, 0
jmp 0x2fc4d88f6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d88d1
mov eax, 0
jmp 0x2fc4d88f6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d88f1
mov eax, 0
jmp 0x2fc4d88f6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d88fc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d897a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d8971
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d8971
mov rax, qword [rbp - 8]
jmp 0x2fc4d898f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d8944
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400101dc
Capabilities:
Write clipboard data

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], r14
mov rax, qword [0x1402a18e0]
xor rax, rbp
mov qword [rbp + 8], rax
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x140010313
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x140010313
lea rcx, [rbp]
call fcn.140010400
mov rcx, rsi
call fcn.1400103a8
test eax, eax
je 0x140010306
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
mov ecx, 0x2002
movsxd rdx, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r14, rax
test rax, rax
je 0x140010300
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
call fcn.140002b54
mov r9d, eax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdi + rcx*2], bx
jne 0x140010283
inc ecx
cmp ecx, 0x3fffffff
jle 0x14001029b
mov rax, rbx
jmp 0x1400102d4
movsxd rax, ecx
lea r8d, [rcx + rcx]
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400102b8
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1401be0a0
sub rsp, rcx
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.14000927c
sub rsi, rax
mov dl, byte [rax]
mov byte [rsi + rax], dl
inc rax
test dl, dl
jne 0x1400102d7
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, r14
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
setne bl
call qword [sym.imp.USER32.dll_CloseClipboard]
lea rcx, [rbp]
call fcn.1400103b4
mov eax, ebx
jmp 0x140010315
xor eax, eax
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.1401bd7e0
mov rbx, qword [rbp + 0x20]
mov rsi, qword [rbp + 0x28]
mov rdi, qword [rbp + 0x30]
mov r14, qword [rbp + 0x38]
lea rsp, [rbp + 0x10]
pop rbp
ret

Function at 0x140010338
Capabilities:
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
xor ebx, ebx
call fcn.1400103a8
test eax, eax
je 0x140010393
lea ecx, [rbx + 1]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
test rax, rax
je 0x14001038d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14001038d
mov rdx, rax
mov rcx, rsi
call fcn.140002c7c
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 0x14001454c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edx, 0x8c
jmp 0x140042200
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.1400293d4
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 0x140042323
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140042323
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140042323
movzx ecx, word [rax + 6]
lea eax, [r12 + 4]
mul rcx
lea rcx, [r12 - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.140006328
movzx ecx, word [rbx + 6]
mov rbp, rax
mov eax, r12d
cmp r12w, cx
jae 0x1400422bc
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 0x1400422a4
movzx r8d, cx
mov rdx, rbp
mov rcx, r14
call fcn.140042b34
mov rcx, rbp
mov esi, eax
call fcn.140013c68
test esi, esi
je 0x140042316
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.140042d3c
mov rdx, r15
mov rcx, r14
call fcn.140042184
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x140042325
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 0x140014e00
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
mov dword [rsp + 0x18], r8d
mov eax, 0xd27
movzx edx, r10w
mov word [rsp + 0x18], ax
mov r8d, r10d
lea r11d, [r10 + 1]
cmp r11w, dx
lea r9, [0x1402a25a0]
mov cl, byte [r8 + r9]
mov eax, r10d
cmovne ax, dx
add cl, 9
movzx edx, ax
mov al, byte [rsp + rdx*2 + 0x18]
add dx, r11w
xor al, cl
mov byte [r8 + r9], al
add r8, r11
cmp r8, 0x13b000
jl 0x140014e1d
ret
Function at 0x14001ab38
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rbp, rdx
mov rcx, rdx
call fcn.140002854
mov rcx, rbx
mov rdi, rax
call fcn.14001b5f8
xor esi, esi
mov dword [rsp + 0x28], 5
mov rcx, rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea rdx, str.open
mov r8, rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, rbp
mov rbx, rax
call fcn.140002ce8
mov rbp, qword [rsp + 0x48]
cmp ebx, 0x20
mov rbx, qword [rsp + 0x40]
setg sil
mov eax, esi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14001ae50
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1402a18e0]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rcx, [rsp + 0x38]
mov rbx, r9
mov qword [rsp + 0x20], rcx
mov rdx, r8
mov rcx, 0xffffffff80000000
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14001aee7
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x30], 0x104
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea rax, [rsp + 0x40]
sub rbx, rax
lea rcx, [rsp + 0x40]
movzx eax, word [rcx]
mov word [rbx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14001aecc
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401bd7e0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14001bbfc
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 0x14001bc3b
cmp dword [rcx + 0xe8], 0
jne 0x14001bc3b
movzx eax, di
mov dword [rcx + 0xe8], eax
call fcn.1400293d4
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.14001bfc0
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 0x14001bc98
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.1400293d4
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 0x14001bcf4
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.14001bd2c
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 0x140020890
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 0x1400208f8
call fcn.1400293d4
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 0x1400208f8
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14002091a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, r14
call fcn.140051d30
mov esi, eax
test rdi, rdi
je 0x140020918
test rbx, rbx
je 0x140020918
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 0x1400216e4
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 0x1400217bc
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x1400217bc
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400217bc
test rsi, rsi
je 0x1400217bc
xor r15d, r15d
xor ebp, ebp
xor edi, edi
call fcn.1400293d4
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 0x140021789
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 0x1400217bc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
mov r8d, r15d
mov rdx, rbp
mov rcx, rbx
call fcn.1400564a4
mov esi, eax
test rbp, rbp
je 0x1400217ac
test rdi, rdi
je 0x1400217ac
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
je 0x1400217b8
mov rcx, rbx
call fcn.1400213a4
mov eax, esi
jmp 0x1400217be
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 0x140022730
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.140052aa4
mov rdi, rax
test rax, rax
je 0x1400227ac
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x1400227a7
cmp dword [rbx], 0x40
jb 0x1400227a7
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 0x1400227a7
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x1400227b0
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 0x140026e7c
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 0x140026eba
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x140026f64
call fcn.14001ce7c
mov rcx, rax
test rax, rax
je 0x140026f7a
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14007b7b2.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.0x14007b7b2.0]
mov rdx, rsi
or rdi, 0xffffffffffffffff
mov r9, rdi
mov r8, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1401d0f50
test eax, eax
je 0x140026f2c
cmp eax, 0xc
je 0x140026f74
cmp eax, 0x16
je 0x140026f8b
cmp eax, 0x22
je 0x140026f8b
cmp eax, 0x50
jne 0x140026f85
test rbx, rbx
je 0x140026f3c
mov rcx, rbx
call fcn.1401c57c4
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 0x140026f62
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14007b7b2.0]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call fcn.14001dc94
nop
mov ecx, 0x80004005
call fcn.140002cf0
nop
call fcn.14001dc70
int3
call fcn.14001dc70
int3

Function at 0x1400278c0
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x78
test rdx, rdx
je 0x140027928
mov r10, qword [rcx + 0x10]
test r10, r10
je 0x140027912
cmp qword [rcx + 0x18], 0
jne 0x14002790d
mov eax, dword [rcx + 0xc]
cmp eax, dword [rcx + 0x30]
jae 0x14002792e
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 0x140027928
mov rcx, qword [rcx + 0x40]
add rsp, 0x78
jmp fcn.140052760
call fcn.14001dc70
int3
call fcn.14001dc70
int3
Function at 0x140042200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edx, 0x8c
jmp 0x140042200
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.1400293d4
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 0x140042323
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140042323
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140042323
movzx ecx, word [rax + 6]
lea eax, [r12 + 4]
mul rcx
lea rcx, [r12 - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.140006328
movzx ecx, word [rbx + 6]
mov rbp, rax
mov eax, r12d
cmp r12w, cx
jae 0x1400422bc
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 0x1400422a4
movzx r8d, cx
mov rdx, rbp
mov rcx, r14
call fcn.140042b34
mov rcx, rbp
mov esi, eax
call fcn.140013c68
test esi, esi
je 0x140042316
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.140042d3c
mov rdx, r15
mov rcx, r14
call fcn.140042184
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x140042325
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 0x14004a3c4
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 0x14004a43f
xor r8d, r8d
call fcn.14004a68c
mov rsi, rax
test rax, rax
je 0x14004a43b
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 0x14004a43b
mov eax, dword [rsp + 0x30]
jmp 0x14004a455
mov eax, edi
jmp 0x14004a455
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