joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140022b00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x140046028]
xor r14d, r14d
mov qword [rsp + 0x58], rsi
mov rbp, rcx
mov rsi, qword [0x140046020]
mov ebx, 1
cmp rsi, rax
jae 0x140022bc8
test ebx, ebx
js 0x140022bc8
mov rdi, qword [rsi]
test rdi, rdi
je 0x140022bbb
mov r9, qword [rdi + 0x10]
mov qword [rsp + 0x50], r14
test r9, r9
jne 0x140022b57
mov ebx, r14d
jmp 0x140022bbb
mov rcx, qword [rdi + 0x18]
lea r8, [rsp + 0x50]
lea rdx, [0x14003cdf8]
mov rax, r9
call qword [0x14003b8b8]
mov ebx, eax
test eax, eax
js 0x140022b9d
mov rax, qword [rdi + 0x20]
mov r9d, 5
mov rdx, qword [rsp + 0x50]
add rax, 8
mov rcx, qword [rdi]
mov qword [rsp + 0x20], rax
lea r8d, [r9 - 1]
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140022bb4
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14003b8b8]
mov rax, qword [0x140046028]
add rsi, 8
cmp rsi, rax
jb 0x140022b34
mov rsi, qword [rsp + 0x58]
test ebx, ebx
js 0x140022cb0
jne 0x140022cac
cmp byte [rbp + 0x60], r14b
je 0x140022c88
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x50], rax
test rax, rax
je 0x140022c6b
lea rax, [rsp + 0x50]
mov r9, rbp
mov qword [rsp + 0x28], rax
lea r8, [0x1400228e0]
xor edx, edx
mov dword [rsp + 0x20], r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x140022c37
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x50], r14
test rdi, rdi
je 0x140022c6b
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test eax, eax
jns 0x140022c60
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [rbp + 0x58]
mov rcx, rdi
add edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140022c90
mov rcx, rbp
mov ebx, 0x80004005
call fcn.1400249e0
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test ebx, ebx
jns 0x140022cb0
mov rcx, rbp
call fcn.1400249e0
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
mov byte [rbp + 0x60], r14b
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x140023770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x14004b2a8]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x60], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call fcn.140025a80
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400237f3
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call fcn.140025a80
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400237f3
call fcn.140021d70
mov ebx, eax
jmp 0x140023918
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140023814
call fcn.140021d70
jmp 0x140023907
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140023837
call fcn.140021d70
jmp 0x140023907
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140023859
mov ebx, 0x8007000e
jmp 0x140023909
mov ecx, eax
test eax, eax
je 0x14002388e
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140023950
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14002388e
lea rcx, [rsp + 0x60]
call fcn.140021bc0
jmp 0x140023898
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x1400238ab
cmp qword [rsp + 0x60], 0
jne 0x1400238ba
mov ebx, 0x8007000e
jmp 0x140023909
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1400238e4
call fcn.140021d70
jmp 0x140023907
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.140023280
mov ebx, eax
test rdi, rdi
je 0x140023918
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x14002392f
lea rcx, [rsp + 0x60]
call fcn.1400220c0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140039070
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140021da0
int3
Function at 0x140024a40
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
mov rbp, rsp
sub rsp, 0x40
xor r15d, r15d
mov esi, ecx
mov edi, r15d
test ecx, ecx
je 0x140024aec
lea rax, [rbp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x14003ce08]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140024aec
mov rcx, qword [rbp + 0x48]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
lea rax, [rbp + 0x30]
mov dword [rbp + 0x40], r15d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x14003ce34]
mov dword [rbp + 0x30], r15d
mov dword [rbp + 0x38], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140024ae2
cmp dword [rbp + 0x30], r15d
jne 0x140024ae2
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x40
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0x48]
mov qword [rbp + 0x48], r15
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwarePoliciesAdobeAdobe_AcrobatDCFeatureLockDown
mov rcx, 0xffffffff80000002
mov ebx, r15d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140024b75
mov rcx, qword [rbp + 0x48]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x30]
lea rax, [rbp + 0x38]
mov dword [rbp + 0x30], r15d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.bEnableATL7Compat
mov dword [rbp + 0x38], r15d
mov dword [rbp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140024b6b
cmp dword [rbp + 0x30], 4
jne 0x140024b6b
mov eax, 1
cmp dword [rbp + 0x38], eax
cmove ebx, eax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140024bbd
lea rdx, str.SetProcessDEPPolicy
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140024bbd
test esi, esi
je 0x140024bae
mov ecx, ebx
xor ecx, 1
lea ecx, [rcx*2 + 1]
jmp 0x140024bb1
mov ecx, r15d
call qword [0x14003b8b8]
mov edi, eax
test eax, eax
jne 0x140024c38
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140024bda
add rsp, 0x40
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, str.NtSetInformationProcess
mov qword [rsp + 0x38], r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x140024c33
lea ebx, [rbx*4 + 9]
test esi, esi
jne 0x140024c07
mov ebx, 2
mov dword [rbp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 4
lea r8, [rbp + 0x30]
mov rcx, rax
mov rax, r14
lea edx, [r9 + 0x1e]
call qword [0x14003b8b8]
test eax, eax
mov edi, r15d
setns dil
mov r14, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x40
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400258c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
mov ecx, 0x200
call fcn.1400390cc
mov rbx, rax
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x78]
lea rdx, str.SoftwareAdobeAdobe_AcrobatDCLanguageNext
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x140025972
lea r8, [rsp + 0x78]
lea rdx, str.SoftwareAdobeAdobe_AcrobatDCLanguageNext
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x140025972
lea r8, [rsp + 0x78]
lea rdx, str.SoftwareAdobeAcrobat_ReaderDCLanguageNext
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x140025972
lea r8, [rsp + 0x78]
lea rdx, str.SoftwareAdobeAcrobat_ReaderDCLanguageNext
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x140025972
lea r8, [rsp + 0x78]
lea rdx, str.SoftwareAdobeAcrobat_ReaderDCLanguageCurrent
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140025a5c
mov dword [rsp + 0x68], 0x200
xor edx, edx
mov r8d, 0x200
mov rcx, rbx
call fcn.14003a050
add dword [rsp + 0x68], 0xfffffffe
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x68]
shr eax, 1
test edi, edi
jne 0x140025a5c
cmp dword [rsp + 0x70], 1
jne 0x140025a5c
cmp eax, 4
jb 0x140025a5c
add eax, 0xfffffffc
lea rdi, [rbx + rax*2]
lea rdx, [0x14003d0c8]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140025a58
lea rdx, [0x14003d0d0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140025a58
movzx ecx, word [rdi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswalpha]
test eax, eax
je 0x140025a5c
movzx ecx, word [rdi + 2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswalpha]
test eax, eax
je 0x140025a5c
movzx ecx, word [rdi + 4]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswalpha]
test eax, eax
je 0x140025a5c
cmp word [rdi + 6], 0
jne 0x140025a5c
mov r8, rdi
mov edx, 4
mov rcx, rsi
call fcn.140024d00
test eax, eax
js 0x140025a5c
mov edi, 1
jmp 0x140025a61
xor edi, edi
jmp 0x140025a61
mov edi, 0xffffffff
mov edx, 2
mov rcx, rbx
call fcn.140038cb0
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140025a80
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
xor edi, edi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x58], rdi
cmp dword [0x14004ba44], edi
jne 0x140025b51
mov eax, dword [0x14004ba40]
test eax, eax
jne 0x140025b51
mov r9d, dword [0x14004ba4c]
test r9d, r9d
je 0x140025aea
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14004ba40]
mov r9d, dword [0x14004ba4c]
test eax, eax
jne 0x140025b51
test r9d, r9d
jne 0x140025afc
call fcn.140025bb0
test eax, eax
je 0x140025b12
lea rdx, [rsp + 0x58]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x140025b51
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, 1
jbe 0x140025b47
cmp eax, 0x78
je 0x140025b47
cmp eax, 1
je 0x140025b47
cmp eax, 0x32
je 0x140025b47
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
mov dword [0x14004ba40], 1
mov r8d, ebx
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x20], rax
cmp dword [0x14004ba44], 0
je 0x140025b7a
cmp dword [0x14004ba40], 0
jne 0x140025ba7
mov ebx, edi
test rsi, rsi
sete bl
test ebx, ebx
je 0x140025b8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140025ba7
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
jmp 0x140025b31

Function at 0x140026180
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rcx, rdx
mov rbx, r9
mov rdi, r8
call fcn.14002f3c0
test rax, rax
jne 0x1400261ad
mov eax, 0x80004005
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov rcx, rdi
call fcn.14002aba0
lea rcx, [rsp + 0x38]
mov rdi, rax
call fcn.14002f7a0
mov r8, rbx
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.1400305d0
test al, al
jne 0x1400261dd
mov ebx, 1
jmp 0x140026220
lea rax, [rsp + 0x30]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002621e
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
lea rcx, [rsp + 0x38]
call fcn.14002f9a0
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140026240
Capabilities:
Set registry value

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x80
lea rbp, [rsp + 0x50]
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x60], rdi
mov rax, qword [0x14004b2a8]
xor rax, rbp
mov qword [rbp + 0x28], rax
mov rcx, rdx
mov rsi, r9
mov rbx, r8
call fcn.14002f3c0
test rax, rax
jne 0x140026289
mov eax, 0x80004005
jmp 0x140026454
mov rcx, rbx
call fcn.14002aba0
lea rcx, [rbp + 8]
mov r14, rax
call fcn.14002f7a0
mov r8, rsi
lea rcx, [rbp + 8]
mov rdx, r14
call fcn.1400305d0
test al, al
jne 0x1400262ba
mov ebx, 1
jmp 0x140026449
movabs r15, 0xffffffffffffff0
test rsi, rsi
je 0x14002634d
mov rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x1400262d4
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x14002634d
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400262ff
mov rcx, r15
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140039680
sub rsp, rcx
lea rdi, [rsp + 0x50]
test rdi, rdi
je 0x14002634d
xor ebx, ebx
mov byte [rdi], 0
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov r8, rsi
mov dword [rsp + 0x28], eax
xor edx, edx
lea r9d, [rbx - 1]
mov qword [rsp + 0x20], rdi
lea ecx, [rbx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rdi, rbx
jmp 0x140026351
xor ebx, ebx
mov edi, ebx
mov qword [rsp + 0x40], rbx
lea rax, [rbp]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rdx, rdi
mov rcx, r14
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140026449
mov r8, qword [rbp + 0x70]
test r8, r8
je 0x140026415
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [r8 + rax*2], 0
jne 0x1400263a0
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x140026415
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400263cc
mov rcx, r15
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140039680
sub rsp, rcx
lea rdi, [rsp + 0x50]
test rdi, rdi
je 0x140026415
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], rbx
xor edx, edx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov byte [rdi], 0
mov qword [rsp + 0x20], rdi
lea ecx, [rdx + 3]
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rdi, rbx
jmp 0x140026418
mov rdi, rbx
mov rcx, qword [rbp]
lea rax, [rbp + 0x78]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp + 8]
call fcn.14002f9a0
mov eax, ebx
mov rcx, qword [rbp + 0x28]
xor rcx, rbp
call fcn.140039070
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
mov rdi, qword [rbp + 0x60]
lea rsp, [rbp + 0x30]
pop r15
pop r14
pop rbp
ret
Function at 0x140026480
Capabilities:
Set registry value

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x80
lea rbp, [rsp + 0x50]
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x60], rdi
mov rax, qword [0x14004b2a8]
xor rax, rbp
mov qword [rbp + 0x28], rax
mov rcx, rdx
mov r14, r9
mov rbx, r8
call fcn.14002f3c0
test rax, rax
jne 0x1400264c9
mov eax, 0x80004005
jmp 0x14002661a
mov rcx, rbx
call fcn.14002aba0
lea rcx, [rbp + 8]
mov r15, rax
call fcn.14002f7a0
mov r8, r14
lea rcx, [rbp + 8]
mov rdx, r15
call fcn.1400305d0
test al, al
jne 0x1400264fa
mov ebx, 1
jmp 0x14002660f
mov rbx, 0xffffffffffffffff
test r14, r14
je 0x140026590
mov rax, rbx
nop dword [rax]
inc rax
cmp word [r14 + rax*2], 0
jne 0x140026510
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x140026590
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140026543
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140039680
sub rsp, rcx
lea rsi, [rsp + 0x50]
test rsi, rsi
je 0x140026590
xor edi, edi
mov byte [rsi], 0
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov r9d, ebx
mov dword [rsp + 0x28], eax
mov r8, r14
lea ecx, [rdi + 3]
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rsi, rdi
jmp 0x140026594
xor edi, edi
mov esi, edi
mov qword [rsp + 0x40], rdi
lea rax, [rbp]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov rdx, rsi
mov rcx, r15
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14002660d
mov rcx, qword [rbp + 0x78]
nop dword [rax]
cmp word [rcx + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x1400265d0
mov rdx, qword [rbp + 0x70]
lea eax, [rbx*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, edi
lea rcx, [rbp + 8]
call fcn.14002f9a0
mov eax, ebx
mov rcx, qword [rbp + 0x28]
xor rcx, rbp
call fcn.140039070
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x58]
mov rdi, qword [rbp + 0x60]
lea rsp, [rbp + 0x30]
pop r15
pop r14
pop rbp
ret
Function at 0x1400282d0
Capabilities:
Get file attributes
Get file size

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x88
mov rcx, rdx
mov ebp, r9d
mov rdi, r8
call fcn.14002f3c0
test rax, rax
jne 0x140028300
mov eax, 0x80004005
add rsp, 0x88
pop rdi
pop rbp
ret
mov rax, qword [rsp + 0xc0]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0xa8], rbx
xor ebx, ebx
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0xb8], r12
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r15
mov dword [rax], ebx
call fcn.14002f7a0
lea esi, [rbx + 1]
test bpl, 6
je 0x140028364
xor r9d, r9d
lea rcx, [rsp + 0x48]
mov r8d, esi
mov rdx, rdi
call fcn.1400307d0
test al, al
je 0x140028514
test rdi, rdi
je 0x140028510
cmp word [rdi], bx
je 0x140028510
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rdi + rax*2 + 2], bx
lea rax, [rax + 1]
jne 0x140028380
cmp word [rdi + rax*2 - 2], 0x2e
je 0x140028510
test bpl, 4
je 0x1400283ac
xor r13d, r13d
mov r12d, 0xc0000000
lea r14d, [r13 + 2]
jmp 0x1400283ec
test bpl, 2
je 0x1400283d4
xor r13d, r13d
mov rcx, rdi
mov r12d, 0xc0000000
lea r14d, [r13 + 3]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
and ebx, esi
jne 0x140028512
jmp 0x1400283ec
test sil, bpl
je 0x140028510
mov r12d, 0x80000000
mov r13d, esi
mov r14d, 3
mov eax, ebp
and eax, 0x28
cmp al, 0x28
je 0x140028510
mov eax, ebp
mov qword [rsp + 0x30], 0
and eax, 0x20
mov ecx, 0x4000100
mov r15d, ebp
mov r8d, r13d
and r15d, 8
mov edx, r12d
add r15d, r15d
or r15d, eax
mov eax, 0x80
shl r15d, 0x17
test bpl, 0x40
cmovne eax, ecx
xor r9d, r9d
or r15d, eax
mov rcx, rdi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14002845e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140028512
bt r15d, 0x1c
jae 0x1400284e0
lea rdx, [rsp + 0x44]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp eax, 0xffffffff
jne 0x14002848a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400284e0
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x44]
shl rcx, 0x20
mov eax, eax
or rcx, rax
cmp rcx, 0xee6b280
jbe 0x1400284e0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], 0
btr r15d, 0x1c
mov dword [rsp + 0x28], r15d
xor r9d, r9d
mov r8d, r13d
mov dword [rsp + 0x20], r14d
mov edx, r12d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140028451
test rbp, rbp
je 0x140028512
mov rcx, qword [rsp + 0xa0]
mov rdx, rbp
mov r8, qword [rsp + 0xc0]
add rcx, 0x10
call fcn.14002b790
test al, al
jne 0x140028512
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140028514
mov ebx, esi
mov esi, ebx
lea rcx, [rsp + 0x48]
call fcn.14002f9a0
mov r15, qword [rsp + 0x70]
mov eax, esi
mov rsi, qword [rsp + 0xb0]
mov r14, qword [rsp + 0x78]
mov r13, qword [rsp + 0x80]
mov r12, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xa8]
add rsp, 0x88
pop rdi
pop rbp
ret
Function at 0x140028650
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
mov ebp, r9d
mov rcx, rdx
mov ebx, r8d
call fcn.14002f3c0
test rax, rax
je 0x14002872b
mov rcx, qword [rdi + 0x10]
lea r8, [rsp + 0x38]
mov edx, ebx
call fcn.14002b880
test al, al
je 0x140028724
mov rsi, qword [rsp + 0x70]
test rsi, rsi
je 0x140028724
mov rbx, qword [rsp + 0x78]
test rbx, rbx
je 0x140028724
mov ecx, 0x11
mov r8d, ebp
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov qword [rbx], rax
test rax, rax
je 0x14002872b
lea rdx, [rsp + 0x30]
mov rcx, rax
xor edi, edi
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jne 0x140028720
mov rdx, qword [rsp + 0x30]
mov r9, rsi
mov rcx, qword [rsp + 0x38]
mov r8d, ebp
mov dword [rsi], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140028703
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
test edi, edi
je 0x140028720
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rbx], 0
mov eax, edi
jmp 0x140028730
mov eax, 0x57
jmp 0x140028730
mov eax, 0x80004005
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140028750
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
mov rbx, r9
mov rcx, rdx
mov edi, r8d
call fcn.14002f3c0
test rax, rax
je 0x14002881e
mov rcx, qword [rsi + 0x10]
lea r8, [rsp + 0x38]
mov edx, edi
call fcn.14002b880
test al, al
je 0x140028809
mov rsi, qword [rsp + 0x70]
test rsi, rsi
je 0x140028809
test rbx, rbx
je 0x140028809
cmp word [rbx], 1
jne 0x14002881e
cmp dword [rbx + 4], 1
jne 0x14002881e
cmp dword [rbx + 0x1c], 0
jne 0x14002881e
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov edi, eax
test eax, eax
jne 0x140028823
mov rdx, qword [rsp + 0x30]
xor eax, eax
mov rcx, qword [rsp + 0x38]
mov r9, rsi
mov dword [rsi], eax
mov r8d, dword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400287ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov eax, 0x57
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov eax, 0x80004005
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret