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

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x68]
mov qword [rax], 0
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x60]
mov dword [rax], ecx
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x14000984a
mov eax, dword [rsp + 0x60]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov rax, qword [rsp + 0x68]
cmp qword [rax], 0
je 0x14000983f
mov eax, dword [rsp + 0x60]
mov r8d, eax
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.140161160
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14000983f
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x14000a120
Capabilities:
Hash data via bcrypt

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x44], 0
mov r9d, 8
lea r8, str.Microsoft_Primitive_Provider
lea rdx, str.SHA256
lea rcx, [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x14000a2da
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x48]
lea rdx, str.ObjectLength
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x14000a2bb
mov eax, dword [rsp + 0x48]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x14000a2b9
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x48]
mov r8, qword [rsp + 0x60]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptCreateHash]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x14000a29e
xor r9d, r9d
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.bcrypt.dll_BCryptHashData]
xor r9d, r9d
mov r8d, dword [rsp + 0xb8]
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.bcrypt.dll_BCryptFinishHash]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x14000a26a
mov dword [rsp + 0x4c], 1
jmp 0x14000a272
mov dword [rsp + 0x4c], 0
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14000a291
mov edx, dword [rsp + 0x40]
lea rcx, str.ERROR_kull_m_crypto_ngc_signature_derived___BCryptFinishHash:_0x_08x_n
call fcn.140013fd0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.bcrypt.dll_BCryptDestroyHash]
jmp 0x14000a2ae
mov edx, dword [rsp + 0x40]
lea rcx, str.ERROR_kull_m_crypto_ngc_signature_derived___BCryptCreateHash:_0x_08x_n
call fcn.140013fd0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000a2cb
mov edx, dword [rsp + 0x40]
lea rcx, str.ERROR_kull_m_crypto_ngc_signature_derived___BCryptGetProperty:_0x_08x_n
call fcn.140013fd0
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
jmp 0x14000a2ea
mov edx, dword [rsp + 0x40]
lea rcx, str.ERROR_kull_m_crypto_ngc_signature_derived___BCryptOpenAlgorithmProvider:_0x_08x_n
call fcn.140013fd0
jmp 0x14000a2f9
mov eax, dword [rsp + 0x44]
add rsp, 0x88
ret
Function at 0x14000d380
Capabilities:
Authenticate hmac

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov dword [rsp + 0x40], 0
mov r8d, Ordinal_69
mov edx, reloc.WLDAP32.dll_Ordinal_54
lea rcx, [rsp + 0x70]
call fcn.140161800
mov r8d, Ordinal_69
mov edx, Ordinal_96
lea rcx, [rsp + 0xb0]
call fcn.140161800
mov dword [rsp + 0x30], 0
jmp 0x14000d3e3
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x108]
cmp dword [rsp + 0x30], eax
jae 0x14000d43e
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x100]
movzx ecx, byte [rdx + rcx]
movzx eax, byte [rsp + rax + 0x70]
xor eax, ecx
mov ecx, dword [rsp + 0x30]
mov byte [rsp + rcx + 0x70], al
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x100]
movzx ecx, byte [rdx + rcx]
movzx eax, byte [rsp + rax + 0xb0]
xor eax, ecx
mov ecx, dword [rsp + 0x30]
mov byte [rsp + rcx + 0xb0], al
jmp 0x14000d3d9
mov eax, dword [rsp + 0x118]
add rax, 0x40
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14000d5f6
mov r8d, Ordinal_69
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call fcn.140161160
mov eax, dword [rsp + 0x118]
mov rcx, qword [rsp + 0x48]
add rcx, 0x40
mov r8d, eax
mov rdx, qword [rsp + 0x110]
call fcn.140161160
mov eax, dword [rsp + 0x118]
add rax, 0x40
mov dword [rsp + 0x20], Ordinal_26
lea r9, [rsp + 0x50]
mov r8d, eax
mov rdx, qword [rsp + 0x48]
mov ecx, 0x8004
call fcn.1400064b0
test eax, eax
je 0x14000d5eb
mov eax, dword [rsp + 0x128]
mov ecx, dword [rsp + 0x138]
lea rax, [rax + rcx + 0x54]
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14000d5eb
mov r8d, Ordinal_69
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x38]
call fcn.140161160
mov rax, qword [rsp + 0x38]
add rax, 0x40
mov r8d, SQLAllocHandle
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140161160
cmp qword [rsp + 0x120], 0
je 0x14000d56a
cmp dword [rsp + 0x128], 0
je 0x14000d56a
mov eax, dword [rsp + 0x128]
mov rcx, qword [rsp + 0x38]
add rcx, 0x54
mov r8d, eax
mov rdx, qword [rsp + 0x120]
call fcn.140161160
cmp qword [rsp + reloc.WLDAP32.dll_Ordinal_304], 0
je 0x14000d5a7
cmp dword [rsp + 0x138], 0
je 0x14000d5a7
mov eax, dword [rsp + 0x138]
mov ecx, dword [rsp + 0x128]
mov rdx, qword [rsp + 0x38]
lea rcx, [rdx + rcx + 0x54]
mov r8d, eax
mov rdx, qword [rsp + reloc.WLDAP32.dll_Ordinal_304]
call fcn.140161160
mov eax, dword [rsp + 0x128]
mov ecx, dword [rsp + 0x138]
lea rax, [rax + rcx + 0x54]
mov dword [rsp + 0x20], Ordinal_26
mov r9, qword [rsp + 0x140]
mov r8d, eax
mov rdx, qword [rsp + 0x38]
mov ecx, 0x8004
call fcn.1400064b0
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x40]
add rsp, 0xf8
ret
Function at 0x14000dca0
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x78], rax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0xd8], 0
je 0x14000de0f
cmp dword [rsp + 0xe0], 0
je 0x14000de0f
mov rcx, qword [rsp + 0x90]
call fcn.14000b430
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x14000de0a
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xa8]
mov r8d, dword [rsp + 0xe0]
mov rdx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x48]
call fcn.14000d870
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14000de00
cmp qword [rsp + 0xa0], 0
je 0x14000de00
mov rax, qword [rsp + 0x48]
cmp qword [rax + 0x30], 0
je 0x14000de00
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0x2c], 0
je 0x14000de00
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x2c]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0xa0]
mov qword [rcx], rax
mov rax, qword [rsp + 0xa0]
cmp qword [rax], 0
je 0x14000de00
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x2c]
mov r8d, eax
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 0x30]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax]
call fcn.140161160
mov rcx, qword [rsp + 0x48]
call fcn.14000b670
jmp 0x14000dec2
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x70]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14000dec2
mov rax, qword [rsp + 0xd0]
mov ecx, dword [rsp + 0x50]
mov dword [rax], ecx
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0xc8]
mov qword [rcx], rax
mov rax, qword [rsp + 0xc8]
cmp qword [rax], 0
je 0x14000deb7
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax]
mov r8d, eax
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax]
call fcn.140161160
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x40]
add rsp, 0x88
ret
Function at 0x14000fc30
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x24], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl rax, 1
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x14000fcc9
cmp dword [rsp + 0x20], 0
jbe 0x14000fca4
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax]
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [rsp + 0x20]
dec ecx
cmp eax, ecx
jne 0x14000fca4
mov dword [rsp + 0x28], 1
jmp 0x14000fcac
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x14000fcc9
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret
Function at 0x14000fe50
Capabilities:
Encode data using base64 via winapi
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x50], 0
cmp dword [0x1401dd5b8], 0
je 0x14000ff76
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
mov edx, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x14000ff71
mov eax, dword [rsp + 0x40]
shl rax, 1
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x14000ff71
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x58]
mov r8d, 1
mov edx, dword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x14000ff66
mov rdx, qword [rsp + 0x70]
lea rcx, str._n_nBase64_of_file_:__s_n_n
call fcn.140013fd0
mov dword [rsp + 0x44], 0
jmp 0x14000ff33
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14000ff5a
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x58]
movzx eax, word [rcx + rax*2]
mov edx, eax
lea rcx, [0x140187120]
call fcn.140013fd0
jmp 0x14000ff29
lea rcx, str._n
call fcn.140013fd0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14001000b
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001000b
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x14001000b
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140010000
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x80], eax
jne 0x140010000
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [rsp + 0x48], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
add rsp, 0x68
ret
Function at 0x140010050
Capabilities:
Get file size
Read file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x50], 0
cmp dword [0x1401dd5bc], 0
je 0x1400100bd
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call fcn.140021080
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1400100b8
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.140013fd0
jmp 0x1400101e4
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x80000000
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400101e4
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x1400101e4
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400101d9
cmp dword [rsp + 0x5c], 0
jne 0x1400101d9
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x58]
mov dword [rax], ecx
mov rax, qword [rsp + 0x80]
mov eax, dword [rax]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x78]
mov qword [rcx], rax
mov rax, qword [rsp + 0x78]
cmp qword [rax], 0
je 0x1400101d9
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rax, qword [rsp + 0x80]
mov r8d, dword [rax]
mov rax, qword [rsp + 0x78]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400101b4
mov rax, qword [rsp + 0x80]
mov ecx, dword [rsp + 0x48]
cmp dword [rax], ecx
jne 0x1400101b4
mov dword [rsp + 0x44], 1
jmp 0x1400101bc
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1400101d9
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
add rsp, 0x68
ret

Function at 0x140010280
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x28], 0
cmp qword [rsp + 0x40], 0
je 0x140010302
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140010302
mov eax, dword [rsp + 0x20]
shl rax, 1
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140010302
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp dword [rsp + 0x20], eax
je 0x140010302
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret
Function at 0x140012670
Capabilities:
Get domain controller name

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x68]
bts eax, 0x11
bts eax, 0x1e
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.NETAPI32.dll_DsGetDcNameW]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x140012747
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
add rax, 4
mov rcx, rax
call fcn.140145b80
inc rax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
je 0x14001273a
mov dword [rsp + 0x38], 1
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
add rcx, 4
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.140161160
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
jmp 0x140012757
mov edx, dword [rsp + 0x34]
lea rcx, str.ERROR_kull_m_net_getDC___DsGetDcName:__u_n
call fcn.140013fd0
mov eax, dword [rsp + 0x38]
add rsp, 0x58
ret

Function at 0x140012760
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x40], 0
je 0x140012786
mov dword [rsp + 0x28], 7
jmp 0x14001278e
mov dword [rsp + 0x28], 4
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
xor edx, edx
mov ecx, dword [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x14001282e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14001282e
mov eax, dword [rsp + 0x20]
shl rax, 1
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax], 0
je 0x14001282c
lea r8, [rsp + 0x20]
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax]
mov ecx, dword [rsp + 0x2c]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x14001282c
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.140013fd0
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140012842
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.140013fd0
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret
Function at 0x1400135c0
Capabilities:
Compress data via winapi

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x40], 0
lea r8, [rsp + 0x4c]
lea rdx, [rsp + 0x48]
mov cx, 0x102
call qword [sym.imp.ntdll.dll_RtlGetCompressionWorkSpaceSize]
test eax, eax
jl 0x1400136ce
mov eax, dword [rsp + 0x48]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400136ce
mov eax, dword [rsp + 0x78]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rax
mov rax, qword [rsp + 0x80]
cmp qword [rax], 0
je 0x1400136c3
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x1000
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x80]
mov r9, qword [rax]
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov cx, 0x102
call qword [sym.imp.ntdll.dll_RtlCompressBuffer]
test eax, eax
jl 0x14001369b
mov dword [rsp + 0x44], 1
jmp 0x1400136a3
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1400136c3
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x40]
add rsp, 0x68
ret

Function at 0x1400136e0
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
mov edx, 0x10
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x58]
mov qword [rcx], rax
mov rax, qword [rsp + 0x58]
cmp qword [rax], 0
je 0x1400137fd
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx]
mov qword [rcx], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
cmp qword [rax], 0
je 0x1400137e9
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 8], rcx
cmp qword [rsp + 0x38], 0
je 0x1400137e9
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rax, qword [rax + 8]
cmp dword [rax], 0x504d444d
jne 0x1400137d9
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rax, qword [rax + 8]
movzx eax, word [rax + 4]
cmp eax, 0xa793
jne 0x1400137d9
mov dword [rsp + 0x34], 1
jmp 0x1400137e1
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x1400137fd
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
call fcn.140013810
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x140015190
Capabilities:
Get system information on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov dword [rsp + 0x20], 0xc0000004
mov rax, qword [rsp + 0x48]
cmp qword [rax], 0
je 0x1400151d7
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x50]
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
jmp 0x140015250
mov dword [rsp + 0x24], 0x1000
jmp 0x1400151eb
mov eax, dword [rsp + 0x24]
shl eax, 1
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x20], 0xc0000004
jne 0x140015250
mov eax, dword [rsp + 0x24]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax], 0
je 0x140015250
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x24]
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x14001524e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400151e1
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret