joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007718
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x37]
sub rsp, 0xd0
xor ebx, ebx
mov esi, edx
mov r15, r8
mov r14d, r9d
mov rdi, rcx
lea rcx, [rbp - 0x71]
lea r12d, [rbx + 0x40]
mov r8d, r12d
lea edx, [rbx + 0x36]
call fcn.1400c5520
mov r8d, r12d
lea edx, [rbx + 0x5c]
lea rcx, [rbp - 0x31]
call fcn.1400c5520
test esi, esi
je 0x140007793
lea rax, [rbp - 0x71]
mov edx, ebx
sub rdi, rax
mov r8d, esi
lea rax, [rbp - 0x71]
add rax, rdx
mov cl, byte [rdi + rax]
xor byte [rbp + rdx - 0x31], cl
inc rdx
xor byte [rax], cl
sub r8, 1
jne 0x14000777a
lea rdx, [r14 + 0x40]
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x1400078be
movaps xmm0, xmmword [rbp - 0x71]
lea rcx, [rax + 0x40]
movaps xmm1, xmmword [rbp - 0x61]
mov r8, r14
movups xmmword [rax], xmm0
mov rdx, r15
movaps xmm0, xmmword [rbp - 0x51]
movups xmmword [rax + 0x10], xmm1
movaps xmm1, xmmword [rbp - 0x41]
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm1
call fcn.1400c5960
lea r8d, [r14 + 0x40]
mov dword [rsp + 0x20], SQLAllocHandle
lea r9, [rsp + 0x30]
mov rdx, rsi
mov ecx, 0x8004
call fcn.140003560
test eax, eax
je 0x1400078b5
mov r15d, dword [rbp + 0x77]
mov ecx, r12d
mov r14d, dword [rbp + 0x67]
lea rdx, [r15 + 0x54]
add rdx, r14
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400078b5
movaps xmm0, xmmword [rbp - 0x31]
movaps xmm1, xmmword [rbp - 0x21]
mov rdx, qword [rbp + 0x5f]
movups xmmword [rax], xmm0
movaps xmm0, xmmword [rbp - 0x11]
movups xmmword [rax + 0x10], xmm1
movaps xmm1, xmmword [rbp - 1]
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rax + 0x40], xmm0
mov eax, dword [rsp + 0x40]
mov dword [rdi + 0x50], eax
test rdx, rdx
je 0x14000786d
test r14d, r14d
je 0x14000786d
lea rcx, [rdi + 0x54]
mov r8d, r14d
call fcn.1400c5960
mov rdx, qword [rbp + 0x6f]
test rdx, rdx
je 0x14000788a
test r15d, r15d
je 0x14000788a
lea rcx, [r14 + 0x54]
mov r8, r15
add rcx, rdi
call fcn.1400c5960
mov r9, qword [rbp + 0x7f]
lea r8d, [r15 + 0x54]
add r8d, r14d
mov dword [rsp + 0x20], SQLAllocHandle
mov rdx, rdi
mov ecx, 0x8004
call fcn.140003560
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0xd0]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140007d20
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 0x140007e16
cmp dword [rsp + 0xd0], edi
je 0x140007e16
call fcn.14000643c
mov rbx, rax
test rax, rax
je 0x140007e9a
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.140007a98
mov edi, eax
test eax, eax
je 0x140007e09
test rsi, rsi
je 0x140007e09
cmp qword [rbx + 0x30], 0
je 0x140007e09
cmp dword [rbx + 0x2c], 0
je 0x140007e09
mov edx, dword [rbx + 0x2c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x140007e09
mov r8d, dword [rbx + 0x2c]
mov rcx, rax
mov rdx, qword [rbx + 0x30]
call fcn.1400c5960
mov rcx, rbx
call fcn.140006578
jmp 0x140007e9a
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 0x140007e9a
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 0x140007e8f
mov r8d, dword [rbx]
mov rcx, rax
mov rdx, qword [rsp + 0x48]
call fcn.1400c5960
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 0x140008594
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r15d, dword [rcx + 0x18]
mov eax, 0x8004
mov rbx, rcx
xor ebp, ebp
cmp r15d, 0x8009
cmove r15d, eax
mov ecx, r15d
call fcn.1400044a8
mov ecx, dword [rbx + 0x1c]
mov esi, eax
call fcn.1400045cc
mov ecx, dword [rbx + 0x1c]
mov r12d, eax
call fcn.140004538
mov r13d, dword [rsp + 0xb0]
lea rdi, [rbx + 0x28]
mov r14d, eax
lea ecx, [rbp + 0x40]
mov eax, esi
xor edx, edx
div r14d
lea eax, [r13 + 0x10]
add esi, edx
add eax, esi
mov dword [rdi], eax
lea edx, [r14 + rax]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx + 0x20], rax
test rax, rax
je 0x1400087cc
lea edx, [rbp + 0x10]
mov rcx, rax
call qword [sym.imp.cryptdll.dll_CDGenerateRandomBits]
mov r9, qword [rbx + 0x20]
lea r8d, [rbp + 0x14]
mov rdx, qword [rsp + 0x98]
mov ecx, r15d
mov dword [rsp + 0x30], esi
lea rax, [r9 + 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x10
call fcn.1400039bc
test eax, eax
je 0x1400087bb
mov rdx, qword [rbx + 0x20]
mov r8d, esi
mov r9, qword [rsp + 0xa8]
add rdx, 0x10
mov dword [rsp + 0x30], esi
mov ecx, r15d
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], r13d
call fcn.1400039bc
test eax, eax
je 0x1400087bb
mov rcx, qword [rbx + 0x20]
mov r8d, r13d
add rcx, 0x10
mov edx, esi
add rcx, rdx
mov rdx, qword [rsp + 0xa8]
call fcn.1400c5960
lea r13d, [r14 + r12]
mov edx, r13d
lea ecx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x1400087bb
mov rdx, qword [rsp + 0x98]
lea r9, [rbx + 4]
mov dword [rsp + 0x40], 1
lea r8d, [rbp + 0x14]
mov dword [rsp + 0x38], r13d
mov ecx, r15d
mov qword [rsp + 0x30], rax
mov eax, dword [rbx + 0x14]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0x10
call fcn.140003b48
test eax, eax
je 0x1400087ae
mov ecx, dword [rbx + 0x1c]
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x90]
mov r8d, r12d
mov rdx, rsi
mov qword [rsp + 0x20], rax
call fcn.1400041f8
test eax, eax
je 0x1400087ae
mov rcx, qword [rsp + 0x90]
lea r15d, [rbp + 1]
mov edx, r15d
lea r8, [rsi + r12]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140008793
mov ecx, dword [rdi]
xor r9d, r9d
mov rax, qword [rbx + 0x20]
add ecx, r14d
mov dword [rsp + 0x30], ecx
mov r8d, r15d
mov rcx, qword [rsp + 0x90]
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ebp, eax
test eax, eax
je 0x140008793
sub dword [rdi], r14d
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0xb8]
call fcn.14000390c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebp, ebp
jne 0x1400087cc
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalFree]
and dword [rdi], 0
mov qword [rbx + 0x20], rax
mov rbx, qword [rsp + 0xa0]
mov eax, ebp
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008d30
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r14d, dword [rcx + 0x1c]
mov eax, 0x8004
mov rbx, rcx
xor esi, esi
cmp r14d, 0x8009
mov r13, rdx
cmove r14d, eax
mov ecx, r14d
call fcn.1400044a8
mov ecx, dword [rbx + 0x28]
call fcn.1400045cc
mov ecx, dword [rbx + 0x28]
mov edi, eax
call fcn.140004538
lea ecx, [rsi + 0x40]
lea r15d, [rax + rdi]
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x140008f22
mov dword [rsp + 0x40], 1
lea r12d, [rsi + 0x10]
mov dword [rsp + 0x38], r15d
lea r9, [rbx + 0x34]
mov qword [rsp + 0x30], rax
lea r15d, [rsi + 0x14]
mov eax, dword [rbx + 0x20]
mov r8d, r15d
mov dword [rsp + 0x28], eax
mov rdx, r13
mov ecx, r14d
mov dword [rsp + 0x20], r12d
call fcn.140003b48
test eax, eax
je 0x140008f19
mov ecx, dword [rbx + 0x28]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0xa0]
mov r8d, edi
mov rdx, rbp
mov qword [rsp + 0x20], rax
call fcn.1400041f8
test eax, eax
je 0x140008f19
mov rcx, qword [rsp + 0xa0]
lea r13d, [rsi + 1]
mov edx, r13d
lea r8, [rdi + rbp]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140008f01
mov edx, dword [rbx + 0x54]
lea ecx, [rsi + 0x40]
mov dword [rsp + 0xb0], edx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140008f01
mov r8d, dword [rsp + 0xb0]
mov rcx, rax
mov rdx, qword [rbx + 0x4c]
call fcn.1400c5960
mov rcx, qword [rsp + 0xa0]
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x140008ef8
mov r14d, dword [rbx + 0x2c]
mov rdx, rdi
mov rcx, qword [rsp + 0xc0]
cmp r14d, r15d
cmovb r15d, r14d
mov r8d, r15d
call fcn.1400c5960
mov ebx, dword [rbx + 0x30]
lea rdx, [r14 + rdi]
mov rcx, qword [rsp + 0xb8]
cmp ebx, r12d
cmovb r12d, ebx
mov r8d, r12d
call fcn.1400c5960
mov esi, r13d
add ebx, 0xfffffff0
je 0x140008ef8
xor edx, edx
test ebx, ebx
je 0x140008ef8
test esi, esi
je 0x140008ef8
xor ecx, ecx
mov eax, edx
add rax, r14
cmp byte [rax + rdi + 0x10], cl
cmove ecx, esi
add edx, r13d
mov esi, ecx
cmp edx, ebx
jb 0x140008edd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x50]
call fcn.14000390c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0xa8]
mov eax, esi
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008f8c
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 0x140008fea
test edi, edi
je 0x140008fe1
mov rdx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, eax
lea eax, [rdi - 1]
cmp ecx, eax
jne 0x140008fe1
mov ebx, 1
jmp 0x140008fea
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 0x1400090dc
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 [0x140138218], ebx
mov ebp, r8d
mov r14, rdx
mov dword [rax + 0x20], ebx
mov r15, rcx
mov esi, ebx
je 0x1400091b7
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 0x14000921a
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 0x14000921a
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 0x1400091ac
mov rdx, r15
lea rcx, str._n_nBase64_of_file_:__s_n_n
call fcn.14000b314
cmp dword [rsp + 0x78], ebx
jbe 0x1400091a0
mov ecx, ebx
movzx edx, word [rdi + rcx*2]
lea rcx, [0x140101850]
call fcn.14000b314
inc ebx
cmp ebx, dword [rsp + 0x78]
jb 0x140009186
lea rcx, str._n
call fcn.14000b314
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000921a
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 0x14000921a
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 0x140009211
cmp ebp, dword [rsp + 0x78]
jne 0x140009211
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 0x140009238
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 [0x14013821c], ebx
mov r14, rdx
je 0x140009269
call fcn.140011cc8
mov ebx, eax
jmp 0x14000930b
mov 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 0x14000930b
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140009302
cmp dword [rsp + 0x4c], ebx
jne 0x140009302
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 0x140009302
mov r8d, dword [rdi]
lea r9, [rsp + 0x40]
mov rdx, rax
mov qword [rsp + 0x20], rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400092f9
mov eax, dword [rsp + 0x40]
cmp dword [rdi], eax
jne 0x1400092f9
mov ebx, 1
jmp 0x140009302
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 0x14000936c
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
xor edi, edi
mov r12, rdx
mov esi, edi
mov r15, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000956b
test al, 0x10
je 0x14000956b
mov edx, 0x208
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14000956b
mov ebp, 0x104
mov r8, r15
mov edx, ebp
mov rcx, rax
call fcn.1400ca1fc
test eax, eax
jne 0x140009562
lea r8, [0x140101894]
mov edx, ebp
mov rcx, rbx
call fcn.1400ca264
test eax, eax
jne 0x140009562
test r12, r12
lea r8, [0x140101898]
mov edx, ebp
mov rcx, rbx
cmovne r8, r12
call fcn.1400ca264
test eax, eax
jne 0x140009562
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140009562
mov r13, qword [rsp + 0x308]
mov r14, qword [rsp + 0x300]
lea rdx, [0x14010189c]
lea rcx, [rsp + 0x6c]
call fcn.1400ca084
test eax, eax
je 0x140009543
lea rdx, [0x1401018a0]
lea rcx, [rsp + 0x6c]
call fcn.1400ca084
test eax, eax
je 0x140009543
mov r8, r15
mov edx, 0x104
mov rcx, rbx
call fcn.1400ca1fc
test eax, eax
jne 0x140009543
lea r8, [0x140101894]
mov edx, 0x104
mov rcx, rbx
call fcn.1400ca264
test eax, eax
jne 0x140009543
or rdi, 0xffffffffffffffff
xor eax, eax
inc rdi
cmp word [rbx + rdi*2], ax
jne 0x1400094b2
lea r8, [rsp + 0x6c]
mov edx, 0x104
mov rcx, rbx
call fcn.1400ca264
xor ecx, ecx
test eax, eax
jne 0x140009541
cmp dword [rsp + 0x2f8], ecx
jne 0x14000951c
test byte [rsp + 0x40], 0x10
je 0x14000951c
xor edi, edi
cmp dword [rsp + 0x2e0], edi
je 0x140009543
mov r9d, dword [rsp + 0x2e8]
lea r8d, [rcx + 1]
mov qword [rsp + 0x38], r13
inc r9d
mov qword [rsp + 0x30], r14
mov rdx, r12
mov dword [rsp + 0x28], edi
mov rcx, rbx
mov dword [rsp + 0x20], edi
call fcn.14000936c
jmp 0x140009539
test r14, r14
je 0x140009541
mov ecx, dword [rsp + 0x2e8]
mov r9, r13
mov eax, edi
mov rdx, rbx
lea r8, [rbx + rax*2]
call r14
xor edi, edi
mov esi, eax
test eax, eax
jne 0x140009559
jmp 0x140009543
xor edi, edi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140009446
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x2d0]
mov eax, esi
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000a6bc
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 0x14000a757
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2 + 4], bx
jne 0x14000a708
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
test rax, rax
je 0x14000a74c
mov rcx, qword [rsp + 0x58]
mov r8d, edi
mov ebx, 1
mov rdx, qword [rcx]
mov rcx, rax
add rdx, 4
call fcn.1400c5960
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000a76c
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 0x14000a7e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14000a7e3
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 0x14000a7e3
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 0x14000a7e3
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000ae4c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
xor r10d, r10d
mov rcx, qword [rcx + 8]
mov rbx, r9
mov r11d, dword [rcx]
test r11d, r11d
je 0x14000ae93
cmp r11d, 1
jne 0x14000aeb3
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, r8d
mov qword [rsp + 0x20], rax
mov r8, rdx
mov rdx, qword [rdi]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x14000aea1
mov rcx, qword [rdi]
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r10d, eax
test eax, eax
je 0x14000aeb3
test rbx, rbx
je 0x14000aeb3
mov eax, dword [rsp + 0x40]
mov dword [rbx], eax
mov rbx, qword [rsp + 0x48]
mov eax, r10d
add rsp, 0x30
pop rdi
ret

Function at 0x14000aec4
Capabilities:
Compress data via winapi

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, 0x50
mov rsi, r8
mov ebp, edx
mov r15, rcx
lea r8, [rax - 0x24]
mov ecx, 0x102
lea rdx, [rax - 0x28]
mov r14, r9
xor edi, edi
call qword [sym.imp.ntdll.dll_RtlGetCompressionWorkSpaceSize]
test eax, eax
js 0x14000af6e
mov edx, dword [rsp + 0x40]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14000af6e
mov edx, ebp
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x14000af65
mov qword [rsp + 0x38], rbx
mov ecx, 0x102
mov qword [rsp + 0x30], r14
mov r9, rax
mov dword [rsp + 0x28], 0x1000
mov r8d, ebp
mov rdx, r15
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ntdll.dll_RtlCompressBuffer]
test eax, eax
setns dil
test eax, eax
jns 0x14000af65
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0x50]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14000af8c
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rdx
mov rsi, rcx
lea edx, [rdi + 0x10]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x14000b04e
and qword [rsp + 0x28], rdi
lea r8d, [rdi + 2]
and dword [rsp + 0x20], edi
xor r9d, r9d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov rax, qword [rbx]
mov qword [rax], rcx
mov rax, qword [rbx]
mov rcx, qword [rax]
test rcx, rcx
je 0x14000b02e
and qword [rsp + 0x20], rdi
lea edx, [rdi + 4]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rax
mov rax, qword [rbx]
mov qword [rax + 8], rcx
test rcx, rcx
je 0x14000b02e
mov rax, qword [rbx]
mov rcx, qword [rax + 8]
cmp dword [rcx], 0x504d444d
jne 0x14000b02e
mov eax, 0xa793
cmp word [rcx + 4], ax
jne 0x14000b02e
mov edi, 1
jmp 0x14000b04e
mov rbx, qword [rbx]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14000b040
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000b04e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14000ba84
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov ebp, ecx
mov rdx, qword [rdx]
mov ebx, 0xc0000004
test rdx, rdx
je 0x14000bab8
lea r9, [rax + 0x10]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
jmp 0x14000bafe
mov edi, 0x1000
mov edx, edi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x14000bafe
lea r9, [rsp + 0x38]
mov r8d, edi
mov rdx, rax
mov ecx, ebp
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
test eax, eax
jns 0x14000baf4
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add edi, edi
cmp ebx, 0xc0000004
je 0x14000babd
mov rbp, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret