joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007cfb
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
sub rsp, 0x50
mov r8, rdx
mov r10d, 0x27
mov r11d, 0x2710
mov si, 0x64
lea r9, [0x14002d5bf]
cmp rcx, 0x270f
jbe 0x140007d57
mov rax, rcx
xor edx, edx
div r11
mov rcx, rax
mov eax, edx
xor edx, edx
div si
movzx eax, ax
movzx edx, dx
movzx eax, word [r9 + rax*2]
mov word [rsp + r10 + 0x25], ax
movzx eax, word [r9 + rdx*2]
mov word [rsp + r10 + 0x27], ax
add r10, 0xfffffffffffffffc
jmp 0x140007d1a
cmp rcx, 0x63
jbe 0x140007d7f
mov r11w, 0x64
mov eax, ecx
xor edx, edx
div r11w
movzx edx, dx
movzx ecx, ax
movzx eax, word [r9 + rdx*2]
mov word [rsp + r10 + 0x27], ax
add r10, 0xfffffffffffffffe
cmp rcx, 0xa
jae 0x140007d92
add cl, 0x30
mov byte [rsp + r10 + 0x28], cl
dec r10
jmp 0x140007da1
movzx eax, word [r9 + rcx*2]
mov word [rsp + r10 + 0x27], ax
add r10, 0xfffffffffffffffe
lea r9, [rsp + r10]
add r9, 0x29
mov eax, 0x27
sub rax, r10
mov qword [rsp + 0x20], rax
lea rdx, str.expand_32_byte_kymmxmmzmm
mov rcx, r8
xor r8d, r8d
call fcn.140007aa8
nop
add rsp, 0x50
pop rsi
ret
sub rsp, 0xa8
mov eax, dword [rdx + 0x34]
test al, 0x10
jne 0x140008118
test al, 0x20
jne 0x14000815c
movzx ecx, byte [rcx]
add rsp, 0xa8
jmp 0x140007cfb
mov r8b, byte [rcx]
mov r9d, 0x81
mov ecx, 0x30
mov r10d, r8d
mov rax, r9
mov r9d, r8d
and r9b, 0xf
shr r10b, 4
cmp r9b, 0xa
mov r11d, 0x57
cmovb r11d, ecx
add r11b, r9b
mov byte [rsp + rax + 0x26], r11b
lea r9, [rax - 1]
cmp r8b, 0x10
mov r8d, r10d
jae 0x140008129
jmp 0x14000819e
mov r8b, byte [rcx]
mov r9d, 0x81
mov ecx, 0x30
mov r10d, r8d
mov rax, r9
mov r9d, r8d
and r9b, 0xf
shr r10b, 4
cmp r9b, 0xa
mov r11d, 0x37
cmovb r11d, ecx
add r11b, r9b
mov byte [rsp + rax + 0x26], r11b
lea r9, [rax - 1]
cmp r8b, 0x10
mov r8d, r10d
jae 0x14000816d
add rax, 0xfffffffffffffffe
cmp rax, 0x81
jae 0x1400081e0
mov ecx, 0x81
sub rcx, r9
lea r9, [rsp + rax]
add r9, 0x28
mov qword [rsp + 0x20], rcx
lea rax, [0x14002d5bd]
mov r8d, 2
mov rcx, rdx
mov rdx, rax
call fcn.140007aa8
nop
add rsp, 0xa8
ret
ud2
Function at 0x1400080f7
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
sub rsp, 0x50
mov r8, rdx
mov r10d, 0x27
mov r11d, 0x2710
mov si, 0x64
lea r9, [0x14002d5bf]
cmp rcx, 0x270f
jbe 0x140007d57
mov rax, rcx
xor edx, edx
div r11
mov rcx, rax
mov eax, edx
xor edx, edx
div si
movzx eax, ax
movzx edx, dx
movzx eax, word [r9 + rax*2]
mov word [rsp + r10 + 0x25], ax
movzx eax, word [r9 + rdx*2]
mov word [rsp + r10 + 0x27], ax
add r10, 0xfffffffffffffffc
jmp 0x140007d1a
cmp rcx, 0x63
jbe 0x140007d7f
mov r11w, 0x64
mov eax, ecx
xor edx, edx
div r11w
movzx edx, dx
movzx ecx, ax
movzx eax, word [r9 + rdx*2]
mov word [rsp + r10 + 0x27], ax
add r10, 0xfffffffffffffffe
cmp rcx, 0xa
jae 0x140007d92
add cl, 0x30
mov byte [rsp + r10 + 0x28], cl
dec r10
jmp 0x140007da1
movzx eax, word [r9 + rcx*2]
mov word [rsp + r10 + 0x27], ax
add r10, 0xfffffffffffffffe
lea r9, [rsp + r10]
add r9, 0x29
mov eax, 0x27
sub rax, r10
mov qword [rsp + 0x20], rax
lea rdx, str.expand_32_byte_kymmxmmzmm
mov rcx, r8
xor r8d, r8d
call fcn.140007aa8
nop
add rsp, 0x50
pop rsi
ret
sub rsp, 0xa8
mov eax, dword [rdx + 0x34]
test al, 0x10
jne 0x140008118
test al, 0x20
jne 0x14000815c
movzx ecx, byte [rcx]
add rsp, 0xa8
jmp 0x140007cfb
mov r8b, byte [rcx]
mov r9d, 0x81
mov ecx, 0x30
mov r10d, r8d
mov rax, r9
mov r9d, r8d
and r9b, 0xf
shr r10b, 4
cmp r9b, 0xa
mov r11d, 0x57
cmovb r11d, ecx
add r11b, r9b
mov byte [rsp + rax + 0x26], r11b
lea r9, [rax - 1]
cmp r8b, 0x10
mov r8d, r10d
jae 0x140008129
jmp 0x14000819e
mov r8b, byte [rcx]
mov r9d, 0x81
mov ecx, 0x30
mov r10d, r8d
mov rax, r9
mov r9d, r8d
and r9b, 0xf
shr r10b, 4
cmp r9b, 0xa
mov r11d, 0x37
cmovb r11d, ecx
add r11b, r9b
mov byte [rsp + rax + 0x26], r11b
lea r9, [rax - 1]
cmp r8b, 0x10
mov r8d, r10d
jae 0x14000816d
add rax, 0xfffffffffffffffe
cmp rax, 0x81
jae 0x1400081e0
mov ecx, 0x81
sub rcx, r9
lea r9, [rsp + rax]
add r9, 0x28
mov qword [rsp + 0x20], rcx
lea rax, [0x14002d5bd]
mov r8d, 2
mov rcx, rdx
mov rdx, rax
call fcn.140007aa8
nop
add rsp, 0xa8
ret
ud2
Function at 0x14000bd46
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, rcx
test r9, r9
je 0x14000bd88
mov r15, r9
mov r14, r8
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14000bda5

Function at 0x14000c5d9
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14000c638
mov ecx, eax
add rsp, 0x28
jmp sub.kernel32.dll_TlsGetValue

Function at 0x14000c60c
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
call fcn.14000c638
mov ecx, eax
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp sub.kernel32.dll_TlsSetValue

Function at 0x14000c638
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, dword [rcx + 0x18]
test edi, edi
je 0x14000c652
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rsi, rcx
cmp qword [rcx], 0
je 0x14000c6c2
lea r8, [rsp + 0x2c]
and dword [r8], 0
lea rbx, [rsi + 0x10]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x14000c709
cmp dword [rsp + 0x2c], 0
je 0x14000c6f1
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14000c6f9
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1400320b8]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1400320b8], rsi
jne 0x14000c69d
mov byte [0x1400320b0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x14000c648
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14000c709
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x14000c648
mov esi, eax
mov ecx, edi
call sub.kernel32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x14000c648
mov edi, dword [rsi + 0x18]
jmp 0x14000c646
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
ud2

Function at 0x140012ec0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
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.140013c60
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.140013c60
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140012f30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140032154]
mov rbx, rcx
test esi, esi
jle 0x140013060
mov rax, qword [0x140032158]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140012f7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140013005
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140012f60
mov rcx, rbx
call fcn.140013980
mov rdi, rax
test rax, rax
je 0x140013082
mov rax, qword [0x140032158]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140013ac0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140032158]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140013067
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140012ffe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140013010
add dword [0x140032154], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140032158]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140012ffe
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140012ec0
nop dword [rax]
xor esi, esi
jmp 0x140012f88
mov rax, qword [0x140032158]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140012ec0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140012ec0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400135f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400321c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400321a0]
test rbx, rbx
je 0x14001364c
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140013643
test rsi, rsi
je 0x140013643
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140013628
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140013980
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14002e530]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400139a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400139a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400139a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400139fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400139f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400139a0
add rax, 0x28
cmp rax, r9
jne 0x1400139e0
xor eax, eax
ret

Function at 0x140013a00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14002e530]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140013a1f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140013a28
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140013a1f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140013ac0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14002e530]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140013adf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140013ae8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

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

Function at 0x140001948
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001992
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001992
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001992
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001992
cmp dword [rcx + 0x84], 0xe
jbe 0x140001992
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001994
xor al, al
add rsp, 0x28
ret
Function at 0x14000ee14
Capabilities:
Write clipboard data

Disassembly:
push rbp
push r12
push r13
sub rsp, 0x30
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], rdi
mov rax, qword [0x1400b2c70]
xor rax, rbp
mov qword [rbp + 8], rax
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
cmp rdx, rbx
je 0x14000ef47
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
je 0x14000ef47
lea rcx, [rbp]
call fcn.14000f030
mov rcx, rsi
call fcn.14000efdc
cmp eax, ebx
je 0x14000ef3a
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x2002
inc eax
movsxd rdx, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
cmp rax, rbx
je 0x14000ef34
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
call fcn.140003e38
mov rcx, rdi
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x14000eece
mov rax, rbx
jmp 0x14000ef09
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14000eeea
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140079100
sub rsp, rcx
mov r9d, r13d
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140007b80
mov dl, byte [rax]
inc rax
mov byte [rsi], dl
inc rsi
cmp dl, bl
jne 0x14000ef09
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, r12
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
cmp rax, rbx
setne bl
call qword [sym.imp.USER32.dll_CloseClipboard]
lea rcx, [rbp]
call fcn.14000efe8
mov eax, ebx
jmp 0x14000ef49
xor eax, eax
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.14005f880
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x40]
lea rsp, [rbp + 0x10]
pop r13
pop r12
pop rbp
ret

Function at 0x14000ef6c
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.14000efdc
cmp eax, ebx
je 0x14000efc7
lea ecx, [rbx + 1]
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
cmp rax, rbx
je 0x14000efc1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
cmp rax, rbx
je 0x14000efc1
mov rdx, rax
mov rcx, rsi
call fcn.1400015b4
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 0x1400133c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edx, 0x8c
jmp 0x140040384
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r13, rdx
mov r12, rcx
call fcn.140027fc8
mov rbx, qword [rax + 0x18]
mov r8d, 0xf1
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r14d, r14d
cmp rax, r14
jne 0x1400403ca
xor eax, eax
jmp 0x1400404a3
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
cmp rax, r14
je 0x1400403c3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
cmp rax, r14
je 0x1400403c3
movzx ecx, word [rax + 6]
mov eax, 4
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14001afe8
mov r9d, r14d
mov rbp, rax
cmp r14w, word [rbx + 6]
jae 0x14004043c
mov rdx, rax
lea r8, [rbx + 8]
movzx ecx, word [r8]
inc r9d
add r8, 2
mov dword [rdx], ecx
movzx eax, word [rbx + 6]
add rdx, 4
cmp r9d, eax
jl 0x140040422
movzx r8d, word [rbx + 6]
mov rdx, rbp
mov rcx, r12
call fcn.14003eba0
mov rcx, rbp
mov esi, eax
call fcn.14001b034
cmp esi, r14d
je 0x140040498
movzx ecx, word [rbx + 4]
movzx eax, word [rbx + 2]
mov dword [rsp + 0x60], eax
add eax, 7
mov dword [rsp + 0x64], ecx
mov r8, qword [rsp + 0x60]
mov dword [rsp + 0x68], eax
lea eax, [rcx + 7]
mov dword [rsp + 0x6c], eax
mov rdx, qword [rsp + 0x68]
mov rcx, r12
call fcn.14003f3c8
mov rdx, r13
mov rcx, r12
call fcn.14003f49c
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14001a35c
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rcx, rdx
mov rsi, rdx
call fcn.140002378
mov rcx, rbx
mov rdi, rax
call fcn.14001aea8
lea rdx, str.open
xor ebx, ebx
xor r9d, r9d
mov r8, rdi
mov rcx, rax
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x14001a3b3
mov ebx, 1
mov rcx, rsi
call fcn.140001620
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14001a718
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 [0x1400b2c70]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rcx, [rsp + 0x38]
mov rbx, r9
mov rdx, r8
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
mov edi, eax
cmp eax, esi
jne 0x14001a7b3
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x30], 0x104
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea rax, [rsp + 0x40]
lea r11, [rsp + 0x40]
sub rbx, rax
movzx eax, word [r11]
mov word [rbx + r11], ax
add r11, 2
cmp ax, si
jne 0x14001a796
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.14005f880
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14001bdcc
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, 0x20
mov r12, r8
mov rbx, rdx
mov r13, rcx
xor edi, edi
call fcn.140027fc8
lea r8d, [rdi + 5]
mov rbp, qword [rax + 0x18]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbp
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
cmp rax, rdi
je 0x14001be28
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov r9, rbp
mov r8, r12
mov rdx, rdi
mov rcx, r13
call fcn.14001b85c
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x14001bebc
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 rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
test rdx, 0xffffffffffff0000
jne 0x14001befb
cmp dword [rcx + 0xa8], 0
jne 0x14001befb
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.140027fc8
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.14001be60
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 0x14001decc
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 rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.14004ba20
mov rsi, rax
test rax, rax
je 0x14001df48
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x14001df43
cmp dword [rbx], 0x40
jb 0x14001df43
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x14001df43
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x14001df4c
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 0x140025454
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 r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1400254bc
call fcn.140027fc8
mov r8d, pe_nt_image_headers64
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400254bc
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x1400254de
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.140024e64
mov esi, eax
test rdi, rdi
je 0x1400254dc
test rbx, rbx
je 0x1400254dc
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 r12
ret
Function at 0x14002598c
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 rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xa0], 0
jne 0x1400259ca
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x140025a7e
call fcn.14001bf60
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x1400259e9
mov ecx, 0x80004005
call fcn.140001628
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x118]
mov rdx, rsi
or rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x40]
mov rcx, rdi
call fcn.140061bd8
test eax, eax
je 0x140025a51
cmp eax, 0xc
je 0x140025a4b
cmp eax, 0x16
je 0x140025a45
cmp eax, 0x22
je 0x140025a45
cmp eax, 0x50
je 0x140025a51
call fcn.14001ce04
int3
call fcn.14001ce04
int3
call fcn.14001cdbc
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x140025a7c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140028268
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 + 0xa8], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x1400282df
call fcn.1400281f4
mov rsi, rax
test rax, rax
jne 0x14002829b
mov eax, edi
jmp 0x1400282f5
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x140028297
mov r9, qword [rcx + 0xd0]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret