joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800143e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x280
mov rdi, rsp
mov ecx, LoadRegTypeLib
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x290]
mov rax, qword [0x180243cf0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov dword [rsp + 0x20], 0
xor eax, eax
mov word [rsp + 0x40], ax
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x1800144a8
mov dx, 0x5c
lea rcx, [rsp + 0x40]
call fcn.180031060
mov qword [rsp + 0x258], rax
cmp qword [rsp + 0x258], 0
je 0x180014481
xor eax, eax
mov rcx, qword [rsp + 0x258]
mov word [rcx], ax
mov r9, qword [rsp + 0x2a0]
lea r8, [rsp + 0x40]
mov edx, dword [rsp + 0x298]
mov rcx, qword [rsp + 0x290]
call fcn.180014280
mov dword [rsp + 0x20], eax
jmp 0x1800144b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
call fcn.180013470
cmp dword [rsp + 0x20], 0
jne 0x1800144cf
mov dword [rsp + 0x268], 1
jmp 0x1800144da
mov dword [rsp + 0x268], 0
mov eax, dword [rsp + 0x268]
mov edi, eax
mov rcx, rsp
lea rdx, [0x1801fe480]
call fcn.18019270c
mov eax, edi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180177910
add rsp, 0x280
pop rdi
ret
Function at 0x180017140
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
cmp dword [0x1802532c4], 0
jne 0x180017167
cmp dword [0x1802532c0], 3
jbe 0x180017172
mov eax, dword [0x1802532c4]
jmp 0x1800172b4
mov eax, dword [0x1802532c0]
inc eax
mov dword [0x1802532c0], eax
mov qword [rsp + 0x20], 0
lea rcx, [0x1801f9420]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1800171aa
xor eax, eax
jmp 0x1800172b4
lea rdx, str.EnumProcesses
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180252cc0], rax
lea rdx, str.EnumProcessModules
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180252cc8], rax
lea rdx, str.GetProcessMemoryInfo
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180252cd0], rax
lea rdx, str.GetModuleFileNameExA
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180252cd8], rax
lea rdx, str.GetModuleFileNameExW
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180252ce0], rax
lea rdx, str.GetModuleInformation
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180252ce8], rax
lea rdx, str.GetProcessImageFileNameA
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180252cf0], rax
lea rdx, str.GetProcessImageFileNameW
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180252cf8], rax
lea rdx, str.GetMappedFileNameA
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180252d00], rax
lea rdx, str.GetMappedFileNameW
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180252d08], rax
mov dword [0x1802532c4], 1
mov eax, dword [0x1802532c4]
add rsp, 0x30
pop rdi
ret
Function at 0x18001ccf0
Capabilities:
Extract resource via kernel32 functions
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov word [rsp + 0x18], r8w
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rdi, rsp
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x70]
xor edx, edx
mov eax, dword [rsp + 0x78]
mov ecx, 0x10
div ecx
inc eax
mov dword [rsp + 0x20], eax
xor edx, edx
mov eax, dword [rsp + 0x78]
mov ecx, 0x10
div ecx
mov eax, edx
mov dword [rsp + 0x24], eax
movzx eax, word [rsp + 0x20]
movzx r9d, word [rsp + 0x80]
mov r8d, eax
mov edx, 6
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18001ce53
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x18001ce53
mov dword [rsp + 0x38], 0
jmp 0x18001cdab
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0x10
jge 0x18001ce53
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x30]
add rax, 2
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x24], eax
jne 0x18001ce3b
mov eax, dword [rsp + 0x90]
dec eax
cmp dword [rsp + 0x3c], eax
jg 0x18001cdf3
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x44], eax
jmp 0x18001ce00
mov eax, dword [rsp + 0x90]
dec eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x40]
shl rax, 1
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x30]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [rsp + 0x40]
xor ecx, ecx
mov rdx, qword [rsp + 0x88]
mov word [rdx + rax*2], cx
mov eax, dword [rsp + 0x40]
jmp 0x18001ce55
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x30], rax
jmp 0x18001cda1
xor eax, eax
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x18001dc40
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
mov rdi, rsp
mov ecx, 0x24
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rcx, qword [rsp + 0xa0]
call fcn.180009270
mov rcx, qword [rsp + 0xa8]
call fcn.180009270
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x24], eax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rsp + 0x28], eax
cmp dword [0x180252d28], 0
je 0x18001dce6
mov eax, dword [0x180252d28]
cmp dword [rsp + 0x28], eax
jne 0x18001dce6
cmp dword [0x180252d2c], 0
je 0x18001dce6
mov eax, dword [0x180252d2c]
cmp dword [rsp + 0x24], eax
jb 0x18001dce6
mov eax, dword [0x180252d2c]
add eax, 0x493e0
cmp eax, dword [rsp + 0x24]
jae 0x18001dcee
mov dword [rsp + 0x20], 1
cmp dword [rsp + 0x20], 0
jne 0x18001dd53
mov eax, dword [0x180252d30]
inc eax
mov dword [0x180252d30], eax
mov r8d, 1
lea rdx, [0x180252f98]
lea rcx, [rsp + 0x38]
call fcn.180191bb0
nop
lea rdx, [0x180252f48]
mov rcx, qword [rsp + 0xa0]
call fcn.180009300
lea rdx, [0x180252f70]
mov rcx, qword [rsp + 0xa8]
call fcn.180009300
nop
lea rcx, [rsp + 0x38]
call fcn.180191bf0
jmp 0x18001dde9
mov dword [0x180252d30], 0
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call fcn.18001de10
mov r8d, 1
lea rdx, [0x180252f98]
lea rcx, [rsp + 0x68]
call fcn.180191bb0
nop
mov eax, dword [rsp + 0x28]
mov dword [0x180252d28], eax
mov eax, dword [rsp + 0x24]
mov dword [0x180252d2c], eax
lea rcx, [0x180252f48]
call fcn.180009270
mov rdx, qword [rsp + 0xa0]
lea rcx, [0x180252f48]
call fcn.180009300
lea rcx, [0x180252f70]
call fcn.180009270
mov rdx, qword [rsp + 0xa8]
lea rcx, [0x180252f70]
call fcn.180009300
nop
lea rcx, [rsp + 0x68]
call fcn.180191bf0
mov eax, 1
mov edi, eax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.18019270c
mov eax, edi
add rsp, 0x90
pop rdi
ret
Function at 0x18001de10
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x2d8
mov rdi, rsp
mov ecx, UnRegisterTypeLib
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2f0]
mov qword [rsp + 0x2c0], 0xfffffffffffffffe
mov rax, qword [0x180243cf0]
xor rax, rsp
mov qword [rsp + 0x2c8], rax
mov rcx, qword [rsp + 0x2f0]
call fcn.180009270
mov rcx, qword [rsp + 0x2f8]
call fcn.180009270
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], 1
mov dword [rsp + 0x28], 0
jmp 0x18001dea2
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x24]
shl eax, 1
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x28], 0x1a
jae 0x18001dfab
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x18001dfa6
lea rax, [rsp + 0x38]
lea rcx, [0x1801f8dec]
mov rdi, rax
mov rsi, rcx
mov ecx, 6
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x3e]
mov rdi, rax
xor eax, eax
mov ecx, 2
rep stosb byte [rdi], al
movzx eax, word [rsp + 0x28]
movzx ecx, word [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov word [rsp + 0x38], ax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.180005c70
nop
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x2f0]
call fcn.1800092b0
lea rcx, [rsp + 0x78]
call fcn.180006450
nop
xor eax, eax
mov word [rsp + 0xa0], ax
lea rax, [rsp + 0xa2]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
xor eax, eax
mov word [rsp + 0x2a6], ax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x78]
call fcn.180005c30
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x2f8]
call fcn.1800092b0
nop
lea rcx, [rsp + 0x78]
call fcn.1800064d0
nop
lea rcx, [rsp + 0x58]
call fcn.1800064d0
jmp 0x18001de8e
mov eax, 1
mov edi, eax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocStringLen
call fcn.18019270c
mov eax, edi
mov rcx, qword [rsp + 0x2c8]
xor rcx, rsp
call fcn.180177910
add rsp, 0x2d8
pop rdi
pop rsi
ret
Function at 0x18002bdc0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x40]
cmp dword [rsp + 0x40], 0
jne 0x18002bdec
xor eax, eax
jmp 0x18002be4a
mov dword [rsp + 0x20], 0
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18002be46
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x18002be2e
mov dword [rsp + 0x20], 1
jmp 0x18002be3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x48]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x18002edd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
cmp qword [rsp + 0x48], 1
jne 0x18002ef77
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x4bc]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 0x4bc], eax
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x498], 0
je 0x18002ef1f
mov eax, dword [0x1802532e0]
and eax, 1
test eax, eax
jne 0x18002ee51
mov eax, dword [0x1802532e0]
or eax, 1
mov dword [0x1802532e0], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1802532dc], eax
mov rax, qword [rsp + 0x40]
add rax, 0x2b8
mov rcx, rax
call fcn.18002f5f0
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x494]
cmp dword [rsp + 0x20], eax
jl 0x18002eeb4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1802532dc]
mov dword [rsp + 0x24], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1802532dc], eax
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x40]
add rax, 0x2b8
mov edx, dword [rsp + 0x20]
mov rcx, rax
call fcn.18002f5a0
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x494]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x49c], 0
jle 0x18002eef8
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x49c]
shl eax, 1
mov dword [rsp + 0x2c], eax
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + 0x494]
cdq
mov ecx, dword [rsp + 0x2c]
idiv ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
add rax, 0x2b8
mov edx, dword [rsp + 0x20]
mov rcx, rax
call fcn.18002f5a0
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x4b4], 0
jbe 0x18002ef77
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x4bc]
imul eax, eax, 0x1f4
mov rcx, qword [rsp + 0x40]
cmp eax, dword [rcx + 0x4b4]
jb 0x18002ef6b
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x4b4], 0
mov edx, 5
mov rcx, qword [rsp + 0x40]
call fcn.18003d8bc
jmp 0x18002ef77
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.18003d8bc
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.18002e320
add rsp, 0x30
pop rdi
ret
Function at 0x180030540
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
mov rdi, rsp
mov ecx, 0x24
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x70], 0xfffffffffffffffe
cmp qword [rsp + 0xa0], 0
je 0x18003059a
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0xa0]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rax, rcx
test rax, rax
jne 0x1800305a1
xor eax, eax
jmp 0x18003072d
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x28]
call fcn.180005c70
nop
mov r8d, 3
mov dx, 0x5c
lea rcx, [rsp + 0x28]
call fcn.180007ba0
mov dword [rsp + 0x34], eax
mov r8d, 2
lea rdx, [0x1801f8730]
mov rcx, qword [rsp + 0xa0]
call fcn.180179d80
test eax, eax
jne 0x180030605
mov eax, dword [rsp + 0x34]
inc eax
mov r8d, eax
mov dx, 0x5c
lea rcx, [rsp + 0x28]
call fcn.180007ba0
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0xffffffff
je 0x18003069a
mov r8d, dword [rsp + 0x34]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.180007d30
lea rcx, [rsp + 0x48]
call fcn.180006c80
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x180030670
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x180030670
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x48]
call fcn.1800064d0
nop
lea rcx, [rsp + 0x28]
call fcn.1800064d0
mov eax, dword [rsp + 0x54]
jmp 0x18003072d
mov eax, dword [rsp + 0x34]
inc eax
mov r8d, eax
mov dx, 0x5c
lea rcx, [rsp + 0x28]
call fcn.180007ba0
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x48]
call fcn.1800064d0
jmp 0x180030605
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x60]
call fcn.180005c70
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.180006c80
mov rcx, rax
call fcn.180010ae0
cmp eax, 0xffffffff
jne 0x1800306d5
mov dword [rsp + 0x80], 1
jmp 0x1800306e0
mov dword [rsp + 0x80], 0
movzx eax, byte [rsp + 0x80]
mov byte [rsp + 0x58], al
lea rcx, [rsp + 0x60]
call fcn.1800064d0
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x180030717
mov dword [rsp + 0x68], 0
lea rcx, [rsp + 0x28]
call fcn.1800064d0
mov eax, dword [rsp + 0x68]
jmp 0x18003072d
mov dword [rsp + 0x6c], 1
lea rcx, [rsp + 0x28]
call fcn.1800064d0
mov eax, dword [rsp + 0x6c]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.18019270c
mov rax, rdi
add rsp, 0x90
pop rdi
ret
Function at 0x180035a14
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.180051a3c
mov rsi, rax
test rax, rax
je 0x180035a90
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x180035a8b
cmp dword [rbx], 0x40
jb 0x180035a8b
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 0x180035a8b
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x180035a94
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 0x18003d510
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 0x18003d578
call fcn.180046630
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x18003d578
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x18003d59a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.18003cefc
mov esi, eax
test rdi, rdi
je 0x18003d598
test rbx, rbx
je 0x18003d598
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 0x18003dae0
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 + 0xc8], 0
jne 0x18003db1e
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x18003dbd2
call fcn.1800412ac
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x18003db3d
mov ecx, 0x80004005
call fcn.180006a50
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rbx + 0xc8]
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.18017afd4
test eax, eax
je 0x18003dba5
cmp eax, 0xc
je 0x18003db9f
cmp eax, 0x16
je 0x18003db99
cmp eax, 0x22
je 0x18003db99
cmp eax, 0x50
je 0x18003dba5
call fcn.180041138
int3
call fcn.180041138
int3
call fcn.1800410f0
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 0x18003dbd0
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 0x180048978
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.180046630
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
test rax, rax
je 0x1800489d4
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.180048408
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 0x180048a68
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 + 0xe0], rdx
test rdx, 0xffffffffffff0000
jne 0x180048aa7
cmp dword [rcx + 0xd8], 0
jne 0x180048aa7
movzx eax, dx
mov dword [rcx + 0xd8], eax
call fcn.180046630
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.180048a0c
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 0x18004b834
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 0x18004b8ae
xor r8d, r8d
call fcn.18004b768
mov rsi, rax
test rax, rax
jne 0x18004b86a
mov eax, edi
jmp 0x18004b8c4
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 0x18004b866
mov r9, qword [rcx + 0xd8]
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

Function at 0x18004c010
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x18004c073
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18004c087
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18004c087
mov rcx, qword [rbx]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x18004c08c
cmp dword [rcx + 8], 0
je 0x18004c087
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x18004c08c
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret