joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800101a0
Capabilities:
Check internet connectivity via wininet
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, r9
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test r9, r9
je 0x1800101db
mov rcx, qword [rcx + 0xc8]
mov r9d, 4
mov rdx, rax
call qword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x180010253
xor edx, edx
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x58]
call qword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x180010236
mov rcx, qword [rbx + 0xc8]
lea rdx, str.open
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov r8, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x180010236
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x180010253
mov rcx, qword [rbx + 0xc8]
xor r9d, r9d
mov r8, rdi
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rbx, qword [rsp + 0x40]
xor al, al
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1800102f0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push r13
push r14
sub rsp, 0x58
mov ecx, 0xd
mov r13, rdx
xor r14b, r14b
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x18001045b
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x180010450
mov ecx, 0xd
mov qword [rsp + 0x48], r12
call qword [sym.imp.USER32.dll_GetClipboardData]
mov r12, rax
test rax, rax
je 0x18001044b
mov rcx, rax
mov qword [rsp + 0x78], rbp
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rbp, rax
test rax, rax
je 0x180010446
mov qword [rsp + 0x70], rbx
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x50], rdi
mov rdi, rbx
mov qword [rsp + 0x40], r15
cmp word [rax + rdi*2 + 2], 0
lea rdi, [rdi + 1]
jne 0x180010370
xor r15d, r15d
lea r9d, [rdi + 1]
mov qword [rsp + 0x38], r15
mov r8, rbp
mov qword [rsp + 0x30], r15
xor edx, edx
mov dword [rsp + 0x28], r15d
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [rsp + 0x80], eax
test eax, eax
jle 0x18001042e
lea edx, [rax + 1]
mov qword [rsp + 0x88], rsi
movsxd rcx, edx
call fcn.18002e108
mov rsi, rax
mov qword [rsp + 0x38], r15
mov eax, dword [rsp + 0x80]
lea r9d, [rdi + 1]
mov qword [rsp + 0x30], r15
mov r8, rbp
mov dword [rsp + 0x28], eax
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x18001041e
mov r14b, 1
test rsi, rsi
je 0x18001040e
inc rbx
cmp byte [rsi + rbx], r15b
jne 0x180010402
mov r15d, ebx
mov r9d, r15d
mov r8, rsi
xor edx, edx
mov rcx, r13
call fcn.180003dd0
mov rcx, rsi
call fcn.18002d750
mov rsi, qword [rsp + 0x88]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov r15, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov r12, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_CloseClipboard]
test r14b, r14b
jne 0x18001046f
xor r9d, r9d
lea r8, [0x18005f250]
xor edx, edx
mov rcx, r13
call fcn.180003dd0
movzx eax, r14b
add rsp, 0x58
pop r14
pop r13
ret
Function at 0x18002dc6c
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x18002dcf7
movsxd rcx, dword [0x18000003c]
lea rdx, [0x180000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x18002dcf7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18002dcf7
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x18002dcf3
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x18002dced
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jae 0x18002dced
test rdx, rdx
je 0x18002dcf3
cmp dword [rdx + 0x24], 0
jge 0x18002dce9
xor al, al
jmp 0x18002dcfd
mov al, 1
jmp 0x18002dcfd
add rdx, 0x28
jmp 0x18002dcbf
xor al, al
jmp 0x18002dcfd
xor al, al
jmp 0x18002dcfd
add rsp, 0x18
ret
Function at 0x140001c04
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0xe]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0xe
jb 0x140001c0a
mov rax, rcx
ret

Function at 0x140001c20
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x12]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0x12
jb 0x140001c26
mov rax, rcx
ret

Function at 0x140001c3c
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x11]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0x11
jb 0x140001c42
mov rax, rcx
ret

Function at 0x140001c58
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x10]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0x10
jb 0x140001c5e
mov rax, rcx
ret

Function at 0x140001c74
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x15]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0x15
jb 0x140001c7a
mov rax, rcx
ret

Function at 0x140001c90
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x14]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0x14
jb 0x140001c96
mov rax, rcx
ret

Function at 0x140001cac
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 9]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 9
jb 0x140001cb2
mov rax, rcx
ret

Function at 0x140001cc8
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0xc]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0xc
jb 0x140001cce
mov rax, rcx
ret

Function at 0x140001ce4
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0xd]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 0xd
jb 0x140001cea
mov rax, rcx
ret

Function at 0x140001d00
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x12]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 9
jb 0x140001d06
mov rax, rcx
ret

Function at 0x140001d24
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 2]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 2
jb 0x140001d2a
mov rax, rcx
ret
Function at 0x140003c18
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 5]
inc r8d
xor byte [rdx], al
inc rdx
cmp r8d, 5
jb 0x140003c1e
mov rax, rcx
ret

Function at 0x140003c34
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0x30]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 0x18
jb 0x140003c3a
mov rax, rcx
ret

Function at 0x140003c58
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
mov rdx, rcx
mov al, byte [rdx + 0xa]
inc r8d
xor al, byte [rdx]
movsx eax, al
mov word [rdx], ax
lea rdx, [rdx + 2]
cmp r8d, 5
jb 0x140003c5e
mov rax, rcx
ret
Function at 0x140031b71
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov r10, qword [rsp + 0x68]
mov r11, qword [rsp + 0x60]
mov rax, qword [rsp + 0x58]
mov esi, ecx
shr esi, 8
lea r8, [rdx + r8*2]
xor edi, edi
cmp rdx, r8
je 0x140031bed
lea rbx, [rdx + 2]
movzx r15d, byte [rdx + 1]
lea r14, [rdi + r15]
cmp byte [rdx], sil
jne 0x140031bcd
cmp rdi, r14
ja 0x140031c2a
cmp r14, rax
ja 0x140031c2a
add rdi, r9
xor edx, edx
cmp r15, rdx
je 0x140031bd7
lea r12, [rdx + 1]
cmp byte [rdi + rdx], cl
mov rdx, r12
jne 0x140031bba
jmp 0x140031bdf
mov rdx, rbx
mov rdi, r14
jbe 0x140031b94
jmp 0x140031bed
mov rdx, rbx
mov rdi, r14
jmp 0x140031b94
xor eax, eax
and al, 1
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
movzx ecx, cx
add r10, r11
mov al, 1
cmp r11, r10
je 0x140031be1
lea r8, [r11 + 1]
movzx edx, byte [r11]
test dl, dl
js 0x140031c0b
mov r11, r8
jmp 0x140031c22
cmp r8, r10
je 0x140031c2a
and edx, 0x7f
shl edx, 8
movzx r8d, byte [r11 + 1]
add r11, 2
or edx, r8d
sub ecx, edx
js 0x140031be1
xor al, 1
jmp 0x140031bf5
ud2

Function at 0x1400356fd
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rdi
push rbx
not ecx
lea rax, [0x1401160ec]
mov r9d, 0xff
cmp r8, 0x40
jb 0x140035838
mov r11, r8
shr r11, 4
xor r10d, r10d
cmp r10, 0x40
je 0x14003582d
sub r11, 1
jb 0x14003585f
movzx edi, byte [rdx + r10 + 0xf]
movzx esi, byte [rdx + r10 + 0xe]
mov esi, dword [rax + rsi*4 + 0x400]
xor esi, dword [rax + rdi*4]
movzx edi, byte [rdx + r10 + 0xd]
xor esi, dword [rax + rdi*4 + 0x800]
movzx edi, byte [rdx + r10 + 0xc]
xor esi, dword [rax + rdi*4 + 0xc00]
movzx edi, byte [rdx + r10 + 0xb]
xor esi, dword [rax + rdi*4 + 0x1000]
movzx edi, byte [rdx + r10 + 0xa]
xor esi, dword [rax + rdi*4 + 0x1400]
movzx edi, byte [rdx + r10 + 9]
xor esi, dword [rax + rdi*4 + 0x1800]
movzx edi, byte [rdx + r10 + 8]
xor esi, dword [rax + rdi*4 + 0x1c00]
movzx edi, byte [rdx + r10 + 7]
xor esi, dword [rax + rdi*4 + 0x2000]
movzx edi, byte [rdx + r10 + 6]
xor esi, dword [rax + rdi*4 + 0x2400]
movzx edi, byte [rdx + r10 + 5]
xor esi, dword [rax + rdi*4 + 0x2800]
movzx edi, byte [rdx + r10 + 4]
xor esi, dword [rax + rdi*4 + 0x2c00]
mov edi, ecx
shr edi, 0x18
movzx ebx, byte [rdx + r10 + 3]
xor ebx, edi
xor esi, dword [rax + rbx*4 + 0x3000]
mov edi, ecx
shr edi, 0x10
and edi, r9d
movzx ebx, byte [rdx + r10 + 2]
xor ebx, edi
xor esi, dword [rax + rbx*4 + 0x3400]
mov edi, ecx
shr edi, 8
and edi, r9d
movzx ebx, byte [rdx + r10 + 1]
xor ebx, edi
xor esi, dword [rax + rbx*4 + 0x3800]
and ecx, r9d
movzx edi, byte [rdx + r10]
xor edi, ecx
xor esi, dword [rax + rdi*4 + 0x3c00]
add r10, 0x10
mov ecx, esi
jmp 0x140035723
sub r8, r10
add rdx, r10
jmp 0x14003570f
xor r9d, r9d
cmp r8, r9
je 0x140035857
mov r10b, byte [rdx + r9]
xor r10b, cl
movzx r10d, r10b
shr ecx, 8
xor ecx, dword [rax + r10*4]
inc r9
jmp 0x14003583b
not ecx
mov eax, ecx
pop rbx
pop rdi
pop rsi
ret
ud2
Function at 0x140036690
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
lea rcx, [0x140108010]
call fcn.1400366c7
mov ecx, eax
add rsp, 0x28
jmp fcn.140105db0

Function at 0x1400366ab
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
call fcn.1400366c7
mov ecx, eax
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140105db8

Function at 0x1400366c7
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [rcx + 0x18]
test eax, eax
je 0x1400b36d2
dec eax
ret
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400b3749
lea r8, [rsp + 0x2c]
and dword [r8], 0
lea rbx, [rsi + 0x10]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x1400b3790
cmp dword [rsp + 0x2c], 0
je 0x1400b3771
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400b3780
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1401ab180]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401ab180], rsi
jne 0x1400b3724
mov byte [0x1401ab178], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x1400b3776
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400b3790
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x1400b3776
mov esi, eax
mov ecx, edi
call sub.kernel32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x1400b3776
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
ud2

Function at 0x1400367aa
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
lea rdi, [rsp + 0x20]
and qword [rdi], 0
mov rcx, rdx
xor edx, edx
xor r8d, r8d
mov r9, rdi
call sub.shell32.dll_SHGetKnownFolderPath
mov rcx, qword [rdi]
test eax, eax
je 0x1400367de
call sub.ole32.dll_CoTaskMemFree
mov byte [rsi + 0x18], 2
jmp 0x1400367fd
call sub.kernel32.dll_lstrlenW
movsxd r8, eax
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
call fcn.1400b0bc4
mov rcx, qword [rsp + 0x20]
call sub.ole32.dll_CoTaskMemFree
nop
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x14003f683
Capabilities:
Hash data using fnv

Disassembly:
mov rax, qword [rcx]
xor r9d, r9d
movabs r10, 0x100000001b3
cmp r8, r9
je 0x14003f6a9
movzx r11d, byte [rdx + r9]
xor rax, r11
imul rax, r10
inc r9
jmp 0x14003f693
mov qword [rcx], rax
ret

Function at 0x14003f791
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov rbx, qword [rcx]
xor ecx, ecx
test rbx, rbx
setne cl
call fcn.140051313
test rbx, rbx
je 0x14003f7ca
mov rdx, qword [rdi + 8]
mov r8, qword [rdi + 0x10]
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14003f683
mov cl, byte [rdi + 8]
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14003f67b
Function at 0x140054ab1
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xf8
mov r14, rdx
mov rsi, rcx
mov ecx, 0x18
mov edx, 8
call fcn.140062676
mov rdi, rax
mov eax, 1
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov byte [rdi + 0x10], 0
cmp r14, 0xffffffffffffffff
je 0x140054c8b
xorps xmm0, xmm0
lea rdx, [rsp + 0x70]
movaps xmmword [rdx + 0x70], xmm0
movaps xmmword [rdx + 0x60], xmm0
movaps xmmword [rdx + 0x50], xmm0
movaps xmmword [rdx + 0x40], xmm0
movaps xmmword [rdx + 0x30], xmm0
movaps xmmword [rdx + 0x20], xmm0
movaps xmmword [rdx + 0x10], xmm0
movaps xmmword [rdx], xmm0
lea r8, [rsp + 0x2c]
mov dword [r8], pe_nt_image_headers64
mov rcx, r14
call sub.ws2_32.dll_getpeername
cmp eax, 0xffffffff
je 0x140054b45
movsxd r8, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x70]
call fcn.1400aff3c
jmp 0x140054b56
call fcn.1400b791e
mov qword [rsp + 0x38], rax
mov word [rsp + 0x30], 2
lea rbx, [rsp + 0x50]
xorps xmm0, xmm0
lea rdx, [rsp + 0x70]
movaps xmmword [rdx + 0x70], xmm0
movaps xmmword [rdx + 0x60], xmm0
movaps xmmword [rdx + 0x50], xmm0
movaps xmmword [rdx + 0x40], xmm0
movaps xmmword [rdx + 0x30], xmm0
movaps xmmword [rdx + 0x20], xmm0
movaps xmmword [rdx + 0x10], xmm0
movaps xmmword [rdx], xmm0
lea r8, [rsp + 0x2c]
mov dword [r8], pe_nt_image_headers64
mov rcx, r14
call sub.ws2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x140054c4c
movsxd r8, dword [rsp + 0x2c]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.1400aff3c
cmp word [rsp + 0x30], 2
je 0x140054c5d
cmp word [rsp + 0x50], 2
je 0x140054c5d
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x80], xmm1
movaps xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0xa0], xmm1
mov ecx, 0x40
mov edx, 4
call fcn.140062676
mov r14, rax
movaps xmm0, xmmword [rsp + 0x70]
movaps xmm1, xmmword [rsp + 0x80]
movaps xmm2, xmmword [rsp + 0x90]
movaps xmm3, xmmword [rsp + 0xa0]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x30], xmm3
xor ecx, ecx
call fcn.1400504b9
mov qword [rsi], r14
lea rax, [0x14014ef70]
mov qword [rsi + 8], rax
jmp 0x140054c61
call fcn.1400b791e
mov qword [rsp + 0x58], rax
mov word [rsp + 0x50], 2
and qword [rsi], 0
mov qword [rsi + 0x10], rdi
mov word [rsi + 0x18], 1
lea rcx, [rsp + 0x30]
call fcn.140054c8f
mov rcx, rbx
call fcn.140054c8f
nop
add rsp, 0xf8
pop rbx
pop rdi
pop rsi
pop r14
ret
ud2

Function at 0x140063c5e
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400366c7
mov ecx, eax
add rsp, 0x28
jmp fcn.140105db0
Function at 0x14006e0d5
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r13, r9
mov rsi, rdx
mov rdi, rcx
mov qword [rdx + 0x138], r8
lea rbx, [rsp + 0x28]
mov rcx, rbx
call fcn.14006e317
mov eax, dword [rbx]
cmp eax, 2
je 0x14006e29d
test eax, eax
je 0x14006e250
mov rdx, qword [rsi + 0x1b8]
cmp rdx, qword [rsi + 0x1b0]
jne 0x14006e287
mov rcx, qword [rsp + 0xe0]
mov r15d, dword [rsp + 0x2c]
mov r14, qword [rsp + 0x30]
mov eax, r14d
shr r14, 0x20
cmp rcx, r14
cmovb r14, rcx
lea r12, [r14 + r15]
add rax, r12
lea rbp, [rsi + 0x1a0]
cmp rdx, rax
jae 0x14006e16e
mov rcx, rbp
mov rdx, rax
call fcn.14005b169
mov rdx, qword [rsi + 0x1b0]
mov rcx, qword [rbp]
mov r8, r15
mov r9, r12
call fcn.14006fd7a
cmp rdx, r14
jne 0x14006e310
mov rcx, rax
mov rdx, r13
mov r8, r14
call sub.msvcrt.dll_memcpy
mov rdx, qword [rsi + 0x1b0]
cmp rdx, r15
jb 0x14006e30c
mov r13, qword [rsi + 0x1a0]
mov rcx, r13
mov r8, r15
mov r9, r12
call fcn.14006fd7a
mov rcx, qword [rsi + 0x1b0]
cmp rcx, r12
jb 0x14006e30c
xor r8d, r8d
test rax, rax
cmove edx, r8d
sub ecx, r12d
add r12, qword [rsi + 0x1a0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x2c], 7
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], 1
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x4c], 6
mov qword [rsp + 0x50], r12
movabs rax, 0x400000000
lea r8, [rsp + 0x68]
mov qword [r8], rax
mov qword [r8 + 8], rbx
lea rcx, [rsi + 0x1c0]
xor edx, edx
xor r9d, r9d
call sub.secur32.dll_EncryptMessage
test eax, eax
je 0x14006e25c
mov ebx, eax
shl rbx, 0x20
or rbx, 2
jmp 0x14006e2a2
movabs rbx, 0x8009031700000002
jmp 0x14006e2a2
mov eax, dword [rsp + 0x38]
add eax, dword [rsp + 0x28]
add eax, dword [rsp + 0x48]
cmp qword [rsi + 0x1b0], rax
jb 0x14006e278
mov qword [rsi + 0x1b0], rax
and qword [rsi + 0x1b8], 0
mov qword [rsi + 0x200], r14
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rsi
call fcn.14006ee89
cmp qword [rbx], 0
je 0x14006e2fb
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], 1
mov rcx, rbx
call fcn.140041ad6
cmp al, 0xd
jne 0x14006e2d7
lea rcx, [rsp + 0x30]
mov qword [rdi], 2
and qword [rsi + 0x138], 0
call fcn.14006567d
jmp 0x14006e2ea
mov qword [rdi], 1
mov qword [rdi + 8], rbx
and qword [rsi + 0x138], 0
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi + 0x200]
and qword [rdi], 0
mov qword [rdi + 8], rax
jmp 0x14006e2e2
ud2
call fcn.14003361c
ud2
Function at 0x14006ef72
Capabilities:
Encrypt data via sspi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r13, r9
mov rsi, rdx
mov rdi, rcx
mov qword [rdx + 0x38], r8
lea rbx, [rsp + 0x28]
mov rcx, rbx
call fcn.14006f1ab
mov eax, dword [rbx]
cmp eax, 2
je 0x14006f137
test eax, eax
je 0x14006f0ea
mov rdx, qword [rsi + 0xb8]
cmp rdx, qword [rsi + 0xb0]
jne 0x14006f121
mov rcx, qword [rsp + 0xe0]
mov r15d, dword [rsp + 0x2c]
mov r14, qword [rsp + 0x30]
mov eax, r14d
shr r14, 0x20
cmp rcx, r14
cmovb r14, rcx
lea r12, [r14 + r15]
add rax, r12
lea rbp, [rsi + 0xa0]
cmp rdx, rax
jae 0x14006f008
mov rcx, rbp
mov rdx, rax
call fcn.14005b169
mov rdx, qword [rsi + 0xb0]
mov rcx, qword [rbp]
mov r8, r15
mov r9, r12
call fcn.14006fd7a
cmp rdx, r14
jne 0x14006f1a4
mov rcx, rax
mov rdx, r13
mov r8, r14
call sub.msvcrt.dll_memcpy
mov rdx, qword [rsi + 0xb0]
cmp rdx, r15
jb 0x14006f1a0
mov r13, qword [rsi + 0xa0]
mov rcx, r13
mov r8, r15
mov r9, r12
call fcn.14006fd7a
mov rcx, qword [rsi + 0xb0]
cmp rcx, r12
jb 0x14006f1a0
xor r8d, r8d
test rax, rax
cmove edx, r8d
sub ecx, r12d
add r12, qword [rsi + 0xa0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x2c], 7
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], 1
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x4c], 6
mov qword [rsp + 0x50], r12
movabs rax, 0x400000000
lea r8, [rsp + 0x68]
mov qword [r8], rax
mov qword [r8 + 8], rbx
lea rcx, [rsi + 0xc0]
xor edx, edx
xor r9d, r9d
call sub.secur32.dll_EncryptMessage
test eax, eax
je 0x14006f0f6
mov ebx, eax
shl rbx, 0x20
or rbx, 2
jmp 0x14006f13c
movabs rbx, 0x8009031700000002
jmp 0x14006f13c
mov eax, dword [rsp + 0x38]
add eax, dword [rsp + 0x28]
add eax, dword [rsp + 0x48]
cmp qword [rsi + 0xb0], rax
jb 0x14006f112
mov qword [rsi + 0xb0], rax
and qword [rsi + 0xb8], 0
mov qword [rsi + 0x100], r14
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rsi
call fcn.14006fcb7
cmp qword [rbx], 0
je 0x14006f18f
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], 1
mov rcx, rbx
call fcn.140041ad6
cmp al, 0xd
jne 0x14006f16e
lea rcx, [rsp + 0x30]
mov qword [rdi], 2
and qword [rsi + 0x38], 0
call fcn.14006567d
jmp 0x14006f17e
mov qword [rdi], 1
mov qword [rdi + 8], rbx
and qword [rsi + 0x38], 0
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsi + 0x100]
and qword [rdi], 0
mov qword [rdi + 8], rax
jmp 0x14006f179
ud2
call fcn.14003361c
ud2
Function at 0x14006ff83
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rax, qword [rdx + 0x98]
cmp qword [rdx + 0x90], rax
jb 0x14007010c
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rdx + 0x80]
xorps xmm0, xmm0
lea r8, [rsp + 0x20]
movups xmmword [r8 + 0x30], xmm0
mov dword [r8], eax
mov dword [r8 + 4], 1
mov qword [r8 + 8], rcx
movups xmmword [r8 + 0x10], xmm0
movups xmmword [r8 + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], r8
lea rcx, [rdi + 0xc0]
xor r8d, r8d
xor r9d, r9d
call sub.secur32.dll_DecryptMessage
cmp eax, 0x80090318
je 0x140070057
test eax, eax
je 0x140070073
cmp eax, 0x90317
je 0x1400700ec
cmp eax, 0x90321
jne 0x1400700f4
mov dword [rdi + 0x40], 0x10000
xor ebx, ebx
mov byte [rdi + 0x44], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x98]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.14006ff17
and qword [rdi + 0xf8], 0
mov byte [rsi + 1], bl
jmp 0x140070102
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0xf8], rax
mov byte [rsi + 1], 0
jmp 0x1400700f0
mov r8, qword [rsp + 0x38]
mov rcx, qword [rdi + 0x80]
mov rdx, qword [rdi + 0x90]
sub r8, rcx
mov r9d, dword [rsp + 0x30]
add r9, r8
lea rbx, [rdi + 0x60]
and qword [rdi + 0x70], 0
call fcn.14007011a
lea r8, [rdx + rax]
mov rcx, rbx
mov rdx, rax
call fcn.140025bdc
and qword [rdi + 0x78], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x98]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.14006ff17
xor eax, eax
cmp qword [rdi + 0x98], rbx
sete al
mov qword [rdi + 0xf8], rax
mov byte [rsi + 1], 0
jmp 0x140070102
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x140070102
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
ud2