joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006bc4
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14002b460]
xor rax, rsp
mov qword [rbp + 0x170], rax
and qword [rsp + 0x48], 0
lea rcx, [rsp + 0x60]
and dword [rsp + 0x40], 0
mov r15d, r8d
mov r14, rdx
mov r8d, 0x208
xor edx, edx
mov rsi, r9
call sub.msvcrt.dll_memset
mov dword [rsp + 0x44], 0x104
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x48]
lea edx, [rdi + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140006d27
mov rcx, qword [rsp + 0x48]
lea rdx, str.SeTakeOwnershipPrivilege
call fcn.1400069b4
test eax, eax
je 0x140006d27
mov rcx, qword [rsp + 0x48]
lea rdx, str.SeRestorePrivilege
call fcn.1400069b4
test eax, eax
je 0x140006d27
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x44]
mov rdx, rsi
mov qword [rsp + 0x28], rax
xor ecx, ecx
and qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140006cac
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140006d27
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__]
lea r9, [rsp + 0x40]
mov rdx, rsi
mov rbx, rax
xor ecx, ecx
lea rax, [rsp + 0x50]
mov r8, rbx
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x140006d19
and qword [rsp + 0x30], rdi
mov esi, 1
and qword [rsp + 0x28], rdi
mov r8d, esi
and qword [rsp + 0x20], rdi
mov r9, rbx
mov edx, r15d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
cmove edi, esi
test rbx, rbx
je 0x140006d27
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140006d37
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14001a4a0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000727c
Capabilities:
Create process on windows
Get common file path

Disassembly:
push rbp
lea rbp, [rsp - 0x1200]
mov eax, 0x1300
call fcn.14001a5e0
sub rsp, rax
mov rax, qword [0x14002b460]
xor rax, rsp
mov qword [rbp + 0x11f0], rax
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [rsp + 0x70], 0x68
mov edx, 0x104
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov dword [rbp - 0x54], 1
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor r8d, r8d
lea rdx, str.appwiz.cpl
lea rcx, [rbp + 0x1f0]
call fcn.140007b50
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x1f0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000735c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14000735e
xor al, al
mov rcx, qword [rbp + 0x11f0]
xor rcx, rsp
call fcn.14001a4a0
add rsp, 0x1300
pop rbp
ret
Function at 0x1400075e0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x1070]
mov eax, 0x1170
call fcn.14001a5e0
sub rsp, rax
mov rax, qword [0x14002b460]
xor rax, rsp
mov qword [rbp + 0x1060], rax
xor edx, edx
mov ebx, ecx
lea rcx, [rsp + 0x74]
lea r8d, [rdx + 0x64]
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [rsp + 0x70], 0x68
mov r8b, 1
mov qword [rsp + 0x50], rax
lea rdx, str.inetcpl.cpl
mov qword [rsp + 0x58], rax
lea rcx, [rbp + 0x60]
mov qword [rsp + 0x60], rax
call fcn.140007b50
test ebx, ebx
je 0x140007678
mov r9d, ebx
lea r8, str.___d
mov edx, 0x40
lea rcx, [rbp - 0x20]
call fcn.140006960
lea r8, [rbp - 0x20]
mov edx, 0x800
lea rcx, [rbp + 0x60]
call fcn.140016a90
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x60]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400076d5
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1400076d7
xor al, al
mov rcx, qword [rbp + 0x1060]
xor rcx, rsp
call fcn.14001a4a0
mov rbx, qword [rsp + 0x1188]
add rsp, 0x1170
pop rbp
ret
Function at 0x140007a90
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x50
lea rcx, str.SeDebugPrivilege
call fcn.1400079b4
lea rcx, str.SeIncreaseQuotaPrivilege
call fcn.1400079b4
lea rcx, str.SeAssignPrimaryTokenPrivilege
call fcn.1400079b4
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.IsWow64Process
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.kernel32
mov qword [0x14002da90], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.GetNativeSystemInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002da88], rax
mov rbx, rax
test rax, rax
jne 0x140007b12
mov byte [0x14002da84], al
jmp 0x140007b47
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x30]
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
call rbx
cmp word [rsp + 0x20], 9
je 0x140007b40
cmp word [rsp + 0x20], 6
mov byte [0x14002da84], 0
jne 0x140007b47
mov byte [0x14002da84], 1
mov al, 1
add rsp, 0x50
pop rbx
ret

Function at 0x140007b50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x780]
sub rsp, 0x880
mov rax, qword [0x14002b460]
xor rax, rsp
mov qword [rbp + 0x770], rax
mov rdi, rdx
mov rbx, rcx
mov esi, 0x104
test r8b, r8b
je 0x140007ba6
xor r9d, r9d
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x29]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
jmp 0x140007bb3
mov edx, esi
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rsp + 0x30]
mov rdx, rsi
lea rcx, [rbp + 0x560]
call fcn.140012500
lea rdx, str.rundll32.exe
lea rcx, [rbp + 0x560]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea r8, [rsp + 0x30]
mov rdx, rsi
lea rcx, [rbp + 0x350]
call fcn.140012500
lea rdx, str.shell32.dll
lea rcx, [rbp + 0x350]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea r8, [rsp + 0x30]
mov rdx, rsi
lea rcx, [rbp + 0x140]
call fcn.140012500
mov rdx, rdi
lea rcx, [rbp + 0x140]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rax, [rbp + 0x140]
mov edx, 0x800
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x560]
lea rax, [rbp + 0x350]
mov rcx, rbx
lea r8, str.__ws____ws__Control_RunDLL___ws_
mov qword [rsp + 0x20], rax
call fcn.140006960
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.14001a4a0
mov rbx, qword [rsp + 0x8b0]
add rsp, 0x880
pop rdi
pop rsi
pop rbp
ret
Function at 0x140009580
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002b460]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ebx, 0x105
lea rcx, [rsp + 0x20]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x140009666
lea r8, str._SYSTEMROOT__system32
mov edx, ebx
lea rax, [rsp + 0x130]
sub r8, rax
lea rcx, [rsp + 0x130]
lea rax, [rdx + 0x7ffffef9]
test rax, rax
je 0x1400095f4
mov al, byte [r8 + rcx]
test al, al
je 0x1400095f4
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x1400095d5
test rdx, rdx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
mov rax, rdx
neg rax
sbb edi, edi
not edi
and edi, 0x8007007a
test rdx, rdx
jne 0x14000962b
lea ecx, [rdx + 2]
call fcn.1400168c0
lea rdx, str.LoadUpdateProviderFunctions:_StringCchCopyA_failed:_0x_x_n
jmp 0x140009786
mov r8d, ebx
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x140009666
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call fcn.1400168c0
mov r8d, ebx
lea rdx, str.LoadUpdateProviderFunctions:_Unable_to_expand_environment_string:__d_n
jmp 0x140009789
mov rcx, rbx
lea rax, [rsp + 0x20]
cmp byte [rax], 0
je 0x14000967c
inc rax
sub rcx, 1
jne 0x14000966e
mov rax, rcx
neg rax
sbb edi, edi
not edi
and edi, 0x80070057
test rcx, rcx
je 0x140009699
mov rax, rbx
sub rax, rcx
jmp 0x14000969b
xor eax, eax
test rcx, rcx
je 0x140009775
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax]
sub rbx, rax
je 0x1400096e1
lea rdx, [rax + 0x7ffffef9]
add rdx, rbx
lea r8, str.ws2_32.dll
sub r8, rcx
test rdx, rdx
je 0x1400096e1
mov al, byte [r8 + rcx]
test al, al
je 0x1400096e1
mov byte [rcx], al
dec rdx
inc rcx
sub rbx, 1
jne 0x1400096c6
test rbx, rbx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], 0
mov rax, rbx
neg rax
sbb edi, edi
not edi
and edi, 0x8007007a
test rbx, rbx
je 0x140009775
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x140009742
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call fcn.1400168c0
mov rcx, rax
lea r8, [rsp + 0x20]
mov r9d, ebx
lea rdx, str.LoadUpdateProviderFunctions:_Unable_to_load__s:__d_n
call fcn.140007cd0
jmp 0x140009791
lea rdx, str.WSCUpdateProvider
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WSCUpdateProvider32
mov rcx, rbx
mov qword [0x14002daa0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002da98], rax
mov rax, rbx
jmp 0x140009793
mov ecx, 2
call fcn.1400168c0
lea rdx, str.LoadUpdateProviderFunctions:_StringCchCatA_failed:_0x_x_n
mov r8d, edi
mov rcx, rax
call fcn.140007cd0
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14001a4a0
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
Function at 0x140009cd8
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x14002b460]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdx, rcx
lea r8, [0x1400258a0]
xor ebx, ebx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rbx
call fcn.140016980
mov r9, qword [rsp + 0x20]
test r9, r9
je 0x140009d8d
lea edx, [rbx + 0x40]
lea r8d, [rbx + 1]
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_fread]
mov edx, dword [rsp + 0x7c]
xor r8d, r8d
mov rcx, qword [rsp + 0x20]
add edx, 4
call qword [sym.imp.msvcrt.dll_fseek]
mov r9, qword [rsp + 0x20]
lea edx, [rbx + 0x14]
lea r8d, [rbx + 1]
lea rcx, [rsp + 0x28]
call qword [sym.imp.msvcrt.dll_fread]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.msvcrt.dll_fclose]
movzx eax, word [rsp + 0x28]
mov ecx, 0x200
cmp ax, cx
je 0x140009d84
mov ecx, 0x8664
cmp ax, cx
je 0x140009d84
mov ecx, 0xaa64
cmp ax, cx
jne 0x140009d89
mov ebx, 1
mov eax, ebx
jmp 0x140009d8f
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14001a4a0
add rsp, 0x90
pop rbx
ret
Function at 0x140009e78
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x21b0]
mov eax, 0x22b0
call fcn.14001a5e0
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x22f0], rbx
mov rax, qword [0x14002b460]
xor rax, rsp
mov qword [rbp + 0x21a0], rax
mov ebx, edx
mov r15, rcx
mov edi, 0x2000
mov r8d, edi
xor edx, edx
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll_memset
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1f90]
call sub.msvcrt.dll_memset
mov r8d, ebx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
je 0x14000a05e
lea rdx, str.___
lea rcx, [rsp + 0x38]
call fcn.140005224
nop
and qword [rsp + 0x58], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
lea r9, [rsp + 0x34]
mov r8d, edi
lea rdx, [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x14000a035
xor esi, esi
test dword [rsp + 0x34], 0xfffffff8
jbe 0x14000a035
mov dil, byte [rsp + 0x30]
mov bl, byte [rsp + 0x30]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1f90]
call sub.msvcrt.dll_memset
mov r9d, 0x104
lea r8, [rbp + 0x1f90]
mov rdx, qword [rbp + rsi*8 - 0x70]
mov rcx, r14
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x14000a024
mov rdx, qword [rsp + 0x38]
lea rcx, [rbp + 0x1f90]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x140009fdc
mov rcx, qword [rsp + 0x38]
movsxd rdx, dword [rcx - 0x10]
lea rdx, [rax + rdx*2]
lea rcx, [rsp + 0x40]
call fcn.140005224
nop
lea rcx, [r15 + 0x18]
mov byte [rsp + 0x20], dil
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x70]
call fcn.14000a084
nop
mov rdx, qword [rsp + 0x40]
jmp 0x14000a00a
lea rdx, [rbp + 0x1f90]
lea rcx, [rsp + 0x48]
call fcn.140005224
nop
lea rcx, [r15 + 0x18]
mov byte [rsp + 0x20], bl
lea r9, [rsp + 0x48]
lea rdx, [rbp - 0x80]
call fcn.14000a084
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000a024
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
inc esi
mov eax, dword [rsp + 0x34]
shr eax, 3
cmp esi, eax
jb 0x140009f56
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000a05e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rcx, qword [rbp + 0x21a0]
xor rcx, rsp
call fcn.14001a4a0
mov rbx, qword [rsp + 0x22f0]
add rsp, 0x22b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000c6bc
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x40
xor ebx, ebx
mov qword [rax - 0x10], rbx
mov qword [rax - 0x18], rbx
mov qword [rax - 0x20], rbx
mov qword [rax - 0x28], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x14000c728
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
mov r9, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x38
ret

Function at 0x14000c758
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
mov r9, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x38
ret

Function at 0x14000cbc8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rsi, r8
xor r9d, r9d
xor r8d, r8d
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x14000cc09
lea r9, [0x140022cf0]
xor edx, edx
lea r8, [0x140022cf0]
xor ecx, ecx
call fcn.14000c224
jmp 0x14000cc41
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000cbf0
cmp ebx, dword [rsp + 0x48]
je 0x14000cc45
xor edx, edx
lea r9, [0x140022cf0]
xor ecx, ecx
lea r8d, [rdx + 1]
call fcn.14000c17c
xor eax, eax
jmp 0x14000cc4a
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000d6fc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov eax, dword [rcx + 8]
lea rbx, [rcx + 0xcd4]
mov r12d, dword [rcx + 0xcc]
lea rdx, [rcx + 0xd4]
mov ebp, dword [rsp + 0xa0]
xor r10d, r10d
mov qword [rbx], rax
mov r13, r9
mov dword [rbx + 8], 4
mov rdi, rcx
mov dword [rbx + 0xc], ebp
mov dword [rbx + 0x10], 1
lea r14d, [r10 + 2]
mov eax, dword [rcx + 0xc]
mov qword [rbx + 0x18], rax
mov dword [rbx + 0x20], 8
mov dword [rbx + 0x24], ebp
mov dword [rbx + 0x28], r10d
test ebp, ebp
je 0x14000d786
mov eax, dword [rcx + 0x20]
lea r14d, [r10 + 3]
mov qword [rbx + 0x30], rax
mov dword [rbx + 0x38], r10d
mov dword [rbx + 0x3c], ebp
mov dword [rbx + 0x40], r10d
jmp 0x14000d7cc
mov r9d, dword [rcx + 0x14]
test r12d, r12d
je 0x14000d7cc
mov r8, r12
mov eax, 0xf000
cmp word [rdx + 8], ax
jne 0x14000d7c2
mov eax, r14d
lea rcx, [rax + rax*2]
mov eax, dword [rdx]
add rax, r9
mov qword [rbx + rcx*8], rax
mov eax, dword [rdx + 4]
add eax, 7
mov qword [rbx + rcx*8 + 0xc], r10
and eax, 0xfffffff8
mov dword [rbx + rcx*8 + 8], eax
inc r14d
add rdx, 0xc
sub r8, 1
jne 0x14000d792
lea r15d, [r14 + r14*2]
shl r15d, 3
mov ecx, r15d
call fcn.14000c580
mov rsi, rax
test rax, rax
jne 0x14000d800
lea r9, [0x140022cf0]
xor edx, edx
lea r8, [0x140022cf0]
xor ecx, ecx
call fcn.14000c224
jmp 0x14000d8a7
mov r8d, r15d
mov rdx, rbx
mov rcx, rsi
call sub.msvcrt.dll_memcpy
mov r15, qword [rsp + 0x90]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov r9, r15
and qword [rsp + 0x30], 0
mov r8d, r14d
and qword [rsp + 0x28], 0
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], r13
call fcn.14000d188
test eax, eax
je 0x14000d89f
test ebp, ebp
jne 0x14000d8c1
test r12d, r12d
jne 0x14000d8c1
mov rcx, qword [rsp + 0x80]
lea rax, [rcx + 7]
cqo
and edx, 7
lea rdi, [rdx + rax]
and edi, 0xfffffff8
sub edi, ecx
je 0x14000d8c1
mov r8d, edi
xor edx, edx
mov rcx, rbx
call sub.msvcrt.dll_memset
mov r8d, edi
mov rdx, rbx
mov rcx, r13
call r15
test eax, eax
jne 0x14000d8c1
lea r9, [0x140022cf0]
xor edx, edx
xor ecx, ecx
lea r8d, [rbp + 0x11]
call fcn.14000c17c
mov rcx, rsi
call fcn.14000c5c4
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
call fcn.14000c5c4
mov eax, 1
jmp 0x14000d8a9

Function at 0x14000e020
Capabilities:
Get file size

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14000e045
lea r8, [0x140022cf0]
xor edx, edx
mov r9, r8
xor ecx, ecx
call fcn.14000c224
xor eax, eax
jmp 0x14000e04a
mov eax, 1
add rsp, 0x28
ret
Function at 0x14000f56c
Capabilities:
Hash data using sha256

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, 0x20
mov rdi, qword [rcx + 0x20]
mov rsi, rdx
mov r14, rdi
mov rbx, rcx
shl r14, 3
and edi, 0x3f
mov byte [rdi + rcx + 0x28], 0x80
jmp 0x14000f5b2
and edi, 0x3f
jne 0x14000f5ad
mov rcx, rbx
call fcn.14000f914
mov byte [rdi + rbx + 0x28], 0
inc edi
cmp edi, 0x38
jne 0x14000f5a0
lea ebp, [rdi - 0x30]
mov edx, ebp
mov rcx, r14
shl r14, 8
shr rcx, 0x38
mov byte [rdi + rbx + 0x28], cl
inc edi
sub rdx, 1
jne 0x14000f5be
mov rcx, rbx
call fcn.14000f914
mov rcx, rbx
mov al, byte [rcx + 3]
mov byte [rsi], al
lea rsi, [rsi + 4]
mov al, byte [rcx + 2]
mov byte [rsi - 3], al
mov eax, dword [rcx]
shr eax, 8
mov byte [rsi - 2], al
mov al, byte [rcx]
lea rcx, [rcx + 4]
mov byte [rsi - 1], al
sub rbp, 1
jne 0x14000f5e0
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov dword [rbx], 0x6a09e667
mov dword [rbx + 4], 0xbb67ae85
mov dword [rbx + 8], 0x3c6ef372
mov dword [rbx + 0xc], 0xa54ff53a
mov dword [rbx + 0x10], 0x510e527f
mov dword [rbx + 0x14], 0x9b05688c
mov dword [rbx + 0x18], 0x1f83d9ab
mov dword [rbx + 0x1c], 0x5be0cd19
and qword [rbx + 0x20], rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret

Function at 0x14000f65c
Capabilities:
Hash data using sha256

Disassembly:
and qword [rcx + 0x20], 0
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
ret
Function at 0x14000f994
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x100
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14002b460]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor r14d, r14d
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x20], eax
lea r9, str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
lea r8, str._s__u
lea edx, [r14 + 0x41]
lea rcx, [rsp + 0x60]
call fcn.140010154
mov word [rsp + 0xe0], r14w
mov edi, r14d
lea r8, [rsp + 0x60]
lea edx, [r14 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14000facd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000fa43
or edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
call fcn.14000ffcc
test rax, rax
je 0x14000fa71
mov qword [rbx], rax
mov rax, qword [rbx]
inc dword [rax + 0x5d0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test edi, edi
jne 0x14000facd
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000facd
mov rdi, r14
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x14000fa93
xor edx, edx
mov r8d, 0x5d8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
mov qword [rsp + 0x50], rdi
test rdi, rdi
je 0x14000faaa
mov rdx, rsi
mov rcx, rdi
call fcn.14000fb30
jmp 0x14000faad
mov rax, r14
mov qword [rbx], rax
test rax, rax
je 0x14000fafa
mov edi, 1
mov rcx, rax
call fcn.1400100fc
test eax, eax
je 0x14000fb13
jmp 0x14000fa50
mov rax, rbx
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.14001a4a0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov dword [rsp + 0x30], 1
lea rdx, [0x140028e48]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x34], 3
lea rdx, [0x140028e48]
lea rcx, [rsp + 0x34]
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x14000fb30
Capabilities:
Allocate thread local storage

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rsi, rdx
mov rdi, rcx
and qword [rcx], 0
or dword [rcx + 8], 0xffffffff
lea rbx, [rcx + 0x10]
and dword [rbx], 0
lea rcx, [rbx + 8]
xor edx, edx
mov r8d, 0x5a0
call sub.msvcrt.dll_memset
mov qword [rbx + 0x5b0], rbx
mov qword [rbx + 0x5a8], rbx
mov qword [rbx + 0x5b8], rbx
and dword [rdi + 0x5d0], 0
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rdi + 8], eax
cmp eax, 0xffffffff
je 0x14000fbb2
mov qword [rdi], rsi
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov dword [rsp + 0x50], 2
lea rdx, [0x140028e48]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll__CxxThrowException
int3