joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004b88
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r12, qword [rsp + 0xb0]
lea rax, [rax - 0x30]
xor ebp, ebp
mov r15d, r9d
and qword [rax - 0x18], rbp
mov r13, r8
mov rbx, rdx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], ebp
mov r8, rcx
mov rcx, qword [r12]
lea edi, [rbp + 1]
mov dword [rax - 8], edi
lea r9d, [rbp + 0x10]
mov edx, 0x660e
call fcn.140003b04
test eax, eax
je 0x140004cd9
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
xor r9d, r9d
lea edx, [rbp + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140004cb8
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
mov r8, rbx
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x140004ca9
mov edx, r15d
lea ecx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, qword [rsp + 0xa0]
mov rdi, rax
mov qword [rbx], rax
test rax, rax
je 0x140004ccc
mov r14, qword [rsp + 0xa8]
mov r8d, r15d
mov rdx, r13
mov rcx, rax
mov dword [r14], r15d
call fcn.1400c49c0
mov rcx, qword [rsp + 0x48]
lea r8d, [rbp + 1]
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ebp, eax
test eax, eax
jne 0x140004ccc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_qmezdwwpcRyPTO_genericAES128Decrypt___CryptDecrypt__0x_08x__n
call fcn.14000bdb4
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
and dword [r14], ebp
mov qword [rbx], rax
jmp 0x140004ccc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_qmezdwwpcRyPTO_genericAES128Decrypt___CryptSetKeyParam__IV___0x_08x__n
jmp 0x140004cc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_qmezdwwpcRyPTO_genericAES128Decrypt___CryptSetKeyParam__MODE___0x_08x__n
mov edx, eax
call fcn.14000bdb4
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x140004ced
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_qmezdwwpcRyPTO_genericAES128Decrypt___qmezdwwpcRyPTO_hkey__0x_08x__n
call fcn.14000bdb4
mov rcx, qword [r12]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x50]
mov eax, ebp
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 0x140004de0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
xor ebx, ebx
mov qword [rbp - 0x20], 1
lea rax, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rax
mov r14d, r9d
mov dword [rbp - 0x18], ebx
mov r15, r8
mov qword [rbp - 0x10], rbx
mov edi, edx
mov rsi, rcx
mov dword [rbp - 8], 1
call fcn.140012c24
mov qword [rbp - 0x30], rax
test rax, rax
je 0x140004f0c
mov r9d, dword [rbp - 0x20]
lea rcx, [rbp - 0x40]
mov r8, qword [rbp - 0x28]
mov rdx, rax
mov dword [rsp + 0x20], 8
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140004eee
mov rcx, qword [rbp - 0x40]
lea rax, [rbp - 0x38]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8d, r14d
mov dword [rsp + 0x20], 1
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x140004ecf
mov r9d, 0x2000
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea ecx, [rbx + 2]
xor edx, edx
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
test rax, rax
je 0x140004ec3
mov r9, qword [rbp + 0x48]
lea r8, [rbp - 0x30]
mov edx, edi
mov qword [rsp + 0x20], rax
mov rcx, rsi
call fcn.140004f28
mov ebx, eax
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
jmp 0x140004ee3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_qmezdwwpcRyPTO_DerAndKeyToPfx___CryptImportKey__0x_08x__n
call fcn.14000bdb4
mov rcx, qword [rbp - 0x40]
call fcn.140003d14
jmp 0x140004f02
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_qmezdwwpcRyPTO_DerAndKeyToPfx___CryptAcquireContext__0x_08x__n
call fcn.14000bdb4
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140005f7c
Capabilities:
Hash data via bcrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x60
mov r15d, r9d
mov r12, r8
mov esi, edx
mov r14, rcx
xor ebx, ebx
mov dword [rax - 0x38], ebx
lea r9d, [rbx + 8]
lea r8, str.Microsoft_Primitive_Provider
lea rdx, str.SHA256
lea rcx, [rax - 0x28]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x1400060d1
and dword [rsp + 0x28], ebx
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 4]
lea r8, [rsp + 0xa8]
lea rdx, str.ObjectLength
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
js 0x1400060b4
mov edx, dword [rsp + 0xa8]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400060c2
and dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r14
mov r9d, dword [rsp + 0xa8]
mov r8, rax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.bcrypt.dll_BCryptCreateHash]
test eax, eax
js 0x14000609b
xor r9d, r9d
mov r8d, r15d
mov rdx, r12
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.bcrypt.dll_BCryptHashData]
xor r9d, r9d
lea r8d, [rbx + 0x20]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
test eax, eax
setns bl
mov dword [rsp + 0x40], ebx
test ebx, ebx
jne 0x14000608e
mov edx, eax
lea rcx, str.ERROR_qmezdwwpcRyPTO_nGc_signature_derived___BCryptFinishHash:_0x_08x_n
call fcn.14000bdb4
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
jmp 0x1400060a9
mov edx, eax
lea rcx, str.ERROR_qmezdwwpcRyPTO_nGc_signature_derived___BCryptCreateHash:_0x_08x_n
call fcn.14000bdb4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400060c2
mov edx, eax
lea rcx, str.ERROR_qmezdwwpcRyPTO_nGc_signature_derived___BCryptGetProperty:_0x_08x_n
call fcn.14000bdb4
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
jmp 0x1400060df
mov edx, eax
lea rcx, str.ERROR_qmezdwwpcRyPTO_nGc_signature_derived___BCryptOpenAlgorithmProvider:_0x_08x_n
call fcn.14000bdb4
jmp 0x1400060f1
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140009728
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.1400048c8
mov ecx, dword [rbx + 0x28]
call fcn.1400049ec
mov ecx, dword [rbx + 0x28]
mov edi, eax
call fcn.140004958
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 0x140009941
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.140003f68
test eax, eax
je 0x140009938
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.140004618
test eax, eax
je 0x140009924
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 0x1400098f9
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 0x1400098f9
mov r8d, dword [rsp + 0xb0]
mov rcx, rax
mov rdx, qword [rbx + 0x4c]
call fcn.1400c49c0
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 0x1400098f0
mov r14d, dword [rbx + 0x2c]
mov rdx, rdi
mov rcx, qword [rsp + 0xc0]
cmp r14d, r15d
cmovb r15d, r14d
mov r8d, r15d
call fcn.1400c49c0
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.1400c49c0
mov esi, r13d
add ebx, 0xfffffff0
je 0x1400098f0
xor edx, edx
test ebx, ebx
je 0x1400098f0
test esi, esi
je 0x1400098f0
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 0x1400098d5
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.140003d14
test eax, eax
jne 0x140009938
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_qmezdwwpdPApi_unprotect_crEdHiSt_entry_with_shaDerivedkey___qmezdwwpcRyPTO_close_hprov_delete_container__0x_08x__n
jmp 0x140009931
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_qmezdwwpdPApi_unprotect_crEdHiSt_entry_with_shaDerivedkey___qmezdwwpcRyPTO_hkey_session__0x_08x__n
mov edx, eax
call fcn.14000bdb4
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 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 [0x14015ba2c], 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, [0x140104fa0]
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 [0x14015ba28], 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_qmezdwwpfile_readGeneric___qmezdwwpstring_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, Ordinal_65
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 0x140009db0
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 0x140009faf
test al, 0x10
je 0x140009faf
mov edx, 0x208
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140009faf
mov ebp, 0x104
mov r8, r15
mov edx, ebp
mov rcx, rax
call fcn.1400c8aec
test eax, eax
jne 0x140009fa6
lea r8, [0x140105094]
mov edx, ebp
mov rcx, rbx
call fcn.1400c8b54
test eax, eax
jne 0x140009fa6
test r12, r12
lea r8, [0x140105098]
mov edx, ebp
mov rcx, rbx
cmovne r8, r12
call fcn.1400c8b54
test eax, eax
jne 0x140009fa6
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140009fa6
mov r13, qword [rsp + 0x308]
mov r14, qword [rsp + 0x300]
lea rdx, [0x14010509c]
lea rcx, [rsp + 0x6c]
call fcn.1400c8974
test eax, eax
je 0x140009f87
lea rdx, [0x1401050a0]
lea rcx, [rsp + 0x6c]
call fcn.1400c8974
test eax, eax
je 0x140009f87
mov r8, r15
mov edx, 0x104
mov rcx, rbx
call fcn.1400c8aec
test eax, eax
jne 0x140009f87
lea r8, [0x140105094]
mov edx, 0x104
mov rcx, rbx
call fcn.1400c8b54
test eax, eax
jne 0x140009f87
or rdi, 0xffffffffffffffff
xor eax, eax
inc rdi
cmp word [rbx + rdi*2], ax
jne 0x140009ef6
lea r8, [rsp + 0x6c]
mov edx, 0x104
mov rcx, rbx
call fcn.1400c8b54
xor ecx, ecx
test eax, eax
jne 0x140009f85
cmp dword [rsp + 0x2f8], ecx
jne 0x140009f60
test byte [rsp + 0x40], 0x10
je 0x140009f60
xor edi, edi
cmp dword [rsp + 0x2e0], edi
je 0x140009f87
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.140009db0
jmp 0x140009f7d
test r14, r14
je 0x140009f85
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 0x140009f9d
jmp 0x140009f87
xor edi, edi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140009e8a
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 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, Ordinal_65
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_qmezdwwpnet_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_qmezdwwpnet_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_qmezdwwpnet_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, [0x14015ba30]
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, Ordinal_65
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