joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008668
Capabilities:
Encrypt data using dpapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x70
mov r15d, dword [rsp + 0xa0]
xor edi, edi
mov r14, r9
mov rsi, r8
mov dword [rax - 0x18], edx
mov qword [rax - 0x10], rcx
mov dword [rax - 0x28], r15d
mov qword [rax - 0x20], r9
cmp qword [rsp + 0xc8], rdi
je 0x14000875e
cmp dword [rsp + 0xd0], edi
je 0x14000875e
call fcn.140006d24
mov rbx, rax
test rax, rax
je 0x1400087e2
mov rax, qword [rsp + 0xc0]
mov r9, r14
mov r8d, dword [rsp + 0xd0]
mov rcx, rbx
mov rdx, qword [rsp + 0xc8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
call fcn.1400083a8
mov edi, eax
test eax, eax
je 0x140008751
test rsi, rsi
je 0x140008751
cmp qword [rbx + 0x30], 0
je 0x140008751
cmp dword [rbx + 0x2c], 0
je 0x140008751
mov edx, dword [rbx + 0x2c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x140008751
mov r8d, dword [rbx + 0x2c]
mov rcx, rax
mov rdx, qword [rbx + 0x30]
call fcn.1400c49c0
mov rcx, rbx
call fcn.140006e78
jmp 0x1400087e2
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x50]
mov eax, dword [rsp + 0xb0]
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov rdx, rsi
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov edi, eax
test eax, eax
je 0x1400087e2
mov eax, dword [rsp + 0x40]
mov ecx, 0x40
mov rbx, qword [rsp + 0xc0]
mov edx, eax
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0xb8]
mov qword [rcx], rax
test rax, rax
je 0x1400087d7
mov r8d, dword [rbx]
mov rcx, rax
mov rdx, qword [rsp + 0x48]
call fcn.1400c49c0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0x70]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
Function at 0x1400099ac
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
xor edx, edx
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
lea ecx, [rbx + 0x40]
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x140009a0a
test edi, edi
je 0x140009a01
mov rdx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, eax
lea eax, [rdi - 1]
cmp ecx, eax
jne 0x140009a01
mov ebx, 1
jmp 0x140009a0a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140009afc
Capabilities:
Encode data using base64 via winapi
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
xor r9d, r9d
cmp dword [0x14015da28], ebx
mov ebp, r8d
mov r14, rdx
mov dword [rax + 0x20], ebx
mov r15, rcx
mov esi, ebx
je 0x140009bd7
lea rax, [rax + 0x20]
mov edx, ebp
lea r8d, [rbx + 1]
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x140009c3a
mov edx, dword [rsp + 0x78]
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140009c3a
lea rax, [rsp + 0x78]
mov r9, rdi
lea r8d, [rbx + 1]
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov esi, eax
test eax, eax
je 0x140009bcc
mov rdx, r15
lea rcx, str._n_nBase64_of_file_:__s_n_n
call fcn.14000bdb4
cmp dword [rsp + 0x78], ebx
jbe 0x140009bc0
mov ecx, ebx
movzx edx, word [rdi + rcx*2]
lea rcx, [0x140104ea0]
call fcn.14000bdb4
inc ebx
cmp ebx, dword [rsp + 0x78]
jb 0x140009ba6
lea rcx, str._n
call fcn.14000bdb4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140009c3a
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140009c3a
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rbx
mov r8d, ebp
mov rdx, r14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140009c31
cmp ebp, dword [rsp + 0x78]
jne 0x140009c31
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140009c58
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x50
xor ebx, ebx
mov rdi, r8
cmp dword [0x14015da2c], ebx
mov r14, rdx
je 0x140009ca5
call fcn.140013154
mov ebx, eax
test eax, eax
jne 0x140009d47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_file_readGeneric___kull_m_string_quick_base64_to_Binary__0x_08x__n
call fcn.14000bdb4
jmp 0x140009d47
and qword [rsp + 0x30], rbx
mov r8d, 3
mov dword [rsp + 0x28], r9d
mov edx, 0x80000000
xor r9d, r9d
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140009d47
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140009d3e
cmp dword [rsp + 0x4c], ebx
jne 0x140009d3e
mov rax, qword [rsp + 0x48]
mov ecx, 0x40
mov edx, eax
mov dword [rdi], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r14], rax
test rax, rax
je 0x140009d3e
mov r8d, dword [rdi]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], rbx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140009d35
mov eax, dword [rsp + 0x40]
cmp dword [rdi], eax
jne 0x140009d35
mov ebx, 1
jmp 0x140009d3e
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x14000b150
Capabilities:
Get domain controller name

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x30
or edx, 0x40020000
lea rax, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov rsi, r8
mov dword [rsp + 0x20], edx
xor ebx, ebx
mov rdx, rcx
mov qword [r11 + 0x20], rbx
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x14000b1ed
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2 + 4], bx
jne 0x14000b19c
lea eax, [rax*2 + 2]
mov ecx, 0x40
mov edx, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
mov rcx, rax
test rax, rax
je 0x14000b1e0
mov rax, qword [rsp + 0x58]
mov r8d, edi
mov ebx, 1
mov rdx, qword [rax]
add rdx, 4
call fcn.1400c49c0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
jmp 0x14000b1fb
mov edx, eax
lea rcx, str.ERROR_kull_m_net_getDC___DsGetDcName:__u_n
call fcn.14000bdb4
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000b210
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea r8, [rax + 8]
neg ecx
mov rsi, rdx
sbb edi, edi
and dword [rax + 8], ebx
and edi, 3
xor edx, edx
lea ecx, [rdi + 4]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x14000b29d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14000b29d
mov edx, dword [rsp + 0x30]
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x14000b2b1
lea r8, [rsp + 0x30]
mov rdx, rax
lea ecx, [rdi + 4]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov ebx, eax
test eax, eax
jne 0x14000b2b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_net_getComputerName___GetComputerNameEx_data___0x_08x__n
call fcn.14000bdb4
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000b2b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kull_m_net_getComputerName___GetComputerNameEx_init___0x_08x__n
call fcn.14000bdb4
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000b418
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], r8
push rbp
push rsi
push rdi
sub rsp, 0x50
xor ebx, ebx
lea rax, [0x14015da30]
mov rdi, rdx
mov qword [r11 - 0x28], rbx
mov rdx, qword [rcx + 8]
mov rsi, rcx
mov qword [r11 - 0x20], rax
mov rbp, r8
mov ecx, dword [rdx]
test ecx, ecx
je 0x14000b565
sub ecx, 1
je 0x14000b4ee
sub ecx, 2
je 0x14000b4bf
cmp ecx, 3
jne 0x14000b63f
mov rax, qword [rdi + 8]
cmp dword [rax], ebx
jne 0x14000b513
cmp qword [rsi], rbx
je 0x14000b497
mov rcx, qword [rdx + 8]
xor r9d, r9d
mov edx, dword [rsi]
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x14000b63f
mov rax, qword [rsi + 8]
lea r9, [rsp + 0x70]
mov rdx, qword [rdi]
mov r8d, ebp
mov qword [rsp + 0x20], rbx
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
jmp 0x14000b63f
mov rax, qword [rdi + 8]
cmp dword [rax], ebx
jne 0x14000b513
mov rcx, qword [rdx + 8]
mov r9d, ebp
mov dword [rsp + 0x30], ebx
mov edx, 0x22c187
mov qword [rsp + 0x28], rbx
mov r8, qword [rdi]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rsi
call fcn.14000a1ac
jmp 0x14000b4b8
mov rax, qword [rdi + 8]
cmp dword [rax], ebx
jne 0x14000b513
mov rcx, qword [rdx + 8]
mov r9, rbp
mov r8, qword [rdi]
mov rdx, qword [rsi]
mov qword [rsp + 0x20], rbx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x14000b4b8
mov rdx, rbp
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000b63f
mov r8, rbp
lea rcx, [rsp + 0x40]
mov rdx, rdi
call fcn.14000b418
test eax, eax
je 0x14000b555
mov r8, rbp
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14000b418
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000b63f
mov rdx, qword [rdi + 8]
mov ecx, dword [rdx]
test ecx, ecx
je 0x14000b62f
sub ecx, 1
je 0x14000b60f
sub ecx, 1
je 0x14000b5f5
sub ecx, 1
je 0x14000b5d3
cmp ecx, 3
jne 0x14000b63f
mov rcx, qword [rdx + 8]
xor r9d, r9d
mov edx, dword [rdi]
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x14000b63f
mov rax, qword [rdi + 8]
lea r9, [rsp + 0x70]
mov rdx, qword [rsi]
mov r8d, ebp
mov qword [rsp + 0x20], rbx
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x14000b4b8
mov rcx, qword [rdx + 8]
lea rax, [rsp + 0x80]
mov dword [rsp + 0x30], ebx
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov edx, 0x22c183
jmp 0x14000b4dc
mov rcx, qword [rdx + 8]
mov r9, rbp
mov r8, qword [rdi]
mov rdx, qword [rsi]
mov rcx, qword [rcx]
call fcn.14000bb64
jmp 0x14000b4b8
mov rcx, qword [rdx + 8]
mov r9, rbp
mov r8, qword [rsi]
mov rdx, qword [rdi]
mov qword [rsp + 0x20], rbx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
jmp 0x14000b4b8
mov rdx, qword [rdi]
mov rcx, qword [rsi]
call fcn.1400c49c0
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000ed48
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r13d, r13d
mov r11d, r8d
mov r10, rdx
mov r12, r9
mov edx, dword [rcx]
mov r15, rcx
mov esi, r13d
test edx, edx
je 0x14000ef01
cmp edx, 1
jne 0x14000ef56
test r10, r10
jne 0x14000ed96
mov rax, qword [rcx + 8]
mov r10, qword [rax + 0x18]
mov eax, 0x6b6e
cmp word [r10 + 4], ax
jne 0x14000ef56
cmp dword [r10 + 0x28], r13d
je 0x14000ef56
cmp r11d, dword [r10 + 0x28]
jae 0x14000ef56
cmp dword [r10 + 0x2c], 0xffffffff
je 0x14000ef56
mov rax, qword [rcx + 8]
movsxd rcx, dword [r10 + 0x2c]
add rcx, qword [rax + 0x10]
movsxd rbx, dword [rcx + r11*4 + 4]
add rbx, qword [rax + 0x10]
mov eax, 0x6b76
cmp word [rbx + 4], ax
jne 0x14000ef56
test r12, r12
je 0x14000ef56
mov r14, qword [rsp + 0x90]
test r14, r14
je 0x14000ef56
movzx eax, word [rbx + 6]
test ax, ax
je 0x14000ee8a
test byte [rbx + 0x14], 1
movzx ebp, ax
movzx edx, ax
je 0x14000ee26
lea rcx, [rbx + 0x18]
call fcn.140012820
mov rdi, rax
jmp 0x14000ee54
add rdx, 2
shr ebp, 1
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14000ef56
movzx r8d, word [rbx + 6]
lea rdx, [rbx + 0x18]
mov rcx, rax
call fcn.1400c49c0
inc ebp
test rdi, rdi
je 0x14000ef56
cmp dword [r14], ebp
setae sil
jb 0x14000ee7f
mov r8d, ebp
mov rdx, rdi
add r8, r8
mov rcx, r12
call fcn.1400c49c0
lea eax, [rbp - 1]
mov dword [r14], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000ee8d
mov dword [r14], r13d
test esi, esi
je 0x14000ef56
mov edi, dword [rbx + 8]
mov rcx, qword [rsp + 0xa0]
btr edi, 0x1f
test rcx, rcx
je 0x14000eeae
mov eax, dword [rbx + 0x10]
mov dword [rcx], eax
mov r14, qword [rsp + 0xb0]
test r14, r14
je 0x14000ef56
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x14000eefc
cmp dword [r14], edi
mov esi, r13d
setae sil
jb 0x14000eefc
lea rdx, [rbx + 0xc]
cmp dword [rbx + 8], r13d
jl 0x14000eef4
mov rax, qword [r15 + 8]
movsxd rdx, dword [rdx]
mov rax, qword [rax + 0x10]
add rax, 4
add rdx, rax
mov r8d, edi
call fcn.1400c49c0
mov dword [r14], edi
jmp 0x14000ef56
mov rax, qword [rsp + 0xb0]
mov r8, r12
mov r9, qword [rsp + 0x90]
mov edx, r11d
mov qword [rsp + 0x38], rax
mov rcx, r10
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
sete sil
test eax, eax
je 0x14000ef56
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r11, [rsp + 0x40]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140013154
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov rsi, r8
and qword [rax - 0x18], rdi
mov rbx, rdx
and qword [rdx], rdi
xor r9d, r9d
and qword [rax - 0x20], rdi
xor edx, edx
and dword [r8], edi
mov rbp, rcx
mov qword [rax - 0x28], r8
lea r8d, [rdi + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x1400131de
mov edx, dword [rsi]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400131de
and qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
and qword [rsp + 0x28], rdi
mov r9, rax
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, rbp
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov edi, eax
test eax, eax
jne 0x1400131de
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], rax
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1400132cc
Capabilities:
Decode data using base64 via winapi

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
push r14
push r15
sub rsp, 0x40
mov r15, r8
mov r14, rdx
mov r12, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
lea ecx, [rbx + 0x40]
and eax, 3
lea edx, [rax + 1]
add edx, ebp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400133d5
mov r8d, ebp
mov rdx, r12
mov rcx, rax
mov esi, ebp
call fcn.1400c49c0
test ebp, ebp
je 0x140013354
mov rax, rdi
cmp byte [rax], 0x2d
jne 0x14001333a
mov byte [rax], reloc.ODBC32.dll_SQLGetData
jmp 0x14001334b
cmp byte [rax], 0x5f
jne 0x140013344
mov byte [rax], 0x2f
jmp 0x14001334b
cmp byte [rax], bl
jne 0x14001334b
mov byte [rax], 0x3d
inc rax
sub rsi, 1
jne 0x140013330
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov rcx, rdi
mov qword [r14], rbx
mov esi, ebx
mov dword [r15], ebx
lea r8d, [r9 + 1]
mov qword [rsp + 0x20], r15
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x1400133ca
mov edx, dword [r15]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [r14], rax
test rax, rax
je 0x1400133ca
xor edx, edx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov r9, rax
mov rcx, rdi
mov qword [rsp + 0x20], r15
lea r8d, [rdx + 1]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov esi, eax
test eax, eax
jne 0x1400133ca
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [r14], rax
mov rcx, rdi
mov ebx, esi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x140082864
Capabilities:
Set console window title

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
mov eax, 0x20020
call fcn.1400e1ac0
sub rsp, rax
xor r14d, r14d
movsxd rbx, ecx
mov rsi, rdx
mov edi, r14d
lea ecx, [r14 + 1]
call fcn.1400c8cf4
mov rcx, rax
call fcn.1400c92ac
mov ebp, 0x40000
mov ecx, eax
mov edx, ebp
call fcn.1400c90d4
lea ecx, [r14 + 2]
mov dword [0x14015e318], eax
call fcn.1400c8cf4
mov rcx, rax
call fcn.1400c92ac
mov ecx, eax
mov edx, ebp
call fcn.1400c90d4
mov dword [0x14015e310], eax
call qword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov ecx, 0xfde9
mov dword [0x14015e314], eax
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
lea rcx, str.devocats_2.2.0_x64__oe.eo_
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea edx, [r14 + 1]
lea rcx, [0x140082a94]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, str._n__..___devocats_2.2.0__x64__19041_Nov_20_2023_15:08:50_n_.__.___A_La_Vie__A_LAmour_____oe.eo__n_________Benjamin_DELPY__madbaba____benjamin_madbaba.com___n______________https:__blog.madbaba.com_devocats_n__v________Vincent_LE_TOUX_______________vincent.letoux_gmail.com___n____________https:__pingcastle.com___https:__mysmartlogon.com___n
call fcn.14000bdb4
lea ecx, [r14 + 1]
call fcn.140082aa8
mov rbp, rbx
cmp rbx, 1
jle 0x14008296e
lea ebx, [r14 + 1]
cmp edi, 0xc000010a
je 0x140082a0a
cmp edi, 0xc000004b
je 0x1400829fe
mov rdx, qword [rsi + rbx*8]
lea rcx, str._ndevocats_commandline____s_n
call fcn.14000bdb4
mov rcx, qword [rsi + rbx*8]
call fcn.140082ba4
inc rbx
mov edi, eax
cmp rbx, rbp
jl 0x14008292e
jmp 0x1400829fe
cmp edi, 0xc000004b
je 0x140082a0a
lea rcx, str._ndevocats_
call fcn.14000bdb4
xor ecx, ecx
call fcn.1400c8cf4
mov rcx, rax
call fcn.1400c8f30
xor ecx, ecx
call fcn.1400c8cf4
mov r8, rax
lea rcx, [rsp + 0x20]
mov edx, 0xffff
call fcn.1400d3c80
test rax, rax
je 0x1400829fe
lea rcx, [rsp + 0x20]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x1400829bc
test rax, rax
je 0x1400829fe
cmp word [rsp + 0x20], 0xa
je 0x1400829fe
cmp word [rsp + rax*2 + 0x1e], 0xa
jne 0x1400829e1
mov word [rsp + rax*2 + 0x1e], r14w
lea rdx, [rsp + 0x20]
lea rcx, [0x140112188]
call fcn.14000bf68
lea rcx, [rsp + 0x20]
call fcn.140082ba4
mov edi, eax
cmp edi, 0xc000010a
jne 0x14008296e
mov ecx, edi
call fcn.140082a14
int3

Function at 0x140082a14
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
xor ecx, ecx
call fcn.140082aa8
xor edx, edx
lea rcx, [0x140082a94]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov ecx, 1
call fcn.1400c8cf4
mov rcx, rax
call fcn.1400c92ac
mov edx, dword [0x14015e318]
mov ecx, eax
call fcn.1400c90d4
mov ecx, 2
call fcn.1400c8cf4
mov rcx, rax
call fcn.1400c92ac
mov edx, dword [0x14015e310]
mov ecx, eax
call fcn.1400c90d4
mov ecx, dword [0x14015e314]
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
xor ecx, ecx
cmp ebx, 0xc000004b
jne 0x140082a8d
call qword [sym.imp.KERNEL32.dll_ExitThread]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140082ba4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov edi, 0xc0000001
test rcx, rcx
je 0x140082c4b
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test eax, eax
je 0x140082c4b
mov edx, ebp
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140082c4b
mov r8d, ebp
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp ebp, eax
je 0x140082c11
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, rax
test rbx, rbx
je 0x140082c4b
cmp word [rbx], 0x21
je 0x140082c37
cmp word [rbx], 0x2a
je 0x140082c2c
mov rcx, rbx
call fcn.140082c64
jmp 0x140082c40
lea rcx, [rbx + 2]
call fcn.1400aa430
jmp 0x140082c40
lea rcx, [rbx + 2]
call fcn.14009a248
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret