joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009ab2c
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.14000b8b0
and qword [rsp + 0x30], rsi
lea rax, [rbp - 0x69]
lea r9, [0x140114950]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.14000e7e0
test eax, eax
je 0x14009ad06
mov rbx, qword [rbp - 0x69]
cmp word [rbx], 2
jb 0x14009acef
cmp word [rbx], 3
ja 0x14009acef
mov ecx, dword [rbx + 0x68]
sub ecx, 1
je 0x14009ac68
cmp ecx, 1
jne 0x14009acef
mov edi, dword [rbx + 0x74]
lea r9d, [rsi + 0x18]
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
lea rcx, [rbp - 0x69]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14009ac31
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.140004930
jmp 0x14009ac3f
lea rcx, str.ERROR_idwcflvccrypto_genericAES128Decrypt___ERROR
call fcn.14000b8b0
xor eax, eax
test eax, eax
je 0x14009acfb
cmp dword [rbp + 0x7f], r12d
mov rcx, qword [rbp - 0x61]
sete sil
jne 0x14009ac5d
movups xmm0, xmmword [rcx]
movdqu xmmword [r14], xmm0
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14009acfb
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 0x14009acfb
lea rcx, str.ERROR_vwxeflvclsadump_getSamKey___ERROR
call fcn.14000b8b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14009ad12
lea rcx, str.ERROR_vwxeflvclsadump_getSamKey___ERROR
call fcn.14000b8b0
test esi, esi
je 0x14009ad24
xor r8d, r8d
mov edx, r12d
mov rcx, r14
call fcn.140011f30
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000b8b0
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 0x1400a6bd8
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.1400df760
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.1400c1ef0
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.1400c6588
mov r14, rax
test rax, rax
je 0x1400a6dea
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 0x1400a6de2
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 0x1400a6cc7
xor r8d, r8d
lea rcx, [rsp + 0x60]
mov rdx, rdi
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x1400a6cc7
lea rcx, str.ERROR_idwcflvcprocess_run_data___ERROR
call fcn.14000b8b0
jmp 0x1400a6dc6
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 0x1400a6daa
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 0x1400a6d5f
mov eax, dword [rbp + 0x1040]
test eax, eax
je 0x1400a6d84
xor ebx, ebx
test eax, eax
je 0x1400a6d5f
movzx edx, byte [rbp + rbx + 0x10]
lea rcx, [0x1400ff420]
call fcn.14000b8b0
inc ebx
cmp ebx, dword [rbp + 0x1040]
jb 0x1400a6d44
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 0x1400a6d34
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]
jmp 0x1400a6db6
lea rcx, str.ERROR_idwcflvcprocess_run_data___ERROR
call fcn.14000b8b0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400a6dc6
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 0x1400a6de2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call fcn.1400c660c
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 0x1400a820c
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 0x1400a824c
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 0x1400a8298
mov qword [r11], rdi
mov rcx, rdi
mov dword [rsi], 0x90625062
shr rcx, 0x28
call fcn.1400a81d4
movzx ebx, al
mov rcx, rdi
or ebx, 0x1d00
shr rcx, 0x24
shl ebx, 8
call fcn.1400a81d4
movzx eax, al
mov rcx, rdi
or ebx, eax
shr rcx, 0x20
shl ebx, 8
call fcn.1400a81d4
movzx eax, al
mov rcx, rdi
or ebx, eax
shr rcx, 0x1c
mov dword [rsi + 4], ebx
call fcn.1400a81d4
movzx ebx, al
mov rcx, rdi
shr rcx, 0x18
shl ebx, 8
call fcn.1400a81d4
movzx eax, al
mov rcx, rdi
or ebx, eax
shr rcx, 0x14
shl ebx, 8
call fcn.1400a81d4
movzx eax, al
mov rcx, rdi
or ebx, eax
shr rcx, 0x10
shl ebx, 8
call fcn.1400a81d4
movzx eax, al
mov rcx, rdi
or ebx, eax
shr rcx, 0xc
mov dword [rsi + 8], ebx
call fcn.1400a81d4
movzx ebx, al
mov rcx, rdi
shr rcx, 8
shl ebx, 8
call fcn.1400a81d4
movzx eax, al
mov rcx, rdi
or ebx, eax
shr rcx, 4
shl ebx, 8
call fcn.1400a81d4
movzx eax, al
mov cl, dil
or ebx, eax
shl ebx, 8
call fcn.1400a81d4
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 0x1400a8388
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 0x1400a83cf
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 0x1400a83ae
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 0x1400ae70c
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.1400c19c0
test rax, rax
je 0x1400ae7bb
mov edx, dword [rbx + 0x20]
cmp edx, 0x14
jb 0x1400ae91e
mov rcx, qword [rbx + 0x28]
mov rax, qword [rcx + 4]
cmp rax, qword [0x1400eb770]
jne 0x1400ae91e
mov rax, qword [rcx + 0xc]
cmp rax, qword [0x1400eb778]
jne 0x1400ae91e
lea rax, [0x1400ea850]
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], SQLSetEnvAttr
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1400ae912
lea rcx, str.___CredentialBlob:
jmp 0x1400ae8e9
mov rcx, qword [rbx + 8]
lea rdx, str.AppSense_DataNow_
call fcn.1400c19c0
test rax, rax
je 0x1400ae91e
lea rcx, str._Ivanti_FileDirector_crEdential_blob__n
call fcn.14000b8b0
cmp dword [rbx + 0x20], 0x14
jb 0x1400ae91e
mov rbx, qword [rbx + 0x28]
lea rcx, str.AppN_DN_Win
mov rdx, rbx
call fcn.1400dfe00
test eax, eax
jne 0x1400ae91e
cmp dword [rbx + 0xc], eax
je 0x1400ae88e
lea rcx, str.Decrypting_additional_blob_n
call fcn.14000b8b0
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 0x1400ae882
lea rcx, str.___CredentialBlob:
call fcn.14000b8b0
mov edx, dword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
call fcn.140011c68
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000b8b0
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400ae88e
lea rcx, str.ERROR_vwxeflvcvault_crEd_tryEncrypted___ERROR
call fcn.14000b8b0
cmp dword [rbx + 0x10], 0
je 0x1400ae91e
lea rcx, str.Decrypting_additional_blob_n
call fcn.14000b8b0
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 0x1400ae912
lea rcx, str.___UnkBlob_______:
call fcn.14000b8b0
mov edx, dword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
call fcn.140011c68
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000b8b0
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400ae91e
lea rcx, str.ERROR_vwxeflvcvault_crEd_tryEncrypted___ERROR
call fcn.14000b8b0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret
Function at 0x1400b47f0
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x10], edx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
xor esi, esi
mov r12, r9
mov rdi, r8
lea r13d, [rsi + 0x10]
test ecx, ecx
je 0x1400b489b
test byte [r8], 0xf
jne 0x1400b4887
xor ebx, ebx
lea esi, [r13 - 0xf]
cmp dword [r8], ebx
jbe 0x1400b489b
test esi, esi
je 0x1400b49d4
mov rcx, qword [rdi + 8]
lea r8, [rbp - 0x49]
mov r14d, ebx
lea rdx, [rbp + 0x6f]
add rcx, r14
call qword [sym.imp.ADVAPI32.dll_SystemFunction026]
xor esi, esi
test eax, eax
setns sil
test eax, eax
js 0x1400b4872
mov rax, qword [rdi + 8]
movups xmm0, xmmword [rbp - 0x49]
movdqu xmmword [rbx + rax], xmm0
jmp 0x1400b487e
lea rcx, str.ERROR_vwxeflvclsadump_dCShAdoW_encode_sensitive_value___ERROR
call fcn.14000b8b0
add ebx, r13d
cmp ebx, dword [rdi]
jb 0x1400b4837
jmp 0x1400b4893
lea rcx, str.ERROR_vwxeflvclsadump_dCShAdoW_encode_sensitive_value___ERROR
call fcn.14000b8b0
test esi, esi
je 0x1400b49d4
xor esi, esi
mov dword [rbp - 0x69], r13d
test r12, r12
mov dword [rbp - 0x65], r13d
lea rax, [rbp + 0x1f]
lea r15, [0x14013aa68]
mov qword [rbp - 0x61], rax
mov eax, dword [rdi]
cmovne r15, r12
lea r13d, [rax + 0x14]
cmp qword [r15 + 8], rsi
je 0x1400b49c8
cmp dword [r15], esi
je 0x1400b49c8
test eax, eax
je 0x1400b49c8
cmp qword [rdi + 8], rsi
je 0x1400b49c8
mov edx, r13d
lea ecx, [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x1400b49d4
mov r8d, dword [rdi]
lea rcx, [rax + 0x14]
mov rdx, qword [rdi + 8]
mov r12, rax
call fcn.1400c2660
mov r8d, dword [rdi]
lea r9, [r12 + 0x10]
lea rdx, [r12 + 0x14]
mov dword [rsp + 0x20], 4
mov ecx, 0x8000
call fcn.14000371c
test eax, eax
je 0x1400b49ac
lea ebx, [rsi + 0x10]
mov rcx, r12
mov edx, ebx
call qword [sym.imp.cryptdll.dll_CDGenerateRandomBits]
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Init]
mov r8d, dword [r15]
lea rcx, [rbp - 0x39]
mov rdx, qword [r15 + 8]
call qword [sym.imp.cryptdll.dll_MD5Update]
mov r8d, ebx
lea rcx, [rbp - 0x39]
mov rdx, r12
call qword [sym.imp.cryptdll.dll_MD5Update]
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Final]
lea eax, [r13 - 0x10]
mov dword [rbp - 0x55], eax
lea rdx, [rbp - 0x69]
mov dword [rbp - 0x59], eax
lea rcx, [rbp - 0x59]
lea rax, [r12 + 0x10]
mov qword [rbp - 0x51], rax
call qword [sym.imp.ADVAPI32.dll_SystemFunction032]
test eax, eax
js 0x1400b49ac
mov r12, qword [rdi + 8]
lea esi, [rbx - 0xf]
mov qword [rdi + 8], r14
mov dword [rdi], r13d
jmp 0x1400b49b8
lea rcx, str.ERROR_idwcflvcrpc_drsr_CreateGetNCChangesReply_encrypt___ERROR
call fcn.14000b8b0
test r12, r12
je 0x1400b49d4
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400b49d4
lea rcx, str.ERROR_idwcflvcrpc_drsr_CreateGetNCChangesReply_encrypt___ERROR
call fcn.14000b8b0
lea r11, [rsp + 0xd0]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400b6954
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 0x1400b6a03
mov eax, dword [rsp + 0x38]
test eax, eax
jle 0x1400b69ec
xor ebx, ebx
test eax, eax
jle 0x1400b69e3
mov rsi, rdi
mov rcx, qword [rsi]
lea rdx, str._HTC:
mov r8d, 5
call fcn.1400d1510
test eax, eax
je 0x1400b69bc
inc ebx
add rsi, 8
cmp ebx, dword [rsp + 0x38]
jl 0x1400b6995
jmp 0x1400b69e3
movsxd rax, ebx
xor edx, edx
mov rcx, qword [rdi + rax*8]
lea r8d, [rdx + 0xa]
add rcx, 0xa
call fcn.1400c87d8
mov edx, eax
mov rcx, rbp
mov ebx, eax
call fcn.1400b6a24
test rbx, rbx
jne 0x1400b69f8
lea rcx, str.__No_shared_memory__no_SSO_enabled___n
jmp 0x1400b69f3
lea rcx, str.ERROR_Citrix_SSO_Program_args___ERROR
call fcn.14000b8b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400b6a0f
lea rcx, str.ERROR_Citrix_SSO_Program_args___ERROR
call fcn.14000b8b0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b6a24
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 0x1400b6b6f
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 0x1400b6b56
mov edx, 0x610
lea ecx, [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400b6b4b
mov rcx, rax
lea rdx, [rdi + 0xc]
mov r8d, 0x610
call fcn.1400c2660
mov edx, 0x610
lea r8d, [rsi + 1]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SystemFunction041]
test eax, eax
jne 0x1400b6b36
mov r9d, dword [rbx + 0x400]
lea r10, [rbx + 0x404]
test r9d, r9d
je 0x1400b6b0f
mov rdx, r10
mov r8d, r9d
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 0x1400b6af1
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.14000b8b0
jmp 0x1400b6b42
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___ERROR
call fcn.14000b8b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x1400b6b62
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___ERROR
call fcn.14000b8b0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400b6b7b
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___ERROR
call fcn.14000b8b0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400bd218
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 rdi, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400bd335
lea rdx, [rsp + 0x80]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400bd31e
mov r12d, 0x10000000
lea ecx, [rbp + 0x40]
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x1400bd32a
mov rax, qword [rsp + 0x80]
xor ecx, ecx
test rax, rax
jle 0x1400bd313
lea r14, [rcx + 0x10000000]
mov rbx, rax
sub rbx, rcx
mov rdx, rcx
cmp r14, rax
mov rcx, rdi
cmovl rbx, r12
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400bd2f7
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400bd2f7
mov edx, dword [rsp + 0x78]
mov rcx, rsi
call fcn.1400bd110
add ebp, eax
jmp 0x1400bd303
lea rcx, str.ERROR_vwxeflvcsekurlsa_sk_search_file___ERROR
call fcn.14000b8b0
mov rax, qword [rsp + 0x80]
mov rcx, r14
cmp r14, rax
jl 0x1400bd29f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400bd32a
lea rcx, str.ERROR_vwxeflvcsekurlsa_sk_search_file___ERROR
call fcn.14000b8b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400bd341
lea rcx, str.ERROR_vwxeflvcsekurlsa_sk_search_file___ERROR
call fcn.14000b8b0
mov rbx, qword [rsp + 0x70]
mov eax, ebp
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400d28f8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400d265c
Function at 0x1400d7e54
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1400d7cba
call fcn.1400d3698
mov dword [rax], SQLAllocHandle
call fcn.1400d32d4
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400d7c9c
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1400d7c9c
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x1400d7cec
lock or dword [rax + 0x14], 0x10
jmp 0x1400d7c9c
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1400d7d09
mov rcx, qword [rbp + 0x20]
call fcn.1400dcc2c
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x1400d7d1e
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x1400d7d24
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.1400c6f4c
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1400dd248
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x1400d7d77
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x1400d7c9c
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1400d7de3
mov rcx, qword [rbp + 0x20]
call fcn.1400c6f4c
cmp eax, 0xffffffff
je 0x1400d7dca
mov rcx, qword [rbp + 0x20]
call fcn.1400c6f4c
cmp eax, 0xfffffffe
je 0x1400d7dca
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.1400c6f4c
movsxd rdi, eax
lea r15, [0x140139c60]
mov rcx, rbx
sar rdi, 6
call fcn.1400c6f4c
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x1400d7dd1
lea rax, [0x1401332d0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400d7de3
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x1400d7e19
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1400d7e15
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1400d7e15
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x1400d7e37
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x1400d7e42
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x1400d7ca1
jmp 0x1400d7c68