joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140082280
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400bcfe9], 0
mov r12, rcx
mov r13, rdx
mov rdi, r8
je 0x140082308
lea rdx, [0x1400aaa5a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140082420
mov rsi, qword [0x1400bcea0]
jmp 0x1400822c5
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x1400822c0
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, r12
mov rdx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.14006fc50
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1400bcea0], rax
mov rdx, rax
mov r9d, dword [rax]
lea rax, [rax + 4]
mov qword [0x1400bcea0], rax
mov eax, dword [rdx + 4]
lea rcx, [rdx + 8]
mov qword [0x1400bcea0], rcx
test eax, eax
je 0x140082408
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop word [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x140082370
not eax
cmp r9d, eax
jne 0x140082488
mov byte [0x1400bcfe9], 1
jmp 0x14008229d
cmp byte [0x1400bcfe8], 0
jne 0x1400822b4
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1400bd948], rax
call rbx
mov qword [0x1400bd940], rax
call rbx
mov qword [0x1400bd938], rax
call rbx
mov qword [0x1400bd930], rax
call rbx
mov qword [0x1400bd928], rax
call rbx
mov qword [0x1400bd920], rax
call rbx
mov qword [0x1400bd918], rax
call rbx
mov byte [0x1400bcfe8], 1
mov qword [0x1400bd910], rax
jmp 0x1400822b4
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14008bf00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14009d260
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14009d260
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x14008cbb2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400bde08]
test eax, eax
je 0x14008cc4a
lea rax, [0x1400bdde0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400bde10]
mov qword [rbp - 8], rax
jmp 0x14008cc2e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14008cc22
cmp qword [rbp - 0x10], 0
je 0x14008cc22
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14008cbe8
lea rax, [0x1400bdde0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14008cc4b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14008cd50
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14008cd78
mov eax, 0
jmp 0x14008cdc6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14008cda1
mov eax, 0
jmp 0x14008cdc6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14008cdc1
mov eax, 0
jmp 0x14008cdc6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14008cdcc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14008ce4a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14008ce41
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14008ce41
mov rax, qword [rbp - 8]
jmp 0x14008ce5f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14008ce14
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140f930bc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f930c6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f930ef
pop rbp
sub rbp, 0x33
sub rbp, 0xf930bc
sub rsp, 0x20
jmp 0x140f9310e
mov rax, 0xf930bc
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffec4224ed
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f9312d
jmp 0x140f93144
movsd dword [rdi], dword [rsi]
add al, 0x66
shr ebp, 1
in eax, dx
in eax, dx
movsd dword [rdi], dword [rsi]
insb byte [rdi], dx
sub al, 0xe5
in al, dx
in eax, dx
in eax, dx
movsd dword [rdi], dword [rsi]
in al, dx
add al, 0xa5
sub ch, byte [0x12ee71f43]
in eax, dx
in eax, dx
movsd dword [rdi], dword [rsi]
sub ch, byte [rdi]
vpaddsw ymm5, ymm2, ymm5
movsd dword [rdi], dword [rsi]
sbb cl, byte [rdi]
movsd dword [rdi], dword [rsi]
in al, dx
sub al, 0x66
insb byte [rdi], dx
loope 0x140f9315c
in eax, dx
in eax, dx
movsd dword [rdi], dword [rsi]
in al, dx
add eax, 0x55a5bdbd
add dword [rax - 0x12121240], ecx
in eax, dx
in eax, dx
movsd dword [rdi], dword [rsi]
push rsp
cmp eax, 0xeded2627
in eax, dx
in eax, dx
in eax, dx
movsd dword [rdi], dword [rsi]
in al, dx
add al, 0xa5
push rdi
popfq
jmp 0x12ee71364
Function at 0x1400078a8
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x140030470]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [rdx], 0
mov r15, rdx
mov r8, rcx
mov edi, 0x104
mov edx, edi
lea rcx, [rsp + 0x30]
xor r14d, r14d
call fcn.14000173c
lea r8, [0x140027658]
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400017c8
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
lea r13, [0x140027618]
mov rbx, rax
test rax, rax
jne 0x140007960
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x140007a66
mov rcx, qword [rbp + 0x178]
lea edx, [rdi - 0x3b]
mov r8, r13
call fcn.140002634
mov esi, eax
jmp 0x140007a47
and dword [rsp + 0x24], r14d
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.140002988
mov esi, eax
test eax, eax
jns 0x1400079a1
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov r8, r13
mov edx, 0xcf
call fcn.1400025fc
mov rcx, rbx
call fcn.1400026bc
jmp 0x140007a47
lea r8, [0x140027660]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400017c8
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400079ed
mov rcx, qword [rbp + 0x178]
mov r8, r13
mov edx, 0xd5
call fcn.140002634
mov esi, eax
jmp 0x140007994
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140002988
mov esi, eax
test eax, eax
jns 0x140007a24
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov r8, r13
mov edx, 0xd7
call fcn.1400025fc
mov rcx, rdi
call fcn.1400026bc
jmp 0x140007994
mov rcx, rdi
call fcn.1400026bc
movsxd rax, dword [rsp + 0x20]
mov rcx, rbx
movsxd r14, dword [rsp + 0x24]
shl rax, 0x1f
or r14, rax
call fcn.1400026bc
xor esi, esi
test esi, esi
jns 0x140007a66
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov r8, r13
mov edx, 0x62
call fcn.1400025fc
mov eax, esi
jmp 0x140007a6b
mov qword [r15], r14
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140023ec0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret

Function at 0x140023ee8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140031200], eax
call fcn.140024610
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140031200], 0
jne 0x140023f2b
mov ecx, 1
call fcn.140024610
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
Function at 0x140038000
Capabilities:
Encode data using xor

Disassembly:
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax - 0x48], cl
movabs rax, 0xb15108489bb05784
movabs rax, 0xb15108489bb05784
mov r10, rsp
xor r9, r9
fcmovnb st(0), st(6)
and r10w, 0xf160
fxsave64 [r10]
mov r9b, 0x5d
add r10, 8
mov rdx, qword [r10]
dec r9
xor qword [rdx + r9*8 + 0x23], rax
test r9, r9
jne 0x140038026
js 0x140038054
xor edi, dword [rdi - 0x48]
loopne 0x140037fd7
mov cl, 0x84
push rdi
int1
retf 0x5809
invalid
Function at 0x140037f30
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rsi, [rcx + 8]
mov rdi, rdx
test rsi, rsi
je 0x140037f9b
lea rbx, [rdx + 8]
test rbx, rbx
je 0x140037f9b
cmp byte [rcx + 0x4c], 0
je 0x140037f9b
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x140037f9b
cmp byte [rdi + 0x4c], 0
je 0x140037f9b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x140037f9b
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14004f760
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x14004f93b
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.14004f670
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14004f904
mov qword [rsp + 0x58], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x14]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x15]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x16]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x17]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x14004f87c
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14004f8f3
mov rdx, qword [r11 + 8]
mov r8, qword [rax + 0x10]
cmp r8, qword [rdx + 0x10]
jne 0x14004f8b9
mov r10, qword [rdx]
cmp r10, rax
je 0x14004f8b3
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14004f8f3
cmp r9, rdx
je 0x14004f8cf
nop
mov rdx, qword [rdx + 8]
cmp r8, qword [rdx + 0x10]
je 0x14004f915
cmp r9, rdx
jne 0x14004f8c0
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x14004f800
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14004f8f3
lea rcx, str.invalid_hash_bucket_count
call fcn.1401481b4
int3
Function at 0x140051890
Capabilities:
Hash data using fnv

Disassembly:
movzx r9d, byte [r8]
mov r10, rcx
movabs rcx, 0x100000001b3
movabs rax, 0xcbf29ce484222325
xor r9, rax
mov r11, rdx
movzx eax, byte [r8 + 1]
mov rdx, qword [r10 + 0x30]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 2]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 3]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 4]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 5]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 6]
imul r9, rcx
xor r9, rax
movzx eax, byte [r8 + 7]
imul r9, rcx
xor r9, rax
imul r9, rcx
and rdx, r9
mov r9, qword [r10 + 8]
shl rdx, 4
add rdx, qword [r10 + 0x18]
mov rax, qword [rdx + 8]
cmp rax, r9
je 0x14005194e
mov rcx, qword [r8]
mov rdx, qword [rdx]
cmp rcx, qword [rax + 0x10]
je 0x140051950
cmp rax, rdx
je 0x14005194e
mov rax, qword [rax + 8]
cmp rcx, qword [rax + 0x10]
jne 0x140051931
test rax, rax
cmove rax, r9
mov qword [r11], rax
mov rax, r11
ret
xor eax, eax
test rax, rax
cmove rax, r9
mov qword [r11], rax
mov rax, r11
ret
Function at 0x140051e80
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1401d6668]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rcx
mov qword [rsp + 0x28], rdx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
add rcx, 8
lea rdx, [rsp + 0x30]
call fcn.14004d4d0
nop
mov qword [rsp + 0x20], 0
lea rcx, [rsi + 0x20]
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x20]
call fcn.140051890
mov rbx, qword [rsp + 0x20]
cmp rbx, qword [rsi + 0x28]
je 0x140051fc9
mov rcx, qword [rbx + 0x18]
call fcn.14004d9a0
movzx edx, byte [rbx + 0x10]
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movabs rcx, 0x100000001b3
imul rdx, rcx
movzx eax, byte [rbx + 0x11]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rbx + 0x12]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rbx + 0x13]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rbx + 0x14]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rbx + 0x15]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rbx + 0x16]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rbx + 0x17]
xor rdx, rax
imul rdx, rcx
mov rcx, qword [rsi + 0x50]
and rcx, rdx
shl rcx, 4
mov rdx, qword [rsi + 0x38]
add rdx, rcx
mov rax, qword [rdx]
cmp qword [rdx + 8], rbx
jne 0x140051f9b
cmp rax, rbx
jne 0x140051f91
mov rax, qword [rsi + 0x28]
mov qword [rdx], rax
mov qword [rdx + 8], rax
jmp 0x140051fa6
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
jmp 0x140051fa6
cmp rax, rbx
jne 0x140051fa6
mov rax, qword [rbx]
mov qword [rdx], rax
mov rdx, qword [rbx]
dec qword [rsi + 0x30]
mov rax, qword [rbx + 8]
mov qword [rax], rdx
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
mov rdx, rbx
lea rcx, [rsi + 0x28]
call fcn.14004e2b0
nop
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x140051fdd
lea rcx, [rsp + 0x30]
call fcn.14004d490
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140052022
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140052022
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x14005c876.0]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140052022
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [case.0x14005c876.0]
nop
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140146a70
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x14008fb90
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1401d6668]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
call fcn.14008fe40
test eax, eax
jne 0x14008fbe1
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140146a70
add rsp, 0x40
pop rbx
ret

Function at 0x14008fc00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1401d6668]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, qword [rsp + 0xb0]
lea rax, [rsp + 0x38]
mov rsi, qword [rsp + 0xb8]
mov r15, r9
mov r14, r8
mov qword [rsp + 0x20], rax
xor ebx, ebx
mov r9d, 0x20019
xor r8d, r8d
mov dword [rsp + 0x30], ebx
call fcn.14008fe40
test eax, eax
jne 0x14008fd87
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r9, r15
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, r14
mov qword [rsp + 0x58], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [rsp + 0x30]
mov ebx, eax
test rbp, rbp
je 0x14008fc98
cmp dword [rsi], edi
jae 0x14008fc98
mov ebx, 0xea
jmp 0x14008fd75
test eax, eax
jne 0x14008fd75
test rbp, rbp
je 0x14008fd73
mov r8d, dword [rsi]
xor edx, edx
mov rcx, rbp
call fcn.14013a3a0
inc edi
mov ecx, edi
mov dword [rsp + 0x30], edi
call fcn.14011de28
mov rdi, rax
test rax, rax
je 0x14008fd6c
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.14013a3a0
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r9, r15
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test eax, eax
jne 0x14008fd62
mov r8d, dword [rsi]
xor edx, edx
mov rcx, rbp
call fcn.14013a3a0
mov r14d, dword [rsp + 0x30]
mov eax, dword [rsi]
mov r8d, r14d
test r14d, r14d
je 0x14008fd5f
mov rcx, rbp
cmp rax, r14
jb 0x14008fd40
mov rdx, rdi
call fcn.140139cd0
mov rcx, rdi
mov dword [rsi], r14d
call fcn.140117d20
jmp 0x14008fd75
mov r8, rax
xor edx, edx
call fcn.14013a3a0
call fcn.14011de08
mov dword [rax], 0x22
call fcn.1401179fc
mov r14d, dword [rsp + 0x30]
mov dword [rsi], r14d
mov rcx, rdi
call fcn.140117d20
jmp 0x14008fd75
mov ebx, 0x7a
jmp 0x14008fd75
mov dword [rsi], edi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x58]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140146a70
add rsp, 0x60
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x14008ff60
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1401d6668]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov esi, dword [rsp + 0xd0]
lea rax, [rsp + 0x50]
mov rdi, qword [rsp + 0xc0]
mov r12d, r9d
mov r15, r8
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
mov r14, rdx
mov rbp, rcx
call fcn.14008fe40
mov ebx, eax
test eax, eax
je 0x14008ffed
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
or esi, 2
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov rdx, r14
mov dword [rsp + 0x20], ecx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, eax
test eax, eax
jne 0x140090025
test rdi, rdi
je 0x140090018
mov eax, dword [rsp + 0xc8]
mov r9d, r12d
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, r15
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140146a70
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140090a00
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1c0
mov rax, qword [0x1401d6668]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov r12, r9
mov r14, r8
mov r15, rdx
mov qword [rsp + 0x78], rdx
mov r13, qword [rsp + 0x220]
mov dword [rsp + 0x70], 0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm0
mov qword [rdx + 0x20], rax
mov rcx, rdx
call fcn.140022e10
mov dword [rsp + 0x70], 1
movzx eax, byte [r14 + 0xf]
movzx ecx, byte [r14 + 0xe]
movzx edx, byte [r14 + 0xd]
movzx r10d, byte [r14 + 0xc]
movzx r11d, byte [r14 + 0xb]
movzx ebx, byte [r14 + 0xa]
movzx edi, byte [r14 + 9]
movzx esi, byte [r14 + 8]
movzx ebp, word [r14 + 6]
movzx r9d, word [r14 + 4]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x48], r10d
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], ebp
mov r8d, dword [r14]
lea rdx, str..Volume_08lX__04hX__04hX__02hhX_02hhX__02hhX_02hhX_02hhX_02hhX_02hhX_02hhX_
lea rcx, [rsp + 0xa0]
call fcn.140090490
xor eax, eax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x140090b3b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
xor r9d, r9d
lea edx, [r9 + 1]
mov rcx, r15
call fcn.140023660
lea rdx, str.GetDiskFreeSpaceEx___failed_in_DiskShrinkExtension::getVolumeFreeSpace
mov rcx, r15
call fcn.140023820
jmp 0x140090b53
mov rax, qword [rsp + 0x90]
mov qword [r13], rax
mov rax, qword [rsp + 0x80]
mov qword [r12], rax
mov rax, r15
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140146a70
mov rbx, qword [rsp + 0x200]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret