joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001760c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14001732c
mov ebx, eax
test eax, eax
jne 0x14001763c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14001769f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140017696
test al, 0x10
je 0x140017696
bt eax, 0xa
jae 0x14001768f
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400176b0
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14001768b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14001768b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x140017696
and dword [rsp + 0x3c], 0
jmp 0x14001769b
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140018680
Capabilities:
Parse pe header

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

Disassembly:
endbr64
jmp fcn.180033090
Function at 0x1800dea50
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, rdx
mov rax, rcx
mov rcx, qword [0x18039ff58]
xor rcx, rsp
mov qword [rsp + 0x50], rcx
mov ebp, dword [rax]
mov r8d, dword [rax + 4]
lea ecx, [r8 - 0x11]
cmp ecx, 0xffffffed
ja 0x1800deabe
mov dword [rsi], ebp
mov dword [rsi + 4], r8d
mov rcx, qword [rax + 8]
mov qword [rsi + 8], rcx
mov rax, qword [rax + 0x10]
mov qword [rsi + 0x10], rax
test r8d, r8d
jle 0x1800debb9
mov dword [rsi + 4], 0xffffff80
xor esi, esi
test ebp, ebp
sete sil
shl rsi, 0x11
add rsi, 0xffffffffffff0000
jmp 0x1800dec3b
mov edx, 0xb17217f7
mov r9, qword [rax + 8]
mov rcx, r9
shr rcx, 1
shr r9, 0x21
mov ecx, ecx
imul r10, rcx, 0x5c17f0bc
lea r11, [rdx + 0x7382332]
imul rcx, r11
shr r10, 0x20
imul rbx, r9, 0x5c17f0bc
add rbx, rcx
add rbx, r10
imul r9, r11
shr rbx, 0x20
mov edi, 0x3e
mov cl, 0x3d
sub cl, r8b
mov r14d, 1
shl r14, cl
sub edi, r8d
add r14, r9
add r14, rbx
mov ecx, edi
shr r14, cl
shl r14, cl
test r14, r14
jle 0x1800deb3b
nop word [rax + rax]
add r14, r14
inc rdi
test r14, r14
jg 0x1800deb30
mov r15d, 0x40
sub r15d, edi
movabs rcx, 0xb17217f7d1cf79ac
imul rcx, r14
mov r9, r14
shr r9, 0x20
mov r10d, r14d
lea r8, [rdx + 0x205d61b5]
mov r11, r10
imul r11, r8
imul r10, rdx
shr r11, 0x20
add r11, r10
imul r8, r9
imul r9, rdx
add rdx, 0x4e8de809
xor r10d, r10d
add r8, r11
cmovb r10, rdx
shr r8, 0x20
or r8, r10
add r8, r9
test r8, r8
jle 0x1800debbd
mov edx, 0x3f
sub edx, edi
shld r8, rcx, 1
movabs rcx, 0x62e42fefa39ef358
imul rcx, r14
jmp 0x1800debc0
xor esi, esi
jmp 0x1800dec3b
mov edx, r15d
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], rcx
lea rbx, [rsp + 0x20]
mov r8d, 1
mov rcx, rax
mov rdx, rbx
mov r9, rbx
call fcn.1800e1300
mov dword [rsp + 0x38], ebp
mov dword [rsp + 0x3c], r15d
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 0
lea rdx, [0x18031e170]
lea rcx, [rsp + 0x38]
mov r8, rsi
call fcn.1800e1ea0
mov r8d, 9
mov rcx, rbx
mov rdx, rsi
mov r9, rsi
call fcn.1800e1300
mov ecx, edi
shr r14, cl
mov rsi, r14
neg rsi
test ebp, ebp
cmove rsi, r14
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1801748d0
mov rax, rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x18017fd2c
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18017fd5c
xor eax, eax
jmp 0x18017fe1f
mov rbp, rbx
cmp word [rax], si
je 0x18017fd81
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18017fd68
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18017fd64
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18017fc7c
movsxd r14, eax
test eax, eax
jne 0x18017fdbf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18017fd55
mov rcx, r14
call fcn.18017c214
mov rdi, rax
test rax, rax
jne 0x18017fdd8
xor ecx, ecx
call fcn.18017c1d8
jmp 0x18017fdb4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18017fc7c
test eax, eax
jne 0x18017fe09
mov rcx, rdi
call fcn.18017c1d8
jmp 0x18017fe13
xor ecx, ecx
call fcn.18017c1d8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180184c44
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.18017e09c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x180184cce
cmp byte [rbp - 0x21], r15b
je 0x180184cc9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x180184d04
call fcn.180180534
test eax, eax
jne 0x180184cf0
cmp byte [rbp - 0x21], r15b
je 0x180184ce8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x180184d04
cmp byte [rbp - 0x21], r15b
je 0x180184d01
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.18017e3d0
test eax, eax
jne 0x180184da4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18017e09c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x180184d43
cmp byte [rbp - 0x21], r15b
je 0x180184d78
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x180184d78
call fcn.180180534
test eax, eax
jne 0x180184d64
cmp byte [rbp - 0x21], r15b
je 0x180184d5d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x180184d78
cmp byte [rbp - 0x21], r15b
je 0x180184d75
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.18017e3d0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x180184da4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x180184da7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x180184db5
mov rcx, rdi
call fcn.18017c1d8
cmp byte [rbp + 0x3f], r15b
je 0x180184dc4
mov rcx, qword [rbp + 0x27]
call fcn.18017c1d8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001e37a
Capabilities:
Terminate process

Disassembly:
jmp 0x140043270
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001e401
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x14002a9d0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2c8
lea rbp, [rsp + 0x20]
lea rcx, [0x1400770f3]
call fcn.14001e640
mov qword [rbp + 8], 0
mov rcx, qword [rbp + 0x2c0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x68]
mov eax, dword [rcx + rax + 0x88]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xe8], rax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x108], rax
mov dword [rbp + 0x124], 0
jmp 0x14002aac8
mov eax, dword [rbp + 0x124]
inc eax
mov dword [rbp + 0x124], eax
mov rax, qword [rbp + 0xa8]
mov eax, dword [rax + 0x14]
cmp dword [rbp + 0x124], eax
jae 0x14002ab86
mov eax, dword [rbp + 0x124]
mov rcx, qword [rbp + 0xe8]
mov eax, dword [rcx + rax*4]
mov dword [rbp + 0x144], eax
mov eax, dword [rbp + 0x144]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x168], rax
mov rax, qword [rbp + 0x168]
mov qword [rbp + 0x188], rax
mov qword [rbp + 0x1a8], 0
mov rcx, qword [rbp + 0x188]
call fcn.14001e177
mov dword [rbp + 0x1c4], eax
mov eax, dword [rbp + 0x2c8]
cmp dword [rbp + 0x1c4], eax
jne 0x14002ab81
mov eax, dword [rbp + 0x124]
mov rcx, qword [rbp + 0x108]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rbp + 0xc8]
mov eax, dword [rcx + rax*4]
mov qword [rbp + 0x1a8], rax
mov rax, qword [rbp + 0x1a8]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
jmp 0x14002ab86
jmp 0x14002aaba
lea rsp, [rbp + 0x2a8]
pop rdi
pop rbp
ret
Function at 0x140001070
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor esi, esi
mov ebp, 1
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 0x40000000
mov r8d, ebp
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 2
xor bl, bl
call qword [sym.imp.KERNEL32.DLL_CreateFileA]
mov r8d, dword [section..data]
lea r9, [rsp + 0x58]
cmp rax, 0xffffffffffffffff
lea rdx, [0x1401ea010]
mov rcx, rax
mov rdi, rax
mov qword [rsp + 0x20], rsi
cmove ebx, esi
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov rcx, rdi
test eax, eax
cmovne ebx, ebp
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
movzx eax, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140002510
Capabilities:
Extract resource via kernel32 functions

Disassembly:
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
jne 0x140002543
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.DLL_LockResource]
mov rbx, rax
test rax, rax
je 0x140002586
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140002581
cmp rbx, r11
jae 0x140002586
dec edi
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140002570
cmp rbx, r11
jb 0x14000258a
xor eax, eax
jmp 0x140002596
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140006ef4
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 0x140006f6e
xor r8d, r8d
call fcn.140006e28
mov rsi, rax
test rax, rax
jne 0x140006f2a
mov eax, edi
jmp 0x140006f84
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 0x140006f26
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 0x140007698
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 0x1400076fb
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
test rax, rax
je 0x14000770f
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
test rax, rax
je 0x14000770f
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 0x140007714
cmp dword [rcx + 8], 0
je 0x14000770f
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x140007714
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000b83c
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.14000d3e4
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 0x14000b898
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.14000b2d4
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 0x14000b92c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_712
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 0x14000b96b
cmp dword [rcx + 0xd8], 0
jne 0x14000b96b
movzx eax, dx
mov dword [rcx + 0xd8], eax
call fcn.14000d3e4
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.14000b8d0
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 0x14000ec64
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.14001834c
mov rsi, rax
test rax, rax
je 0x14000ece0
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x14000ecdb
cmp dword [rbx], 0x40
jb 0x14000ecdb
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 0x14000ecdb
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x14000ece4
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 0x140016664
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 0x1400166cc
call fcn.14000d3e4
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 0x1400166cc
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_LoadResource]
mov rbx, rax
test rax, rax
je 0x1400166ee
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.140016058
mov esi, eax
test rdi, rdi
je 0x1400166ec
test rbx, rbx
je 0x1400166ec
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 0x140016e68
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 0x140016ea6
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x140016f5a
call fcn.140008618
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140016ec5
mov ecx, 0x80004005
call fcn.140001050
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.140144794
test eax, eax
je 0x140016f2d
cmp eax, 0xc
je 0x140016f27
cmp eax, 0x16
je 0x140016f21
cmp eax, 0x22
je 0x140016f21
cmp eax, 0x50
je 0x140016f2d
call fcn.140003d8c
int3
call fcn.140003d8c
int3
call fcn.140003d44
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 0x140016f58
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 0x140018624
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 0x14001864a
mov r8, rdx
mov rdx, qword [rbx]
call fcn.140007698
jmp 0x1400186b1
cmp byte [0x1401f5af0], 0
jne 0x14001868e
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
test rax, rax
je 0x14001867e
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x1401f5ae8], rax
jmp 0x140018685
mov rax, qword [0x1401f5ae8]
mov byte [0x1401f5af0], 1
jmp 0x140018695
mov rax, qword [0x1401f5ae8]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x1400186ab
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x1400186b1
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400189a8
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 0x1400189da
call qword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x1400189da
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.14003c490
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140081144
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
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r13, rcx
test r8, r8
jne 0x140081175
call fcn.14000d3e4
mov rdi, qword [rax + 0x18]
mov r8, qword [0x1401f8a70]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_FindResourceA]
mov rbp, rax
test rax, rax
jne 0x140081194
xor eax, eax
jmp 0x1400811e0
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LoadResource]
mov rsi, rax
test rax, rax
je 0x140081190
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_LockResource]
mov r12, rax
test rax, rax
je 0x1400811d5
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_SizeofResource]
mov rdx, r12
mov rcx, r13
mov r8d, eax
call fcn.140081008
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x1400b1218
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1400b1229
xor eax, eax
jmp 0x1400b1257
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1400b13ec
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1400b13fd
xor eax, eax
jmp 0x1400b1421
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
mov r9d, 3
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret