joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012af00
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rsp + 0x48], rax
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x30]
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
lea rdx, [0x1403c33f0]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
cmovae rdx, qword [0x1403c33f0]
mov rcx, 0xffffffff80000001
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ecx, ax
or ecx, 0x80070000
mov dword [rsp + 0x38], 8
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x14012afc2
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
lea rax, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.LastUpdate
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x14012afb1
cmp dword [rsp + 0x3c], 0xb
je 0x14012afb7
and qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140038910
add rsp, 0x58
ret

Function at 0x14012f3a0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
lea rax, [r11 - 0x28]
lea rdx, [0x1403c33f0]
mov rcx, 0xffffffff80000001
cmovae rdx, qword [0x1403c33f0]
xor r9d, r9d
and qword [r11 - 0x38], 0
xor r8d, r8d
mov qword [r11 - 0x40], rax
and qword [r11 - 0x48], 0
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x14012f455
xor ecx, ecx
call fcn.140050174
mov rcx, qword [rsp + 0x50]
lea rdx, str.LastUpdate
mov qword [rsp + 0x58], rax
mov r9d, listen
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 8
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140038910
add rsp, 0x78
ret
Function at 0x140132530
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x388]
sub rsp, 0x470
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov r14, r8
mov esi, edx
mov rbx, rcx
xor r8d, r8d
lea rdx, [0x1403613f0]
mov rcx, r14
call fcn.14001b664
mov edi, 0x80004004
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
mov rbx, rcx
xor r15d, r15d
jmp 0x1401325a2
cmp dword [rax + 0x20], esi
jge 0x14013259c
mov rax, qword [rax + 0x10]
jmp 0x1401325a2
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r15b
je 0x140132591
cmp byte [rbx + 0x19], r15b
jne 0x1401326ab
cmp esi, dword [rbx + 0x20]
jl 0x1401326ab
cmp rbx, rcx
je 0x1401326ab
mov dword [rsp + 0x44], r15d
mov esi, 0x400
mov r8d, esi
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.14003a220
mov dword [rsp + 0x40], esi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
lea rdx, [rbx + 0x28]
lea rcx, [rsp + 0x48]
call fcn.140131ee0
nop
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
cmp rbx, rsi
je 0x1401326a1
add rbx, 0x28
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x140132623
mov r8, qword [rbx]
lea rdx, [rbx - 0x20]
cmp qword [rbx - 8], 8
jb 0x140132631
mov rdx, qword [rdx]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001b
mov rcx, qword [rbx - 0x28]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jns 0x140132680
add rbx, 0x50
lea rax, [rbx - 0x28]
cmp rax, rsi
jne 0x140132616
jmp 0x1401326a1
lea rax, [rsp + 0x60]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x140132689
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.14001b664
nop
lea rcx, [rsp + 0x48]
call fcn.1400b86e8
mov eax, edi
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.140038910
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140135fb0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov rcx, rdx
jmp 0x14013e250
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14013e272
or eax, 1
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
add rsp, 0x20
pop rbx
ret
Function at 0x1401360b0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x14010f356
mov rcx, qword [rcx]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x14010f39b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp qword [rbx + 0x18], 8
jb 0x14010f37a
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14010f39b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, edi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140038910
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret
mov rcx, rdx
jmp 0x14010f328

Function at 0x140136120
Capabilities:
Delete registry value

Disassembly:
mov rax, r9
mov r10, r8
mov r9d, dword [rsp + 0x28]
mov rcx, rdx
mov r8, rax
mov rdx, r10
jmp 0x14010f8cc

Function at 0x140136180
Capabilities:
Query or enumerate registry key

Disassembly:
movzx r8d, r8b
add r8d, r8d
jmp fcn.14010fda4
mov al, r9b
mov r10, r8
mov r9, qword [rsp + 0x28]
mov rcx, rdx
mov r8b, al
mov rdx, r10
jmp 0x14010fd98

Function at 0x1401361a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, r9b
mov r10, r8
mov r9, qword [rsp + 0x28]
mov rcx, rdx
mov r8b, al
mov rdx, r10
jmp fcn.14010ff84

Function at 0x140136290
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
mov dword [rsp + 0x20], 0x104
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x208
xor ebx, ebx
call fcn.14003a220
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USERENV.dll_GetDefaultUserProfileDirectoryW]
test eax, eax
je 0x1401115e4
lea rax, [rsp + 0x30]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x1401115cb
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14001b664
jmp 0x1401115f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140038910
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
mov rcx, rdx
jmp 0x140111570
Function at 0x1401362d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x770]
sub rsp, 0x870
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rbp + 0x760], rax
mov rsi, qword [rbp + 0x7c0]
mov rdi, r8
movzx r9d, r9b
shl r9d, 8
add r9d, 0x20019
cmp qword [rdx + 0x18], 8
jb 0x140111faa
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r14d, r14d
mov dword [rsp + 0x3c], 0x820
movzx ebx, ax
or ebx, 0x80070000
mov dword [rsp + 0x38], r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140112069
cmp qword [rdi + 0x18], 8
jb 0x140111fed
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14011205e
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
jbe 0x14011203b
mov ebx, 0x8007065d
jmp 0x14011205e
mov ebx, r14d
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x140112047
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14001b664
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x760]
xor rcx, rsp
call fcn.140038910
add rsp, 0x870
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
push rbx
mov rax, qword [rsp + 0x38]
mov r10, r9
mov r9b, byte [rsp + 0x30]
mov r11, r8
mov rcx, rdx
mov qword [rsp + 0x30], rax
mov r8, r10
mov rdx, r11
pop rbx
jmp 0x140111f60
Function at 0x140136310
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
mov rax, qword [rcx]
mov qword [rcx + 8], rax
xor r14d, r14d
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x40], r14
mov dword [rbp - 0x4c], r14d
mov qword [rbp - 0x30], r14
movdqa xmm0, xmmword [0x140364f60]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
lea rcx, [rbp - 0x30]
call fcn.1401120c0
mov edi, eax
test eax, eax
js 0x14011234c
mov dword [rsp + 0x20], 0xf0000040
lea r9d, [r14 + 0x18]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
setne cl
test eax, eax
je 0x140112277
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
setne cl
test cl, cl
je 0x14011232b
mov edx, 4
mov dword [rbp - 0x48], edx
mov dword [rsp + 0x20], r14d
lea r9, [rbp - 0x48]
lea r8, [rbp - 0x4c]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14011232b
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
mov r8d, dword [rbp - 0x20]
add r8d, r8d
xor r9d, r9d
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
setne sil
test eax, eax
je 0x14011231d
mov eax, dword [rbp - 0x4c]
mov dword [rbp - 0x48], eax
mov edx, eax
lea r8, [rbp - 0x50]
mov rcx, rbx
call fcn.14002ff48
mov dword [rsp + 0x20], r14d
lea r9, [rbp - 0x48]
mov r8, qword [rbx]
mov edx, 2
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
setne sil
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test sil, sil
jne 0x14011234c
mov rax, qword [rbx]
mov qword [rbx + 8], rax
jmp 0x14011234c
mov dword [rbp - 0x4c], r14d
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor edx, edx
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rbx]
mov qword [rbx + 8], rcx
mov eax, 0x80004005
mov rcx, qword [rbx + 8]
cmp qword [rbx], rcx
cmove edi, eax
lea rcx, [rbp - 0x30]
call fcn.14001b814
mov eax, edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140038910
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov rcx, rdx
jmp 0x1401121c8
Function at 0x140136370
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
mov rax, rcx
cmp qword [rcx + 0x18], 8
jb 0x140112be0
mov rax, qword [rcx]
xor edi, edi
mov qword [rcx + 0x10], rdi
mov word [rax], di
mov dword [rbp - 0x2c], edi
lea r8, [rbp - 0x2c]
xor edx, edx
lea ecx, [rdi + 8]
call sub.Secur32.dll_GetUserNameExW
mov eax, dword [rbp - 0x2c]
test eax, eax
je 0x140112c7e
xorps xmm0, xmm0
mov edx, eax
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rdi
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x28]
call fcn.14010d438
nop
lea r8, [rbp - 0x2c]
mov rdx, qword [rbp - 0x28]
lea ecx, [rdi + 8]
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x140112c42
mov r8d, dword [rbp - 0x2c]
mov rdx, qword [rbp - 0x28]
mov rcx, rbx
call fcn.14001b664
nop
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140112c7e
mov rdx, qword [rbp - 0x18]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140112c79
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140112ca1
call fcn.1400385dc
cmp qword [rbx + 0x10], rdi
setne al
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140038910
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
call fcn.14004689c
int3
mov rcx, rdx
jmp 0x140112bb0

Function at 0x1401363b0
Capabilities:
Get common file path

Disassembly:
mov cl, dl
mov rdx, r8
jmp fcn.140112f20
Function at 0x1401363e0
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov rdi, r8
mov rbx, rdx
mov qword [rsp + 0x48], rdx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rdx], rsi
mov qword [rdx + 0x10], rsi
mov qword [rdx + 0x18], 7
mov word [rdx], si
mov dword [rsp + 0x20], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x70]
call fcn.14003a220
xor r9d, r9d
lea r8d, [rsi + 0x1c]
lea rdx, [rbp + 0x70]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
jne 0x140136575
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x70]
call fcn.14003a220
lea edx, [rsi + 1]
lea rcx, [rsp + 0x70]
call fcn.140029cc8
nop
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.14002c7c8
mov rcx, rax
lea rdx, str.MicrosoftOneDrive_settings
call fcn.14002c7c8
mov rcx, rax
lea rdx, [0x1403613ec]
call fcn.14002c7c8
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x1401364b9
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rax
call fcn.1400865d0
nop
mov qword [rsp + 0x28], rsi
movdqa xmm0, xmmword [0x140364f60]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], si
mov dword [rsp + 0x20], 5
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x78]
call fcn.14002c118
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x14013650d
mov r8, qword [rsp + 0x58]
lea rcx, [rsp + 0x28]
call fcn.14001b664
nop
mov dword [rsp + 0x20], 3
lea rax, [rsp + 0x28]
cmp rbx, rax
je 0x14013654b
mov rcx, rbx
call fcn.14001b814
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rbx + 0x10], xmm1
movdqa xmm0, xmmword [0x140364f60]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], si
lea rcx, [rsp + 0x28]
call fcn.14001b814
nop
lea rcx, [rbp + 8]
call fcn.140029be4
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.14014a318
nop
mov rax, rbx
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.140038910
mov rbx, qword [rsp + 0x3b0]
add rsp, 0x390
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401365d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
mov rax, qword [rsp + 0x38]
mov r10, r9
mov r9b, byte [rsp + 0x30]
mov r11, r8
mov rcx, rdx
mov qword [rsp + 0x30], rax
mov r8, r10
mov rdx, r11
pop rbx
jmp fcn.140113a24

Function at 0x140136600
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
mov rax, qword [rsp + 0x38]
mov r10, r9
mov r9d, dword [rsp + 0x30]
mov r11, r8
mov rcx, rdx
mov qword [rsp + 0x30], rax
mov r8, r10
mov rdx, r11
pop rbx
jmp fcn.140113a30
Function at 0x1401367a0
Capabilities:
Decode data using base64 via winapi
Encode data using base64 via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x28]
sub rsp, 0x120
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rbp + 0x10], rax
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rbp - 0x80], r14
movdqa xmm0, xmmword [0x140364f60]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r14w
call fcn.140109458
mov r8, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x318]
lea rdx, [rsp + 0x50]
mov rcx, r8
call qword [str.0B__]
lea edi, [r14 + 0x64]
test eax, eax
js 0x14011521e
mov dword [rsp + 0x44], r14d
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
sub rax, rcx
lea rdx, [rsp + 0x44]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
mov r8d, 0x40000001
mov edx, eax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
mov ebx, eax
test eax, eax
setne sil
xorps xmm0, xmm0
mov edx, dword [rsp + 0x44]
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r14
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.14010d438
nop
test ebx, ebx
je 0x140115173
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
sub rax, rcx
lea rdx, [rsp + 0x44]
mov qword [rsp + 0x20], rdx
mov r9, qword [rsp + 0x68]
mov r8d, 0x40000001
mov edx, eax
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
setne sil
mov r8, rdi
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.14003a220
test sil, sil
je 0x1401151db
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x60]
mov r8d, 1
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x1401151db
call fcn.140109458
mov r8, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x148]
mov dl, byte [rbp - 0x60]
mov rcx, r8
call qword [str.0B__]
mov edi, eax
mov r8, qword [rsp + 0x68]
test r8, r8
je 0x14011521e
mov rcx, qword [rsp + 0x78]
sub rcx, r8
sar rcx, 1
lea rdx, [rcx + rcx]
mov rax, r8
cmp rdx, 0x1000
jb 0x140115215
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140115291
mov rcx, r8
call fcn.1400385dc
nop
lea rcx, [rbp - 0x80]
call fcn.14001b814
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140115260
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14011525b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14011528b
call fcn.1400385dc
mov eax, edi
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140038910
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14004689c
nop
call fcn.14004689c
nop
int3
jmp 0x140115068
Function at 0x1401368c0
Capabilities:
Persist via run registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
xor esi, esi
mov byte [rcx], sil
mov qword [rbp + 0x27], rsi
movdqa xmm0, xmmword [0x140364f60]
movdqu xmmword [rbp + 0x37], xmm0
mov word [rbp + 0x27], si
lea rcx, [rbp + 0x27]
call fcn.140110e10
mov ebx, eax
test eax, eax
js 0x14010e485
mov qword [rbp + 7], rsi
movdqa xmm0, xmmword [0x140364f60]
movdqu xmmword [rbp + 0x17], xmm0
mov word [rbp + 7], si
mov qword [rbp - 0x19], rsi
movdqu xmmword [rbp - 9], xmm0
mov word [rbp - 0x19], si
lea r8d, [rsi + 8]
lea rdx, str.OneDrive
lea rcx, [rbp - 0x19]
call fcn.14001b664
nop
mov qword [rbp - 0x39], rsi
movdqa xmm0, xmmword [0x140364f60]
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], si
lea r8d, [rsi + 0x2d]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea rcx, [rbp - 0x39]
call fcn.14001b664
nop
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x39]
mov rcx, 0xffffffff80000001
call fcn.140113c38
mov ebx, eax
lea rcx, [rbp - 0x39]
call fcn.14001b814
nop
lea rcx, [rbp - 0x19]
call fcn.14001b814
lea rdx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 8
cmovae rdx, qword [rbp + 0x27]
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rcx, qword [rbp + 7]
call fcn.140050c38
test eax, eax
jne 0x14010e47b
mov byte [rdi], 1
lea rcx, [rbp + 7]
call fcn.14001b814
nop
lea rcx, [rbp + 0x27]
call fcn.14001b814
mov eax, ebx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140038910
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov byte [rcx], 0
jmp 0x14010e364
mov rcx, rdx
jmp 0x140116b44
Function at 0x1401368d0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ebx, ebx
call fcn.140126dcc
test al, al
je 0x140116dc1
mov rax, qword gs:[0x58]
mov ecx, dword [0x1403e0608]
mov edx, send
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x1403e3c18], eax
jg 0x140116e04
mov rcx, qword [0x1403e3c10]
test rcx, rcx
je 0x140116de5
lea rdx, str.NetGetAadJoinInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1403e3c10]
lea rdx, str.NetFreeAadJoinInformation
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rsi, rsi
je 0x140116db2
test rax, rax
je 0x140116db2
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov rax, rsi
call qword [str.0B__]
mov rcx, qword [rsp + 0x20]
test eax, eax
js 0x140116da9
test rcx, rcx
je 0x140116da9
mov edx, 1
cmp dword [rcx], edx
sete bl
mov rax, rdi
call qword [str.0B__]
mov rcx, qword [0x1403e3c10]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140116de5
xor edx, edx
mov dword [rsp + 0x20], ebx
lea r8, [rsp + 0x20]
lea ecx, [rdx + 8]
call sub.Secur32.dll_GetUserNameExW
cmp dword [rsp + 0x20], ebx
mov edx, 1
movzx eax, bl
cmova eax, edx
mov bl, al
mov al, bl
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140038910
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rcx, [0x1403e3c18]
call fcn.1400383c8
cmp dword [0x1403e3c18], 0xffffffff
jne 0x140116d40
lea rcx, str.netapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, [0x1403e3c18]
mov qword [0x1403e3c10], rax
call fcn.140038368
jmp 0x140116d40
jmp 0x140116cec

Function at 0x1401368e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor edi, edi
cmp qword [rcx + 0x18], 8
mov dword [rsp + 0x60], edi
lea eax, [rdi + 4]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x64], eax
jb 0x140116f07
mov rcx, qword [rcx]
mov r8, rcx
lea rdx, str.SoftwareMicrosoftOneDriveAccounts
lea rcx, [rsp + 0x40]
call fcn.14010a9a8
cmp qword [rax + 0x18], 8
jb 0x140116f25
mov rax, qword [rax]
lea rcx, [rsp + 0x64]
mov r9d, setsockopt
mov qword [rsp + 0x30], rcx
lea r8, str.IsGoSov
lea rcx, [rsp + 0x60]
mov rdx, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea rcx, [rsp + 0x40]
mov ebx, eax
call fcn.14001b814
test ebx, ebx
jne 0x140116f79
cmp dword [rsp + 0x60], 1
sete dil
mov al, dil
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140038910
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
mov rcx, rdx
jmp 0x140116ed0