joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140098708
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 0x14009885c
mov edx, dword [rbp + 0x30]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14009886a
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 0x140098843
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 0x1400987ea
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.1400133e4
jmp 0x1400987ec
mov eax, ebx
test eax, eax
je 0x140098834
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.1400099d8
test eax, eax
je 0x140098814
mov ebx, 1
jmp 0x140098828
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.14000bce4
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140098851
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 0x14009884a
lea rcx, str.ERROR_kuhl_m_crypto_keyutil_export_pkcs8_file___NCryptExportKey_data_:_0x_08x_n
mov edx, eax
call fcn.14000bce4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14009886a
lea rcx, str.ERROR_kuhl_m_crypto_keyutil_export_pkcs8_file___NCryptExportKey_init_:_0x_08x_n
mov edx, eax
call fcn.14000bce4
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 0x140099b0c
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 0x140099bde
cmp dword [rsp + 0x58], r12d
jle 0x140099bde
movzx ebx, r12w
lea r13, [0x1400ead00]
cmp bx, 0x13
jae 0x140099bb7
mov rcx, qword [r15]
movzx r14d, bx
shl r14, 5
mov rdx, qword [r14 + r13 + 0x10]
call fcn.1400c24ac
mov edi, r12d
test eax, eax
sete dil
test edi, edi
je 0x140099bb0
mov rax, qword [r14 + r13]
test rax, rax
je 0x140099ba1
mov ecx, dword [rsp + 0x58]
lea rdx, [r15 + 8]
dec ecx
call rax
mov ebp, eax
jmp 0x140099bb0
mov ecx, dword [r14 + r13 + 8]
xor r8d, r8d
xor edx, edx
call fcn.14000a36c
inc bx
test edi, edi
je 0x140099b60
test edi, edi
jne 0x140099bde
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r12w
jne 0x140099bbf
lea r8d, [rax*2 + 2]
mov rdx, rsi
mov ecx, 0x22c003
call fcn.14000a36c
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 0x14009b6bc
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.14000e878
test eax, eax
je 0x14009b84e
cmp dword [rsp + 0x88], 0x90
jbe 0x14009b84e
mov edx, dword [rsp + 0x88]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14009b84e
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.14000e878
test eax, eax
je 0x14009b839
lea rcx, str._nSupplemental_Credentials:_n
call fcn.14000bce4
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 0x14009b845
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 0x14009b7e3
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.140004ab4
jmp 0x14009b7f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_crypto_genericAES128Decrypt___CryptAcquireContext__0x_08x__n
mov edx, eax
call fcn.14000bce4
mov eax, ebx
test eax, eax
je 0x14009b82e
mov eax, dword [rdi + 4]
cmp eax, dword [rsi + 0xc]
jne 0x14009b823
mov rdx, qword [rsp + 0x40]
lea rcx, [rdi + 0xc]
mov r8d, eax
mov ebx, 1
call fcn.1400c3ee0
mov rcx, rdi
call fcn.1400b1d94
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14009b845
lea rcx, str.ERROR_kuhl_m_lsadump_getSupplementalCreds___kull_m_registry_RegQueryValueEx_data__n
call fcn.14000bce4
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 0x1400a958c
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 0x1400a95cc
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 0x1400a961b
mov qword [r11], rdi
mov rcx, rdi
mov dword [rsi], 0x90625062
shr rcx, 0x28
call fcn.1400a9554
mov rcx, rdi
movzx ebx, al
shr rcx, 0x24
or ebx, 0x1d00
shl ebx, 8
call fcn.1400a9554
mov rcx, rdi
movzx eax, al
shr rcx, 0x20
or ebx, eax
shl ebx, 8
call fcn.1400a9554
mov rcx, rdi
movzx eax, al
shr rcx, 0x1c
or ebx, eax
mov dword [rsi + 4], ebx
call fcn.1400a9554
mov rcx, rdi
movzx ebx, al
shr rcx, 0x18
shl ebx, 8
call fcn.1400a9554
mov rcx, rdi
movzx eax, al
shr rcx, 0x14
or ebx, eax
shl ebx, 8
call fcn.1400a9554
mov rcx, rdi
movzx eax, al
shr rcx, 0x10
or ebx, eax
shl ebx, 8
call fcn.1400a9554
mov rcx, rdi
movzx eax, al
shr rcx, 0xc
or ebx, eax
mov dword [rsi + 8], ebx
call fcn.1400a9554
mov rcx, rdi
movzx ebx, al
shr rcx, 8
shl ebx, 8
call fcn.1400a9554
mov rcx, rdi
movzx eax, al
shr rcx, 4
or ebx, eax
shl ebx, 8
call fcn.1400a9554
mov cl, dil
movzx eax, al
or ebx, eax
shl ebx, 8
call fcn.1400a9554
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 0x1400a970c
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 0x1400a9760
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 0x1400a973e
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], DeleteFileA
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 0x1400afe18
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.1400c3610
test rax, rax
je 0x1400afec7
mov edx, dword [rbx + 0x20]
cmp edx, 0x14
jb 0x1400b003a
mov rcx, qword [rbx + 0x28]
mov rax, qword [rcx + 4]
cmp rax, qword [0x1400e0b98]
jne 0x1400b003a
mov rax, qword [rcx + 0xc]
cmp rax, qword [0x1400e0ba0]
jne 0x1400b003a
lea rax, [0x1400dfcc0]
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 0x1400b0026
lea rcx, str.___CredentialBlob:
jmp 0x1400afffd
mov rcx, qword [rbx + 8]
lea rdx, str.AppSense_DataNow_
call fcn.1400c3610
test rax, rax
je 0x1400b003a
lea rcx, str._Ivanti_FileDirector_credential_blob__n
call fcn.14000bce4
cmp dword [rbx + 0x20], 0x14
jb 0x1400b003a
mov rbx, qword [rbx + 0x28]
lea rcx, str.AppN_DN_Win
mov rdx, rbx
call fcn.1400d7990
test eax, eax
jne 0x1400b003a
cmp dword [rbx + 0xc], eax
je 0x1400affa2
lea rcx, str.Decrypting_additional_blob_n
call fcn.14000bce4
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 0x1400aff8e
lea rcx, str.___CredentialBlob:
call fcn.14000bce4
mov edx, dword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
call fcn.140012640
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000bce4
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400affa2
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.14000bce4
cmp dword [rbx + 0x10], 0
je 0x1400b003a
lea rcx, str.Decrypting_additional_blob_n
call fcn.14000bce4
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 0x1400b0026
lea rcx, str.___UnkBlob_______:
call fcn.14000bce4
mov edx, dword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
call fcn.140012640
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000bce4
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400b003a
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.14000bce4
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret
Function at 0x1400b8350
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 0x1400b83ff
mov eax, dword [rsp + 0x38]
test eax, eax
jle 0x1400b83e8
xor ebx, ebx
test eax, eax
jle 0x1400b83df
mov rsi, rdi
mov rcx, qword [rsi]
lea rdx, str._HTC:
mov r8d, 5
call fcn.1400c3aac
test eax, eax
je 0x1400b83b8
inc ebx
add rsi, 8
cmp ebx, dword [rsp + 0x38]
jl 0x1400b8391
jmp 0x1400b83df
movsxd rax, ebx
xor edx, edx
mov rcx, qword [rdi + rax*8]
lea r8d, [rdx + 0xa]
add rcx, 0xa
call fcn.1400c4a00
mov rcx, rbp
mov edx, eax
mov ebx, eax
call fcn.1400b8428
test rbx, rbx
jne 0x1400b83f4
lea rcx, str.__No_shared_memory__no_SSO_enabled___n
jmp 0x1400b83ef
lea rcx, str.ERROR_Citrix_SSO_Program_args___No_command_module_
call fcn.14000bce4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400b8413
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_Citrix_SSO_Program_args___CommandLineToArgvW__0x_08x__n
mov edx, eax
call fcn.14000bce4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b8428
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 0x1400b85cd
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 0x1400b85ac
lea ecx, [rsi + 0x40]
mov edx, 0x610
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400b85a1
mov rcx, rax
lea eax, [rsi + 0xc]
lea r8, [rdi + 0xc]
lea edx, [rax + 0x74]
movups xmm0, xmmword [r8]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [r8 + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [r8 + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [r8 + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [r8 + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [r8 + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [r8 + 0x60]
movups xmmword [rcx + 0x60], xmm0
movups xmm1, xmmword [r8 + 0x70]
add rcx, rdx
add r8, rdx
movups xmmword [rcx - 0x10], xmm1
dec rax
jne 0x1400b84c1
movups xmm0, xmmword [r8]
lea r8d, [rax + 1]
mov edx, 0x610
movups xmmword [rcx], xmm0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SystemFunction041]
test eax, eax
jne 0x1400b858a
mov eax, dword [rbx + 0x400]
lea r9, [rbx + 0x404]
test eax, eax
je 0x1400b855c
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 0x1400b8546
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.14000bce4
jmp 0x1400b8598
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___RtlDecryptMemory:_0x_08x_n
mov edx, eax
call fcn.14000bce4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x1400b85c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___MapViewOfFile__0x_08x__n
mov edx, eax
call fcn.14000bce4
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400b85e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___DuplicateHandle__0x_08x__n
mov edx, eax
call fcn.14000bce4
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400beeac
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 0x1400beff0
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400befd1
mov r12d, 0x10000000
lea ecx, [rbp + 0x40]
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400befe5
mov rax, qword [rsp + 0x80]
xor ecx, ecx
test rax, rax
jle 0x1400befc6
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 0x1400bef9e
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 0x1400bef8f
mov edx, dword [rsp + 0x78]
mov rcx, rdi
call fcn.1400bed98
add ebp, eax
jmp 0x1400befb2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_sekurlsa_sk_search_file___ReadFile__0x_08x__n
jmp 0x1400befab
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.14000bce4
mov rax, qword [rsp + 0x80]
mov rcx, r14
cmp r14, rax
jl 0x1400bef37
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400befe5
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.14000bce4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400bf004
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.14000bce4
mov eax, ebp
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180001110
Capabilities:
Allocate thread local storage
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x250
mov rax, qword [0x18003e008]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp edx, 1
jne 0x180001293
mov qword [rsp + 0x270], rdi
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor ebp, ebp
lea rbx, [0x18003fc20]
mov edi, ebp
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
inc edi
mov dword [rbx], eax
lea rbx, [rbx + 4]
cmp edi, 0x9b
jb 0x180001151
xor edx, edx
mov qword [rsp + 0x268], rsi
mov r8d, 0x200
lea rcx, [rsp + 0x40]
call fcn.180002440
mov r8d, 0x200
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x18000120b
lea rax, [rsp + 0x40]
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], bpl
jne 0x1800011a4
movsxd rax, esi
lea rbx, [rsp + 0x40]
add rbx, rax
cmp byte [rbx], 0x5c
je 0x1800011d2
nop dword [rax]
lea rax, [rsp + 0x40]
cmp rbx, rax
je 0x1800011dc
dec rbx
cmp byte [rbx], 0x5c
jne 0x1800011c0
lea rax, [rsp + 0x40]
cmp rbx, rax
jne 0x1800011e3
lea rdi, [rsp + 0x41]
jmp 0x180001210
lea rax, [rsp + 0x40]
sub eax, ebx
add esi, eax
lea eax, [rsi + 1]
movsxd rcx, eax
call fcn.18000383c
movsxd r8, esi
lea rdx, [rbx + 1]
mov rcx, rax
mov rdi, rax
call fcn.1800028a0
jmp 0x180001210
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x268]
lea rdx, str.svchost.exe
sub rdx, rdi
movzx ecx, byte [rdi]
movzx eax, byte [rdi + rdx]
sub ecx, eax
jne 0x180001234
inc rdi
test eax, eax
jne 0x180001222
mov rdi, qword [rsp + 0x270]
test ecx, ecx
jne 0x1800012c8
lea r8, str.MY_MUTEX_NAME
xor edx, edx
mov ecx, 0x1f0001
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
test rax, rax
jne 0x1800012c8
lea r8, str.MY_MUTEX_NAME
xor ecx, ecx
lea edx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
test rax, rax
je 0x1800012c8
mov qword [rsp + 0x28], rbp
lea r8, section..text
xor r9d, r9d
mov dword [rsp + 0x20], ebp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x1800012c8
test edx, edx
jne 0x1800012c8
xor ebp, ebp
lea rbx, [0x18003fc20]
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsFree]
inc ebp
lea rbx, [rbx + 4]
cmp ebp, 0x9b
jb 0x1800012a0
mov rcx, qword [0x18003fe90]
test rcx, rcx
je 0x1800012c8
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180001310
mov rbx, qword [rsp + 0x278]
add rsp, 0x250
pop rbp
ret
Function at 0x140002060
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000215b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002163
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x14000219a
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002170
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021c5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x1400021eb
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x1400021d0
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a310
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a355
xor al, al
jmp 0x14000a3a2
cmp word [rbx], 0
je 0x14000a36d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a360
cmp word [rsp + 0x30], 0
je 0x14000a39b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a3c3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a380
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b520
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000fb94
int3