joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015d40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140147040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, qword [0x140148340]
lea rax, [rsp + 0x30]
mov rdi, r9
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
lea rdx, str.SOFTWARETencentMobileGamePC
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140015da1
lea rdx, str.RegCreateKeyExA_failed
mov rcx, rbx
call fcn.140012ed0
xor eax, eax
jmp 0x140015e16
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x38], 0
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140015e05
lea rdx, str.RegSetValueExA_failed
mov rcx, rbx
call fcn.140012ed0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140015e16
mov rcx, qword [rsp + 0x30]
mov ebx, dword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001cb60
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140015e30
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140147040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, qword [rsp + 0x90]
lea rax, [rsp + 0x50]
mov rdi, qword [0x140148340]
lea rdx, str.SOFTWARETencentMobileGamePC
mov rsi, r9
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140015ede
xor edx, edx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rdx
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edx
lea rdx, str.SOFTWARETencentMobileGamePC
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x140015ede
lea rdx, str.RegCreateKeyExA_failed
mov rcx, rdi
call fcn.140012ed0
xor al, al
jmp 0x140015f3f
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x140015ee5
mov rcx, qword [rsp + 0x50]
inc eax
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140015f32
lea rdx, str.RegSetValueExA_failed
mov rcx, rdi
call fcn.140012ed0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x140015f3f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001cb60
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140015f60
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140147040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x50]
mov rbx, qword [0x140148340]
lea rdx, str.SOFTWARETencentMobileGamePC
mov rdi, r9
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14001600e
xor edx, edx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rdx
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edx
lea rdx, str.SOFTWARETencentMobileGamePC
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x14001600e
lea rdx, str.RegCreateKeyExA_failed
mov rcx, rbx
call fcn.140012ed0
xor al, al
jmp 0x140016061
mov rcx, qword [rsp + 0x50]
mov r9d, 4
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140016054
lea rdx, str.RegSetValueExA_failed
mov rcx, rbx
call fcn.140012ed0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x140016061
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001cb60
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x140016200
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, r8d
mov esi, edx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x1401482b8]
lea rdx, str.LOCAL_HOST
add rcx, 0x10
mov edi, eax
call fcn.140001260
mov ecx, 0xa
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, ebx
ja 0x140016278
mov r8d, esi
mov rdx, rbp
call fcn.1400160c0
test al, al
jne 0x14001628f
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, ebx
jbe 0x140016252
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov al, 1
jmp 0x14001627a
Function at 0x14001c990
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140147040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
test rax, rax
je 0x14001ca26
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14001ca1a
nop word [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14001ca16
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x14001c9f0
jmp 0x14001ca1a
mov esi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14001cb60
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14001ca50
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x140147040]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xorps xmm0, xmm0
lea rax, str.cmd.exe
movups xmmword [rbp - 0x29], xmm0
mov ebx, edx
xor edi, edi
movups xmmword [rbp - 0x19], xmm0
mov r8, rcx
mov dword [rbp - 0x29], WSAStartup
lea rdx, str._C__s
mov dword [rbp - 0x25], 0x40
lea rcx, [rbp - 0x49]
mov qword [rbp - 0x21], rdi
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], rax
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
movups xmmword [rbp + 0x37], xmm0
call fcn.140013670
mov rcx, qword [rax + 0x10]
mov qword [rbp - 9], rcx
mov rcx, qword [rbp - 0x39]
call fcn.14001cc58
lea rcx, [rbp - 0x29]
mov qword [rbp - 1], rdi
mov dword [rbp + 7], edi
mov qword [rbp + 0xf], rdi
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x14001cafb
lea eax, [rdi - 1]
jmp 0x14001cb22
mov rcx, qword [rbp + 0x3f]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 0x3f]
lea rdx, [rbp + 0x47]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rbp + 0x3f]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x47]
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14001cb60
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14001d7d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001d81a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d81a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d81a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d81a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d81a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001d81c
xor al, al
add rsp, 0x28
ret
Function at 0x140003e90
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 edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140003f08
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140003f08
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140003ef5
nop
cmp rbx, rcx
jae 0x140003f08
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140003ee0
cmp rbx, rcx
jae 0x140003f08
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x140003f0a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140011240
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x20
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x14001130b
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x14001130b
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x30], rdi
call fcn.1400113e0
mov rcx, rsi
xor edi, edi
call fcn.140011390
test eax, eax
je 0x1400112ef
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov ecx, 0x2002
movsxd rdx, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x1400112e9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rbx
mov r8, rax
call fcn.140006820
mov rdx, rax
mov rcx, r8
call fcn.1401c4ff0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rsi
lea ecx, [rdi + 1]
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
setne dil
call qword [sym.imp.USER32.dll_CloseClipboard]
lea rcx, [rsp + 0x38]
call fcn.1400113a0
mov eax, edi
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rsi
ret

Function at 0x140011320
Capabilities:
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
xor ebx, ebx
call fcn.140011390
test eax, eax
je 0x140011380
lea ecx, [rbx + 1]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
test rax, rax
je 0x140011375
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140011375
mov rdx, rax
mov rcx, rsi
call fcn.140002f60
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, 1
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rdi, qword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x140015870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edx, 0x8c
jmp 0x140043f78
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, rdx
mov rbp, rcx
call fcn.14002b288
mov r8d, 0xf1
mov rdx, r14
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor r15d, r15d
test rax, rax
je 0x140044089
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140044089
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140044089
movzx ecx, word [rax + 6]
lea eax, [r15 + 4]
mul rcx
lea rcx, [r15 - 1]
cmovo rax, rcx
mov rcx, rax
call fcn.140006890
mov rsi, rax
mov r9d, r15d
movzx eax, word [rbx + 6]
cmp r15w, ax
jae 0x14004402b
mov rdx, rsi
lea r8, [rbx + 8]
movzx ecx, word [r8]
inc r9d
mov dword [rdx], ecx
lea r8, [r8 + 2]
movzx eax, word [rbx + 6]
lea rdx, [rdx + 4]
cmp r9d, eax
jl 0x140044011
movzx r8d, ax
mov rdx, rsi
mov rcx, rbp
call fcn.1400448b8
mov rcx, rsi
mov edi, eax
call fcn.140002990
test edi, edi
je 0x140044085
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, rbp
mov dword [rsp + 0x6c], eax
mov rdx, qword [rsp + 0x68]
call fcn.140044ac0
mov rdx, r14
mov rcx, rbp
call fcn.140043efc
mov edi, eax
mov eax, edi
jmp 0x14004408b
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400161d0
Capabilities:
Encode data using xor

Disassembly:
mov dword [rsp + 0x18], r8d
lea r10, [0x140284490]
mov eax, 0x13d5
xor r8d, r8d
mov word [rsp + 0x18], ax
mov edx, r8d
movzx eax, r8w
mov r9d, 1
nop word [rax + rax]
cmp r9w, ax
mov ecx, r8d
cmovne cx, ax
movzx eax, cx
movzx ecx, byte [rdx + r10]
add cl, 0x20
xor cl, byte [rsp + rax*2 + 0x18]
inc ax
mov byte [rdx + r10], cl
inc rdx
cmp rdx, 0x1c6200
jl 0x140016200
ret
Function at 0x14001c280
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 rsi, rdx
mov rcx, rdx
call fcn.140002940
mov rcx, rbx
mov rdi, rax
call fcn.14001ce80
mov rcx, rax
mov dword [rsp + 0x28], 5
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov r8, rdi
lea rdx, str.open
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov rcx, rsi
cmp eax, 0x20
jg 0x14001c2ee
call fcn.140002f80
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call fcn.140002f80
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14001c620
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x1402837b0]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x38]
mov rdi, r9
mov qword [rsp + 0x20], rcx
mov rdx, r8
mov rcx, 0xffffffff80000000
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test eax, eax
jne 0x14001c6a4
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_RegQueryValueA]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1401c4ff0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401bacf0
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret

Function at 0x14001d3c4
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
mov rbx, qword [rcx + 0x100]
xor r14d, r14d
mov rdi, rcx
mov rsi, qword [rcx + 0xf8]
cmp qword [rcx + 0xf0], r14
je 0x14001d42b
call fcn.14002b288
mov rdx, qword [rdi + 0xf0]
lea r8d, [r14 + 5]
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x14001d42b
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rsi, rsi
je 0x14001d43c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov ecx, 1
test rbx, rbx
je 0x14001d481
mov edx, 0xffff
lea rax, [rbx + 0xc]
cmp word [rbx + 2], dx
jne 0x14001d460
movzx r8d, word [rbx + 0x12]
movzx edx, word [rbx + 0x14]
jmp 0x14001d46b
movzx edx, word [rax]
mov rax, rbx
movzx r8d, word [rbx + 0xa]
test dword [rax], 0x1801
jne 0x14001d47e
test r8w, r8w
jne 0x14001d47e
test dx, dx
je 0x14001d481
mov ecx, r14d
mov rbx, qword [rsp + 0x30]
mov eax, ecx
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14001d4a0
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 rbx, rcx
cmp rdx, 0x10000
jae 0x14001d4df
cmp dword [rcx + 0xe8], 0
jne 0x14001d4df
movzx eax, di
mov dword [rcx + 0xe8], eax
call fcn.14002b288
mov r8d, 5
mov rdx, rdi
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x14001d523
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001d523
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov rcx, rbx
call fcn.14001d854
jmp 0x14001d525
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001d53c
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 rsi, r8
mov rbx, rdx
mov rbp, rcx
call fcn.14002b288
mov r8d, 5
mov rdx, rbx
mov rdi, qword [rax + 0x18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x14001d5a6
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001d5a6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r9, rdi
mov r8, rsi
mov rdx, rax
mov rcx, rbp
call fcn.14001d5c0
jmp 0x14001d5a8
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140022704
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
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x140022762
call fcn.14002b288
mov r8d, 0xf0
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x140022762
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14002276d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov rdx, rbx
mov rcx, rsi
call fcn.14005391c
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14002290c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, r8
lea rcx, [0x140246bb7]
mov esi, edx
call fcn.1401c17c0
mov r8d, eax
lea rdx, [0x140246bb7]
mov rcx, rbx
call fcn.140002e30
cmp qword [rdi + 0xc8], 0
mov edx, esi
jne 0x1400229ea
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rsi, rax
test rax, rax
je 0x140022a02
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
movsxd rdi, eax
test eax, eax
js 0x140022a18
mov rcx, qword [rbx]
mov r8d, 1
mov edx, dword [rcx - 0xc]
sub r8d, dword [rcx - 8]
sub edx, edi
or r8d, edx
jge 0x14002299c
mov edx, edi
mov rcx, rbx
call fcn.140002b90
mov rdx, qword [rbx]
cmp edi, dword [rdx - 0xc]
jg 0x140022a18
mov dword [rdx - 0x10], edi
lea r8d, [rdi + 1]
mov rax, qword [rbx]
mov rcx, rsi
mov byte [rdi + rax], 0
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400229c7
xor eax, eax
jmp 0x1400229d4
movsxd rdx, dword [rcx - 0xc]
call fcn.1401c5700
test eax, eax
js 0x140022a18
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140022a18
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov byte [rcx + rax], 0
jmp 0x140022a02
mov rcx, rdi
call fcn.140028c5c
test rax, rax
je 0x140022a02
mov rdx, rbx
mov rcx, rax
call fcn.140022e9c
mov rax, qword [rbx]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, dword [rax - 0x10]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.140002f90
int3
Function at 0x140022e9c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rbx, rdx
mov rcx, qword [rcx + 0xd0]
test rcx, rcx
jne 0x140022f46
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
movsxd rdi, eax
test eax, eax
js 0x140022f66
mov rcx, qword [rbx]
mov r8d, 1
mov edx, dword [rcx - 0xc]
sub r8d, dword [rcx - 8]
sub edx, edi
or r8d, edx
jge 0x140022ef7
mov edx, edi
mov rcx, rbx
call fcn.140002b90
mov rdx, qword [rbx]
cmp edi, dword [rdx - 0xc]
jg 0x140022f66
mov dword [rdx - 0x10], edi
lea r8d, [rdi + 1]
mov rax, qword [rbx]
mov byte [rdi + rax], 0
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140022f23
xor eax, eax
jmp 0x140022f30
movsxd rdx, dword [rcx - 0xc]
call fcn.1401c5700
test eax, eax
js 0x140022f66
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140022f66
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov byte [rcx + rax], 0
jmp 0x140022f56
mov rax, qword [rcx]
mov rax, qword [rax + 0x118]
call qword [case.0x14007c0ea.0]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.140002f90
int3

Function at 0x140023508
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
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x1400235c1
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x1400235c1
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400235c1
test rdi, rdi
je 0x1400235c1
xor r14d, r14d
xor esi, esi
call fcn.14002b288
lea r8, str.AFX_DIALOG_LAYOUT
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x1400235a1
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rdi
mov rcx, rbp
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400235c1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov r8d, r14d
mov rdx, rsi
mov rcx, rbx
call fcn.1400581dc
mov edi, eax
test eax, eax
je 0x1400235bd
mov rcx, rbx
call fcn.1400231d0
mov eax, edi
jmp 0x1400235c3
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 r14
ret