joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140098f5c
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r12d, r12d
lea rdx, [rax + 0x10]
mov ebp, r12d
mov rsi, rcx
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r15, rax
mov edi, r12d
test rax, rax
je 0x14009902e
cmp dword [rsp + 0x58], r12d
jle 0x14009902e
movzx ebx, r12w
lea r13, [0x1400f5dc0]
cmp bx, 0x13
jae 0x140099007
mov rcx, qword [r15]
movzx r14d, bx
shl r14, 5
mov rdx, qword [r14 + r13 + 0x10]
call fcn.1400c67e4
test eax, eax
mov edi, r12d
sete dil
test eax, eax
jne 0x140099000
mov rax, qword [r14 + r13]
test rax, rax
je 0x140098ff1
mov ecx, dword [rsp + 0x58]
lea rdx, [r15 + 8]
dec ecx
call rax
mov ebp, eax
jmp 0x140099000
mov ecx, dword [r14 + r13 + 8]
xor r8d, r8d
xor edx, edx
call fcn.140009f24
inc bx
test edi, edi
je 0x140098fb0
test edi, edi
jne 0x14009902e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r12w
jne 0x14009900f
lea r8d, [rax*2 + 2]
mov rdx, rsi
mov ecx, 0x22c003
call fcn.140009f24
mov rbx, qword [rsp + 0x50]
mov eax, ebp
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14009a98c
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
xor ebx, ebx
lea rax, [r11 + 0x20]
mov qword [r11 - 0x38], rax
mov r14, r8
mov qword [r11 - 0x40], rbx
lea r8, str.SupplementalCredentials
mov qword [r11 - 0x48], rbx
mov rdi, rdx
mov rbp, rcx
mov dword [r11 + 0x20], ebx
call fcn.14000e474
test eax, eax
je 0x14009aafc
cmp dword [rsp + 0x88], 0x90
jbe 0x14009aafc
mov edx, dword [rsp + 0x88]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14009aafc
lea rax, [rsp + 0x88]
mov rdx, rdi
mov qword [rsp + 0x30], rax
lea r8, str.SupplementalCredentials
mov qword [rsp + 0x28], rsi
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call fcn.14000e474
test eax, eax
je 0x14009aaf3
lea rcx, str._nSupplemental_Credentials:_n
call fcn.14000b8cc
mov edx, dword [rsi + 0xc]
lea ecx, [rbx + 0x40]
add edx, 0xc
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14009aaf3
mov ebp, dword [rsp + 0x88]
lea r9d, [rbx + 0x18]
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
lea rcx, [rsp + 0x48]
add ebp, 0xffffffe0
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14009aab3
lea rcx, [rsp + 0x48]
mov r9d, ebp
mov qword [rsp + 0x30], rcx
lea rax, [rdi + 4]
mov qword [rsp + 0x28], rax
lea r8, [rsi + 0x20]
lea rax, [rsp + 0x40]
mov rcx, r14
lea rdx, [rsi + 0x10]
mov qword [rsp + 0x20], rax
call fcn.140004b30
jmp 0x14009aab5
mov eax, ebx
test eax, eax
je 0x14009aaea
mov eax, dword [rdi + 4]
cmp eax, dword [rsi + 0xc]
jne 0x14009aadf
mov rdx, qword [rsp + 0x40]
lea rcx, [rdi + 0xc]
mov r8d, eax
mov ebx, 1
call fcn.1400c2830
mov rcx, rdi
call fcn.1400b0800
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x14009ab14
Capabilities:
Create new key via cryptacquirecontext
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 - 0x41], r9
lea rax, [rbp + 0x1f]
xor esi, esi
lea rcx, str._nSAMKey_:
mov qword [rbp - 0x51], rax
mov r14, r9
mov r15, r8
mov rbx, rdx
lea r12d, [rsi + 0x10]
mov dword [rbp - 0x59], r12d
mov dword [rbp - 0x55], r12d
mov dword [rbp - 0x49], r12d
mov dword [rbp - 0x45], r12d
call fcn.14000b8cc
and qword [rsp + 0x30], rsi
lea rax, [rbp - 0x69]
lea r9, [0x14011c1d0]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.14000ea54
test eax, eax
je 0x14009ad0d
mov rbx, qword [rbp - 0x69]
movzx edx, word [rbx]
cmp edx, 2
jb 0x14009ace6
cmp edx, 3
ja 0x14009ace6
mov edx, dword [rbx + 0x68]
mov eax, edx
sub eax, 1
je 0x14009ac51
cmp eax, 1
je 0x14009abcf
lea rcx, str.ERROR_quhl_m_lsaget_getSamKey___Unknow_Struct_Key_revision___u_
jmp 0x14009aced
mov edi, dword [rbx + 0x74]
lea rcx, [rbp - 0x69]
mov r9d, reloc.ODBC32.dll_SQLAllocHandle
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14009ac26
lea rax, [rbp - 0x69]
mov r9d, edi
mov qword [rsp + 0x30], rax
lea r8, [rbx + 0x88]
lea rax, [rbp + 0x7f]
mov rcx, r15
mov qword [rsp + 0x28], rax
lea rdx, [rbx + 0x78]
lea rax, [rbp - 0x61]
mov qword [rsp + 0x20], rax
call fcn.140004b30
jmp 0x14009ac28
xor eax, eax
test eax, eax
je 0x14009acf2
cmp dword [rbp + 0x7f], r12d
mov rcx, qword [rbp - 0x61]
sete sil
jne 0x14009ac46
movups xmm0, xmmword [rcx]
movdqu xmmword [r14], xmm0
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14009acf2
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 - 0x59]
lea rcx, [rbp - 0x49]
movdqu xmmword [r14], xmm0
call qword [sym.imp.ADVAPI32.dll_SystemFunction033]
test eax, eax
setns sil
test eax, eax
jns 0x14009acf2
lea rcx, str.ERROR_quhl_m_lsaget_getSamKey___RtlDecryptData2_KO
call fcn.14000b8cc
jmp 0x14009acf2
lea rcx, str.ERROR_quhl_m_lsaget_getSamKey___Unknow_F_revision___hu_
call fcn.14000b8cc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x14009ad0d
xor r8d, r8d
mov edx, r12d
mov rcx, r14
call fcn.140012384
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000b8cc
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 0x14009c4a8
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
xor ebx, ebx
mov rdi, r9
mov r14d, edx
mov rsi, rcx
test r8, r8
je 0x14009c526
mov r9d, ebx
mov dword [rbp + 0x30], ebx
mov r10d, ebx
cmp dword [r8 + 0x18], ebx
jbe 0x14009c682
mov rax, qword [rsi + 4]
mov ecx, r10d
cmp rax, qword [rcx + r8 + 0x1c]
jne 0x14009c4fc
mov rax, qword [rsi + 0xc]
cmp rax, qword [rcx + r8 + 0x24]
je 0x14009c518
inc r9d
add r10d, 0x18
mov dword [rbp + 0x30], r9d
add r10d, dword [rcx + r8 + 0x30]
cmp r9d, dword [r8 + 0x18]
jae 0x14009c682
jmp 0x14009c4e3
mov eax, dword [rcx + r8 + 0x30]
lea rdi, [r8 + 0x34]
add rdi, rcx
jmp 0x14009c534
test r9, r9
je 0x14009c682
mov eax, 0x10
mov dword [rbp - 0x40], eax
test rdi, rdi
je 0x14009c682
mov r9d, reloc.ODBC32.dll_SQLAllocHandle
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rbp - 0x28]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14009c682
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14009c676
mov r8d, dword [rbp - 0x40]
xor r9d, r9d
mov rcx, qword [rbp - 0x38]
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov dword [rbp + 0x30], ebx
mov rcx, qword [rbp - 0x38]
lea rdx, [rsi + 0x1c]
xor r9d, r9d
lea r8d, [r9 + 0x20]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov eax, dword [rbp + 0x30]
inc eax
mov dword [rbp + 0x30], eax
cmp eax, 0x3e8
jb 0x14009c5a2
mov rcx, qword [rbp - 0x38]
lea r9, [rbp - 0x40]
mov edi, 2
mov dword [rbp - 0x40], Ordinal_36
mov edx, edi
mov dword [rsp + 0x20], ebx
lea r8, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14009c66c
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rbx
lea r9d, [rdi + 0x1e]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x20]
mov edx, 0x6610
mov dword [rsp + 0x20], ebx
call fcn.140003ac4
test eax, eax
je 0x14009c66c
mov rcx, qword [rbp - 0x30]
lea r8, [rbp + 0x30]
xor r9d, r9d
mov dword [rbp + 0x30], edi
lea edx, [rdi + 2]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x14009c662
lea eax, [r14 - 0x3c]
xor r9d, r9d
lea rcx, [rbp - 0x40]
mov dword [rbp - 0x40], eax
mov qword [rsp + 0x28], rcx
lea rax, [rsi + 0x3c]
mov rcx, qword [rbp - 0x30]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ebx, eax
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x28]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400a6c64
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1010]
mov eax, 0x1110
call fcn.1400df930
sub rsp, rax
xor esi, esi
mov dword [rbp - 0x80], reloc.ODBC32.dll_SQLAllocHandle
and qword [rbp - 0x78], rsi
mov rdi, rdx
mov rbx, rcx
mov dword [rbp - 0x70], 1
xor edx, edx
lea rcx, [rbp - 0x60]
lea r8d, [rsi + 0x68]
call fcn.1400c20c0
xor eax, eax
mov rcx, rbx
and qword [rbp + 0x1048], rax
and qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
call fcn.1400c6758
mov r14, rax
test rax, rax
je 0x1400a6e5b
xor r9d, r9d
lea r8, [rbp - 0x80]
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x1048]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1400a6e53
mov rcx, qword [rbp + 0x1048]
lea edx, [rsi + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
bts dword [rbp - 0x24], 8
mov rax, qword [rbp - 8]
mov qword [rbp], rax
mov dword [rbp - 0x60], 0x68
test rdi, rdi
je 0x1400a6d46
xor r8d, r8d
lea rcx, [rsp + 0x60]
mov rdx, rdi
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x1400a6e37
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x50], rax
mov r8, r14
lea rax, [rbp - 0x60]
xor edx, edx
mov qword [rsp + 0x48], rax
mov rcx, rdi
and qword [rsp + 0x40], rsi
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8000400
mov dword [rsp + 0x28], 1
and qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
test eax, eax
je 0x1400a6e27
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbp], 0
mov edi, 0x1000
and qword [rbp - 8], 0
jmp 0x1400a6dde
mov eax, dword [rbp + 0x1040]
test eax, eax
je 0x1400a6e03
xor ebx, ebx
test eax, eax
je 0x1400a6dde
movzx edx, byte [rbp + rbx + 0x10]
lea rcx, [0x140100480]
call fcn.14000b8cc
inc ebx
cmp ebx, dword [rbp + 0x1040]
jb 0x1400a6dc3
mov rcx, qword [rbp + 0x1048]
lea r9, [rbp + 0x1040]
and qword [rsp + 0x20], 0
lea rdx, [rbp + 0x10]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400a6db3
mov rcx, qword [rsp + 0x68]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400a6e37
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rbp + 0x1048]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x1400a6e53
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call fcn.1400c67dc
lea r11, [rsp + 0x1110]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400a827c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx eax, r8w
mov r11, r9
movzx r10d, dl
xor r9b, r9b
shl r10d, 0x10
mov rsi, rcx
or r10d, eax
movabs rax, 0x2004000000
add r10d, r10d
mov edi, r10d
xor r10b, r10b
or rdi, rax
xor r8b, r8b
movzx edx, r8b
mov rax, rdi
mov bl, r10b
inc r8b
lea ecx, [rdx + 0xd]
shr rax, cl
lea ecx, [rdx + 1]
and al, 1
xor r9b, al
mov rax, rdi
shr rax, cl
and al, 1
xor r10b, al
cmp r8b, 0xc
jb 0x1400a82bc
xor ecx, ecx
cmp al, bl
movzx eax, r9b
sete cl
and eax, 1
shl rax, 0x19
or rcx, rax
or rdi, rcx
test r11, r11
je 0x1400a8308
mov qword [r11], rdi
mov rcx, rdi
mov dword [rsi], 0x90625062
shr rcx, 0x28
call fcn.1400a8244
movzx ebx, al
mov rcx, rdi
or ebx, 0x1d00
shr rcx, 0x24
shl ebx, 8
call fcn.1400a8244
movzx eax, al
mov rcx, rdi
or ebx, eax
shr rcx, 0x20
shl ebx, 8
call fcn.1400a8244
movzx eax, al
mov rcx, rdi
or ebx, eax
shr rcx, 0x1c
mov dword [rsi + 4], ebx
call fcn.1400a8244
movzx ebx, al
mov rcx, rdi
shr rcx, 0x18
shl ebx, 8
call fcn.1400a8244
movzx eax, al
mov rcx, rdi
or ebx, eax
shr rcx, 0x14
shl ebx, 8
call fcn.1400a8244
movzx eax, al
mov rcx, rdi
or ebx, eax
shr rcx, 0x10
shl ebx, 8
call fcn.1400a8244
movzx eax, al
mov rcx, rdi
or ebx, eax
shr rcx, 0xc
mov dword [rsi + 8], ebx
call fcn.1400a8244
movzx ebx, al
mov rcx, rdi
shr rcx, 8
shl ebx, 8
call fcn.1400a8244
movzx eax, al
mov rcx, rdi
or ebx, eax
shr rcx, 4
shl ebx, 8
call fcn.1400a8244
movzx eax, al
mov cl, dil
or ebx, eax
shl ebx, 8
call fcn.1400a8244
movzx eax, al
or ebx, eax
mov dword [rsi + 0xc], ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400a83f8
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
and dword [rax + 8], 0
mov rdi, rdx
xor r10b, r10b
mov r11, rcx
movabs r8, 0xff80000000000000
movzx esi, r10b
lea rdx, [rsp + 8]
mov ecx, 9
mov r9, rdi
sub ecx, esi
shl ecx, 2
shr r9, cl
xor cl, cl
and r9b, 0xf
xor bl, bl
mov al, r9b
shr al, cl
inc cl
and al, 1
xor byte [rdx], al
xor bl, al
inc rdx
cmp cl, 4
jb 0x1400a843f
imul eax, esi, 0xfffffffb
inc r10b
movzx edx, bl
lea ecx, [rax + 0x32]
shl rdx, cl
lea ecx, [rax + 0x33]
movzx eax, r9b
shl rax, cl
or rdx, rax
or r8, rdx
cmp r10b, 0xa
jb 0x1400a841e
movzx eax, byte [rsp + 0xa]
movzx ecx, byte [rsp + 0xb]
mov rbx, qword [rsp + 0x10]
add ecx, ecx
mov rsi, qword [rsp + 0x18]
or ecx, eax
movzx eax, byte [rsp + 9]
add ecx, ecx
mov rdi, qword [rsp + 0x20]
or ecx, eax
movzx eax, byte [rsp + 8]
add ecx, ecx
or ecx, eax
mov dword [r11], 0x148040
lea eax, [rcx + rcx]
or r8, rax
mov rax, r8
mov dword [r11 + 8], r8d
shr rax, 0x20
mov dword [r11 + 4], eax
ret
Function at 0x1400ae854
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.1400c1b90
test rax, rax
je 0x1400ae903
mov edx, dword [rbx + 0x20]
cmp edx, 0x14
jb 0x1400aea42
mov rcx, qword [rbx + 0x28]
mov rax, qword [rcx + 4]
cmp rax, qword [0x1400ebc10]
jne 0x1400aea42
mov rax, qword [rcx + 0xc]
cmp rax, qword [0x1400ebc18]
jne 0x1400aea42
lea rax, [0x1400ead10]
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_79
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1400aea42
lea rcx, str.___CredentialBlob:
jmp 0x1400aea1b
mov rcx, qword [rbx + 8]
lea rdx, str.AppSense_DataNow_
call fcn.1400c1b90
test rax, rax
je 0x1400aea42
lea rcx, str._Ivanti_FileDirector_credential_blob__n
call fcn.14000b8cc
cmp dword [rbx + 0x20], 0x14
jb 0x1400aea42
mov rbx, qword [rbx + 0x28]
lea rcx, str.AppN_DN_Win
mov rdx, rbx
call fcn.1400dffd0
test eax, eax
jne 0x1400aea42
cmp dword [rbx + 0xc], eax
je 0x1400ae9c4
lea rcx, str.Decrypting_additional_blob_n
call fcn.14000b8cc
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 0x1400ae9c4
lea rcx, str.___CredentialBlob:
call fcn.14000b8cc
mov edx, dword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
call fcn.1400120bc
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000b8cc
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [rbx + 0x10], 0
je 0x1400aea42
lea rcx, str.Decrypting_additional_blob_n
call fcn.14000b8cc
mov eax, dword [rbx + 0x10]
lea rcx, [rbx + 0x14]
mov dword [rbp - 0x20], eax
xor r9d, r9d
mov eax, dword [rbx + 0xc]
xor r8d, r8d
add rcx, rax
xor edx, edx
lea rax, [rbp - 0x30]
mov qword [rbp - 0x18], rcx
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x20]
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1400aea42
lea rcx, str.___UnkBlob_______:
call fcn.14000b8cc
mov edx, dword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
call fcn.1400120bc
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000b8cc
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret
Function at 0x1400b6cc8
Capabilities:
Encode data using xor
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
cmp dword [rdx], 0
mov r14, r8
mov rsi, rdx
mov rbp, rcx
jle 0x1400b6e67
xor ebx, ebx
mov rdi, r8
mov rcx, qword [rdi]
lea rdx, str._HTC:
mov r8d, 5
call fcn.1400d16e0
test eax, eax
je 0x1400b6d19
inc ebx
add rdi, 8
cmp ebx, dword [rsi]
jl 0x1400b6cf1
jmp 0x1400b6e5e
movsxd rax, ebx
xor edx, edx
mov rcx, qword [r14 + rax*8]
lea r8d, [rdx + 0xa]
add rcx, 0xa
call fcn.1400c89a8
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
lea r9, [rsp + 0x68]
and dword [rsp + 0x28], 0
mov ebx, 4
mov r8, rax
mov dword [rsp + 0x20], ebx
mov edx, esi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400b6e59
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], 0x61c
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
je 0x1400b6e4e
mov ebp, 0x610
lea ecx, [rbx + 0x3c]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400b6e45
mov rcx, rax
lea rdx, [rdi + 0xc]
mov r8d, ebp
call fcn.1400c2830
mov r8d, 1
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SystemFunction041]
test eax, eax
jne 0x1400b6e2e
mov r9d, dword [rbx + 0x400]
lea r10, [rbx + 0x404]
xor r11b, r11b
test r9d, r9d
je 0x1400b6e07
mov rdx, r10
mov r8d, r9d
mov cl, byte [rdx]
mov al, cl
xor al, r11b
mov r11b, cl
xor al, 0x43
mov byte [rdx], al
inc rdx
sub r8, 1
jne 0x1400b6de9
mov r9d, dword [rbx + 0x400]
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 rdx, rbx
mov qword [rsp + 0x20], r10
call fcn.14000b8cc
jmp 0x1400b6e3c
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___RtlDecryptMemory:_0x_08x_n
call fcn.14000b8cc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
jne 0x1400b6e73
lea rcx, str.__No_shared_memory__no_SSO_enabled___n
jmp 0x1400b6e6e
lea rcx, str.ERROR_Citrix_SSO_Program_args___No_command_module_
call fcn.14000b8cc
mov rcx, r14
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LocalFree]
Function at 0x1400bd434
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 0x1400bd52f
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400bd526
mov r12d, 0x10000000
lea ecx, [rbp + 0x40]
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400bd526
mov rax, qword [rsp + 0x80]
xor ecx, ecx
test rax, rax
jle 0x1400bd51d
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 0x1400bd50d
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 0x1400bd50d
mov edx, dword [rsp + 0x78]
mov rcx, rdi
call fcn.1400bd32c
add ebp, eax
mov rax, qword [rsp + 0x80]
mov rcx, r14
cmp r14, rax
jl 0x1400bd4b7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x70]
mov eax, ebp
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400d2ac8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400d282c