joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011448
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0xffffffffffffffff
mov rbx, rcx
jne 0x140011490
add rcx, 8
call fcn.1400128f4
lea rdx, [rbx + 0x298]
lea rcx, [rbx + 8]
mov qword [rbx + 0x290], rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor esi, esi
cmp rax, 0xffffffffffffffff
mov qword [rbx], rax
setne sil
jmp 0x1400114ae
lea rdx, [rcx + 0x298]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov esi, eax
jne 0x1400114b2
mov rcx, rbx
call fcn.140010da8
test esi, esi
je 0x140011503
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbx + 0x770]
repne scasw ax, word [rdi]
lea rdx, [rbx + 0x2c4]
lea r8, [rbx + 0x4e8]
not rcx
mov rdi, rdx
lea r9, [rcx - 1]
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
not rcx
lea rax, [r9 + rcx]
cmp rax, 0x143
jae 0x1400114fe
lea rcx, [rbx + 0x770]
call fcn.140013c84
jmp 0x140011503
and word [r8], 0
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140011b54
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rdi, rdx
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0x24]
call sub.msvcrt.dll_memset
lea rax, str.RunAs
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0x70
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x24], 0x40
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x50], 5
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret

Function at 0x1400122c4
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
lea r9, [0x14001e908]
mov r8, rdx
lea rdx, str.open
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], r9
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp rax, 0x20
seta cl
mov eax, ecx
add rsp, 0x38
ret
Function at 0x140012474
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140026e48], 0
jne 0x14001254c
mov esi, InitCommonControls
lea rbp, [0x140026e50]
mov edi, 0x400
lea edx, [rsi + 2]
mov r9d, esi
mov r8, rbp
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rcx, rbp
call sub.msvcrt.dll__wtoi
mov r9d, esi
mov r8, rbp
mov edx, esi
mov ecx, edi
mov dword [0x140026e24], eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rcx, rbp
call sub.msvcrt.dll__wtoi
lea rbx, [0x140026e70]
lea edx, [rsi - 2]
mov r8, rbx
mov r9d, esi
mov ecx, edi
mov dword [0x140026e28], eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov qword [0x140026e30], rbx
lea rbx, [0x140026e90]
lea edx, [rsi - 1]
mov r9d, esi
mov r8, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov r9d, esi
mov r8, rbp
mov edx, 0x1010
mov ecx, edi
mov qword [0x140026e38], rbx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rcx, rbp
call sub.msvcrt.dll__wtoi
mov dword [0x140026e48], 1
mov dword [0x140026e40], eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
lea rax, [0x140026e20]
add rsp, 0x20
pop rdi
ret

Function at 0x140012704
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp word [0x140026a00], 0
mov rdi, rcx
lea rbx, [0x140026a00]
jne 0x14001273b
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r11d, eax
mov dword [0x140026c0c], eax
jmp 0x140012742
mov r11d, dword [0x140026c0c]
sub rdi, rbx
movzx eax, word [rbx]
mov word [rdi + rbx], ax
add rbx, 2
test ax, ax
jne 0x140012745
mov eax, r11d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140012774
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp word [0x1400267f0], 0
mov rdi, rcx
lea rbx, [0x1400267f0]
jne 0x1400127ab
mov edx, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov r11d, eax
mov dword [0x1400269fc], eax
jmp 0x1400127b2
mov r11d, dword [0x1400269fc]
sub rdi, rbx
movzx eax, word [rbx]
mov word [rdi + rbx], ax
add rbx, 2
test ax, ax
jne 0x1400127b5
mov eax, r11d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140012b84
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x230
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140012bb4
lea rcx, [rsp + 0x20]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
and word [rbx], 0
lea rdx, [0x140020034]
lea rcx, [rsp + 0x20]
mov r9, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rax, rbx
add rsp, 0x230
pop rbx
ret
Function at 0x140013184
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov r10, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
and qword [rsp + 0x20], rax
mov rdi, rdx
lea r9, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx + rcx - 2]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x30
pop rdi
ret

Function at 0x140013ba4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp word [0x140026c10], 0
mov rsi, rcx
lea rbx, [0x140026c10]
jne 0x140013c4c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call fcn.140011ce4
mov edx, 0x104
mov rcx, rbx
test eax, eax
je 0x140013c3c
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
test ecx, ecx
jle 0x140013c0c
mov edx, ecx
mov rcx, rbx
call fcn.140013144
lea rdx, str.Sysnative
mov r8d, 0x104
mov rcx, rbx
call fcn.140011f24
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov dword [0x140026e1c], ecx
jmp 0x140013c52
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
mov dword [0x140026e1c], eax
jmp 0x140013c52
mov ecx, dword [0x140026e1c]
sub rsi, rbx
movzx eax, word [rbx]
mov word [rsi + rbx], ax
add rbx, 2
test ax, ax
jne 0x140013c55
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, ecx
add rsp, 0x20
pop rdi
ret

Function at 0x140014014
Capabilities:
Get file size
Read file on windows
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rbx, rcx
xor edi, edi
call qword [sym.imp.USER32.dll_EmptyClipboard]
xor edx, edx
mov rcx, rbx
call fcn.140013204
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x1400140d2
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, 0x2000
mov r12d, eax
mov esi, eax
lea rdx, [r12 + 2]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp rax, rdi
mov rbp, rax
je 0x1400140bf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
lea r9, [rsp + 0x58]
mov r8d, r12d
mov rcx, rbx
mov rdx, rax
mov qword [rsp + 0x20], rdi
mov r13, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x1400140bf
shr rsi, 1
mov rcx, rbp
mov word [r13 + rsi*2], di
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [rdi + 0xd]
mov rdx, rbp
call qword [sym.imp.USER32.dll_SetClipboardData]
jmp 0x1400140c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400140da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x1400141d4
Capabilities:
Get common file path
Get file attributes

Disassembly:
sub rsp, 0x28
cmp word [0x140026eb0], 0
jne 0x140014211
lea rcx, [0x140026eb0]
call fcn.140013ec4
lea rcx, [0x140026eb0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x140014211
lea rdx, [0x140026eb0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rax, [0x140026eb0]
add rsp, 0x28
ret

Function at 0x14001624c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0xb30
or qword [rax - 0xa18], 0xffffffffffffffff
xor ebx, ebx
mov rdi, r8
mov word [rax - 0xa10], bx
mov word [rax - 0x2a8], bx
mov word [rax - 0x530], bx
lea rax, [rax - 0xa10]
mov r8, rdx
lea rcx, [rsp + 0x130]
lea rdx, [0x14001f1a8]
mov rsi, r9
mov qword [rsp + 0x3c0], rax
call fcn.140011528
lea rcx, [rsp + 0x130]
mov word [rsp + 0x30], bx
call fcn.140011448
cmp eax, ebx
je 0x1400163ee
mov rbp, qword [rsp + 0xb70]
lea rcx, [rsp + 0x130]
call fcn.1400111a8
cmp eax, ebx
je 0x1400163bb
cmp word [rsp + 0x3f4], 0x53
je 0x1400162fd
cmp word [rsp + 0x3f4], 0x73
jne 0x140016310
cmp word [rsp + 0x3f6], 0x2d
lea rdx, [rsp + 0x3f4]
je 0x140016318
mov rdx, qword [rsp + 0xb78]
lea rcx, [rsp + 0x30]
mov r8d, 0x80
call fcn.140012c94
mov rcx, qword [rsp + 0xb50]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x618]
mov r9, rsi
mov r8, rdi
mov qword [rsp + 0x20], rbp
call fcn.14001624c
cmp eax, ebx
jne 0x1400163e9
xor eax, eax
or r8, 0xffffffffffffffff
mov rcx, r8
repne scasw ax, word [rdi]
lea rdi, [rsp + 0x618]
not rcx
lea rdx, [rcx - 1]
mov rcx, r8
repne scasw ax, word [rdi]
mov rdi, qword [rsp + 0xb60]
not rcx
lea rax, [rdx + rcx]
cmp rax, 0x104
jae 0x1400163a7
lea rcx, [rsp + 0x618]
mov r8, rsi
mov rdx, rdi
call fcn.140013c84
jmp 0x1400163aa
mov word [rsi], bx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400163d1
mov word [rsi], bx
lea rcx, [rsp + 0x130]
call fcn.140011448
cmp eax, ebx
je 0x1400163ee
jmp 0x1400162d2
mov ebx, 1
lea rdx, [rsp + 0x30]
mov rcx, rbp
lea r8d, [rbx + 0x7f]
call fcn.140012c94
jmp 0x1400163ee
mov ebx, 1
lea rcx, [rsp + 0x130]
call fcn.140010da8
mov eax, ebx
mov rbx, qword [rsp + 0xb58]
add rsp, 0xb30
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400166bc
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, r8
mov rbp, rcx
call fcn.1400164dc
test eax, eax
mov ebx, eax
je 0x140016776
xor edx, edx
mov rcx, rdi
call fcn.140013204
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x140016774
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [rbp + 0xb0]
cmp eax, edx
mov ebx, eax
jl 0x140016725
add edx, dword [rbp + 0xb4]
cmp edx, eax
jle 0x14001670f
lea rcx, [rbp + 0xa8]
call fcn.140010ba8
cmp ebx, 0x32
jbe 0x140016767
mov rdx, qword [rbp + 0xa8]
and dword [rsp + 0x30], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rdx, qword [rbp + 0xa8]
lea rcx, [rbp + 8]
mov r8d, 0xa0
mov ebx, eax
call sub.msvcrt.dll_memcpy
jmp 0x140016769
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140016776
xor ebx, ebx
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140016a4c
Capabilities:
Authenticate hmac
Encode data using add xor sub operations
Encode data using xor

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 r12
push r13
push r14
sub rsp, 0x340
mov rdi, r9
mov ebp, r8d
mov r13d, edx
mov r12, rcx
mov ebx, 0x14
call fcn.1400165fc
cmp ebp, ebx
mov r14d, 0xff
lea rcx, [rsp + 0x41]
cmovb ebx, ebp
xor esi, esi
mov r8, r14
xor edx, edx
mov byte [rsp + 0x40], sil
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x141]
mov r8, r14
xor edx, edx
mov byte [rsp + 0x140], sil
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x241]
mov r8, r14
xor edx, edx
mov byte [rsp + 0x240], sil
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x40]
mov r8, rbx
mov rdx, rdi
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x140]
mov r8, rbx
mov rdx, rdi
call sub.msvcrt.dll_memcpy
cmp ebp, esi
jbe 0x140016b18
mov rax, rbp
xor byte [rsp + rsi + 0x40], 0x5c
xor byte [rsp + rsi + 0x140], 0x36
add rsi, 1
sub rax, 1
jne 0x140016b01
lea rax, [rsp + 0x240]
lea r8, [rsp + 0x140]
mov r9d, ebp
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x390]
mov edx, r13d
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x388]
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.14001686c
mov edx, r13d
mov rcx, r12
call fcn.1400161fc
mov rcx, qword [rsp + 0x398]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x240]
mov r9d, ebp
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.14001679c
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x140016f4c
Capabilities:
Authenticate hmac
Encode data using add xor sub operations
Encode data using xor

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 r12
push r13
push r14
sub rsp, 0x340
mov rdi, r9
mov ebp, r8d
mov r13d, edx
mov r12, rcx
call fcn.1400165fc
mov ebx, dword [rsp + 0x380]
cmp ebp, ebx
mov r14d, 0xff
lea rcx, [rsp + 0x41]
cmovb ebx, ebp
xor esi, esi
mov r8, r14
xor edx, edx
mov byte [rsp + 0x40], sil
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x141]
mov r8, r14
xor edx, edx
mov byte [rsp + 0x140], sil
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x241]
mov r8, r14
xor edx, edx
mov byte [rsp + 0x240], sil
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x40]
mov r8, rbx
mov rdx, rdi
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x140]
mov r8, rbx
mov rdx, rdi
call sub.msvcrt.dll_memcpy
cmp ebp, esi
jbe 0x14001701a
mov rax, rbp
xor byte [rsp + rsi + 0x40], 0x5c
xor byte [rsp + rsi + 0x140], 0x36
add rsi, 1
sub rax, 1
jne 0x140017003
lea rax, [rsp + 0x240]
lea r8, [rsp + 0x140]
mov r9d, ebp
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x390]
mov edx, r13d
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x388]
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.14001686c
mov edx, r13d
mov rcx, r12
call fcn.1400161fc
mov rcx, qword [rsp + 0x398]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x240]
mov r9d, ebp
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.14001686c
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x1400170bc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov rbx, r9
mov r15, r8
mov r12d, edx
mov r13, rcx
call fcn.1400165fc
xor ebp, ebp
lea edi, [rbp + 0x3f]
lea rcx, [rsp + 0x81]
xor edx, edx
mov r8, rdi
mov byte [rsp + 0x80], bpl
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x41]
mov r8, rdi
xor edx, edx
mov byte [rsp + 0x40], bpl
call sub.msvcrt.dll_memset
mov edx, r12d
mov rcx, r13
call fcn.1400161fc
lea r14d, [rbp + 0x40]
cmp r12d, 0x800e
mov edi, eax
mov eax, 0x80
mov r9, r15
cmove r14d, eax
lea rax, [rsp + 0x80]
mov rcx, r13
mov qword [rsp + 0x38], rax
lea eax, [rbp + 0x14]
mov r8d, r14d
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
call fcn.140016f4c
mov ebx, dword [rsp + 0x118]
cmp ebx, 1
jne 0x14001718c
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
mov r8, rdi
call sub.msvcrt.dll_memcpy
lea eax, [rbx - 1]
test eax, eax
je 0x140017207
mov rbx, rdi
mov esi, eax
lea rax, [rsp + 0x40]
mov r9, r15
mov r8d, r14d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x80]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rax
mov edx, r12d
mov rcx, r13
mov dword [rsp + 0x20], 0x14
call fcn.140016f4c
test edi, edi
mov ebp, eax
je 0x1400171ec
xor edx, edx
mov r8, rbx
mov cl, byte [rsp + rdx + 0x80]
add rdx, 1
xor byte [rsp + rdx + 0x3f], cl
sub r8, 1
jne 0x1400171d7
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x80]
mov r8, rbx
call sub.msvcrt.dll_memcpy
sub rsi, 1
jne 0x140017198
mov rcx, qword [rsp + 0x120]
lea rdx, [rsp + 0x40]
mov r8, rdi
call sub.msvcrt.dll_memcpy
lea r11, [rsp + 0xc0]
mov eax, ebp
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140018720
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
jne 0x14001881e
lea rcx, str.advapi32.dll
call fcn.140013394
lea rdx, str.CryptAcquireContextW
mov rcx, rax
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptReleaseContext
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptCreateHash
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptGetHashParam
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptHashData
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptDestroyHash
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptDecrypt
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptDeriveKey
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptImportKey
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptDestroyKey
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CryptDuplicateKey
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x48], rax
add rsp, 0x20
pop rbx
ret
Function at 0x140018d58
Capabilities:
Encrypt data using dpapi

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov eax, dword [rcx + 0x950]
xor r13d, r13d
mov rsi, r9
cmp eax, 1
mov rbp, rdx
mov rdi, rcx
mov qword [r11 - 0x28], r13
je 0x140018dad
cmp eax, 3
je 0x140018dad
cmp eax, 4
je 0x140018dad
mov rax, qword [rsp + 0xa8]
add rcx, 0x298
mov qword [r11 - 0x30], rax
jmp 0x140018e4e
mov edx, dword [rcx + 0x954]
cmp edx, r13d
je 0x140018dc2
lea rcx, [rsp + 0x40]
call fcn.14001076c
mov r12, qword [rsp + 0xa8]
xor r9d, r9d
mov r8, rsi
mov qword [rsp + 0x30], r12
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
cmp dword [rdi + 0x954], r13d
mov ebx, eax
je 0x140018dff
lea rcx, [rsp + 0x40]
call fcn.1400105ec
cmp ebx, r13d
jne 0x140018e67
mov eax, dword [rdi + 0x954]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r13d
lea rcx, [rsp + 0x70]
mov r9, rsi
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x70], eax
mov qword [rsp + 0x20], r13
call fcn.14000986c
cmp eax, r13d
mov ebx, eax
jne 0x140018e67
lea rcx, [rdi + 0x298]
mov qword [rsp + 0x38], r12
mov r9, rsi
mov rdx, rbp
mov dword [rsp + 0x30], r13d
xor r8d, r8d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call fcn.140017a4c
mov ebx, eax
lea rcx, [rsp + 0x40]
call fcn.1400105bc
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x14000ca20
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rax
add qword [rdx + 0x30], 8
movzx ecx, byte [rcx]
mov qword [rsp], rcx
mov r9, qword [rdx + 0x40]
test r9, r9
je 0x14000cac0
mov r11d, 8
mov r8d, 8
sub r8, r9
cmp r8, 8
cmovb r11, r8
xor r10d, r10d
xor eax, eax
cmp r11, 4
cmovae r10, rcx
setae al
lea rcx, [rax*4 + 1]
shl rax, 2
cmp rcx, r11
jae 0x14000ca89
movzx esi, word [rsp + rax]
lea ecx, [rax*8]
shl rsi, cl
or r10, rsi
or rax, 2
cmp rax, r11
jae 0x14000ca9e
movzx r11d, byte [rsp + rax]
shl eax, 3
mov ecx, eax
shl r11, cl
or r10, r11
lea ecx, [r9*8]
shl r10, cl
or r10, qword [rdx + 0x38]
mov qword [rdx + 0x38], r10
cmp r9, 8
jbe 0x14000cac5
add r9, 8
jmp 0x14000cbf6
xor r8d, r8d
jmp 0x14000cb19
mov r9, qword [rdx + 0x18]
mov rcx, qword [rdx + 0x10]
mov rax, qword [rdx]
add rax, rcx
rol rcx, 0xd
xor r9, r10
xor rcx, rax
rol rax, 0x20
mov r11, qword [rdx + 8]
add r11, r9
rol r9, 0x10
xor r9, r11
add rax, r9
rol r9, 0x15
xor r9, rax
add r11, rcx
rol rcx, 0x11
mov qword [rdx + 0x18], r9
xor rcx, r11
rol r11, 0x20
mov qword [rdx + 0x10], rcx
mov qword [rdx + 8], r11
xor rax, r10
mov qword [rdx], rax
mov eax, 8
sub rax, r8
mov r9d, eax
and r9d, 7
and rax, 0xfffffffffffffff8
cmp r8, rax
jae 0x14000cb92
mov rcx, qword [rdx]
mov r10, qword [rdx + 8]
mov rsi, qword [rdx + 0x18]
mov r11, qword [rdx + 0x10]
add rcx, r11
rol r11, 0xd
mov rdi, qword [rsp + r8]
xor r11, rcx
rol rcx, 0x20
xor rsi, rdi
add r10, rsi
rol rsi, 0x10
xor rsi, r10
add rcx, rsi
rol rsi, 0x15
add r10, r11
rol r11, 0x11
xor r11, r10
rol r10, 0x20
xor rsi, rcx
xor rcx, rdi
add r8, 8
cmp r8, rax
jb 0x14000cb40
mov qword [rdx + 0x18], rsi
mov qword [rdx + 0x10], r11
mov qword [rdx + 8], r10
mov qword [rdx], rcx
cmp r9d, 3
jbe 0x14000cbaf
mov r10d, dword [rsp + r8]
mov eax, 4
mov rcx, rax
or rcx, 1
cmp rcx, r9
jb 0x14000cbc0
jmp 0x14000cbda
xor eax, eax
xor r10d, r10d
mov rcx, rax
or rcx, 1
cmp rcx, r9
jae 0x14000cbda
lea rcx, [rax + r8]
movzx r11d, word [rsp + rcx]
lea ecx, [rax*8]
shl r11, cl
or r10, r11
or rax, 2
cmp rax, r9
jae 0x14000cbf2
add r8, rax
movzx r8d, byte [rsp + r8]
shl eax, 3
mov ecx, eax
shl r8, cl
or r10, r8
mov qword [rdx + 0x38], r10
mov qword [rdx + 0x40], r9
add rsp, 8
pop rdi
pop rsi
ret
Function at 0x140011fa0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r13d, r13d
cmp r8, 0x201
jae 0x140012040
jmp 0x14001202f
jae 0x140012100
cmp r8, 0x201
jae 0x140012040
lea r12, [rbp - 0x58]
mov esi, 0x200
mov r15, r8
jmp 0x140012098
sub r8, r13
sub rdi, r13
cmp rdi, r8
jae 0x14001206f
lea rcx, [rbp + 0x3c8]
mov rdx, r13
call fcn.14002b5b0
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rbp + 0x3d8], r13
mov rdi, rbx
mov r12, qword [rbp + 0x3e8]
mov rsi, r13
mov r15, r13
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r12
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x1400120c1
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140012168
mov r8d, r14d
cmp r15, r8
jne 0x140012020
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001218b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14001202f
jmp 0x140012040
cmp rsi, r8
jb 0x1400121a5
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.140014b90
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x140012151
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.1400068b0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rbx, rbx
jne 0x140012139
jmp 0x140012151
lea rcx, [0x140034003]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14002c200
jmp 0x1400121ba
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14002c5f0
ud2