joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140024534
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 rbx, r8
mov rcx, qword [rcx + 0x40]
call fcn.140054750
mov rdi, rax
test rax, rax
je 0x1400245b0
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x1400245ab
cmp dword [rbx], 0x40
jb 0x1400245ab
mov rcx, qword [rbp + 0x40]
xor r9d, r9d
or dword [rbx + 4], 1
xor r8d, r8d
or qword [rbx + 0x30], 0xffffffffffffffff
mov edx, 0x87
mov qword [rbx + 8], rcx
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xd
jb 0x1400245ab
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x1400245b4
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 0x140028d60
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movsxd rsi, r8d
mov rbx, rdx
mov rdi, rcx
xor ebp, ebp
cmp qword [rcx + 0xd0], rbp
jne 0x140028d9a
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x140028e3e
call fcn.14001e770
mov rcx, rax
test rax, rax
je 0x140028e59
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14007c0ea.0]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov rcx, qword [rdi + 0xd0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
mov rax, qword [rax + 0x118]
call qword [case.0x14007c0ea.0]
mov rdx, rsi
or rdi, 0xffffffffffffffff
mov r9, rdi
mov r8, qword [rsp + 0x30]
mov rcx, rbx
call fcn.1401d1e0c
test eax, eax
je 0x140028e02
cmp eax, 0xc
je 0x140028e53
cmp eax, 0x50
jne 0x140028e64
test rbx, rbx
jne 0x140028e0b
mov ebx, ebp
jmp 0x140028e16
mov rcx, rbx
call fcn.1401c17c0
mov rbx, rax
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, edi
test ecx, ecx
jg 0x140028e3c
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14007c0ea.0]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
call fcn.14001fbc4
nop
mov ecx, 0x80004005
call fcn.140002f90
nop
call fcn.14001fba0
int3

Function at 0x140029920
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x78
test rdx, rdx
je 0x140029988
mov r10, qword [rcx + 0x10]
test r10, r10
je 0x140029972
cmp qword [rcx + 0x18], 0
jne 0x14002996d
mov eax, dword [rcx + 0xc]
cmp eax, dword [rcx + 0x30]
jae 0x14002998e
mov qword [rsp + 0x58], rdx
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x50
mov edx, eax
mov dword [rsp + 0x24], 0x40
mov r8d, 1
mov rcx, qword [r10 + 8]
call qword [sym.imp.USER32.dll_SetMenuItemInfoA]
add rsp, 0x78
ret
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x140029988
mov rcx, qword [rcx + 0x40]
add rsp, 0x78
jmp fcn.140054414
call fcn.14001fba0
int3
call fcn.14001fba0
int3
Function at 0x14003ef64
Capabilities:
Get graphical window text

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x90
mov rax, qword [0x1402837b0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbp, r8
lea r15, [r11 + 0x28]
mov rdi, rcx
call fcn.14003ef10
cmp dword [rdi], 0
mov rsi, rax
mov dword [rdi + 0x14], 1
je 0x14003eff9
mov rbx, qword [r15]
lea rdx, [rsp + 0x40]
mov r8d, 0x40
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov r9, rbx
lea rcx, [rsp + 0x40]
mov r8, rbp
mov edx, 0x40
call fcn.14003f0b4
cmp eax, 1
je 0x14003f072
mov ecx, dword [rsp + 0xd8]
or r8d, 0xffffffff
xor edx, edx
call fcn.140038d54
mov rcx, rdi
call fcn.14003eeb4
jmp 0x14003f072
call fcn.1401c1b9c
mov ebx, dword [rax]
call fcn.1401c1b9c
and dword [rax], 0
call fcn.140006580
mov r9d, 0x3f
mov qword [rsp + 0x30], r15
and qword [rsp + 0x28], 0
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov rcx, qword [rax]
lea r8d, [r9 + 1]
call fcn.1401c4c24
call fcn.1401c1b9c
cmp dword [rax], 0
je 0x14003f05e
call fcn.1401c1b9c
cmp dword [rax], 0
je 0x14003f065
cmp dword [rax], 0xc
je 0x14003f0a6
cmp dword [rax], 0x16
je 0x14003f09b
cmp dword [rax], 0x22
je 0x14003f09b
cmp dword [rax], 0x50
jne 0x14003f090
jmp 0x14003f065
call fcn.1401c1b9c
mov dword [rax], ebx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140054414
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401bacf0
add rsp, 0x90
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80004005
call fcn.140002f90
int3
mov ecx, 0x80070057
call fcn.140002f90
int3
mov ecx, 0x8007000e
call fcn.140002f90
int3

Function at 0x140041dfc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, r9
mov r15, r8
mov rdi, rdx
mov rbp, rcx
test rdx, rdx
je 0x140041ebd
mov esi, 0x811c9dc5
xor ebx, ebx
mov rcx, rdx
call fcn.1401c17c0
mov r8, rax
mov eax, 0xcccccccd
mul r8d
shr edx, 3
inc edx
test r8d, r8d
je 0x140041e60
movsx ecx, byte [rbx + rdi]
imul esi, esi, 0x1000193
xor esi, ecx
add ebx, edx
cmp ebx, r8d
jb 0x140041e4d
mov dword [r14], esi
xor edx, edx
mov eax, esi
div dword [rbp + 0x10]
mov dword [r15], edx
mov rbx, qword [rbp + 8]
test rbx, rbx
je 0x140041ea2
mov rbx, qword [rbx + rdx*8]
test rbx, rbx
je 0x140041ea2
mov eax, dword [r14]
cmp dword [rbx + 8], eax
jne 0x140041e98
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call fcn.1401c1f28
nop
test eax, eax
je 0x140041e9d
mov rbx, qword [rbx]
jmp 0x140041e7a
mov rax, rbx
jmp 0x140041ea4
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
call fcn.14001fba0
int3
Function at 0x140043f78
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 0x14004beec
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rdi, r9
mov rbx, r8
and qword [r9], 0
mov r14, qword [rbp + 0x40]
and dword [r14], 0
cmp qword [rcx + 0xb0], 0
je 0x14004bfc4
xor r8d, r8d
call fcn.14004c360
mov rsi, rax
test rax, rax
je 0x14004c074
mov qword [rbp - 0x20], rsi
and dword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
and dword [rbp + 0x20], 0
and dword [rbp + 0x40], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rbp + 0x40]
mov dword [r14], ecx
test eax, eax
jne 0x14004bfa8
call fcn.140006890
mov qword [rdi], rax
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14004bfa8
lea ebx, [rax + 1]
jmp 0x14004bfb6
mov rcx, qword [rdi]
call fcn.140002990
and qword [rdi], 0
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14004c072
mov rax, qword [rcx]
and qword [rsp + 0x20], 0
mov r9, rbx
mov r8, rdx
lea rdx, [rbp + 0x40]
mov rax, qword [rax + 0x108]
call qword [case.0x14007c0ea.0]
nop
mov rax, qword [rbp + 0x40]
mov ecx, dword [rax - 0x10]
test ecx, ecx
jne 0x14004bff4
xor ebx, ebx
jmp 0x14004c051
shr ecx, 1
mov dword [r14], ecx
call fcn.140006890
mov qword [rdi], rax
xor r8d, r8d
lea ebx, [r8 + 1]
cmp dword [r14], r8d
jbe 0x14004c04d
lea ecx, [r8 + r8]
lea edx, [rcx + 1]
test edx, edx
js 0x14004c089
mov rax, qword [rbp + 0x40]
cmp edx, dword [rax - 0x10]
jg 0x14004c089
movsxd r9, ecx
mov dl, byte [r9 + rax + 1]
test ecx, ecx
js 0x14004c089
cmp ecx, dword [rax - 0x10]
jg 0x14004c089
sub dl, bl
shl dl, 4
sub dl, 0x41
add dl, byte [r9 + rax]
mov rax, qword [rdi]
mov byte [r8 + rax], dl
add r8d, ebx
cmp r8d, dword [r14]
jb 0x14004c00d
mov rax, qword [rbp + 0x40]
lea rdx, [rax - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14004c072
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14007c0ea.0]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, 0x80070057
call fcn.140002f90
int3
Function at 0x14004c094
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 0x14004c10f
xor r8d, r8d
call fcn.14004c360
mov rsi, rax
test rax, rax
je 0x14004c10b
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14004c10b
mov eax, dword [rsp + 0x30]
jmp 0x14004c125
mov eax, edi
jmp 0x14004c125
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rcx, rax
mov rdx, rbx
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 0x14004c138
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xf60]
mov eax, 0x1060
call fcn.1401bb720
sub rsp, rax
mov rax, qword [0x1402837b0]
xor rax, rsp
mov qword [rbp + 0xf50], rax
mov r12, r9
mov r10, r8
mov rdi, rdx
mov r14, qword [rbp + 0xfc0]
mov qword [rsp + 0x38], rdx
cmp qword [rcx + 0xb0], 0
je 0x14004c2e6
xor r8d, r8d
mov rdx, r10
call fcn.14004c360
mov rsi, rax
test rax, rax
jne 0x14004c1a7
mov rdx, r14
jmp 0x14004c31e
call fcn.14001e770
mov rcx, rax
test rax, rax
je 0x14004c355
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14007c0ea.0]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
and dword [rsp + 0x34], 0
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r15d, eax
test eax, eax
jne 0x14004c282
mov edx, dword [rsp + 0x30]
test edx, edx
js 0x14004c34a
lea ecx, [rax + 1]
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x14004c22d
lea rcx, [rsp + 0x38]
call fcn.140002b90
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r15d, eax
test rbx, rbx
jne 0x14004c25c
xor eax, eax
jmp 0x14004c270
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1401c5700
test eax, eax
js 0x14004c34a
cmp eax, dword [rbx - 0xc]
jg 0x14004c34a
mov dword [rbx - 0x10], eax
mov eax, eax
mov byte [rax + rbx], 0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15d, r15d
jne 0x14004c2b7
lea rcx, [rbx - 0x18]
call fcn.140003d60
add rax, 0x18
mov qword [rdi], rax
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x14004c326
mov rcx, qword [rbx - 0x18]
lea rdx, [rbx - 0x18]
jmp 0x14004c2d7
mov rdx, r14
mov rcx, rdi
call fcn.140004130
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004c326
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14007c0ea.0]
jmp 0x14004c326
lea r8, [0x140246bb7]
test r14, r14
cmovne r8, r14
mov rax, qword [rcx + 0xd8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x50]
mov rdx, r12
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140004130
mov rax, rdi
mov rcx, qword [rbp + 0xf50]
xor rcx, rsp
call fcn.1401bacf0
add rsp, 0x1060
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070057
call fcn.140002f90
nop
mov ecx, 0x80004005
call fcn.140002f90
int3
Function at 0x14004d3dc
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14004d443
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14004d457
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004d457
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call qword [case.0x14007c0ea.0]
jmp 0x14004d45c
cmp dword [rcx + 8], 0
je 0x14004d457
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x14004d45c
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14004e5e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 8], 0
xor edi, edi
mov rax, qword [rdx]
mov rbx, rdx
mov rsi, rcx
lea r9d, [rdi + 1]
mov r8d, dword [rax - 0xc]
sub r9d, dword [rax - 8]
sub r8d, 0x104
or r9d, r8d
jge 0x14004e623
mov edx, 0x104
mov rcx, rbx
call fcn.140002b90
mov r14, qword [rbx]
lea rax, [rbp - 8]
and dword [rbp + 0x40], edi
lea rdx, str.CLSID
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x38], 0x104
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004e6fa
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
and qword [rbp - 0x10], rdi
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14004e6f0
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x48]
and qword [rbp + 0x48], rdi
lea rdx, str.InProcServer32
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004e6e6
mov rcx, qword [rbp + 0x48]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], r14
lea rdx, [0x140246bb7]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rbp + 0x48]
test eax, eax
sete dil
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14004e706
xor eax, eax
jmp 0x14004e713
movsxd rdx, dword [rcx - 0xc]
call fcn.1401c5700
test eax, eax
js 0x14004e734
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14004e734
mov dword [rcx - 0x10], eax
mov rcx, qword [rbx]
mov edx, eax
mov eax, edi
mov byte [rdx + rcx], 0
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070057
call fcn.140002f90
int3
Function at 0x14004ee68
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rdx
mov rbx, rcx
je 0x14004eeb3
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14004eec4
lea rdx, str.DeleteFileTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004eec4
mov rdx, qword [rbx]
mov rcx, rdi
call qword [case.0x14007c0ea.0]
jmp 0x14004eec6
cmp dword [rcx + 8], 0
je 0x14004eec4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x14004eec6
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14004f10c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [rsp + 0x34]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x30], eax
cmp eax, 0xffffffff
jne 0x14004f137
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14004f142
mov rax, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 0x18]
call fcn.140002940
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.1400705f8
int3

Function at 0x14004f21c
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14004f285
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14004f299
lea rdx, str.MoveFileTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004f299
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x20], 2
mov rdx, rdi
call qword [case.0x14007c0ea.0]
jmp 0x14004f29b
cmp dword [rcx + 8], 0
je 0x14004f299
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x14004f29b
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14004f4f8
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test r8d, r8d
jne 0x14004f50a
xor eax, eax
jmp 0x14004f527
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004f52d
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
lea rcx, [rbx + 0x18]
call fcn.140002940
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.1400705f8
int3

Function at 0x14004f54c
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
test rdx, rdx
je 0x14004f56a
mov rdx, rcx
mov rcx, rax
call fcn.14004ee68
jmp 0x14004f570
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x14004f57a
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.1400705f8
int3
Function at 0x14004f58c
Capabilities:
Move file

Disassembly:
push rbx
sub rsp, 0x20
mov rax, r8
mov rbx, rcx
test r8, r8
je 0x14004f5ad
mov r8, rdx
mov rdx, rcx
mov rcx, rax
call fcn.14004f21c
jmp 0x14004f5b3
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x14004f5bd
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.1400705f8
int3

Function at 0x14004f704
Capabilities:
Write file on windows

Disassembly:
test r8d, r8d
je 0x14004f742
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rdi, rcx
mov ebx, r8d
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14004f743
cmp dword [rsp + 0x50], ebx
jne 0x14004f760
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, [rdi + 0x18]
call fcn.140002940
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.1400705f8
int3
lea rcx, [rdi + 0x18]
call fcn.140002940
or edx, 0xffffffff
mov r8, rax
lea ecx, [rdx + 0xe]
call fcn.14007014c
int3

Function at 0x1400503cc
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1401d29f8
test eax, eax
jne 0x140050430
mov eax, dword [rsp + 0x30]
lea r8, str._s_s_X.tmp
mov dword [rsp + 0x28], eax
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.140032374
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140050442
jmp 0x1400503f0
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140050640
Capabilities:
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov r8d, 1
mov rcx, rbx
and eax, 1
mov rax, qword [rbx]
mov rax, qword [rax + 0x1c0]
je 0x140050682
xor edx, edx
call qword [case.0x14007c0ea.0]
test eax, eax
je 0x14005067e
mov eax, 1
jmp 0x140050695
xor eax, eax
jmp 0x140050695
mov rdx, qword [rbx + 0x48]
call qword [case.0x14007c0ea.0]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140054dcc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rsi, r8
mov rbx, rcx
lea rcx, [rsp + 0x40]
call fcn.140004130
nop
cmp rbx, 0xffffffff80000000
jne 0x140054e54
call fcn.14002b2fc
cmp eax, 1
jne 0x140054e54
lea r8, [rsp + 0x40]
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x20]
call fcn.14001c7f0
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140003c80
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140054e4d
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14007c0ea.0]
mov rbx, 0xffffffff80000001
mov r9, rdi
mov r8, rsi
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140054e90
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14007c0ea.0]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140054ea4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, r9
mov esi, r8d
mov rbx, rcx
lea rcx, [rsp + 0x50]
call fcn.140004130
nop
cmp rbx, 0xffffffff80000000
jne 0x140054f2c
call fcn.14002b2fc
cmp eax, 1
jne 0x140054f2c
lea r8, [rsp + 0x50]
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x30]
call fcn.14001c7f0
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140003c80
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140054f25
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14007c0ea.0]
mov rbx, 0xffffffff80000001
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8d, esi
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ebx, eax
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140054f70
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14007c0ea.0]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret