joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140039da0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140058300], rbx
je 0x140039dec
cmp rax, rbx
jne 0x140039ddf
mov ebx, 1
mov esi, ebx
jmp 0x140039df1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140039dc4
mov ebx, 1
mov eax, dword [0x140058308]
cmp eax, ebx
jne 0x140039e07
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140039e6c
mov eax, dword [0x140058308]
test eax, eax
jne 0x140039e66
mov dword [0x140058308], ebx
lea r15, [0x1400402d8]
lea rdi, [0x1400402c0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140039e58
test eax, eax
jne 0x140039e5c
cmp qword [rdi], 0
je 0x140039e4d
mov rax, qword [rdi]
mov rcx, qword [case.0x140036da7.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140039e2e
test eax, eax
je 0x140039e6c
mov eax, 0xff
jmp 0x140039f48
mov dword [0x140053c08], ebx
mov eax, dword [0x140058308]
cmp eax, ebx
jne 0x140039e93
lea rdx, [0x1400402b8]
lea rcx, [0x140040228]
call sub.msvcrt.dll__initterm
mov dword [0x140058308], 2
test esi, esi
jne 0x140039ea0
xor eax, eax
xchg qword [0x140058300], rax
cmp qword [0x140058320], 0
je 0x140039ed4
lea rcx, [0x140058320]
call fcn.14003a790
test eax, eax
je 0x140039ed4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140058320]
mov r9, qword [case.0x140036da7.0]
call r9
mov r8, qword [0x140053c20]
mov rdx, qword [0x140053c18]
mov ecx, dword [0x140053c10]
call fcn.140027958
mov dword [0x140053c04], eax
cmp dword [0x140053c28], 0
jne 0x140039f04
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140053c08], 0
jne 0x140039f19
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140053c04]
jmp 0x140039f48
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1401da000
add rsp, 0x28
jmp 0x140039da0

Function at 0x14003a68c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14003a6d8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003a6d0
cmp dword [rcx + 0x3c], edx
jl 0x14003a6d0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14003a6d0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14003a6d8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001fa0
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140256080]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
add rax, 0x20
mov rcx, rax
call fcn.1400024c0
mov r8, rax
mov edx, 0x2712
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.14016ea20
lea rdx, str.Mozilla_5.0__hp_tablet__Linux__hpwOS_3.0.0__U__en_US__AppleWebKit_534.6__KHTML__like_Gecko__wOSBrowser_233.70_Safari_534.6_TouchPad_1.0
lea rcx, [rsp + 0x28]
call fcn.1400023e0
lea rcx, [rsp + 0x28]
call fcn.1400024c0
mov r8, rax
mov edx, 0x2722
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.14016ea20
mov r8d, 5
mov edx, 0x44
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.14016ea20
mov r8d, 1
mov edx, 0x34
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.14016ea20
mov r8d, 1
mov edx, 0x63
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.14016ea20
xor r8d, r8d
mov edx, Ordinal_50
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.14016ea20
lea r8, [0x140002220]
mov edx, 0x4e2b
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.14016ea20
mov r8, qword [rsp + 0x70]
mov edx, 0x2711
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.14016ea20
xor r8d, r8d
mov edx, 0x40
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.14016ea20
xor r8d, r8d
mov edx, 0x51
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.14016ea20
lea rcx, [rsp + 0x28]
call fcn.140002440
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140153af0
add rsp, 0x68
ret

Function at 0x140002280
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.140153f5c
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140004b70
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov rax, qword [0x140256080]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rdx, [0x1401be988]
mov rcx, qword [rsp + 0x198]
call fcn.140012cf0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140004bbb
xor eax, eax
jmp 0x140004cb6
mov rdx, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x20]
call fcn.140013020
mov dword [rsp + 0x160], eax
cmp dword [rsp + 0x160], 0
je 0x140004bef
mov rcx, qword [rsp + 0x20]
call fcn.1400130a0
xor eax, eax
jmp 0x140004cb6
lea r8, [rsp + 0x30]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x20]
call fcn.140012d60
mov dword [rsp + 0x160], eax
cmp dword [rsp + 0x160], 0
je 0x140004c25
mov rcx, qword [rsp + 0x20]
call fcn.1400130a0
xor eax, eax
jmp 0x140004cb6
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x164], eax
mov dword [rsp + 0x168], 0
jmp 0x140004c4d
mov eax, dword [rsp + 0x168]
inc eax
mov dword [rsp + 0x168], eax
mov eax, dword [rsp + 0x164]
cmp dword [rsp + 0x168], eax
jge 0x140004c99
lea r8, [rsp + 0x30]
mov edx, dword [rsp + 0x168]
mov rcx, qword [rsp + 0x20]
call fcn.140012d60
mov dword [rsp + 0x160], eax
lea r8, [rsp + 0x34]
mov edx, dword [rsp + 0x168]
mov rcx, qword [rsp + 0x20]
call fcn.140012f90
mov dword [rsp + 0x160], eax
jmp 0x140004c3d
mov rcx, qword [rsp + 0x20]
call fcn.1400130a0
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.140153af0
add rsp, 0x188
ret

Function at 0x140004ce0
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
sub rsp, 0x68
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x70]
call fcn.140004b30
mov rcx, qword [rsp + 0x80]
call fcn.140154000
mov dword [rsp + 0x34], eax
lea rdx, [0x1401be98c]
mov rcx, qword [rsp + 0x70]
call fcn.140153dc4
mov qword [rsp + 0x28], rax
lea rdx, [0x1401be990]
mov rcx, qword [rsp + 0x78]
call fcn.140153dc4
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x28]
call fcn.1401551b0
test eax, eax
jne 0x140004dce
mov r9, qword [rsp + 0x28]
mov r8d, 1
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.140155190
mov rcx, qword [rsp + 0x28]
call fcn.1401551b0
test eax, eax
jne 0x140004dc9
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.140153f5c
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
jmp 0x140004d42
mov rcx, qword [rsp + 0x28]
call fcn.140153c84
mov rcx, qword [rsp + 0x58]
call fcn.140153c84
add rsp, 0x68
ret
Function at 0x140005f20
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x3b8
mov rax, qword [0x140256080]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
lea rcx, [rsp + 0x240]
call fcn.140003a00
mov dword [rsp + 0x248], 0
lea rdx, [rsp + 0x240]
lea rcx, [0x140258180]
call fcn.1400053d0
lea rcx, [rsp + 0x240]
call fcn.140003d20
lea rdx, [rsp + 0x250]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x390], rax
cmp qword [rsp + 0x390], 0xffffffffffffffff
je 0x140005ff4
mov eax, dword [rsp + 0x248]
inc eax
mov dword [rsp + 0x248], eax
lea rdx, [rsp + 0x250]
mov rcx, qword [rsp + 0x390]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x140005fd7
mov eax, dword [rsp + 0x248]
inc eax
mov dword [rsp + 0x248], eax
jmp 0x140005fab
mov rcx, qword [rsp + 0x390]
call qword [sym.imp.KERNEL32.dll_FindClose]
xor edx, edx
mov rcx, qword [rsp + 0x3c0]
call fcn.140006ff0
mov eax, dword [rsp + 0x248]
mov dword [rsp + 0x398], eax
lea rcx, [rsp + 0x240]
call fcn.140003a30
mov eax, dword [rsp + 0x398]
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.140153af0
add rsp, 0x3b8
ret
Function at 0x14000d3c0
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, [0x1401c16b0]
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, [0x1401c16b0]
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 0x14000e9a0
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
sub rsp, 0x48
mov rax, qword [rsp + 0x58]
imul rax, qword [rsp + 0x60]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x68]
movzx eax, byte [rax]
test eax, eax
je 0x14000ea1b
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x14000ea0e
mov rax, qword [rsp + 0x68]
mov byte [rax + 0x10], 1
mov eax, dword [rsp + 0x3c]
xor edx, edx
div qword [rsp + 0x58]
jmp 0x14000ea93
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x2c]
add eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x68]
cmp eax, dword [rcx + 0x28]
jbe 0x14000ea47
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x68]
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 + 0x68]
mov ecx, dword [rcx + 0x2c]
mov rdx, qword [rsp + 0x68]
add rcx, qword [rdx + 0x20]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x50]
call fcn.1401540c0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x2c]
add eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
mov dword [rcx + 0x2c], eax
mov eax, dword [rsp + 0x30]
xor edx, edx
div qword [rsp + 0x58]
add rsp, 0x48
ret
Function at 0x140010ef0
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
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
jne 0x140010f1e
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0xffffffff
je 0x140010f28
mov eax, 0x1000000
jmp 0x140011037
mov rax, qword [rsp + 0x50]
add rax, 0x150
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rax, qword [rsp + 0x50]
add rax, 0x150
mov rcx, rax
call fcn.140154000
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax + 0x14f]
mov byte [rsp + 0x28], al
movsx eax, byte [rsp + 0x28]
cmp eax, 0x5c
je 0x140010f93
movsx eax, byte [rsp + 0x28]
cmp eax, 0x2f
je 0x140010f93
mov rax, qword [rsp + 0x50]
add rax, 0x150
lea rdx, [0x1401c004c]
mov rcx, rax
call fcn.140155210
cmp dword [rsp + 0x68], 1
jne 0x140010fe6
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
je 0x140010fc5
mov dword [rsp + 0x38], 1
jmp 0x140010fcd
mov dword [rsp + 0x38], 0
movzx eax, byte [rsp + 0x38]
mov byte [rsp + 0x34], al
movzx eax, byte [rsp + 0x34]
test eax, eax
jne 0x140010fe6
mov eax, 0x2000000
jmp 0x140011037
lea r9, [rsp + 0x2c]
mov r8d, dword [rsp + 0x68]
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call fcn.14000e500
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140011011
mov eax, dword [rsp + 0x2c]
jmp 0x140011037
mov rcx, qword [rsp + 0x20]
call fcn.14000efb0
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax], 0
jne 0x140011035
mov eax, 0x200
jmp 0x140011037
xor eax, eax
add rsp, 0x48
ret
Function at 0x140011e70
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x278
mov rax, qword [0x140256080]
xor rax, rsp
mov qword [rsp + 0x260], rax
cmp qword [rsp + 0x280], 0
je 0x140011ec1
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140011ec1
xor edx, edx
mov rcx, qword [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rax, qword [rsp + 0x288]
movsx eax, byte [rax]
test eax, eax
jne 0x140011ed5
jmp 0x14001201b
mov rax, qword [rsp + 0x288]
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 0x140011f40
mov rax, qword [rsp + 0x148]
movsx eax, byte [rax]
cmp eax, 0x2f
je 0x140011f1e
mov rax, qword [rsp + 0x148]
movsx eax, byte [rax]
cmp eax, 0x5c
jne 0x140011f2b
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x148]
inc rax
mov qword [rsp + 0x148], rax
jmp 0x140011eef
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x288]
cmp qword [rsp + 0x20], rax
je 0x140011fca
mov rax, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov r8, rax
mov rdx, qword [rsp + 0x288]
lea rcx, [rsp + 0x150]
call fcn.1401540c0
mov rax, qword [rsp + 0x288]
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 + 0x280]
call fcn.140011e70
mov rax, qword [rsp + 0x140]
inc rax
mov qword [rsp + 0x140], rax
mov byte [rsp + 0x30], 0
cmp qword [rsp + 0x280], 0
je 0x140011fec
mov rdx, qword [rsp + 0x280]
lea rcx, [rsp + 0x30]
call fcn.1401552b0
mov rdx, qword [rsp + 0x288]
lea rcx, [rsp + 0x30]
call fcn.140155210
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14001201b
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140153af0
add rsp, 0x278
ret
Function at 0x14001419c
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.14002aac8
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 0x1400141f8
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.140013c34
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 0x14001428c
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 0x1400142cb
cmp dword [rcx + 0xd8], 0
jne 0x1400142cb
movzx eax, dx
mov dword [rcx + 0xd8], eax
call fcn.14002aac8
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.140014230
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 0x140014e58
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.14002aef0
mov rsi, rax
test rax, rax
je 0x140014ed4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x140014ecf
cmp dword [rbx], 0x40
jb 0x140014ecf
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 0x140014ecf
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x140014ed8
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 0x14001cc20
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 0x14001cc88
call fcn.14002aac8
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 0x14001cc88
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14001ccaa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14001c614
mov esi, eax
test rdi, rdi
je 0x14001cca8
test rbx, rbx
je 0x14001cca8
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 0x14001db48
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 0x14001db86
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x14001dc3a
call fcn.140022504
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14001dba5
mov ecx, 0x80004005
call fcn.140003b10
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.140156578
test eax, eax
je 0x14001dc0d
cmp eax, 0xc
je 0x14001dc07
cmp eax, 0x16
je 0x14001dc01
cmp eax, 0x22
je 0x14001dc01
cmp eax, 0x50
je 0x14001dc0d
call fcn.140029448
int3
call fcn.140029448
int3
call fcn.140029400
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 0x14001dc38
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 0x140024e8c
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 0x140024f06
xor r8d, r8d
call fcn.140024dc0
mov rsi, rax
test rax, rax
jne 0x140024ec2
mov eax, edi
jmp 0x140024f1c
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 0x140024ebe
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 0x140025630
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 0x140025693
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400256a7
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400256a7
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 0x1400256ac
cmp dword [rcx + 8], 0
je 0x1400256a7
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x1400256ac
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140034488
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x1400344ae
mov r8, rdx
mov rdx, qword [rbx]
call fcn.140025630
jmp 0x140034515
cmp byte [0x14025c0f0], 0
jne 0x1400344f2
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400344e2
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14025c0e8], rax
jmp 0x1400344e9
mov rax, qword [0x14025c0e8]
mov byte [0x14025c0f0], 1
jmp 0x1400344f9
mov rax, qword [0x14025c0e8]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14003450f
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x140034515
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14003499c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rdx]
mov rbx, rdx
cmp dword [rcx - 0x10], 0
je 0x1400349ce
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x1400349ce
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.14007df44
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret