joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011a560
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
cmp dword [rcx + 0x38], 0
mov rbp, rdx
mov esi, r8d
mov rdi, rcx
je 0x14011a6e5
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x14011a6e5
mov r9, qword [rdi + 0x70]
test r9, r9
jne 0x14011a5c8
lea r9, [rsp + 0x40]
mov r8d, esi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14011a6c1
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
cmp esi, dword [rdi + 0x68]
jb 0x14011a62d
mov r14d, dword [rdi + 0x78]
sub r14d, dword [rdi + 0x6c]
jns 0x14011a5dc
xor r14d, r14d
jmp 0x14011a5e1
cmp r14d, esi
ja 0x14011a629
mov r8d, dword [rdi + 0x6c]
mov rdx, rsi
add r8, r9
mov rcx, rbp
mov r9d, r14d
call fcn.14001cdf0
mov eax, dword [rdi + 0x68]
lea rdx, [r14 + rbp]
mov rcx, qword [rdi + 0x30]
lea r9, [rsp + 0x40]
sub esi, r14d
mov dword [rdi + 0x6c], eax
mov r8d, esi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14011a6cd
mov esi, dword [rsp + 0x40]
add esi, r14d
jmp 0x14011a6ba
xor eax, eax
jmp 0x14011a5b5
mov ecx, dword [rdi + 0x6c]
mov ebx, dword [rdi + 0x78]
lea eax, [rcx + rsi]
cmp eax, ebx
jb 0x14011a6a5
sub ebx, ecx
jns 0x14011a642
xor ebx, ebx
jmp 0x14011a646
cmp ebx, esi
ja 0x14011a629
lea r8, [r9 + rcx]
mov rdx, rsi
mov r9d, ebx
mov rcx, rbp
call fcn.14001cdf0
mov r8d, dword [rdi + 0x68]
lea r9, [rsp + 0x58]
mov rdx, qword [rdi + 0x70]
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14011a6d9
mov ecx, dword [rsp + 0x58]
sub esi, ebx
mov r8, qword [rdi + 0x70]
cmp esi, ecx
mov r9d, esi
mov dword [rdi + 0x78], ecx
cmovae r9d, ecx
mov edx, esi
lea rcx, [rbx + rbp]
mov dword [rsp + 0x58], r9d
call fcn.14001cdf0
mov eax, dword [rsp + 0x58]
mov dword [rdi + 0x6c], eax
lea esi, [rax + rbx]
jmp 0x14011a6ba
lea r8, [r9 + rcx]
mov rdx, rsi
mov r9, rsi
mov rcx, rbp
call fcn.14001cdf0
add dword [rdi + 0x6c], esi
mov eax, esi
jmp 0x14011a5b5
mov rcx, qword [rdi + 0x40]
xor edx, edx
call fcn.140119d7c
int3
mov rcx, qword [rdi + 0x40]
xor edx, edx
call fcn.140119d7c
int3
mov rcx, qword [rdi + 0x40]
xor edx, edx
call fcn.140119d7c
int3
mov rcx, qword [rdi + 0x40]
mov edx, 6
call fcn.140119d7c
int3
Function at 0x14011abc0
Capabilities:
Send data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x38], 1
mov rsi, rdx
mov edi, r8d
mov rbx, rcx
je 0x14011accc
mov r10, qword [rcx + 0x30]
test r10, r10
je 0x14011accc
mov rdx, qword [rcx + 0x60]
test rdx, rdx
jne 0x14011ac20
lea r9, [rsp + 0x30]
mov r8d, edi
mov rdx, rsi
mov rcx, r10
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x14011ac9c
cmp dword [rsp + 0x30], edi
jne 0x14011aca8
jmp 0x14011ac8c
mov r8d, dword [rcx + 0x5c]
mov ecx, dword [rcx + 0x58]
lea eax, [r8 + rdi]
cmp eax, ecx
jb 0x14011ac4b
lea r9, [rsp + 0x30]
mov rcx, r10
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x14011acb4
and dword [rbx + 0x5c], 0
mov ecx, dword [rbx + 0x58]
xor r8d, r8d
cmp edi, ecx
jb 0x14011ac6a
mov rcx, qword [rbx + 0x30]
lea r9, [rsp + 0x30]
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x14011acc0
jmp 0x14011ac8c
lea eax, [r8 + rdi]
cmp eax, ecx
ja 0x14011ac8c
sub ecx, r8d
mov r9, rdi
mov edx, ecx
mov ecx, r8d
mov r8, rsi
add rcx, qword [rbx + 0x60]
call fcn.14001cdf0
add dword [rbx + 0x5c], edi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx + 0x40]
xor edx, edx
call fcn.140119d7c
int3
mov rcx, qword [rbx + 0x40]
xor edx, edx
call fcn.140119d7c
int3
mov rcx, qword [rbx + 0x40]
xor edx, edx
call fcn.140119d7c
int3
mov rcx, qword [rbx + 0x40]
xor edx, edx
call fcn.140119d7c
int3
mov rcx, qword [rcx + 0x40]
mov edx, 6
call fcn.140119d7c
int3
Function at 0x14011b4c8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2a0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1403d88e8]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r15, r8
mov r14, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x60], r8
mov rcx, qword [rdx]
sub rcx, 0x18
call fcn.140015740
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
cmp r14, 0xffffffff80000000
jne 0x14011b592
call fcn.140109958
cmp eax, 1
jne 0x14011b592
lea r8, [rsp + 0x30]
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x58]
call fcn.140057ac0
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400157c0
nop
mov rsi, qword [rsp + 0x58]
or eax, 0xffffffff
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x14011b581
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call fcn.14029e28c
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
mov r14, 0xffffffff80000001
mov qword [rsp + 0x50], r14
mov rbx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
test r15, r15
je 0x14011b5bc
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2001f
xor r9d, r9d
mov r8, rbx
mov rdx, r14
mov rcx, r15
call fcn.140015550
jmp 0x14011b5d6
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
jne 0x14011b6cc
mov r9d, 0x104
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test eax, eax
jne 0x14011b68d
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.140015b30
nop
mov r8, r15
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call fcn.14011b4c8
mov esi, eax
test eax, eax
setne r13b
mov r12, qword [rsp + 0x48]
or eax, 0xffffffff
lock xadd dword [r12 - 8], eax
sub eax, 1
jg 0x14011b664
mov rdi, qword [r12 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call fcn.14029e28c
lea rdx, [r12 - 0x18]
mov rcx, rdi
call rbx
test r13b, r13b
je 0x14011b670
mov rbx, qword [rsp + 0x30]
jmp 0x14011b68d
mov rbx, qword [rsp + 0x30]
jmp 0x14011b5e0
cmp esi, 0x103
je 0x14011b69d
cmp esi, 0x3f2
jne 0x14011b6c0
test r15, r15
je 0x14011b6b2
mov r8, rbx
mov rdx, r14
mov rcx, r15
call fcn.14011b770
jmp 0x14011b6be
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea r14, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [r14 + 0x10], eax
sub eax, 1
jg 0x14011b6f8
mov rdi, qword [r14]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call fcn.14029e28c
mov rdx, r14
mov rcx, rdi
call rbx
mov eax, esi
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14029d880
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14011b770
Capabilities:
Delete registry key

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

Function at 0x14011c950
Capabilities:
Set thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov ebp, 1
mov rdi, rdx
mov r15, rcx
mov r12d, ebp
cmp dword [rdx + 0x10], ebp
jle 0x14011c9f2
lea esi, [rbp + 7]
lea r14d, [rbp + 0xf]
test r8, r8
je 0x14011c9aa
mov rax, qword [r15 + 0x10]
cmp qword [rax + r14 + 8], r8
je 0x14011c9aa
mov rax, qword [rdi + 0x18]
cmp qword [rsi + rax], 0
je 0x14011c9de
xor r12d, r12d
jmp 0x14011c9de
mov rax, qword [rdi + 0x18]
mov r13, qword [rsi + rax]
test r13, r13
je 0x14011c9d9
mov rax, qword [r13]
mov rbx, qword [rax]
mov rcx, rbx
call fcn.14029e28c
mov edx, 1
mov rcx, r13
call rbx
mov rax, qword [rdi + 0x18]
mov r8, qword [rsp + 0x60]
and qword [rsi + rax], 0
inc ebp
add r14, 0x10
add rsi, 8
cmp ebp, dword [rdi + 0x10]
jl 0x14011c98a
test r12d, r12d
je 0x14011ca3f
lea rcx, [r15 + 0x28]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [r15 + 0x18]
mov rdx, rdi
call fcn.14011cd40
lea rcx, [r15 + 0x28]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rdi]
mov rbx, qword [rax]
mov rcx, rbx
call fcn.14029e28c
mov edx, 1
mov rcx, rdi
call rbx
mov ecx, dword [r15]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14011cdb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov r15, r8
movsxd rsi, edx
mov rdi, rcx
lea r14, [rcx + 0x28]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
jle case.default.0x14011cefe
cmp esi, dword [rdi + 0xc]
jge case.default.0x14011cefe
mov ecx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14011ce1b
cmp esi, dword [rax + 0x10]
jl 0x14011ced6
test r15, r15
je 0x14011ced6
jmp 0x14011ce50
mov ecx, 0x20
call fcn.14011c6ac
mov rbx, rax
test rbx, rbx
je 0x14011ce37
lea rax, vtable.CThreadData.0
mov qword [rbx], rax
and dword [rbx + 0x10], 0
and qword [rbx + 0x18], 0
mov rcx, qword [rdi + 0x20]
mov rax, qword [rdi + 0x18]
mov qword [rbx + rcx], rax
mov qword [rdi + 0x18], rbx
mov eax, dword [rdi + 0xc]
shl rax, 3
mov edx, dword [rsp + 0x58]
mov ecx, 0xffffffff
cmp qword [rbx + 0x18], 0
jne 0x14011ce7d
cmp rax, rcx
cmovbe edx, eax
ja 0x14011cf05
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x14011ce99
cmp rax, rcx
cmovbe edx, eax
ja 0x14011cf16
mov r8d, 2
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov rcx, rax
test rax, rax
je 0x14011cf27
mov qword [rbx + 0x18], rax
mov eax, dword [rdi + 0xc]
sub eax, dword [rbx + 0x10]
movsxd r8, eax
shl r8, 3
movsxd rax, dword [rbx + 0x10]
lea rcx, [rcx + rax*8]
xor edx, edx
call fcn.14029ff20
mov eax, dword [rdi + 0xc]
mov dword [rbx + 0x10], eax
mov rdx, rbx
mov ecx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je case.default.0x14011cefe
cmp esi, dword [rbx + 0x10]
jge case.default.0x14011cefe
mov qword [rcx + rsi*8], r15
mov rcx, r14
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp rcx, rax
sbb ecx, ecx
and ecx, 0x80070216
call fcn.14000de90
int3
cmp rcx, rax
sbb ecx, ecx
and ecx, 0x80070216
call fcn.14000de90
int3
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1400f91c4
int3
Function at 0x14011fe20
Capabilities:
Identify system language via api

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
mov rax, qword [0x1403d88e8]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov esi, ecx
xor r12d, r12d
mov rcx, qword [0x1403f7be0]
mov r15, r9
mov r14, r8
mov rdi, rdx
test rcx, rcx
jne 0x14011fe93
lea rcx, [0x1402dd858]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14011febb
lea rdx, str.GetThreadPreferredUILanguages
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1403f7be0], rax
jmp 0x14011fe9c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rbx, rax
test rbx, rbx
je 0x14011febb
mov rcx, rbx
call fcn.14029e28c
mov r9, r15
mov r8, r14
mov rdx, rdi
mov ecx, esi
call rbx
jmp 0x14011ffde
mov dword [rdi], r12d
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx esi, ax
mov r13d, 7
mov ecx, esi
lea rdx, [rbp - 0x28]
mov r8d, r13d
call fcn.140120420
lea rcx, [rbp - 0x28]
call fcn.1402a577c
mov edx, dword [r15]
lea r8, [rbp - 0x28]
mov rcx, r14
lea rdi, [rax + 1]
call fcn.1402a7220
mov r12d, 0x3ff
lea rdx, [rbp - 0x28]
and esi, r12d
mov r8d, r13d
mov ecx, esi
call fcn.140120420
lea rcx, [rbp - 0x28]
call fcn.1402a577c
mov edx, dword [r15]
lea rcx, [r14 + rdi*2]
sub rdx, rdi
lea r8, [rbp - 0x28]
lea rbx, [rax + 1]
call fcn.1402a7220
add rdi, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
mov r8d, r13d
mov ecx, esi
lea rdx, [rbp - 0x28]
call fcn.140120420
lea rcx, [rbp - 0x28]
call fcn.1402a577c
mov edx, dword [r15]
lea rcx, [r14 + rdi*2]
sub rdx, rdi
lea r8, [rbp - 0x28]
lea rbx, [rax + 1]
call fcn.1402a7220
and esi, r12d
lea rdx, [rbp - 0x28]
mov ecx, esi
mov r8d, r13d
add rdi, rbx
call fcn.140120420
lea rcx, [rbp - 0x28]
call fcn.1402a577c
mov edx, dword [r15]
lea rcx, [r14 + rdi*2]
sub rdx, rdi
lea r8, [rbp - 0x28]
lea rbx, [rax + 1]
call fcn.1402a7220
mov r8d, r13d
lea rdx, [rbp - 0x28]
mov ecx, 0x800
add rdi, rbx
call fcn.140120420
lea rcx, [rbp - 0x28]
call fcn.1402a577c
mov edx, dword [r15]
lea rcx, [r14 + rdi*2]
sub rdx, rdi
lea r8, [rbp - 0x28]
mov rbx, rax
call fcn.1402a7220
xor ecx, ecx
lea rax, [rdi + rbx]
mov word [r14 + rax*2 + 2], cx
lea eax, [rcx + 1]
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.14029d880
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14012278c
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, qword [rdx + 0x10]
mov rdi, rdx
mov rbp, rcx
jne 0x140122803
mov rcx, qword [rdi + 8]
mov r8d, 5
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1401227d3
call fcn.1400fa5e4
mov rcx, qword [rdi + 8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
jne 0x1401227ed
call fcn.1400fa5e4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x140122803
call fcn.1400fa5e4
call fcn.1401098dc
cmp qword [rax + 0x68], 0
je 0x14012281d
mov rdx, rbx
mov rcx, rbp
call fcn.140121b8c
mov rbx, rax
mov edx, esi
mov rcx, rbx
call fcn.140122a88
mov rcx, qword [rbp + 0xf8]
mov rsi, rax
test rcx, rcx
je 0x140122844
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xf8], 0
test rsi, rsi
je 0x140122853
mov rbx, rsi
mov qword [rbp + 0xf8], rsi
or dword [rdi + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rdi + 0x10], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140124878
Capabilities:
Get file attributes
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x1403d88e8]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rdx
mov rdi, rcx
mov rcx, rbx
xor edx, edx
mov r8d, 0x230
call fcn.14029ff20
mov r8, qword [rdi + 0x18]
lea rcx, [rbx + 0x24]
or r9, 0xffffffffffffffff
mov edx, 0x104
call fcn.1402a88a4
xor esi, esi
test eax, eax
je 0x1401248f0
cmp eax, 0xc
je 0x140124a7a
cmp eax, 0x16
je 0x140124a74
cmp eax, 0x22
je 0x140124a74
cmp eax, 0x50
jne 0x140124a6e
mov rcx, qword [rdi + 8]
cmp rcx, qword [0x1402e4660]
je 0x140124a4a
lea r9, [rbp - 0x11]
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x14012491e
xor eax, eax
jmp 0x140124a4f
mov rcx, qword [rdi + 8]
lea rdx, [rbp - 9]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140124917
mov rax, qword [rbp - 9]
mov qword [rbx + 0x18], rax
mov rcx, qword [rdi + 0x18]
cmp dword [rcx - 0x10], esi
jne 0x140124945
mov eax, esi
jmp 0x140124973
cmp qword [rdi + 0x20], rsi
je 0x140124967
mov rdx, rcx
lea r9, [rbp + 0xf]
mov rcx, qword [rdi + 0x20]
xor r8d, r8d
call fcn.14012453c
neg eax
sbb eax, eax
and eax, dword [rbp + 0xf]
jmp 0x14012496d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
cmove eax, esi
lea rdx, [rbp - 0x29]
mov dword [rbx + 0x20], eax
lea rcx, [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x1401249b0
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1401249b0
or r8d, 0xffffffff
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x29]
call fcn.14010847c
mov rcx, qword [rax]
jmp 0x1401249b3
mov rcx, rsi
mov qword [rbx], rcx
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x1401249f0
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1401249f0
or r8d, 0xffffffff
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x29]
call fcn.14010847c
mov rcx, qword [rax]
jmp 0x1401249f3
mov rcx, rsi
mov qword [rbx + 0x10], rcx
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x11]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x140124a31
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x140124a31
or r8d, 0xffffffff
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x29]
call fcn.14010847c
mov rcx, qword [rax]
jmp 0x140124a34
mov rcx, rsi
mov qword [rbx + 8], rcx
cmp qword [rbx], rsi
jne 0x140124a40
mov qword [rbx], rcx
cmp qword [rbx + 0x10], rsi
jne 0x140124a4a
mov qword [rbx + 0x10], rcx
mov eax, 1
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14029d880
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.1400f91a0
int3
call fcn.1400f91a0
int3
call fcn.1400f91c4
int3
Function at 0x14012d684
Capabilities:
Delete file

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

Function at 0x14012d6c8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14012d6f3
mov r8, rdx
mov rdx, qword [rdi]
call fcn.14011b770
jmp 0x14012d76b
cmp byte [0x1403f8058], 0
jne 0x14012d73a
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14012d72a
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x1403f8050], rax
jmp 0x14012d731
mov rbx, qword [0x1403f8050]
mov byte [0x1403f8058], 1
jmp 0x14012d741
mov rbx, qword [0x1403f8050]
test rbx, rbx
je 0x14012d75f
mov rcx, rbx
call fcn.14029e28c
mov r8d, dword [rdi + 8]
xor r9d, r9d
mov rcx, qword [rdi]
mov rdx, rsi
call rbx
jmp 0x14012d76b
mov rcx, qword [rdi]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14012fd74
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov r14, rcx
mov esi, 1
mov rax, qword [rcx + 0x20]
neg rax
sbb rdx, rdx
mov qword [rbp + 0x50], rdx
cmp qword [rcx + 0x20], 0
je 0x14012ff7f
xor esi, esi
and qword [rbp - 0x18], rsi
and dword [rbp - 0x10], esi
and qword [rbp - 8], rsi
mov rax, qword [rcx]
mov rbx, qword [rax + 0x40]
mov rcx, rbx
call fcn.14029e28c
lea rdx, [rbp + 0x58]
mov rcx, r14
call rbx
nop
mov rbx, qword [rax]
call fcn.1401098dc
xor edx, edx
mov rcx, qword [rax + 8]
call fcn.140107280
mov rdx, rax
and qword [rsp + 0x38], rsi
and qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], esi
xor r9d, r9d
mov r8, rbx
lea rcx, [rbp - 0x18]
call fcn.1400153d0
test eax, eax
sete r12b
mov r15, qword [rbp + 0x58]
or eax, 0xffffffff
lock xadd dword [r15 - 8], eax
sub eax, 1
jg 0x14012fe44
mov rdi, qword [r15 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call fcn.14029e28c
lea rdx, [r15 - 0x18]
mov rcx, rdi
call rbx
test r12b, r12b
je 0x14012ff70
mov r15d, 1
call fcn.1400f9930
mov rdi, rax
test rax, rax
je 0x14012ff9b
mov rax, qword [rax]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call fcn.14029e28c
mov rcx, rdi
call rbx
add rax, 0x18
mov qword [rbp + 0x40], rax
call fcn.1400f9930
mov rdi, rax
test rax, rax
je 0x14012ff90
mov rax, qword [rax]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call fcn.14029e28c
mov rcx, rdi
call rbx
add rax, 0x18
mov qword [rbp + 0x48], rax
lea rcx, [r14 + 8]
lea r9, [rbp + 0x48]
lea r8, [rbp + 0x40]
lea rdx, [rbp + 0x50]
call fcn.14012de04
mov rbx, qword [rbp + 0x48]
test rbx, rbx
je 0x14012fef8
mov rcx, rbx
call fcn.1402a577c
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
mov r9d, r15d
xor r8d, r8d
mov rdx, qword [rbp + 0x40]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
lea rsi, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rsi + 0x10], eax
sub eax, 1
jg 0x14012ff24
mov rdi, qword [rsi]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call fcn.14029e28c
mov rdx, rsi
mov rcx, rdi
call rbx
nop
mov rsi, qword [rbp + 0x40]
or eax, 0xffffffff
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x14012ff51
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call fcn.14029e28c
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
cmp qword [rbp + 0x50], 0
jne 0x14012fe53
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14012ff6b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, r15d
jmp 0x14012ff81
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14012ff7f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.14000de90
nop
mov ecx, 0x80004005
call fcn.14000de90
int3
Function at 0x14013119c
Capabilities:
Get graphical window text

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, 0x20
mov rdi, r8
mov rbx, rcx
call fcn.1401312fc
xor r14d, r14d
mov esi, 1
mov rbp, rax
mov dword [rbx + 0x14], esi
mov rcx, rax
cmp dword [rbx], r14d
je 0x14013125a
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rbx, eax
test eax, eax
js 0x14013127d
mov rdx, qword [rdi]
mov eax, dword [rdx - 0xc]
sub esi, dword [rdx - 8]
sub eax, ebx
or esi, eax
jge 0x140131207
mov edx, ebx
mov rcx, rdi
call fcn.14000ddb0
mov rdx, qword [rdi]
cmp ebx, dword [rdx - 0xc]
jg 0x140131293
mov dword [rdx - 0x10], ebx
lea r8d, [rbx + 1]
mov rax, qword [rdi]
mov rcx, rbp
mov word [rax + rbx*2], r14w
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi]
test rcx, rcx
jne 0x140131235
mov eax, r14d
jmp 0x140131242
movsxd rdx, dword [rcx - 0xc]
call fcn.1402a58a8
test eax, eax
js 0x140131288
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x140131288
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], r14w
jmp 0x140131262
mov rdx, qword [rdi]
call fcn.14011d45c
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov ecx, 0x80070057
call fcn.14000de90
int3
mov ecx, 0x80070057
call fcn.14000de90
int3
mov ecx, 0x80070057
call fcn.14000de90
int3