joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400027a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1400027c8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400027ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400027f0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002849
test ecx, ecx
jle 0x140002829
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call fcn.14000521f
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002849
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002849
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140002870
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002892
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400028a8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400028c4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400028c6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002902
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.14000521f
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000299e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000293d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000297e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000299e
cmp rbx, rax
ja 0x140002950
test rbx, rbx
je 0x14000299e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140002dc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002ded
xor eax, eax
jmp 0x140002f59
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002e27
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002e27
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002f59
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002f4c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002e6a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002e95
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002f51
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002f04
sub eax, 1
je 0x140002f04
cmp eax, 2
jne 0x140002f4c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002f51
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002f32
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140002f4c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002f51
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400043c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400032d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400033a3
cmp byte [rcx + 0x71], 0
je 0x1400033a3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000339f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003364
sub eax, 1
je 0x140003368
cmp eax, 2
jne 0x14000339f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400043c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003396
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000339f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000334c
xor al, al
jmp 0x14000334c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400043c0
add rsp, 0x60
pop rbx
ret

Function at 0x140004d54
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004d9e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004d9e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004d9e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004d9e
cmp dword [rcx + 0x84], 0xe
jbe 0x140004d9e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004da0
xor al, al
add rsp, 0x28
ret
Function at 0x140001014
Capabilities:
Encrypt data using dpapi
Read file via mapping

Disassembly:
jmp 0x1400018f0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov r8, rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140001a7c
mov qword [rsp + 0x20], 0x61c
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140001a5b
mov edx, 0x610
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140001a4e
mov rax, qword [rsp + 0x48]
add rax, 0xc
mov r8d, 0x610
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 1
mov edx, 0x610
mov rcx, qword [rsp + 0x40]
call sub.CRYPT32.dll_CryptUnprotectMemory
test eax, eax
je 0x140001a2f
mov rax, qword [rsp + 0x40]
add rax, 0x404
mov rcx, qword [rsp + 0x40]
mov edx, dword [rcx + 0x400]
mov rcx, rax
call fcn.14000100f
mov rax, qword [rsp + 0x40]
add rax, 0x404
mov rcx, qword [rsp + 0x40]
add rcx, 0x200
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x40]
mov r8d, dword [r8 + 0x604]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x40]
mov r9d, dword [rax + 0x400]
mov r8, rcx
lea rcx, str._Username__:__s_n_Domain____:__s_n_Password__:__.s_n_flags_type:_0x_08x_n
call fcn.140001280
jmp 0x140001a43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___CryptUnprotectMemory__0x_08x__n
call fcn.140001280
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x140001a6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___MapViewOfFile__0x_08x__n
call fcn.140001280
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001a90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___DuplicateHandle__0x_08x__n
call fcn.140001280
add rsp, 0x68
ret
Function at 0x140001069
Capabilities:
Read file via mapping

Disassembly:
jmp 0x140003840
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
mov edx, 0x10
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x58]
mov qword [rcx], rax
mov rax, qword [rsp + 0x58]
cmp qword [rax], 0
je 0x14000395d
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx]
mov qword [rcx], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
cmp qword [rax], 0
je 0x140003949
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 8], rcx
cmp qword [rsp + 0x38], 0
je 0x140003949
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rax, qword [rax + 8]
cmp dword [rax], 0x504d444d
jne 0x140003939
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rax, qword [rax + 8]
movzx eax, word [rax + 4]
cmp eax, 0xa793
jne 0x140003939
mov dword [rsp + 0x34], 1
jmp 0x140003941
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14000395d
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
call fcn.1400011d1
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x1400010ff
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x1400017d0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x24]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 8]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400018c4
cmp dword [rsp + 0x24], 0
jle 0x1400018ab
mov dword [rsp + 0x20], 0
jmp 0x14000182b
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jge 0x140001895
movsxd rax, dword [rsp + 0x20]
mov r8d, 5
lea rdx, str._HTC:
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + rax*8]
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp
test eax, eax
jne 0x140001893
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx + rax*8]
add rax, 0xa
mov r8d, 0xa
xor edx, edx
mov rcx, rax
call sub.api_ms_win_crt_convert_l1_1_0.dll_wcstoul
mov eax, eax
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.140001014
jmp 0x140001895
jmp 0x140001821
cmp qword [rsp + 0x30], 0
jne 0x1400018a9
lea rcx, str.__No_shared_memory__no_SSO_enabled___n
call fcn.140001280
jmp 0x1400018b7
lea rcx, str.ERROR_Citrix_SSO_Program_args___No_command_module_
call fcn.140001280
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400018d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_args___CommandLineToArgvW__0x_08x__n
call fcn.140001280
add rsp, 0x48
ret
Function at 0x140001154
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1400048a0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov dword [rsp + 0x20], 0xc0000004
mov rax, qword [rsp + 0x48]
cmp qword [rax], 0
je 0x1400048e6
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x50]
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax]
mov ecx, dword [rsp + 0x40]
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rsp + 0x20], eax
jmp 0x14000495e
mov dword [rsp + 0x24], 0x1000
jmp 0x1400048fa
mov eax, dword [rsp + 0x24]
shl eax, 1
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x20], 0xc0000004
jne 0x14000495e
mov eax, dword [rsp + 0x24]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax], 0
je 0x14000495e
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x24]
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax]
mov ecx, dword [rsp + 0x40]
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x14000495c
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400048f0
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x1400011a4
Capabilities:
Terminate process

Disassembly:
jmp 0x14000a37c
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x1400017d0
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x1400017d0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x24]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 8]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400018c4
cmp dword [rsp + 0x24], 0
jle 0x1400018ab
mov dword [rsp + 0x20], 0
jmp 0x14000182b
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jge 0x140001895
movsxd rax, dword [rsp + 0x20]
mov r8d, 5
lea rdx, str._HTC:
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + rax*8]
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp
test eax, eax
jne 0x140001893
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx + rax*8]
add rax, 0xa
mov r8d, 0xa
xor edx, edx
mov rcx, rax
call sub.api_ms_win_crt_convert_l1_1_0.dll_wcstoul
mov eax, eax
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.140001014
jmp 0x140001895
jmp 0x140001821
cmp qword [rsp + 0x30], 0
jne 0x1400018a9
lea rcx, str.__No_shared_memory__no_SSO_enabled___n
call fcn.140001280
jmp 0x1400018b7
lea rcx, str.ERROR_Citrix_SSO_Program_args___No_command_module_
call fcn.140001280
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400018d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_args___CommandLineToArgvW__0x_08x__n
call fcn.140001280
add rsp, 0x48
ret
Function at 0x1400018f0
Capabilities:
Encrypt data using dpapi
Read file via mapping

Disassembly:
jmp 0x1400018f0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov r8, rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140001a7c
mov qword [rsp + 0x20], 0x61c
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140001a5b
mov edx, 0x610
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140001a4e
mov rax, qword [rsp + 0x48]
add rax, 0xc
mov r8d, 0x610
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 1
mov edx, 0x610
mov rcx, qword [rsp + 0x40]
call sub.CRYPT32.dll_CryptUnprotectMemory
test eax, eax
je 0x140001a2f
mov rax, qword [rsp + 0x40]
add rax, 0x404
mov rcx, qword [rsp + 0x40]
mov edx, dword [rcx + 0x400]
mov rcx, rax
call fcn.14000100f
mov rax, qword [rsp + 0x40]
add rax, 0x404
mov rcx, qword [rsp + 0x40]
add rcx, 0x200
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x40]
mov r8d, dword [r8 + 0x604]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x40]
mov r9d, dword [rax + 0x400]
mov r8, rcx
lea rcx, str._Username__:__s_n_Domain____:__s_n_Password__:__.s_n_flags_type:_0x_08x_n
call fcn.140001280
jmp 0x140001a43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___CryptUnprotectMemory__0x_08x__n
call fcn.140001280
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x140001a6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___MapViewOfFile__0x_08x__n
call fcn.140001280
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001a90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___DuplicateHandle__0x_08x__n
call fcn.140001280
add rsp, 0x68
ret
Function at 0x140003840
Capabilities:
Read file via mapping

Disassembly:
jmp 0x140003840
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
mov edx, 0x10
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x58]
mov qword [rcx], rax
mov rax, qword [rsp + 0x58]
cmp qword [rax], 0
je 0x14000395d
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx]
mov qword [rcx], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
cmp qword [rax], 0
je 0x140003949
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 8], rcx
cmp qword [rsp + 0x38], 0
je 0x140003949
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rax, qword [rax + 8]
cmp dword [rax], 0x504d444d
jne 0x140003939
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rax, qword [rax + 8]
movzx eax, word [rax + 4]
cmp eax, 0xa793
jne 0x140003939
mov dword [rsp + 0x34], 1
jmp 0x140003941
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x14000395d
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax]
call fcn.1400011d1
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x1400048a0
Capabilities:
Get system information on windows

Disassembly:
jmp 0x1400048a0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov dword [rsp + 0x20], 0xc0000004
mov rax, qword [rsp + 0x48]
cmp qword [rax], 0
je 0x1400048e6
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x50]
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax]
mov ecx, dword [rsp + 0x40]
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rsp + 0x20], eax
jmp 0x14000495e
mov dword [rsp + 0x24], 0x1000
jmp 0x1400048fa
mov eax, dword [rsp + 0x24]
shl eax, 1
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x20], 0xc0000004
jne 0x14000495e
mov eax, dword [rsp + 0x24]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x48]
mov qword [rcx], rax
mov rax, qword [rsp + 0x48]
cmp qword [rax], 0
je 0x14000495e
lea r9, [rsp + 0x28]
mov r8d, dword [rsp + 0x24]
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax]
mov ecx, dword [rsp + 0x40]
call sub.ntdll.dll_NtQuerySystemInformation
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x14000495c
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400048f0
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140008750
Capabilities:
Decode data using base64 via winapi

Disassembly:
jmp 0x140008750
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x68]
mov qword [rax], 0
mov rax, qword [rsp + 0x70]
mov dword [rax], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x140008837
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov rax, qword [rsp + 0x68]
cmp qword [rax], 0
je 0x140008837
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x68]
mov r9, qword [rax]
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140008837
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x140008850
Capabilities:
Decode data using base64 via winapi

Disassembly:
jmp 0x140008850
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x68]
mov qword [rax], 0
mov rax, qword [rsp + 0x70]
mov dword [rax], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x140008937
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov rax, qword [rsp + 0x68]
cmp qword [rax], 0
je 0x140008937
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x68]
mov r9, qword [rax]
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140008937
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret