joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008f84c
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
lea rax, [rsp + 0x78]
mov r13, r9
lea r8, str.SafenetSafeNetKSPSlots
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov rdi, rcx
mov dword [rsp + 0x20], 0x20119
call fcn.14000e578
test eax, eax
je 0x14008fa8a
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x74]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x28], rax
call fcn.14000e800
test eax, eax
je 0x14008fa69
mov eax, dword [rsp + 0x70]
mov ecx, 0x40
inc eax
mov dword [rsp + 0x70], eax
lea edx, [rax + 1]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14008fa7d
xor esi, esi
cmp dword [rsp + 0x74], esi
jbe 0x14008fa5e
mov ecx, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
lea rax, [rbp - 0x80]
mov dword [rbp - 0x80], ecx
mov r9, rbx
mov r8d, esi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.14000ecb8
test eax, eax
je 0x14008fa52
lea rcx, str._n_____s_
mov rdx, rbx
call fcn.14000bf0c
mov rcx, rbx
call fcn.1400129ec
mov r14, rax
test rax, rax
je 0x14008fa52
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rbp - 0x60]
mov r12d, eax
call qword [sym.imp.cryptdll.dll_MD5Init]
mov r15d, 0x5b6
lea rcx, [rbp - 0x60]
mov r8d, r12d
mov rdx, r14
call qword [sym.imp.cryptdll.dll_MD5Update]
dec r15
jne 0x14008f980
lea rcx, [rbp - 0x60]
call qword [sym.imp.cryptdll.dll_MD5Final]
xor ecx, ecx
lea edx, [rcx + 0x10]
lea rax, [0x1400e7e68]
mov al, byte [rcx + rax]
inc rcx
xor al, byte [rbp + rcx - 9]
mov byte [rbp + rcx - 0x71], al
dec rdx
jne 0x14008f9a4
xor r8d, r8d
lea rcx, [rbp - 0x70]
lea edx, [r8 + 0x10]
call fcn.140012b94
lea rcx, [0x14010b99c]
call fcn.14000bf0c
mov rdx, qword [rsp + 0x78]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8, rbx
mov rcx, rdi
mov dword [rsp + 0x20], 0x20019
call fcn.14000e578
test eax, eax
je 0x14008fa35
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000bf0c
mov r9d, dword [rbp + 0x50]
mov rdx, qword [rbp - 0x78]
lea r8, [rbp - 0x70]
mov rcx, rdi
mov qword [rsp + 0x20], r13
call fcn.14008faac
mov rdx, qword [rbp - 0x78]
mov rcx, rdi
call fcn.14000f08c
jmp 0x14008fa49
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x14010b9a0]
mov edx, eax
call fcn.14000bf0c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
inc esi
cmp esi, dword [rsp + 0x74]
jb 0x14008f916
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14008fa7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_dpapi_safenet_ksp_registryparser___kull_m_registry_RegQueryInfoKey__0x_08x__n
mov edx, eax
call fcn.14000bf0c
mov rdx, qword [rsp + 0x78]
mov rcx, rdi
call fcn.14000f08c
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14009a16c
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
xor ebx, ebx
lea rax, [rbp + 0x30]
mov r14, rdx
mov dword [rsp + 0x38], ebx
mov qword [r11 - 0x38], rax
lea r8, str.PKCS8_PRIVATEKEY
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x28], ebx
mov qword [r11 - 0x48], rbx
mov rsi, rcx
call qword [sym.imp.ncrypt.dll_NCryptExportKey]
test eax, eax
jne 0x14009a2c0
mov edx, dword [rbp + 0x30]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14009a2ce
lea rax, [rbp + 0x30]
mov dword [rsp + 0x38], ebx
lea r8, str.PKCS8_PRIVATEKEY
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x30]
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ncrypt.dll_NCryptExportKey]
test eax, eax
jne 0x14009a2a7
mov esi, dword [rbp + 0x30]
lea rax, [rbp + 0x38]
xor r9d, r9d
mov r8d, 0x80000001
mov rcx, rdi
mov edx, esi
mov dword [rbp + 0x38], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x14009a24e
lea rax, [rbp + 0x38]
lea r9, [rbp - 0x10]
lea rcx, str.PRIVATE_KEY
mov r8d, esi
mov rdx, rdi
mov qword [rsp + 0x20], rax
call fcn.140013664
jmp 0x14009a250
mov eax, ebx
test eax, eax
je 0x14009a298
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rdx, qword [rbp - 0x10]
mov rcx, r14
mov r8d, eax
call fcn.140009bbc
test eax, eax
je 0x14009a278
mov ebx, 1
jmp 0x14009a28c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_crypto_keyutil_export_pkcs8_file___kull_m_file_writeData__0x_08x__n
mov edx, eax
call fcn.14000bf0c
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14009a2b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_crypto_keyutil_export_pkcs8_file___kull_m_string_EncodeB64_headers__0x_08x__n
jmp 0x14009a2ae
lea rcx, str.ERROR_kuhl_m_crypto_keyutil_export_pkcs8_file___NCryptExportKey_data_:_0x_08x_n
mov edx, eax
call fcn.14000bf0c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14009a2ce
lea rcx, str.ERROR_kuhl_m_crypto_keyutil_export_pkcs8_file___NCryptExportKey_init_:_0x_08x_n
mov edx, eax
call fcn.14000bf0c
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret
Function at 0x14009b56c
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
lea rdx, [rax + 0x10]
xor r12d, r12d
mov rsi, rcx
mov ebp, r12d
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, r12d
mov r15, rax
test rax, rax
je 0x14009b63e
cmp dword [rsp + 0x58], r12d
jle 0x14009b63e
movzx ebx, r12w
lea r13, [0x1400e8530]
cmp bx, 0x13
jae 0x14009b617
mov rcx, qword [r15]
movzx r14d, bx
shl r14, 5
mov rdx, qword [r14 + r13 + 0x10]
call fcn.1400c42d8
mov edi, r12d
test eax, eax
sete dil
test edi, edi
je 0x14009b610
mov rax, qword [r14 + r13]
test rax, rax
je 0x14009b601
mov ecx, dword [rsp + 0x58]
lea rdx, [r15 + 8]
dec ecx
call rax
mov ebp, eax
jmp 0x14009b610
mov ecx, dword [r14 + r13 + 8]
xor r8d, r8d
xor edx, edx
call fcn.14000a558
inc bx
test edi, edi
je 0x14009b5c0
test edi, edi
jne 0x14009b63e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r12w
jne 0x14009b61f
lea r8d, [rax*2 + 2]
mov rdx, rsi
mov ecx, 0x22c003
call fcn.14000a558
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
mov eax, ebp
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14009d124
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 r14, r8
mov qword [r11 - 0x38], rax
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.14000eadc
test eax, eax
je 0x14009d2b6
cmp dword [rsp + 0x88], 0x90
jbe 0x14009d2b6
mov edx, dword [rsp + 0x88]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14009d2b6
lea rax, [rsp + 0x88]
lea r8, str.SupplementalCredentials
mov rdx, rdi
mov qword [rsp + 0x30], rax
mov rcx, rbp
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rbx
call fcn.14000eadc
test eax, eax
je 0x14009d2a1
lea rcx, str._nSupplemental_Credentials:_n
call fcn.14000bf0c
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 0x14009d2ad
mov ebp, dword [rsp + 0x88]
lea r9d, [rbx + 0x18]
lea rcx, [rsp + 0x48]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
add ebp, 0xffffffe0
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14009d24b
lea rcx, [rsp + 0x48]
lea rax, [rdi + 4]
lea r8, [rsi + 0x20]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, [rsi + 0x10]
mov r9d, ebp
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.140004b44
jmp 0x14009d261
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_crypto_genericAES128Decrypt___CryptAcquireContext__0x_08x__n
mov edx, eax
call fcn.14000bf0c
mov eax, ebx
test eax, eax
je 0x14009d296
mov eax, dword [rdi + 4]
cmp eax, dword [rsi + 0xc]
jne 0x14009d28b
mov rdx, qword [rsp + 0x40]
lea rcx, [rdi + 0xc]
mov r8d, eax
mov ebx, 1
call fcn.1400c5d20
mov rcx, rdi
call fcn.1400b3ab0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14009d2ad
lea rcx, str.ERROR_kuhl_m_lsadump_getSupplementalCreds___kull_m_registry_RegQueryValueEx_data__n
call fcn.14000bf0c
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 0x1400ab26c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx eax, r8w
movzx r10d, dl
mov r11, r9
shl r10d, 0x10
xor r9b, r9b
mov rsi, rcx
or r10d, eax
movabs rax, 0x2004000000
add r10d, r10d
movsxd rdi, r10d
xor r10b, r10b
or rdi, rax
xor r8b, r8b
movzx edx, r8b
mov rax, rdi
inc r8b
lea ecx, [rdx + 0xd]
shr rax, cl
lea ecx, [rdx + 1]
and al, 1
xor r10b, al
mov rax, rdi
shr rax, cl
and al, 1
xor r9b, al
cmp r8b, 0xc
jb 0x1400ab2ac
movzx eax, r10b
and eax, 1
shl eax, 0x19
movsxd rcx, eax
xor eax, eax
test r9b, r9b
sete al
and eax, 1
or rcx, rax
or rdi, rcx
test r11, r11
je 0x1400ab2fb
mov qword [r11], rdi
mov rcx, rdi
mov dword [rsi], 0x90625062
shr rcx, 0x28
call fcn.1400ab234
mov rcx, rdi
movzx ebx, al
shr rcx, 0x24
or ebx, 0x1d00
shl ebx, 8
call fcn.1400ab234
mov rcx, rdi
movzx eax, al
shr rcx, 0x20
or ebx, eax
shl ebx, 8
call fcn.1400ab234
mov rcx, rdi
movzx eax, al
shr rcx, 0x1c
or ebx, eax
mov dword [rsi + 4], ebx
call fcn.1400ab234
mov rcx, rdi
movzx ebx, al
shr rcx, 0x18
shl ebx, 8
call fcn.1400ab234
mov rcx, rdi
movzx eax, al
shr rcx, 0x14
or ebx, eax
shl ebx, 8
call fcn.1400ab234
mov rcx, rdi
movzx eax, al
shr rcx, 0x10
or ebx, eax
shl ebx, 8
call fcn.1400ab234
mov rcx, rdi
movzx eax, al
shr rcx, 0xc
or ebx, eax
mov dword [rsi + 8], ebx
call fcn.1400ab234
mov rcx, rdi
movzx ebx, al
shr rcx, 8
shl ebx, 8
call fcn.1400ab234
mov rcx, rdi
movzx eax, al
shr rcx, 4
or ebx, eax
shl ebx, 8
call fcn.1400ab234
mov cl, dil
movzx eax, al
or ebx, eax
shl ebx, 8
call fcn.1400ab234
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 0x1400ab3ec
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
mov byte [rax + 8], 0
xor eax, eax
mov rbp, rdx
mov r10, rcx
movabs r8, 0xff80000000000000
xor r11b, r11b
mov word [rsp + 0x11], ax
mov byte [rsp + 0x13], al
movzx esi, r11b
mov rdx, rbp
lea r9, [rsp + 0x10]
mov ebx, esi
neg ebx
lea ecx, [rbx*4 + 0x24]
shr rdx, cl
xor cl, cl
and dl, 0xf
xor dil, dil
mov al, dl
shr al, cl
inc cl
and al, 1
xor byte [r9], al
inc r9
xor dil, al
cmp cl, 4
jb 0x1400ab440
lea eax, [rsi + rsi*4]
movzx edx, dl
mov ecx, Ordinal_54
sub ecx, eax
lea eax, [rbx + 0xa]
inc r11b
shl rdx, cl
lea ecx, [rax + rax*4]
movzx eax, dil
shl rax, cl
or rdx, rax
or r8, rdx
cmp r11b, 0xa
jb 0x1400ab41e
movzx eax, byte [rsp + 0x12]
movzx ecx, byte [rsp + 0x13]
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
add ecx, ecx
or ecx, eax
movzx eax, byte [rsp + 0x11]
mov dword [r10], 0x148040
add ecx, ecx
or ecx, eax
movzx eax, byte [rsp + 0x10]
add ecx, ecx
or ecx, eax
lea eax, [rcx + rcx]
cdqe
or r8, rax
mov rax, r8
mov dword [r10 + 8], r8d
shr rax, 0x20
mov dword [r10 + 4], eax
pop rdi
ret
Function at 0x1400b1b04
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
mov rcx, qword [rcx + 8]
lea rdx, str.Microsoft_WinInet_
call fcn.1400c5448
test rax, rax
je 0x1400b1bb3
mov edx, dword [rbx + 0x20]
cmp edx, 0x14
jb 0x1400b1d26
mov rcx, qword [rbx + 0x28]
mov rax, qword [rcx + 4]
cmp rax, qword [0x1400de628]
jne 0x1400b1d26
mov rax, qword [rcx + 0xc]
cmp rax, qword [0x1400de630]
jne 0x1400b1d26
lea rax, [0x1400dd770]
mov qword [rbp - 0x18], rcx
mov dword [rbp - 0x20], edx
mov qword [rbp - 8], rax
lea rax, [rbp - 0x30]
lea r8, [rbp - 0x10]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea rcx, [rbp - 0x20]
xor r9d, r9d
xor edx, edx
mov dword [rbp - 0x10], SQLSetEnvAttr
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1400b1d12
lea rcx, str.___CredentialBlob:
jmp 0x1400b1ce9
mov rcx, qword [rbx + 8]
lea rdx, str.AppSense_DataNow_
call fcn.1400c5448
test rax, rax
je 0x1400b1d26
lea rcx, str._Ivanti_FileDirector_credential_blob__n
call fcn.14000bf0c
cmp dword [rbx + 0x20], 0x14
jb 0x1400b1d26
mov rbx, qword [rbx + 0x28]
lea rcx, str.AppN_DN_Win
mov rdx, rbx
call fcn.1400d5c70
test eax, eax
jne 0x1400b1d26
cmp dword [rbx + 0xc], eax
je 0x1400b1c8e
lea rcx, str.Decrypting_additional_blob_n
call fcn.14000bf0c
mov eax, dword [rbx + 0xc]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], eax
lea rax, [rbx + 0x14]
xor r9d, r9d
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x30]
xor r8d, r8d
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1400b1c7a
lea rcx, str.___CredentialBlob:
call fcn.14000bf0c
mov edx, dword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
call fcn.1400128c8
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000bf0c
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400b1c8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_vault_cred_tryEncrypted___CryptUnprotectData__0x_08x__n
mov edx, eax
call fcn.14000bf0c
cmp dword [rbx + 0x10], 0
je 0x1400b1d26
lea rcx, str.Decrypting_additional_blob_n
call fcn.14000bf0c
mov eax, dword [rbx + 0x10]
lea rcx, [rbx + 0x14]
mov dword [rbp - 0x20], eax
mov eax, dword [rbx + 0xc]
xor r9d, r9d
add rcx, rax
lea rax, [rbp - 0x30]
xor r8d, r8d
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x20]
xor edx, edx
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1400b1d12
lea rcx, str.___UnkBlob_______:
call fcn.14000bf0c
mov edx, dword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
call fcn.1400128c8
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000bf0c
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400b1d26
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_vault_cred_tryEncrypted___CryptUnprotectData__0x_08x__n
mov edx, eax
call fcn.14000bf0c
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret
Function at 0x1400ba16c
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 0x1400ba21b
mov eax, dword [rsp + 0x38]
test eax, eax
jle 0x1400ba204
xor ebx, ebx
test eax, eax
jle 0x1400ba1fb
mov rsi, rdi
mov rcx, qword [rsi]
lea rdx, str._HTC:
mov r8d, 5
call fcn.1400c58e4
test eax, eax
je 0x1400ba1d4
inc ebx
add rsi, 8
cmp ebx, dword [rsp + 0x38]
jl 0x1400ba1ad
jmp 0x1400ba1fb
movsxd rax, ebx
xor edx, edx
mov rcx, qword [rdi + rax*8]
lea r8d, [rdx + 0xa]
add rcx, 0xa
call fcn.1400c67cc
mov rcx, rbp
mov edx, eax
mov ebx, eax
call fcn.1400ba244
test rbx, rbx
jne 0x1400ba210
lea rcx, str.__No_shared_memory__no_SSO_enabled___n
jmp 0x1400ba20b
lea rcx, str.ERROR_Citrix_SSO_Program_args___No_command_module_
call fcn.14000bf0c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400ba22f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_Citrix_SSO_Program_args___CommandLineToArgvW__0x_08x__n
mov edx, eax
call fcn.14000bf0c
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ba244
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 rdx, rbx
mov dword [rsp + 0x30], esi
mov r8, rax
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400ba406
mov rcx, qword [rsp + 0x60]
lea edx, [rsi + 4]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], 0x61c
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
je 0x1400ba3e5
lea ecx, [rsi + 0x40]
mov edx, 0x610
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400ba3da
lea rdx, [rdi + 0xc]
mov r8, rax
mov rcx, rdx
or rcx, rax
and ecx, 0xf
jne 0x1400ba342
lea eax, [rsi + 0xc]
lea ecx, [rax + 0x74]
movaps xmm0, xmmword [rdx]
movaps xmmword [r8], xmm0
movaps xmm1, xmmword [rdx + 0x10]
movaps xmmword [r8 + 0x10], xmm1
movaps xmm0, xmmword [rdx + 0x20]
movaps xmmword [r8 + 0x20], xmm0
movaps xmm1, xmmword [rdx + 0x30]
movaps xmmword [r8 + 0x30], xmm1
movaps xmm0, xmmword [rdx + 0x40]
movaps xmmword [r8 + 0x40], xmm0
movaps xmm1, xmmword [rdx + 0x50]
movaps xmmword [r8 + 0x50], xmm1
movaps xmm0, xmmword [rdx + 0x60]
movaps xmmword [r8 + 0x60], xmm0
movaps xmm1, xmmword [rdx + 0x70]
add r8, rcx
add rdx, rcx
movaps xmmword [r8 - 0x10], xmm1
dec rax
jne 0x1400ba2e8
movaps xmm0, xmmword [rdx]
movaps xmmword [r8], xmm0
jmp 0x1400ba350
mov r8d, 0x610
mov rcx, rax
call fcn.1400c5d20
mov edx, 0x610
mov r8d, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SystemFunction041]
test eax, eax
jne 0x1400ba3c3
mov eax, dword [rbx + 0x400]
lea r9, [rbx + 0x404]
test eax, eax
je 0x1400ba395
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
dec r8
jne 0x1400ba37f
mov eax, dword [rbx + 0x604]
lea r8, [rbx + 0x200]
lea rcx, str._Username__:__s_n_Domain____:__s_n_Password__:__.s_n_flags_type:_0x_08x_n
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, dword [rbx + 0x400]
mov rdx, rbx
call fcn.14000bf0c
jmp 0x1400ba3d1
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___RtlDecryptMemory:_0x_08x_n
mov edx, eax
call fcn.14000bf0c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x1400ba3f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___MapViewOfFile__0x_08x__n
mov edx, eax
call fcn.14000bf0c
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400ba41a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___DuplicateHandle__0x_08x__n
mov edx, eax
call fcn.14000bf0c
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400c0cb8
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
mov edx, 0x80000000
and qword [rax - 0x38], rbp
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 0x1400c0dfc
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400c0ddd
mov r12d, 0x10000000
lea ecx, [rbp + 0x40]
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400c0df1
mov rax, qword [rsp + 0x80]
xor ecx, ecx
test rax, rax
jle 0x1400c0dd2
lea r14, [rcx + 0x10000000]
mov rbx, rax
mov rdx, rcx
sub rbx, 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 0x1400c0daa
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 0x1400c0d9b
mov edx, dword [rsp + 0x78]
mov rcx, rdi
call fcn.1400c0b90
add ebp, eax
jmp 0x1400c0dbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_sekurlsa_sk_search_file___ReadFile__0x_08x__n
jmp 0x1400c0db7
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.14000bf0c
mov rax, qword [rsp + 0x80]
mov rcx, r14
cmp r14, rax
jl 0x1400c0d43
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400c0df1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_sekurlsa_sk_search_file___GetFileSizeEx__0x_08x__n
mov edx, eax
call fcn.14000bf0c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400c0e10
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_sekurlsa_sk_search_file___CreateFile__0x_08x__n
mov edx, eax
call fcn.14000bf0c
mov eax, ebp
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140001053
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001097
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140001092
cmp rbx, r11
jae 0x140001097
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140001080
cmp rbx, r11
jb 0x14000109b
xor eax, eax
jmp 0x1400010a7
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001a70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor esi, esi
mov ebp, 1
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 0x40000000
mov r8d, ebp
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 2
xor bl, bl
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r9, [rsp + 0x58]
lea rdx, [0x1400360c0]
cmp rax, 0xffffffffffffffff
mov r8d, 0x8b8e7
mov rcx, rax
mov rdi, rax
mov qword [rsp + 0x20], rsi
cmove ebx, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
test eax, eax
cmovne ebx, ebp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140001b00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
xor esi, esi
mov ebp, 1
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 0x40000000
mov r8d, ebp
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 2
xor bl, bl
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r9, [rsp + 0x58]
lea rdx, [0x1400c19b0]
cmp rax, 0xffffffffffffffff
mov r8d, 0x29000
mov rcx, rax
mov rdi, rax
mov qword [rsp + 0x20], rsi
cmove ebx, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
test eax, eax
cmovne ebx, ebp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret