joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180046a10
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 - 0x34], ebx
lea r9d, [rbx + 8]
lea r8, str.Microsoft_Primitive_Provider
lea rdx, str.SHA256
lea rcx, [rax - 0x20]
call sub.ncrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
js 0x180046b59
and dword [rsp + 0x28], ebx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 4]
lea r8, [rsp + 0x40]
lea rdx, str.ObjectLength
mov rcx, qword [rsp + 0x58]
call sub.ncrypt.dll_BCryptGetProperty
test eax, eax
js 0x180046b3d
mov edx, dword [rsp + 0x40]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180046b4b
and dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r14
mov r9d, dword [rsp + 0x40]
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call sub.ncrypt.dll_BCryptCreateHash
test eax, eax
js 0x180046b24
xor r9d, r9d
mov r8d, r15d
mov rdx, r12
mov rcx, qword [rsp + 0x50]
call sub.ncrypt.dll_BCryptHashData
xor r9d, r9d
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x50]
call sub.ncrypt.dll_BCryptFinishHash
test eax, eax
setns bl
mov dword [rsp + 0x44], ebx
test ebx, ebx
jne 0x180046b18
mov edx, eax
lea rcx, str.ERROR_kull_m_crypto_ngc_signature_derived___BCryptFinishHash:_0x_08x_n
call fcn.18004d68c
mov rcx, qword [rsp + 0x50]
call sub.ncrypt.dll_BCryptDestroyHash
jmp 0x180046b32
mov edx, eax
lea rcx, str.ERROR_kull_m_crypto_ngc_signature_derived___BCryptCreateHash:_0x_08x_n
call fcn.18004d68c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x180046b4b
mov edx, eax
lea rcx, str.ERROR_kull_m_crypto_ngc_signature_derived___BCryptGetProperty:_0x_08x_n
call fcn.18004d68c
xor edx, edx
mov rcx, qword [rsp + 0x58]
call sub.ncrypt.dll_BCryptCloseAlgorithmProvider
jmp 0x180046b67
mov edx, eax
lea rcx, str.ERROR_kull_m_crypto_ngc_signature_derived___BCryptOpenAlgorithmProvider:_0x_08x_n
call fcn.18004d68c
jmp 0x180046b79
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 0x180048df4
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 rdi, rcx
mov r15, r8
lea r12d, [rbx + 0x40]
lea rcx, [rbp - 0x71]
lea edx, [rbx + 0x36]
mov r8d, r12d
mov r14d, r9d
call fcn.1800cadf0
lea edx, [rbx + 0x5c]
lea rcx, [rbp - 0x31]
mov r8d, r12d
call fcn.1800cadf0
test esi, esi
je 0x180048e6b
lea rcx, [rbp - 0x71]
lea rdx, [rbp - 0x31]
mov r8d, esi
sub rcx, rdi
sub rdx, rdi
mov al, byte [rdi]
xor byte [rcx + rdi], al
xor byte [rdx + rdi], al
inc rdi
dec r8
jne 0x180048e5b
lea rdx, [r14 + 0x40]
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x180048f96
movaps xmm0, xmmword [rbp - 0x71]
movaps xmm1, xmmword [rbp - 0x61]
lea rcx, [rax + 0x40]
mov r8, r14
mov rdx, r15
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [rbp - 0x51]
movaps xmm1, xmmword [rbp - 0x41]
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm1
call fcn.1800ca790
lea r8d, [r14 + 0x40]
lea r9, [rsp + 0x30]
mov rdx, rsi
mov ecx, 0x8004
mov dword [rsp + 0x20], Ordinal_27
call fcn.180043cec
test eax, eax
je 0x180048f8d
mov r15d, dword [rbp + 0x77]
mov r14d, dword [rbp + 0x67]
mov ecx, r12d
lea rdx, [r15 + 0x54]
add rdx, r14
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180048f8d
movaps xmm0, xmmword [rbp - 0x31]
movaps xmm1, xmmword [rbp - 0x21]
mov rdx, qword [rbp + 0x5f]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [rbp - 0x11]
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 0x180048f45
test r14d, r14d
je 0x180048f45
lea rcx, [rdi + 0x54]
mov r8d, r14d
call fcn.1800ca790
mov rdx, qword [rbp + 0x6f]
test rdx, rdx
je 0x180048f62
test r15d, r15d
je 0x180048f62
lea rcx, [r14 + 0x54]
mov r8, r15
add rcx, rdi
call fcn.1800ca790
mov r9, qword [rbp + 0x7f]
lea r8d, [r15 + 0x54]
mov rdx, rdi
mov ecx, 0x8004
add r8d, r14d
mov dword [rsp + 0x20], Ordinal_27
call fcn.180043cec
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 0x180049428
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 0x18004951e
cmp dword [rsp + 0xd0], edi
je 0x18004951e
call fcn.1800478e0
mov rbx, rax
test rax, rax
je 0x1800495a2
mov rax, qword [rsp + 0xc0]
mov r8d, dword [rsp + 0xd0]
mov rdx, qword [rsp + 0xc8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xb8]
mov r9, r14
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xd8]
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
call fcn.180049178
mov edi, eax
test eax, eax
je 0x180049511
test rsi, rsi
je 0x180049511
cmp qword [rbx + 0x30], 0
je 0x180049511
cmp dword [rbx + 0x2c], 0
je 0x180049511
mov edx, dword [rbx + 0x2c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x180049511
mov r8d, dword [rbx + 0x2c]
mov rdx, qword [rbx + 0x30]
mov rcx, rax
call fcn.1800ca790
mov rcx, rbx
call fcn.180047a38
jmp 0x1800495a2
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xb0]
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xa8]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov edi, eax
test eax, eax
je 0x1800495a2
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0xc0]
mov ecx, 0x40
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 0x180049597
mov r8d, dword [rbx]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.1800ca790
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 0x18004a9ac
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]
lea ecx, [rbx + 0x40]
mov edx, eax
mov edi, eax
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x18004aa0a
test edi, edi
je 0x18004aa01
mov rdx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, eax
lea eax, [rdi - 1]
cmp ecx, eax
jne 0x18004aa01
mov ebx, 1
jmp 0x18004aa0a
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 0x18004ab10
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
mov ebp, r8d
cmp dword [0x180164658], ebx
mov r14, rdx
mov r15, rcx
mov esi, ebx
mov dword [rax + 0x20], ebx
je 0x18004abeb
lea rax, [rax + 0x20]
lea r8d, [rbx + 1]
mov edx, ebp
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x18004ac4e
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 0x18004ac4e
lea rax, [rsp + 0x78]
lea r8d, [rbx + 1]
mov r9, rdi
mov edx, ebp
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov esi, eax
test eax, eax
je 0x18004abe0
lea rcx, str._n_nBase64_of_file_:__s_n_n
mov rdx, r15
call fcn.18004d68c
cmp dword [rsp + 0x78], ebx
jbe 0x18004abd4
mov ecx, ebx
movzx edx, word [rdi + rcx*2]
lea rcx, [0x18010a890]
call fcn.18004d68c
inc ebx
cmp ebx, dword [rsp + 0x78]
jb 0x18004abba
lea rcx, str._n
call fcn.18004d68c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18004ac4e
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rcx, [rax - 1]
mov rdi, rax
cmp rcx, 0xfffffffffffffffd
ja 0x18004ac4e
lea r9, [rsp + 0x78]
mov r8d, ebp
mov rdx, r14
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18004ac45
cmp ebp, dword [rsp + 0x78]
jne 0x18004ac45
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 rbp, qword [rsp + 0x68]
mov eax, esi
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x18004ac80
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
mov r14, rdx
cmp dword [0x18016465c], ebx
je 0x18004accd
call fcn.180053a74
mov ebx, eax
test eax, eax
jne 0x18004ad6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_file_readGeneric___kull_m_string_quick_base64_to_Binary__0x_08x__n
mov edx, eax
call fcn.18004d68c
jmp 0x18004ad6f
and qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r9d
mov r8d, 3
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x18004ad6f
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18004ad66
cmp dword [rsp + 0x4c], ebx
jne 0x18004ad66
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 0x18004ad66
mov r8d, dword [rdi]
and qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18004ad5d
mov eax, dword [rsp + 0x40]
cmp dword [rdi], eax
jne 0x18004ad5d
mov ebx, 1
jmp 0x18004ad66
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 rdi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop r14
ret

Function at 0x18004ade8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
test rcx, rcx
je 0x18004ae47
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x18004ae47
mov edx, esi
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x18004ae47
mov r8d, esi
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp esi, eax
je 0x18004ae47
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, rax
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18004c6a4
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
xor ebx, ebx
mov rdi, rdx
mov rdx, qword [rcx + 8]
lea rax, [0x180164660]
mov rsi, rcx
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], rax
mov ecx, dword [rdx]
test ecx, ecx
je 0x18004c7ed
dec ecx
je 0x18004c778
sub ecx, 2
je 0x18004c749
cmp ecx, 3
jne 0x18004c8c0
mov rax, qword [rdi + 8]
cmp dword [rax], ebx
jne 0x18004c79d
cmp qword [rsi], rbx
je 0x18004c725
mov rcx, qword [rdx + 8]
mov edx, dword [rsi]
xor r9d, r9d
mov rcx, qword [rcx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x18004c8c0
mov r8, qword [rbp + 0x30]
mov rax, qword [rsi + 8]
mov rdx, qword [rdi]
lea r9, [rbp + 0x20]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x20], rbx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
jmp 0x18004c8c0
mov rax, qword [rdi + 8]
cmp dword [rax], ebx
jne 0x18004c79d
mov rcx, qword [rdx + 8]
mov dword [rsp + 0x30], ebx
mov r9d, r8d
mov qword [rsp + 0x28], rbx
mov edx, 0x22c187
mov r8, qword [rdi]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rsi
call fcn.18004b3fc
jmp 0x18004c742
mov rax, qword [rdi + 8]
cmp dword [rax], ebx
jne 0x18004c79d
mov rcx, qword [rdx + 8]
mov rdx, qword [rsi]
mov r9, r8
mov r8, qword [rdi]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x18004c742
mov rdx, r8
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp - 0x10], rax
test rax, rax
je 0x18004c8c0
mov r8, qword [rbp + 0x30]
lea rcx, [rbp - 0x10]
mov rdx, rdi
call fcn.18004c6a4
test eax, eax
je 0x18004c7de
mov r8, qword [rbp + 0x30]
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.18004c6a4
mov ebx, eax
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18004c8c0
mov rdx, qword [rdi + 8]
mov ecx, dword [rdx]
test ecx, ecx
je 0x18004c8b0
dec ecx
je 0x18004c890
dec ecx
je 0x18004c876
dec ecx
je 0x18004c858
cmp ecx, 3
jne 0x18004c8c0
mov rcx, qword [rdx + 8]
mov edx, dword [rdi]
xor r9d, r9d
mov rcx, qword [rcx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x18004c8c0
mov rax, qword [rdi + 8]
mov r8d, dword [rbp + 0x30]
mov rdx, qword [rsi]
mov rcx, qword [rax + 8]
lea r9, [rbp + 0x20]
mov qword [rsp + 0x20], rbx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x18004c742
mov rcx, qword [rdx + 8]
lea rax, [rbp + 0x30]
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov edx, 0x22c183
jmp 0x18004c766
mov rcx, qword [rdx + 8]
mov rdx, qword [rsi]
mov r9, r8
mov rcx, qword [rcx]
mov r8, qword [rdi]
call fcn.18004d158
jmp 0x18004c742
mov rcx, qword [rdx + 8]
mov rdx, qword [rdi]
mov r9, r8
mov r8, qword [rsi]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
jmp 0x18004c742
mov rdx, qword [rdi]
mov rcx, qword [rsi]
call fcn.1800ca790
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x18004cacc
Capabilities:
Allocate or change rwx memory

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

Function at 0x18004cebc
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]
lea rdx, [rax - 0x28]
mov ecx, 0x102
mov r14, r9
xor edi, edi
call qword [sym.imp.ntdll.dll_RtlGetCompressionWorkSpaceSize]
test eax, eax
js 0x18004cf66
mov edx, dword [rsp + 0x40]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x18004cf66
lea ecx, [rdi + 0x40]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x18004cf5d
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r14
mov ecx, 0x102
mov r9, rax
mov r8d, ebp
mov rdx, r15
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ntdll.dll_RtlCompressBuffer]
test eax, eax
setns dil
test edi, edi
jne 0x18004cf5d
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 0x18004d060
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
lea edx, [rbx + 0x10]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rdi], rax
test rax, rax
je 0x18004d106
lea r8d, [rbx + 2]
xor r9d, r9d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rax
mov rax, qword [rdi]
mov qword [rax], rcx
mov rax, qword [rdi]
cmp qword [rax], rbx
je 0x18004d0fe
mov rcx, qword [rax]
lea edx, [rbx + 4]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rax
mov rax, qword [rdi]
mov qword [rax + 8], rcx
test rcx, rcx
je 0x18004d0fe
mov rax, qword [rdi]
mov rcx, qword [rax + 8]
cmp dword [rcx], 0x504d444d
jne 0x18004d0fe
mov eax, 0xa793
cmp word [rcx + 4], ax
jne 0x18004d0fe
mov ebx, 1
jmp 0x18004d106
mov rcx, qword [rdi]
call fcn.18004d120
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18004d514
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 rsi, r8
mov qword [r11 - 0x10], rax
mov dword [rsp + 0x20], edx
mov rdx, rcx
xor ebx, ebx
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov qword [r11 + 0x20], rbx
call qword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x18004d5b0
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2 + 4], bx
jne 0x18004d560
lea eax, [rax*2 + 2]
mov ecx, 0x40
mov edx, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, rax
mov qword [rsi], rax
test rax, rax
je 0x18004d5a4
mov rax, qword [rsp + 0x58]
mov r8d, edi
mov ebx, 1
mov rdx, qword [rax]
add rdx, 4
call fcn.1800ca790
mov rcx, qword [rsp + 0x58]
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x18004d5be
lea rcx, str.ERROR_kull_m_net_getDC___DsGetDcName:__u_n
mov edx, eax
call fcn.18004d68c
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x18004d5d8
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
neg ecx
mov rsi, rdx
sbb edi, edi
and dword [rax + 8], ebx
lea r8, [rax + 8]
and edi, 3
xor edx, edx
lea ecx, [rdi + 4]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x18004d665
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x18004d665
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 0x18004d679
lea r8, [rsp + 0x30]
lea ecx, [rdi + 4]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov ebx, eax
test eax, eax
jne 0x18004d679
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_net_getComputerName___GetComputerNameEx_data___0x_08x__n
mov edx, eax
call fcn.18004d68c
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18004d679
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_net_getComputerName___GetComputerNameEx_init___0x_08x__n
mov edx, eax
call fcn.18004d68c
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18004e99c
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 rdx, qword [rdx]
mov ebp, ecx
mov ebx, 0xc0000004
test rdx, rdx
je 0x18004e9cf
lea r9, [rax + 0x10]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, eax
jmp 0x18004ea14
mov edi, 0x1000
mov edx, edi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x18004ea14
lea r9, [rsp + 0x38]
mov r8d, edi
mov rdx, rax
mov ecx, ebp
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, eax
test eax, eax
jns 0x18004ea0a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
add edi, edi
cmp ebx, 0xc0000004
je 0x18004e9d4
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18004fbd0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r15
sub rsp, 0xd0
mov r15d, r8d
mov edi, ecx
mov rsi, rdx
xor ebp, ebp
lea rcx, [rsp + 0x60]
xor edx, edx
lea ebx, [rbp + 0x68]
mov r12, r9
or r15d, 0x10
mov r8d, ebx
call fcn.1800cadf0
mov dword [rsp + 0x60], ebx
cmp qword [rsp + reloc.WLDAP32.dll_Ordinal_304], rbp
je 0x18004fc26
mov rbx, qword [rsp + reloc.WLDAP32.dll_Ordinal_304]
jmp 0x18004fc37
mov edx, reloc.ODBC32.dll_SQLAllocHandle
lea ecx, [rdx + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rbx, rbx
je 0x18004fd6f
mov rcx, rsi
call fcn.1800cb654
mov rsi, rax
test rax, rax
je 0x18004fd6f
test edi, edi
je 0x18004fcf2
dec edi
je 0x18004fcb8
dec edi
jne 0x18004fd53
mov r9d, dword [rsp + 0x110]
mov r8, qword [rsp + 0x128]
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x118]
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
and qword [rsp + 0x40], rbp
and qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rsi
and qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
jmp 0x18004fd25
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x48], rax
and qword [rsp + 0x40], rbp
and qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], r15d
and dword [rsp + 0x28], ebp
and qword [rsp + 0x20], rbp
mov r8, rsi
xor edx, edx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x18004fd25
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], rbp
and qword [rsp + 0x30], rbp
xor r8d, r8d
mov rdx, rsi
xor ecx, ecx
mov dword [rsp + 0x28], r15d
and dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebp, eax
test eax, eax
je 0x18004fd53
cmp dword [rsp + 0x138], 0
jne 0x18004fd40
cmp qword [rsp + reloc.WLDAP32.dll_Ordinal_304], 0
jne 0x18004fd67
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + reloc.WLDAP32.dll_Ordinal_304], 0
jne 0x18004fd67
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call fcn.1800cb3fc
lea r11, [rsp + 0xd0]
mov eax, ebp
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rdi
ret