joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180023c80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12d, ecx
mov ecx, dword [0x18003cd00]
mov rdi, r9
mov esi, r8d
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x180023cff
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea rcx, str..dcrypt
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180023cf0
mov eax, 0x591
jmp 0x180023d42
mov ecx, dword [0x18003cd00]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], 0
mov r9d, esi
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x80]
mov r8, rbp
mov dword [rsp + 0x28], eax
mov edx, r12d
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x180023d40
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180023d42
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret

Function at 0x180023dd0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
xor eax, eax
lea rcx, str..dcrypt
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x180023e18
mov ecx, dword [0x18003cd00]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
add rsp, 0x48
ret
mov eax, 1
add rsp, 0x48
ret

Function at 0x180023e30
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov ecx, 0x98a
mov rsi, r8
mov rbp, rdx
call sym.dcapi.dll_secure_alloc
mov rdi, rax
test rax, rax
jne 0x180023e67
lea eax, [rdi + 9]
jmp 0x180023f07
mov rcx, rax
sub rcx, rbx
nop dword [rax]
movzx eax, word [rbx]
add rbx, 2
mov word [rcx + rbx - 2], ax
test ax, ax
jne 0x180023e70
lea rcx, [rdi + 0x82]
mov rdx, rbp
mov r8d, 0x104
call fcn.18000f4b0
lea rcx, [rdi + 0x186]
mov rdx, rsi
mov r8d, 0x800
call fcn.18000f4b0
mov ecx, dword [0x18003cd00]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x38], 0
mov r9d, 0x98a
mov rcx, rax
lea rax, [rsp + 0x68]
mov r8, rdi
mov qword [rsp + 0x30], rax
mov edx, 0x220078
mov dword [rsp + 0x28], 0x98a
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, 1
test eax, eax
je 0x180023efd
mov ebx, dword [rdi + 0x986]
mov rcx, rdi
call sym.dcapi.dll_secure_free
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180023f30
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov ecx, 0x98a
mov rsi, r8
mov rbp, rdx
call sym.dcapi.dll_secure_alloc
mov rdi, rax
test rax, rax
jne 0x180023f67
lea eax, [rdi + 9]
jmp 0x180024007
mov rcx, rax
sub rcx, rbx
nop dword [rax]
movzx eax, word [rbx]
add rbx, 2
mov word [rcx + rbx - 2], ax
test ax, ax
jne 0x180023f70
lea rcx, [rdi + 0x82]
mov rdx, rbp
mov r8d, 0x104
call fcn.18000f4b0
mov ecx, dword [0x18003cd00]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x38], 0
mov r9d, 0x98a
mov rcx, rax
lea rax, [rsp + 0x68]
mov r8, rdi
mov qword [rsp + 0x30], rax
mov edx, 0x220074
mov dword [rsp + 0x28], 0x98a
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x180023fe2
lea ebx, [rax + 1]
jmp 0x180023ffd
lea rdx, [rdi + 0x186]
mov rcx, rsi
mov r8d, 0x800
call fcn.18000f4b0
mov ebx, dword [rdi + 0x986]
mov rcx, rdi
call sym.dcapi.dll_secure_free
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x180024030
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov ecx, 0x298
mov rsi, r8
mov rbp, rdx
call sym.dcapi.dll_secure_alloc
mov rdi, rax
test rax, rax
jne 0x180024067
lea eax, [rdi + 9]
jmp 0x1800240fd
mov rcx, rax
sub rcx, rbx
nop dword [rax]
movzx eax, word [rbx]
add rbx, 2
mov word [rcx + rbx + 0x206], ax
test ax, ax
jne 0x180024070
mov rcx, rdi
mov rdx, rbp
mov r8d, 0x104
call fcn.18000f4b0
movzx r11d, word [rsi]
mov ecx, dword [0x18003cd00]
mov word [rdi + 0x296], r11w
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x38], 0
mov rcx, rax
lea rax, [rsp + 0x68]
mov r9d, 0x298
mov qword [rsp + 0x30], rax
mov r8, rdi
mov edx, 0x220068
mov dword [rsp + 0x28], 0x298
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, 1
test eax, eax
je 0x1800240f3
mov ebx, dword [rdi + 0x28e]
mov rcx, rdi
call sym.dcapi.dll_secure_free
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180024120
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov ecx, 0x298
mov rsi, r8
mov rbp, rdx
call sym.dcapi.dll_secure_alloc
mov rdi, rax
test rax, rax
jne 0x180024157
lea eax, [rdi + 9]
jmp 0x1800241f6
mov rcx, rax
sub rcx, rbx
nop dword [rax]
movzx eax, word [rbx]
add rbx, 2
mov word [rcx + rbx + 0x206], ax
test ax, ax
jne 0x180024160
mov rcx, rdi
mov rdx, rbp
mov r8d, 0x104
call fcn.18000f4b0
lea rcx, [rdi + 0x104]
mov rdx, rsi
mov r8d, 0x104
call fcn.18000f4b0
mov ecx, dword [0x18003cd00]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x38], 0
mov r9d, 0x298
mov rcx, rax
lea rax, [rsp + 0x68]
mov r8, rdi
mov qword [rsp + 0x30], rax
mov edx, 0x220024
mov dword [rsp + 0x28], 0x298
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, 1
test eax, eax
je 0x1800241ec
mov ebx, dword [rdi + 0x28e]
mov rcx, rdi
call sym.dcapi.dll_secure_free
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x180024220
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov ecx, 0x298
mov rsi, rdx
call sym.dcapi.dll_secure_alloc
mov rdi, rax
test rax, rax
jne 0x18002425a
lea eax, [rdi + 9]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, rax
sub rcx, rbx
movzx eax, word [rbx]
add rbx, 2
mov word [rcx + rbx + 0x206], ax
test ax, ax
jne 0x180024260
mov rcx, rdi
mov rdx, rsi
mov r8d, 0x104
call fcn.18000f4b0
mov ecx, dword [0x18003cd00]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x38], 0
mov r9d, 0x298
mov rcx, rax
lea rax, [rsp + 0x60]
mov r8, rdi
mov qword [rsp + 0x30], rax
mov edx, 0x22002c
mov dword [rsp + 0x28], 0x298
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, 1
test eax, eax
je 0x1800242d7
mov ebx, dword [rdi + 0x28e]
mov rcx, rdi
call sym.dcapi.dll_secure_free
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180024300
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov ecx, 0x298
mov rsi, r8
mov rbp, rdx
call sym.dcapi.dll_secure_alloc
mov rdi, rax
test rax, rax
jne 0x180024337
lea eax, [rdi + 9]
jmp 0x1800243cd
mov rcx, rax
sub rcx, rbx
nop dword [rax]
movzx eax, word [rbx]
add rbx, 2
mov word [rcx + rbx + 0x206], ax
test ax, ax
jne 0x180024340
mov rcx, rdi
mov rdx, rbp
mov r8d, 0x104
call fcn.18000f4b0
movzx r11d, word [rsi]
mov ecx, dword [0x18003cd00]
mov word [rdi + 0x296], r11w
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x38], 0
mov rcx, rax
lea rax, [rsp + 0x68]
mov r9d, 0x298
mov qword [rsp + 0x30], rax
mov r8, rdi
mov edx, 0x220030
mov dword [rsp + 0x28], 0x298
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, 1
test eax, eax
je 0x1800243c3
mov ebx, dword [rdi + 0x28e]
mov rcx, rdi
call sym.dcapi.dll_secure_free
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1800243f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov ecx, 0x298
mov rsi, r8
mov rbp, rdx
call sym.dcapi.dll_secure_alloc
mov rdi, rax
test rax, rax
jne 0x180024427
lea eax, [rdi + 9]
jmp 0x1800244bd
mov rcx, rax
sub rcx, rbx
nop dword [rax]
movzx eax, word [rbx]
add rbx, 2
mov word [rcx + rbx + 0x206], ax
test ax, ax
jne 0x180024430
mov rcx, rdi
mov rdx, rbp
mov r8d, 0x104
call fcn.18000f4b0
movzx r11d, word [rsi]
mov ecx, dword [0x18003cd00]
mov word [rdi + 0x296], r11w
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x38], 0
mov rcx, rax
lea rax, [rsp + 0x68]
mov r9d, 0x298
mov qword [rsp + 0x30], rax
mov r8, rdi
mov edx, 0x220028
mov dword [rsp + 0x28], 0x298
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, 1
test eax, eax
je 0x1800244b3
mov ebx, dword [rdi + 0x28e]
mov rcx, rdi
call sym.dcapi.dll_secure_free
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1800244e0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov ecx, 0x298
call sym.dcapi.dll_secure_alloc
mov rbx, rax
test rax, rax
jne 0x18002450d
lea eax, [rbx + 9]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, rax
mov rdx, rdi
mov r8d, 0x104
call fcn.18000f4b0
mov ecx, dword [0x18003cd00]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x38], 0
mov r9d, 0x298
mov rcx, rax
lea rax, [rsp + 0x58]
mov r8, rbx
mov qword [rsp + 0x30], rax
mov edx, 0x220004
mov dword [rsp + 0x28], 0x298
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, 1
test eax, eax
je 0x180024570
mov edi, dword [rbx + 0x28e]
mov rcx, rbx
call sym.dcapi.dll_secure_free
mov rbx, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x40
pop rdi
ret
Function at 0x180024590
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
mov ecx, 0x298
mov ebp, r8d
mov rsi, rdx
call sym.dcapi.dll_secure_alloc
mov rbx, rax
test rax, rax
jne 0x1800245c7
lea eax, [rbx + 9]
jmp 0x180024647
test rdi, rdi
je 0x1800245dd
mov rcx, rax
mov rdx, rdi
mov r8d, 0x104
call fcn.18000f4b0
mov ecx, dword [0x18003cd00]
mov dword [rbx + 0x28a], ebp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x38], 0
mov r9d, 0x298
mov rcx, rax
lea rax, [rsp + 0x68]
mov r8, rbx
mov qword [rsp + 0x30], rax
mov edx, 0x220010
mov dword [rsp + 0x28], 0x298
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x18002462f
lea edi, [rax + 1]
jmp 0x18002463d
mov ecx, dword [rbx + 0x292]
mov edi, dword [rbx + 0x28e]
mov dword [rsi], ecx
mov rcx, rbx
call sym.dcapi.dll_secure_free
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x180024670
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov ecx, 0x298
mov ebp, r8d
mov rsi, rdx
call sym.dcapi.dll_secure_alloc
mov rdi, rax
test rax, rax
jne 0x1800246a7
lea eax, [rdi + 9]
jmp 0x18002473c
mov rcx, rax
sub rcx, rbx
nop dword [rax]
movzx eax, word [rbx]
add rbx, 2
mov word [rcx + rbx + 0x206], ax
test ax, ax
jne 0x1800246b0
mov dword [rdi + 0x28a], ebp
test rsi, rsi
je 0x1800246e0
mov rcx, rdi
mov rdx, rsi
mov r8d, 0x104
call fcn.18000f4b0
mov ecx, dword [0x18003cd00]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x38], 0
mov r9d, 0x298
mov rcx, rax
lea rax, [rsp + 0x68]
mov r8, rdi
mov qword [rsp + 0x30], rax
mov edx, 0x22000c
mov dword [rsp + 0x28], 0x298
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, 1
test eax, eax
je 0x180024732
mov ebx, dword [rdi + 0x28e]
mov rcx, rdi
call sym.dcapi.dll_secure_free
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180024760
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x40
mov ecx, dword [0x18003cd00]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1800247b8
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
lea rcx, str..dcrypt
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800247ff
mov ecx, dword [0x18003cd00]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov edx, 0x220000
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x180024807
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x180024807
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret

Function at 0x180024930
Capabilities:
Enumerate disk volumes

Disassembly:
sub rsp, 0xaa8
mov rax, qword [0x180039000]
xor rax, rsp
mov qword [rsp + 0xa90], rax
lea rcx, [rsp + 0x880]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x180024a18
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x880]
call fcn.180023ab0
test eax, eax
je 0x1800249d0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x670]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180024a0d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x670]
call fcn.180023ab0
test eax, eax
je 0x1800249d0
lea rcx, [rsp + 0x20]
call sym.dcapi.dll_dc_next_volume
test eax, eax
jne 0x180024a18
nop dword [rax]
test byte [rsp + 0x448], 1
je 0x1800249e9
lea rcx, [rsp + 0x28]
mov edx, 1
call sym.dcapi.dll_dc_unmount_volume
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x670]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_FindNextVolumeW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1800249a5
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindVolumeClose]
xor eax, eax
mov rcx, qword [rsp + 0xa90]
xor rcx, rsp
call fcn.18000eda0
add rsp, 0xaa8
ret
Function at 0x180024e10
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x870
mov rax, qword [0x180039000]
xor rax, rsp
mov qword [rsp + 0x860], rax
xor eax, eax
mov rbx, rcx
mov rdi, rdx
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x800
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
call fcn.180011ff0
xor esi, esi
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
lea r9d, [rsi + 0xc]
mov edx, 0x2d1400
mov rcx, rbx
mov dword [rsp + 0x28], 0x800
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x180024e9f
lea eax, [rsi + 1]
jmp 0x180024ef7
mov edx, dword [rsp + 0x6c]
mov byte [rdi], sil
mov r8, rdi
test edx, edx
je 0x180024ec5
mov byte [rdi], sil
jg 0x180024eb7
mov rax, rsi
jmp 0x180024ec1
lea rcx, [rsp + 0x60]
call fcn.180024a40
lea r8, [rdi + rax]
mov edx, dword [rsp + 0x70]
test edx, edx
je 0x180024eee
cmp r8, rdi
je 0x180024edd
mov byte [r8], 0x20
mov edx, dword [rsp + 0x70]
inc r8
mov byte [r8], sil
test edx, edx
jle 0x180024eee
lea rcx, [rsp + 0x60]
call fcn.180024a40
cmp byte [rdi], sil
sete sil
mov eax, esi
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.18000eda0
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180025080
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
call fcn.18000edc0
call fcn.18000edc0
call fcn.18000edc0
call fcn.18000edc0
test ebx, ebx
je 0x180025131
dec ebx
je 0x1800250e4
cmp ebx, 2
jne 0x18002514f
mov ecx, dword [0x18003cd00]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x18002514f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [rbx - 1]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x18003cd00], eax
cmp eax, 0xffffffff
jne 0x180025102
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea r8, str.DISKCRYPTOR_MUTEX
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x18003ccf8], rdi
mov qword [0x18003ba30], rax
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [0x18003ba30]
test rcx, rcx
je 0x180025143
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x18003cd00]
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180025170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
call fcn.18000edc0
call fcn.18000edc0
mov rcx, qword [0x18003ccf8]
lea r8, str.EXEFILE
movzx edx, bx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x1800251de
mov rcx, qword [0x18003ccf8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [0x18003ccf8]
mov rdx, rbx
mov dword [rdi], eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800258c0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi
Log keystrokes via application hook

Disassembly:
sub rsp, 0x258
mov rax, qword [0x180039000]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ecx, 0x2000
call sym.dcapi.dll_secure_alloc
mov qword [0x18003ba48], rax
test rax, rax
jne 0x18002590c
mov eax, 9
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18000eda0
add rsp, 0x258
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
lea rdx, [0x1800253d0]
lea ecx, [r8 + 7]
mov r9d, eax
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
mov qword [0x18003ba38], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
lea ecx, [r8 + 2]
lea rdx, [0x180025310]
mov r9d, eax
call qword [sym.imp.USER32.dll_SetWindowsHookExW]
lea rcx, [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0
mov qword [0x18003ba50], rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x180025996
lea r9d, [rax + 1]
lea rcx, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 8
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1800259c7
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov edx, 0x200
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
lea rcx, [rsp + 0x40]
mov edx, 0x200
call fcn.180025240
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call sym.dcapi.dll_rnd_reseed_now
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18000eda0
add rsp, 0x258
ret
Function at 0x180026100
Capabilities:
Encode data using xor
Hash data using sha512

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov r12, rdx
lea rdx, [rsp + 0x20]
mov rbx, rcx
call fcn.18001de80
lea rcx, [rbx + 0xd4]
mov eax, 0x10
nop word [rax + rax]
xor dword [rcx - 4], 0x6a6a6a6a
xor dword [rcx], 0x6a6a6a6a
add rcx, 8
dec rax
jne 0x180026140
movabs rax, 0x6a09e667f3bcc908
xor r13d, r13d
mov esi, 0x80
mov qword [rbx], rax
movabs rax, 0xbb67ae8584caa73b
mov dword [rbx + 0x48], r13d
mov qword [rbx + 8], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rbx + 0x40], r13
mov qword [rbx + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
lea rbp, [rbx + 0xd0]
mov qword [rbx + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [rbx + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rbx + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rbx + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rbx + 0x38], rax
nop dword [rax]
mov ecx, dword [rbx + 0x48]
test ecx, ecx
jne 0x18002620d
cmp rsi, 0x80
jb 0x18002620d
mov rdx, rbp
mov rcx, rbx
call fcn.18001d880
add qword [rbx + 0x40], 0x400
sub rbp, 0xffffffffffffff80
add rsi, 0xffffffffffffff80
jmp 0x180026258
mov eax, dword [rbx + 0x48]
mov edi, 0x80
mov rdx, rbp
sub edi, ecx
lea rcx, [rax + rbx + 0x4c]
cmp rdi, rsi
cmova rdi, rsi
mov r8, rdi
call fcn.18000f4b0
add dword [rbx + 0x48], edi
add rbp, rdi
sub rsi, rdi
cmp dword [rbx + 0x48], 0x80
jne 0x180026258
lea rdx, [rbx + 0x4c]
mov rcx, rbx
call fcn.18001d880
add qword [rbx + 0x40], 0x400
mov dword [rbx + 0x48], r13d
test rsi, rsi
jne 0x1800261e0
mov esi, 0x40
lea rbp, [rsp + 0x20]
mov ecx, dword [rbx + 0x48]
test ecx, ecx
jne 0x180026294
cmp rsi, 0x80
jb 0x180026294
mov rdx, rbp
mov rcx, rbx
call fcn.18001d880
add qword [rbx + 0x40], 0x400
sub rbp, 0xffffffffffffff80
add rsi, 0xffffffffffffff80
jmp 0x1800262df
mov eax, dword [rbx + 0x48]
mov edi, 0x80
mov rdx, rbp
sub edi, ecx
lea rcx, [rax + rbx + 0x4c]
cmp rdi, rsi
cmova rdi, rsi
mov r8, rdi
call fcn.18000f4b0
add dword [rbx + 0x48], edi
add rbp, rdi
sub rsi, rdi
cmp dword [rbx + 0x48], 0x80
jne 0x1800262df
lea rdx, [rbx + 0x4c]
mov rcx, rbx
call fcn.18001d880
add qword [rbx + 0x40], 0x400
mov dword [rbx + 0x48], r13d
test rsi, rsi
jne 0x180026267
mov rdx, r12
mov rcx, rbx
call fcn.18001de80
lea r11, [rsp + 0x60]
lea rdi, [rsp + 0x20]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
xor eax, eax
mov ecx, 0x10
rep stosd dword [rdi], eax
mov rsp, r11
pop r13
pop r12
pop rdi
ret