joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008d1f0
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x47]
sub rsp, 0xc0
mov esi, edx
mov r14, r9
mov rdi, rcx
cmp edx, 3
jb 0x14008d32f
movzx eax, word [rcx]
cmp ax, word [0x1400ffe08]
jne 0x14008d32f
mov al, byte [rcx + 2]
cmp al, byte [0x1400ffe0a]
jne 0x14008d32f
test r8, r8
je 0x14008d321
test r9, r9
je 0x14008d321
lea rcx, str.__using_BCrypt_with_AES_256_GCM_n
call fcn.14000be84
xor edx, edx
lea rcx, [rbp - 0x21]
lea r8d, [rdx + 0x58]
call fcn.1400c58a0
lea rax, [rdi + 3]
mov dword [rbp - 0x21], reloc.WLDAP32.dll_Ordinal_88
mov qword [rbp - 0x19], rax
lea rcx, [rdi - 0x10]
add rcx, rsi
mov dword [rbp - 0x1d], 1
lea eax, [rsi - 0x1f]
mov qword [rbp + 7], rcx
mov edx, eax
mov ecx, 0x40
mov dword [rbp - 0x11], reloc.WLDAP32.dll_Ordinal_12
mov dword [rbp + 0xf], 0x10
mov dword [rbp + 0x57], eax
call qword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14008d38f
and dword [rsp + 0x48], 0
lea rax, [rbp + 0x57]
mov r8d, dword [rbp + 0x57]
lea r9, [rbp - 0x21]
mov edx, dword [rbp - 0x11]
mov rcx, r14
add rdx, qword [rbp - 0x19]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r8d
mov qword [rsp + 0x30], rdi
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
js 0x14008d30e
mov r8d, dword [rbp + 0x57]
lea rcx, str._s:__.S_n
mov rdx, qword [rbp + 0x7f]
mov r9, rdi
call fcn.14000be84
jmp 0x14008d31c
mov edx, eax
lea rcx, str.ERROR_kuhl_m_dpapi_chrome_decrypt___BCryptDecrypt:_0x_08x_n
call fcn.14000be84
mov rcx, rdi
jmp 0x14008d389
lea rcx, str.ERROR_kuhl_m_dpapi_chrome_decrypt___No_Alg_and_or_Key_handle_despite_AES_encryption_n
call fcn.14000be84
jmp 0x14008d38f
and qword [rsp + 0x48], 0
lea rax, [rbp + 0x57]
mov r9d, dword [rbp + 0x6f]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov edx, esi
lea rax, [rbp - 0x31]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
mov rax, qword [rbp + 0x77]
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call fcn.14008b4b4
test eax, eax
je 0x14008d38f
mov r9, qword [rbp - 0x31]
lea rcx, str._s:__.S_n
mov r8d, dword [rbp + 0x57]
mov rdx, qword [rbp + 0x7f]
call fcn.14000be84
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.DLL_LocalFree]
lea r11, [rsp + 0xc0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14009d5ec
Capabilities:
Encrypt data using rc4 via systemfunction033

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov rdi, rcx
mov qword [rbp - 0x49], r9
lea rax, [rbp + 0x1f]
xor esi, esi
lea rcx, str._nSAMKey_:
mov qword [rbp - 0x59], rax
mov r14, r9
mov r15, r8
mov rbx, rdx
lea r12d, [rsi + 0x10]
mov dword [rbp - 0x61], r12d
mov dword [rbp - 0x5d], r12d
mov dword [rbp - 0x51], r12d
mov dword [rbp - 0x4d], r12d
call fcn.14000be84
and qword [rsp + 0x30], rsi
lea rax, [rbp - 0x69]
lea r9, [0x140130770]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.14000f03c
test eax, eax
je 0x14009d7ae
mov rbx, qword [rbp - 0x69]
movzx edx, word [rbx]
mov ecx, edx
sub ecx, 2
je 0x14009d68b
cmp ecx, 1
je 0x14009d68b
lea rcx, str.ERROR_kuhl_m_lsadump_getSamKey___Unknow_F_revision___hu_
jmp 0x14009d6a1
mov edx, dword [rbx + 0x68]
mov eax, edx
sub eax, 1
je 0x14009d6fd
cmp eax, 1
je 0x14009d6ab
lea rcx, str.ERROR_kuhl_m_lsadump_getSamKey___Unknow_Struct_Key_revision___u_
call fcn.14000be84
jmp 0x14009d791
mov r9d, dword [rbx + 0x74]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
lea r8, [rbx + 0x88]
lea rax, [rbp - 0x69]
mov rcx, r15
lea rdx, [rbx + 0x78]
mov qword [rsp + 0x20], rax
call fcn.140004b50
test eax, eax
je 0x14009d791
cmp dword [rbp + 0x7f], r12d
mov rcx, qword [rbp - 0x69]
sete sil
jne 0x14009d6f2
movups xmm0, xmmword [rcx]
movdqu xmmword [r14], xmm0
call qword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x14009d791
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Init]
lea rdx, [rbx + 0x70]
mov r8d, r12d
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Update]
mov r8d, 0x2f
lea rdx, str.______qwertyUIOPAzxcvbnmQQQQQQQQQQQQ____
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Update]
mov r8d, r12d
lea rcx, [rbp - 0x39]
mov rdx, r15
call qword [sym.imp.cryptdll.dll_MD5Update]
mov r8d, reloc.WLDAP32.dll_Ordinal_41
lea rdx, str.0123456789012345678901234567890123456789
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Update]
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Final]
movups xmm0, xmmword [rbx + 0x80]
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x51]
movdqu xmmword [r14], xmm0
call qword [sym.imp.ADVAPI32.dll_SystemFunction033]
mov esi, eax
not esi
shr esi, 0x1f
test esi, esi
jne 0x14009d791
lea rcx, str.ERROR_kuhl_m_lsadump_getSamKey___RtlDecryptData2_KO
call fcn.14000be84
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LocalFree]
test esi, esi
je 0x14009d7ba
xor r8d, r8d
mov edx, r12d
mov rcx, r14
call fcn.140012bc0
jmp 0x14009d7ba
lea rcx, str.ERROR_kuhl_m_lsadump_getSamKey___kull_m_registry_OpenAndQueryWithAlloc_KO
call fcn.14000be84
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000be84
lea r11, [rsp + 0xe0]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400b17b8
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
lea rdx, str.Microsoft_WinInet_
mov rcx, qword [rcx + 8]
call fcn.1400c5214
test rax, rax
je 0x1400b1867
mov edx, dword [rbx + 0x20]
cmp edx, 0x14
jb 0x1400b19da
mov rcx, qword [rbx + 0x28]
mov rax, qword [rcx + 4]
cmp rax, qword [0x1400f6160]
jne 0x1400b19da
mov rax, qword [rcx + 0xc]
cmp rax, qword [0x1400f6168]
jne 0x1400b19da
lea rax, [0x1400f5250]
mov dword [rbp - 0x20], edx
mov qword [rbp - 8], rax
lea r8, [rbp - 0x10]
lea rax, [rbp - 0x30]
mov qword [rbp - 0x18], rcx
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x20]
and dword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rbp - 0x10], Ordinal_77
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1400b19c6
lea rcx, str.___CredentialBlob:
jmp 0x1400b199d
mov rcx, qword [rbx + 8]
lea rdx, str.AppSense_DataNow_
call fcn.1400c5214
test rax, rax
je 0x1400b19da
lea rcx, str._Ivanti_FileDirector_credential_blob__n
call fcn.14000be84
cmp dword [rbx + 0x20], 0x14
jb 0x1400b19da
mov rbx, qword [rbx + 0x28]
lea rcx, str.AppN_DN_Win
mov rdx, rbx
call fcn.1400e9a80
test eax, eax
jne 0x1400b19da
cmp dword [rbx + 0xc], eax
je 0x1400b1942
lea rcx, str.Decrypting_additional_blob_n
call fcn.14000be84
mov eax, dword [rbx + 0xc]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], eax
xor r9d, r9d
lea rax, [rbx + 0x14]
xor r8d, r8d
mov qword [rbp - 0x18], rax
xor edx, edx
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1400b192e
lea rcx, str.___CredentialBlob:
call fcn.14000be84
mov edx, dword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
call fcn.1400128e4
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000be84
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x1400b1942
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_vault_cred_tryEncrypted___CryptUnprotectData__0x_08x__n
call fcn.14000be84
cmp dword [rbx + 0x10], 0
je 0x1400b19da
lea rcx, str.Decrypting_additional_blob_n
call fcn.14000be84
mov eax, dword [rbx + 0x10]
xor r9d, r9d
mov dword [rbp - 0x20], eax
xor r8d, r8d
mov ecx, dword [rbx + 0xc]
lea rax, [rbp - 0x30]
add rcx, 0x14
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
add rcx, rbx
and qword [rsp + 0x20], 0
xor edx, edx
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x20]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1400b19c6
lea rcx, str.___UnkBlob_______:
call fcn.14000be84
mov edx, dword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
call fcn.1400128e4
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000be84
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x1400b19da
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_vault_cred_tryEncrypted___CryptUnprotectData__0x_08x__n
call fcn.14000be84
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret
Function at 0x1400b9c48
Capabilities:
Accept command line arguments

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x20
mov rax, rdx
mov rbp, rcx
lea rdx, [r11 + 0x10]
mov rcx, qword [rax + 8]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
test rax, rax
je 0x1400b9cf7
mov eax, dword [rsp + 0x38]
test eax, eax
jle 0x1400b9ce0
xor ebx, ebx
test eax, eax
jle 0x1400b9cd7
mov rsi, rdi
mov rcx, qword [rsi]
lea rdx, str._HTC:
mov r8d, 5
call fcn.1400d9928
test eax, eax
je 0x1400b9cb0
inc ebx
add rsi, 8
cmp ebx, dword [rsp + 0x38]
jl 0x1400b9c89
jmp 0x1400b9cd7
movsxd rax, ebx
xor edx, edx
mov rcx, qword [rdi + rax*8]
lea r8d, [rdx + 0xa]
add rcx, 0xa
call fcn.1400d0b00
mov edx, eax
mov rcx, rbp
mov ebx, eax
call fcn.1400b9d20
test rbx, rbx
jne 0x1400b9cec
lea rcx, str.__No_shared_memory__no_SSO_enabled___n
jmp 0x1400b9ce7
lea rcx, str.ERROR_Citrix_SSO_Program_args___No_command_module_
call fcn.14000be84
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x1400b9d0b
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_args___CommandLineToArgvW__0x_08x__n
call fcn.14000be84
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b9d20
Capabilities:
Encode data using xor
Encrypt data using dpapi
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
xor esi, esi
lea r9, [rsp + 0x60]
mov dword [rsp + 0x30], esi
mov r8, rax
mov dword [rsp + 0x28], esi
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.DLL_DuplicateHandle]
test eax, eax
je 0x1400b9e73
mov rcx, qword [rsp + 0x60]
lea edx, [rsi + 4]
xor r9d, r9d
mov qword [rsp + 0x20], 0x61c
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov rdi, rax
test rax, rax
je 0x1400b9e52
mov edx, 0x610
lea ecx, [rsi + 0x40]
call qword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400b9e47
mov rcx, rax
lea rdx, [rdi + 0xc]
mov r8d, 0x610
call fcn.1400c5ce0
mov edx, 0x610
lea r8d, [rsi + 1]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SystemFunction041]
test eax, eax
jne 0x1400b9e30
mov eax, dword [rbx + 0x400]
lea r9, [rbx + 0x404]
test eax, eax
je 0x1400b9e02
mov rdx, r9
mov r8d, eax
mov cl, byte [rdx]
mov al, cl
xor al, sil
mov sil, cl
xor al, 0x43
mov byte [rdx], al
inc rdx
sub r8, 1
jne 0x1400b9deb
mov eax, dword [rbx + 0x604]
lea r8, [rbx + 0x200]
mov dword [rsp + 0x28], eax
lea rcx, str._Username__:__s_n_Domain____:__s_n_Password__:__.s_n_flags_type:_0x_08x_n
mov qword [rsp + 0x20], r9
mov rdx, rbx
mov r9d, dword [rbx + 0x400]
call fcn.14000be84
jmp 0x1400b9e3e
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___RtlDecryptMemory:_0x_08x_n
call fcn.14000be84
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
jmp 0x1400b9e66
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___MapViewOfFile__0x_08x__n
call fcn.14000be84
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x1400b9e87
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___DuplicateHandle__0x_08x__n
call fcn.14000be84
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400c0b24
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x40
xor ebp, ebp
xor r9d, r9d
and qword [rax - 0x38], rbp
mov edx, 0x80000000
and dword [rax - 0x40], ebp
lea r8d, [rbp + 3]
mov dword [rax - 0x48], r8d
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rsi, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400c0c68
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x1400c0c49
mov r12d, 0x10000000
lea ecx, [rbp + 0x40]
mov edx, r12d
call qword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400c0c5d
mov rax, qword [rsp + 0x80]
xor ecx, ecx
test rax, rax
jle 0x1400c0c3e
lea r14, [rcx + 0x10000000]
mov rbx, rax
sub rbx, rcx
mov rdx, rcx
cmp r14, rax
mov rcx, rsi
cmovl rbx, r12
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x1400c0c16
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x1400c0c07
mov edx, dword [rsp + 0x78]
mov rcx, rdi
call fcn.1400c0a1c
add ebp, eax
jmp 0x1400c0c2a
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rcx, str.ERROR_kuhl_m_sekurlsa_sk_search_file___ReadFile__0x_08x__n
jmp 0x1400c0c23
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rcx, str.ERROR_kuhl_m_sekurlsa_sk_search_file___SetFilePointerEx__0x_08x__n
mov edx, eax
call fcn.14000be84
mov rax, qword [rsp + 0x80]
mov rcx, r14
cmp r14, rax
jl 0x1400c0baf
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
jmp 0x1400c0c5d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_sekurlsa_sk_search_file___GetFileSizeEx__0x_08x__n
call fcn.14000be84
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x1400c0c7c
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_sekurlsa_sk_search_file___CreateFile__0x_08x__n
call fcn.14000be84
mov rbx, qword [rsp + 0x70]
mov eax, ebp
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400c3c88
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400c3d00
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400c3d00
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400c3d00
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400c3cf4
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400c3d12
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400c3ce2
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400c3d02
Function at 0x1400c4958
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x1400c49a2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c49a2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c49a2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c49a2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c49a2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400c49a4
xor al, al
add rsp, 0x28
ret

Function at 0x1400db194
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400daf90
Function at 0x1400e2274
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400e22fb
mov rsi, rbx
cmp word [rax], bp
je 0x1400e22ba
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400e22a4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400e22a0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400dbe80
mov rdi, rax
test rax, rax
je 0x1400e22e8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400c5ce0
mov rbp, rdi
xor ecx, ecx
call fcn.1400dbe44
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400e4e4c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400e4e62
mov al, 1
jmp 0x1400e4ec2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400e4e73
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400e4ec0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400e0164
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400e4ec0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x1400e4ec0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x1400e4ec0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400e4ec2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400e54ac
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140165d40]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400e5503
cmp word [rdx], r13w
jne 0x1400e5503
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400e5508
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400e562d
mov r11d, reloc.Cabinet.dll_FCIFlushCabinet
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400e564e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400e5541
mov rdx, r9
mov word [rbx], cx
jmp 0x1400e5568
cmp r9, r8
jae 0x1400e5578
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400e5522
jmp 0x1400e562d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x1400e5622
cmp dword [rsp + 0x80], esi
je 0x1400e5622
lea r8, [0x140165d40]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400e55fa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400e55ca
mov word [rbx], r13w
jmp 0x1400e562a
mov ecx, reloc.Cabinet.dll_FCIFlushCabinet
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400e55d7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400e562a
cmp word [rsp + 0x70], r13w
jne 0x1400e5607
cmp rbx, r14
je 0x1400e55c4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400e53cc
cmp word [rsp + 0x70], r13w
je 0x1400e562d
mov ecx, reloc.Cabinet.dll_FCIFlushCabinet
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140165d40]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400e5627
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400e562d
Function at 0x1400e80dc
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400e53cc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400e53cc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400e822c
cmp rax, 0xffffffffffffffff
je 0x1400e822c
xor edi, edi
test rbp, rbp
jle 0x1400e81d7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400de360
mov rbx, rax
test rax, rax
jne 0x1400e8164
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400e81cd
mov edx, 0x8000
mov ecx, r14d
call fcn.1400ceef0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400df5ac
cmp eax, 0xffffffff
je 0x1400e81ad
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400e8174
mov edx, r15d
mov ecx, r14d
call fcn.1400ceef0
jmp 0x1400e81cd
cmp byte [rsi + 0x38], dil
je 0x1400e81c4
cmp dword [rsi + 0x34], 5
jne 0x1400e81c4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.Cabinet.dll_FCIFlushCabinet
cmp byte [rsi + 0x30], dil
je 0x1400e81cd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400dbe44
jmp 0x1400e8240
jns 0x1400e8240
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400e53cc
cmp rax, 0xffffffffffffffff
jne 0x1400e81f8
cmp byte [rsi + 0x30], dil
je 0x1400e8240
mov edi, dword [rsi + 0x2c]
jmp 0x1400e8240
mov ecx, r14d
call fcn.1400e0164
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
jne 0x1400e8240
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.Cabinet.dll_FCIFlushCabinet
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.Cabinet.dll_FCIFlushCabinet
jmp 0x1400e8240
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400e8239
mov eax, dword [rsi + 0x2c]
jmp 0x1400e823e
mov eax, Ordinal_26
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400e53cc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400e8f40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400e8f68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400e8f68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400108a0
Capabilities:
Hash data using fnv

Disassembly:
movsx eax, byte [rcx]
test al, al
jne 0x1400108aa
mov eax, edx
ret
xor eax, edx
imul edx, eax, 0x1000193
inc rcx
jmp fcn.1400108a0