joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140101310
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x140189028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x40]
mov qword [rbx + 0x50], rax
movaps xmm0, xmmword [0x140165260]
movaps xmmword [rbx + 0x40], xmm0
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.DeleteFileAfterReboot
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x189
call fcn.14007e860
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.140084a50
mov al, byte [rsi + 0x17]
test al, al
jns 0x1401013a0
cmp qword [rsi + 8], 0x103
ja 0x1401013be
test al, al
jns 0x1401013a7
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
lea rcx, [rsp + 0x40]
call fcn.140084ab0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400b51f0
mov eax, edi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140101be0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x140189028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x140101c5f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x140101c64
test bl, bl
je 0x140101c3b
cmp byte [rdi + 8], 0
je 0x140101cc0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
mov edx, esi
call fcn.1400352d0
mov sil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400b51f0
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rdi]
jmp 0x140101c0d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x140101c8c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140101c91
xor esi, esi
jmp 0x140101c48
mov rcx, qword [rdi]
jmp 0x140101c79
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 8], 0
je 0x140101cc8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x140101c3b
mov esi, dword [rsp + 0x24]
jmp 0x140101c3b
mov rcx, qword [rdi]
jmp 0x140101c30
mov rcx, qword [rdi]
jmp 0x140101ca8
Function at 0x14011f420
Capabilities:
Hash data using sha512

Disassembly:
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 8], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x38], rax
movabs rax, 0x4000000000
mov qword [rcx + 0xd0], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x40], xmm0
mov eax, 1
ret
Function at 0x140123300
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov edx, dword [rsp + 0xe0]
mov rax, qword [0x140189028]
xor rax, rsp
mov qword [rsp + 0x80], rax
movsxd r8, dword [rcx + 0x18]
lea ecx, [rdx + 4]
mov r11, rcx
shr r11, 6
xor eax, eax
mov r10d, 0
cmp r11, r8
jae 0x14012335c
mov r10, qword [r9 + r11*8]
shr r10, cl
shl r10d, 5
and r10d, 0x20
lea ecx, [rdx + 3]
mov r11, rcx
shr r11, 6
cmp r11, r8
jae 0x140123378
mov rax, qword [r9 + r11*8]
shr rax, cl
shl eax, 4
and eax, 0x10
or eax, r10d
lea ecx, [rdx + 2]
mov r14, rcx
shr r14, 6
xor r10d, r10d
mov r11d, 0
cmp r14, r8
jae 0x1401233a2
mov r11, qword [r9 + r14*8]
shr r11, cl
shl r11d, 3
and r11d, 8
or eax, r11d
lea ecx, [rdx + 1]
mov r11, rcx
shr r11, 6
cmp r11, r8
jae 0x1401233c3
mov r10, qword [r9 + r11*8]
shr r10, cl
shl r10d, 2
and r10d, 4
or eax, r10d
mov ecx, edx
mov r11, rcx
shr r11, 6
xor r10d, r10d
cmp r11, r8
jae 0x1401233e5
mov r10, qword [r9 + r11*8]
shr r10, cl
add r10d, r10d
and r10d, 2
or eax, r10d
test edx, edx
je 0x14012340b
dec edx
mov r10, rdx
shr r10, 6
xor ecx, ecx
cmp r10, r8
jae 0x140123409
mov r8, qword [r9 + r10*8]
xor ecx, ecx
bt r8, rdx
setb cl
or eax, ecx
mov r14d, eax
shr r14, 5
lea ecx, [r14 - 1]
neg r14
and ecx, eax
xor eax, 0x3f
mov r15d, r14d
and r15d, eax
or r15d, ecx
mov rax, r15
shr rax, 1
and r15d, 1
add r15, rax
xor r12d, r12d
mov r8d, 0xd8
mov rcx, rsi
xor edx, edx
call fcn.1400b7320
mov r8, r12
xor r8, r15
dec r8
sar r8, 0x3f
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov rdx, rsi
mov r9, rbx
call fcn.140120260
inc r12
add rbx, 0xd8
cmp r12, 0x11
jne 0x140123447
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
movaps xmm0, xmmword [0x140165260]
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
add rsi, 0x48
mov ecx, dword [rdi + 0x40]
test ecx, ecx
jle 0x1401234be
xor edx, edx
xor eax, eax
or rax, qword [rsi + rdx*8]
inc rdx
cmp rcx, rdx
jne 0x1401234b0
jmp 0x1401234c0
xor eax, eax
test rcx, rcx
je 0x140123550
movsxd rcx, ecx
mov rdx, qword [rdi + 0x38]
xor r8d, r8d
lea r9, [rsp + 0x30]
sub r10, r10
jmp 0x1401234e0
mov r10, qword [rdx + r8*8]
sbb r10, qword [rsi + r8*8]
mov qword [r9 + r8*8], r10
lea r8, [r8 + 1]
dec rcx
jne 0x1401234e0
sbb r10, r10
mov ecx, dword [rdi + 0x40]
test ecx, ecx
jle 0x14012351b
xor edx, edx
mov r8, rax
test rax, rax
je 0x14012350e
mov r8, qword [rsp + rdx*8 + 0x30]
mov qword [rsp + rdx*8 + 0x30], r8
inc rdx
cmp rcx, rdx
jne 0x140123501
test rcx, rcx
je 0x140123550
and r14d, 1
mov rax, r14
neg rax
dec r14
movsxd rcx, ecx
xor edx, edx
mov r8, qword [rsp + rdx*8 + 0x30]
and r8, rax
mov r9, qword [rsi + rdx*8]
and r9, r14
or r9, r8
mov qword [rsi + rdx*8], r9
inc rdx
cmp rcx, rdx
jne 0x140123532
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400b51f0
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140135eb0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, rdx
mov rsi, rcx
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
je 0x140135eee
test rax, rax
je 0x140135fab
mov rcx, qword [r14]
mov qword [rax], rcx
add rax, 8
mov qword [rsi + 8], rax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
sub rax, qword [rsi]
mov rbx, rax
sar rbx, 3
lea rcx, [rbx + 1]
mov rdx, rcx
shr rdx, 0x3d
jne 0x140135fd7
movabs rdx, 0x1fffffffffffffff
lea rdi, [rsi + 0x18]
mov r15, rax
sar r15, 2
cmp r15, rcx
cmovbe r15, rcx
movabs rcx, 0x7ffffffffffffff8
cmp rax, rcx
cmovae r15, rdx
test r15, r15
jne 0x140135f9e
xor eax, eax
shl rbx, 3
add rbx, rax
je 0x140135fab
lea r15, [rax + r15*8]
mov rax, qword [r14]
mov qword [rbx], rax
lea r14, [rbx + 8]
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
sub rbx, r8
mov rcx, rbx
call fcn.1400b6c70
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
mov qword [rsi], rbx
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r15
test rdx, rdx
je 0x140135ee2
sub r8, rdx
sar r8, 3
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.140136510
mov rcx, rdi
mov rdx, r15
call fcn.140136a90
jmp 0x140135f3d
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1400e78a0
call fcn.1400c9320
int3

Function at 0x14013eab0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14013eaec
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14013eaf6
add rdi, rbx
sub rsi, rbx
jne 0x14013eaca
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400c9320
int3

Function at 0x140146940
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140189028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x1401469c8
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x1401469c1
mov rdx, rcx
add rdi, rdx
cmp al, 1
jne 0x140146982
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400b51f0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1401538b0
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp dword [r8], 0
jle 0x1401538cb
xor eax, eax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.140072190
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000080
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x140153979
mov r14, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140153979
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 8], rax
test rax, rax
je 0x1401539a4
mov qword [rdi + 0x28], rbx
mov al, 1
jmp 0x1401538c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x8007000e
jne 0x1401538bf
mov dword [rsi], 7
jmp 0x1401538bf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1401538bf
Function at 0x140013e50
Capabilities:
Terminate process

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 r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140156b70], rbx
je 0x140013eb7
cmp rax, rbx
jne 0x140013eaa
mov ebx, 1
mov esi, ebx
jmp 0x140013ebc
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140013e8f
mov ebx, 1
mov eax, dword [0x140156b78]
cmp eax, ebx
jne 0x140013ed4
mov edi, 0x1f
mov ecx, edi
call fcn.1401f3000
jmp 0x140013f40
mov eax, dword [0x140156b78]
test eax, eax
jne 0x140013f35
mov dword [0x140156b78], ebx
lea r15, [0x1400f0f40]
lea rdi, [0x1400f0f28]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140013f27
test eax, eax
jne 0x140013f2b
cmp qword [rdi], r14
je 0x140013f1c
mov rax, qword [rdi]
mov rcx, qword [0x1400f0e70]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140013efe
test eax, eax
je 0x140013f3b
mov eax, 0xff
jmp 0x140014096
mov dword [0x140156564], ebx
mov edi, 0x1f
mov eax, dword [0x140156b78]
cmp eax, ebx
jne 0x140013f67
lea rdx, [0x1400f0f20]
lea rcx, [0x1400f0e78]
call sub.msvcrt.dll__initterm
mov dword [0x140156b78], 2
test esi, esi
jne 0x140013f75
mov rax, r14
xchg qword [0x140156b70], rax
cmp qword [0x140156b90], r14
je 0x140013fa8
lea rcx, [0x140156b90]
call fcn.140014960
test eax, eax
je 0x140013fa8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140156b90]
mov r9, qword [0x1400f0e70]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140013fc1
mov eax, 0xff
jmp 0x140014096
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140014047
test ax, ax
je 0x140013fdc
test edx, edx
jne 0x140014047
sub ax, bx
cmp ax, di
ja 0x140013ff2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140013fdc
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140011a5c
mov dword [0x140156560], eax
cmp dword [0x140156580], r14d
jne 0x140014030
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140156564], r14d
jne 0x140014045
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140156560]
jmp 0x140014096
cmp ax, 0x22
jne 0x14001405b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140013fca
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400149f4
add rsp, 0x28
jmp 0x140013e50
Function at 0x14001485c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400148a8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400148a0
cmp dword [rcx + 0x3c], edx
jl 0x1400148a0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400148a0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400148a8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400bf350
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x810]
sub rsp, 0x910
mov rax, qword [0x1401563f0]
xor rax, rsp
mov qword [rbp + 0x800], rax
mov rdi, rcx
call qword [sym.imp.VssTrace.DLL_Ordinal_11]
cmp eax, dword [rdi + 4]
je 0x1400bf4a6
mov rdx, qword [rdi + 0x28]
lea r8, [rsp + 0x50]
mov ecx, dword [rdi + 0x24]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov dword [rdi + 4], eax
call qword [sym.imp.VssTrace.DLL_Ordinal_8]
test eax, eax
je 0x1400bf3b2
mov eax, dword [rsp + 0x50]
jmp 0x1400bf3c8
mov rcx, qword [rdi + 0x60]
test rcx, rcx
je 0x1400bf3c2
call fcn.1400bbdd8
jmp 0x1400bf3c8
call qword [sym.imp.VssTrace.DLL_Ordinal_6]
mov dword [rdi], eax
mov eax, dword [rdi + 4]
cmp dword [0x140156410], eax
je 0x1400bf4a6
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x800
call sub.msvcrt.dll_memset
lea rdx, [rbp]
call fcn.1400bb8c0
lea rax, str.base_stor_vssmodules_trace_fntracer.cpp
mov dword [rsp + 0x70], 0x24f
mov qword [rsp + 0x58], rax
lea rcx, [rbp - 0x80]
xor edx, edx
mov dword [rsp + 0x74], reloc.VssTrace.DLL_Ordinal_11
lea rax, str.CVssFunctionTracer::UpdateLocalIsTracingEnabledFlag
mov dword [rsp + 0x78], 0xff
mov qword [rsp + 0x60], rax
lea rax, str.TRCTRCC
mov qword [rsp + 0x68], rax
lea r8d, [rdx + 0x78]
mov dword [rbp - 8], 0x1000000
call sub.msvcrt.dll_memset
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
mov rbx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcessId]
mov ecx, dword [rdi + 4]
lea r8, str.TRACING_STARTED
mov dword [rsp + 0x48], ecx
lea rdx, [rsp + 0x58]
mov ecx, dword [0x140156410]
mov r9d, 0x78
mov dword [rsp + 0x40], ecx
lea rcx, [rbp]
mov qword [rsp + 0x38], rcx
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
lea rax, str.Tracing_started_or_updated._PID_d__CommandLine__s___UserName__s_._SQN__d_____d_
mov qword [rsp + 0x20], rax
call fcn.140003db0
mov eax, dword [rdi + 4]
mov dword [0x140156410], eax
mov rcx, qword [rbp + 0x800]
xor rcx, rsp
call fcn.1400140f0
lea r11, [rsp + 0x910]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400d264c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
lea r12, str.base_stor_vssmodules_registry_registry.cxx
mov qword [rsp + 0x40], r12
lea r13, str.CVssRegistryKey::SetBinaryValue
mov qword [rsp + 0x48], r13
lea rax, str.REGREGSC
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x16a
mov dword [rsp + 0x5c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x60], 0xff
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.1400ba170
nop
mov dword [rsp + 0x28], 0x48
mov qword [rsp + 0x20], rsi
mov r9d, 3
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x1400d2798
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r13
lea rax, str.REGREGSC
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x17d
mov dword [rsp + 0x5c], reloc.VssTrace.DLL_Ordinal_11
mov dword [rsp + 0x60], 0xff
mov dword [rbp - 0x20], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x68]
call sub.msvcrt.dll_memset
mov rcx, qword [rdi + 0x18]
test ebx, ebx
jle 0x1400d2764
movzx ebx, bx
or ebx, 0x80070000
mov dword [rsp + 0x38], 0x48
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rcx
mov rax, qword [rdi + 8]
mov qword [rsp + 0x20], rax
lea r9, str.RegSetValueExW_0x_08lx__s_0_REG_BINARY__p._lu_
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.1400bde10
nop
lea rcx, [rbp - 0x10]
call fcn.14000f940
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x140001ef0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140007c70
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007c70
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001f60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d0b4]
mov rbx, rcx
test esi, esi
jle 0x140002090
mov rax, qword [0x14000d0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001fab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002035
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001f90
mov rcx, rbx
call fcn.1400029b0
mov rdi, rax
test rax, rax
je 0x1400020b2
mov rax, qword [0x14000d0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002af0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002097
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000202e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002040
add dword [0x14000d0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000d0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000202e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001ef0
nop dword [rax]
xor esi, esi
jmp 0x140001fb8
mov rax, qword [0x14000d0b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001ef0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001ef0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002620
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d100]
test rbx, rbx
je 0x14000267c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002673
test rsi, rsi
je 0x140002673
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002658
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400029b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a940]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400029d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400029d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400029d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002a2d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002a24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400029d0
add rax, 0x28
cmp rax, r9
jne 0x140002a10
xor eax, eax
ret

Function at 0x140002a30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a940]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002a4f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002a58
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002a4f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002af0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a940]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002b0f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002b18
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret