joyce8/EMBER2024-capa huggingface dataset:
Function at 0x385a5a290
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x385a5a2d8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x385a5a2aa
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x385a6dd50
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x385a6dd78
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x385a6ddc0
cdqe
add rsi, rax
sub rbx, rax
jne 0x385a6dd90
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x385a6ddcc
call rbp
cmp dword [rax], 4
je 0x385a6dd90
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x385aa2e50
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x385aa8020]
jmp sym.dxgi.dll___emutls_get_address

Function at 0x385aa2e60
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x385aa8020]
jmp sym.dxgi.dll___emutls_get_address
Function at 0x180001010
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180025208]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
mov rax, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x40], edi
lea r8d, [rdi + 3]
mov dword [rsp + 0x20], 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18000113a
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbx], eax
cmp eax, 0xffffffff
je 0x18000113a
mov ecx, eax
call fcn.180003bb4
mov r8d, dword [rbx]
lea r9, [rsp + 0x40]
mov rdx, rax
mov qword [rbx + 4], rax
mov rcx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000113a
mov eax, dword [rbx]
mov esi, 1
mov ecx, esi
test eax, eax
je 0x1800010e4
mov rdx, qword [rbx + 4]
mov r8d, eax
nop word [rax + rax]
cmp byte [rdx], 0xa
lea eax, [rcx + 1]
lea rdx, [rdx + 1]
cmovne eax, ecx
mov ecx, eax
sub r8, rsi
jne 0x1800010d0
mov dword [rbx + 0xc], ecx
mov eax, 4
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.180003bb4
mov qword [rbx + 0x10], rax
mov dword [rax], edi
cmp dword [rbx], edi
jbe 0x180001132
nop dword [rax]
mov rax, qword [rbx + 4]
mov ecx, edi
cmp byte [rcx + rax], 0xa
jne 0x18000112c
mov rcx, qword [rbx + 0x10]
lea r8d, [rdi + 1]
mov edx, esi
inc esi
mov dword [rcx + rdx*4], r8d
inc edi
cmp edi, dword [rbx]
jb 0x180001110
mov rcx, rbx
call fcn.180001e90
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180003c50
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x1800035e0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov rbx, rdx
lea rcx, [0x180019c50]
call fcn.180003a40
cmp byte [0x180025ccc], 0
jne 0x180003609
call fcn.180002590
mov rax, qword [0x180025d10]
test rax, rax
je 0x18000361c
mov rdx, rbx
mov ecx, edi
call rax
lea rcx, str.____ServiceMain_r_n
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.180003a40

Function at 0x180003640
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x180019c80]
call fcn.180003a40
cmp byte [0x180025ccc], 0
jne 0x180003663
call fcn.180002590
mov rax, qword [0x180025d18]
test rax, rax
je 0x180003674
mov rcx, rbx
call rax
lea rcx, str.____SvchostPushServiceGlobals_r_n
add rsp, 0x20
pop rbx
jmp fcn.180003a40

Function at 0x180003710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x180003778
mov edx, 1
mov rcx, rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x180003778
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180003778
mov ecx, dword [rax + 0x30]
mov dword [rbx], ecx
movzx ecx, word [rax + 0x36]
mov word [rbx + 4], cx
movzx ecx, word [rax + 0x34]
mov eax, 1
mov word [rbx + 6], cx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x180003880
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180025208]
xor rax, rsp
mov qword [rsp + 0x40], rax
movzx esi, cl
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov r14d, eax
lea ecx, [rdx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180003948
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
mov qword [rsp + 0x60], rbx
mov r8d, dword [rsp + 0x28]
cmp r8d, ebp
je 0x180003929
cmp dword [rsp + 0x2c], r14d
jne 0x180003929
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180003929
mov rcx, rax
test sil, sil
je 0x18000391a
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x180003920
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1800038e5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180003c50
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x180003970
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x180025208]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rcx, str.c:_rdpwrap.txt
mov edx, 0x40000000
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180003a1d
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x1800039f0
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180003c50
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x180003a40
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
mov eax, 0x1068
call fcn.180003d40
sub rsp, rax
mov rax, qword [0x180025208]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x1000
call fcn.1800054c0
lea rdi, [rsp + 0x1088]
call fcn.180003b90
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x50]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0xfff
mov rcx, qword [rax]
or rcx, 1
call fcn.18000c170
test eax, eax
mov rbx, 0xffffffffffffffff
cmovs eax, ebx
test eax, eax
js 0x180003ad6
cmp eax, 0xfff
jb 0x180003ade
mov byte [rsp + 0x104f], 0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
lea rcx, str.c:_rdpwrap.txt
mov edx, 0x40000000
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, rbx
je 0x180003b71
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rax, [rsp + 0x50]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180003b40
mov r8, rbx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rdi
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.180003c50
add rsp, 0x1068
pop rdi
pop rbx
ret
Function at 0x14000136c
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14007c080]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp qword [0x14007c650], 0
je 0x140001409
mov r9, qword [0x14007c648]
lea rbx, [0x14007c850]
mov qword [rsp + 0x30], r8
lea r8, str._llx:__lx___lx__0__0___s___r_n
mov dword [rsp + 0x28], edx
mov edx, 0x400
mov dword [rsp + 0x20], ecx
mov rcx, rbx
call qword [sym.imp.ntdll.dll_sprintf_s]
nop dword [rax + rax]
and qword [rsp + 0x40], 0
lea rcx, [rsp + 0x50]
or dword [rsp + 0x50], 0xffffffff
xor r9d, r9d
or dword [rsp + 0x54], 0xffffffff
xor r8d, r8d
mov qword [rsp + 0x38], rcx
xor edx, edx
mov rcx, qword [0x14007c650]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14005cab0
add rsp, 0x70
pop rbx
ret

Function at 0x140001424
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x14007c080]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp qword [0x14007c650], 0
mov rbx, rcx
je 0x1400014d2
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtQuerySystemTime]
nop dword [rax + rax]
mov r9, qword [rsp + 0x58]
lea r8, str._llx:_0__0__0__0___s___r_n
mov qword [rsp + 0x20], rbx
mov edx, 0x400
lea rbx, [0x14007cc50]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_sprintf_s]
nop dword [rax + rax]
and qword [rsp + 0x40], 0
lea rcx, [rsp + 0x50]
or dword [rsp + 0x50], 0xffffffff
xor r9d, r9d
or dword [rsp + 0x54], 0xffffffff
xor r8d, r8d
mov qword [rsp + 0x38], rcx
xor edx, edx
mov rcx, qword [0x14007c650]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14005cab0
add rsp, 0x80
pop rbx
ret

Function at 0x1400014f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x14007c080]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp qword [0x14007c650], 0
mov rbx, rcx
je 0x1400015ab
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtQuerySystemTime]
nop dword [rax + rax]
movzx edx, word [rbx]
lea r8, str._llx:_0__0__0__0__InterferingProcess____.ls_r_n
mov rax, qword [rbx + 8]
lea rbx, [0x14007d050]
mov r9, qword [rsp + 0x58]
mov rcx, rbx
shr edx, 1
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
mov edx, 0x400
call qword [sym.imp.ntdll.dll_sprintf_s]
nop dword [rax + rax]
and qword [rsp + 0x40], 0
lea rcx, [rsp + 0x50]
or dword [rsp + 0x50], 0xffffffff
xor r9d, r9d
or dword [rsp + 0x54], 0xffffffff
xor r8d, r8d
mov qword [rsp + 0x38], rcx
xor edx, edx
mov rcx, qword [0x14007c650]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14005cab0
add rsp, 0x80
pop rbx
ret
Function at 0x1400015c8
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14007c080]
xor rax, rsp
mov qword [rsp + 0x78], rax
movzx r8d, word [rcx]
mov rbx, rcx
cmp r8, 0x1ec
ja 0x14000170e
mov rdx, qword [rcx + 8]
lea rcx, [0x14007d464]
call sub.ntdll.dll_memcpy
movzx eax, word [rbx]
lea rdi, [0x14007d450]
shr rax, 1
lea rcx, [rdi + rax*2]
mov eax, 0x2e
mov word [rcx + 0x14], ax
add rcx, 0x16
mov rdx, qword [0x14007c648]
xor r8d, r8d
lea rax, [0x14007d650]
cmp rcx, rax
jae 0x140001663
mov rax, rdx
lea r9, [0x1400620b0]
shr rax, 0x3c
inc r8d
shl rdx, 4
movsx eax, byte [rax + r9]
mov word [rcx], ax
add rcx, 2
cmp r8d, 0x10
jb 0x140001630
movzx eax, word [rbx]
lea r9, [rsp + 0x68]
and qword [0x14007d458], 0
lea r8, [rsp + 0x38]
and qword [rsp + 0x40], 0
lea rcx, [rsp + 0x30]
add eax, 0x22
mov dword [rsp + 0x28], 0x4060
xorps xmm0, xmm0
mov dword [0x14007d460], eax
mov edx, 0x100100
mov byte [0x14007d450], 1
mov dword [rsp + 0x38], 0x30
mov dword [rsp + 0x50], 0x40
mov qword [rsp + 0x48], rbx
movdqu xmmword [rsp + 0x58], xmm0
mov dword [rsp + 0x20], 7
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
test eax, eax
js 0x14000170e
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x68]
mov r9d, 0x200
mov dword [rsp + 0x20], 0xb
mov r8, rdi
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14005cab0
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
Function at 0x1400039a4
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x14007c080]
xor rax, rsp
mov qword [rbp + 0x37], rax
and qword [rbp + 7], 0
xorps xmm0, xmm0
and qword [rbp - 0x21], 0
mov rdi, r8
mov rax, qword [rcx + 8]
movdqu xmmword [rbp - 9], xmm0
mov dword [rbp - 0x29], 0x30
mov dword [rbp - 0x11], 0x40
mov qword [rbp - 0x19], rdx
movabs r10, 0xf81106491cd50a70
and qword [rsp + 0x48], 0
lea rdx, [rbp + 0xf]
and qword [rsp + 0x40], 0
lea r8, [rbp + 7]
mov r11d, 1
mov dword [rsp + 0x38], 0x60
mov dword [rsp + 0x30], r11d
mov r9d, 0x120089
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x29]
mov qword [rsp + 0x20], rdx
mov rdx, qword [rcx + 0xa0]
mov ecx, r11d
call qword [case.0x1400569a6.0]
mov ebx, eax
test eax, eax
js 0x140003b55
mov rcx, qword [rbp + 7]
lea r8, [rbp + 0x1f]
mov r9d, 0x18
mov dword [rsp + 0x20], 5
lea rdx, [rbp + 0xf]
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140003b55
mov rax, qword [rbp + 0x27]
test rax, rax
jns 0x140003ac0
and qword [rbp - 0x31], 0
lea rax, str.onecore_basewcp_toolspoqexecpoqexec.cpp
mov qword [rbp - 0x49], rax
lea rcx, [rbp - 0x49]
lea rax, str.LoadXmlBlob
mov dword [rbp - 0x39], 0x713
mov r8d, 0xc00000e5
mov qword [rbp - 0x41], rax
call fcn.140052a48
mov ebx, 0xc00000e5
jmp 0x140003b55
mov ecx, 0xffffffff
cmp rax, rcx
jle 0x140003b02
and qword [rbp - 0x31], 0
lea rax, str.onecore_basewcp_toolspoqexecpoqexec.cpp
mov qword [rbp - 0x49], rax
lea rcx, [rbp - 0x49]
lea rax, str.LoadXmlBlob
mov dword [rbp - 0x39], 0x71b
mov r8d, 0xc000042b
mov qword [rbp - 0x41], rax
call fcn.140052a48
mov ebx, 0xc000042b
jmp 0x140003b55
mov ecx, eax
mov rdx, rdi
call fcn.140054350
mov ebx, eax
test eax, eax
js 0x140003b55
and qword [rsp + 0x40], 0
xor r9d, r9d
and qword [rsp + 0x38], 0
xor r8d, r8d
mov eax, dword [rdi + 8]
xor edx, edx
mov rcx, qword [rdi + 0x10]
mov dword [rsp + 0x30], eax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp + 7]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x140003b78
mov rcx, qword [rbp + 7]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140003b74
and qword [rbp + 7], 0
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, ebx
jmp 0x140003ba0
mov rax, qword [rbp + 0x17]
mov rcx, qword [rbp + 7]
mov qword [rdi], rax
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140003b9e
and qword [rbp + 7], 0
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14005cab0
add rsp, 0xf0
pop rdi
pop rbx
pop rbp
ret
Function at 0x14000c9cc
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
sub rax, 0x10
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x30], rax
je 0x14000bb1b
jmp 0x14000b3af
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x14000bb1b
jmp 0x14000ba48
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14000cbaf
jmp 0x14000a5a5
mov rcx, qword [rsp + 0x70]
call fcn.14000af26
jmp 0x14000f0d2
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x14000b740
jmp 0x14000dc89
mov rax, qword [rsp + 0x48]
add rsp, 0x68
ret
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
jmp 0x14000b3af
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword gs:[0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
pop rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
invalid
invalid
Function at 0x140016fec
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 8], rdi
jbe 0x140017060
xor esi, esi
mov rbp, qword [rbx + 0x10]
add rbp, rsi
mov rax, qword [rbp + 0x90]
test rax, rax
je 0x140017048
lea r8, [rbp + 0xa0]
cmp dword [r8], 0
je 0x140017048
movabs r10, 0xca519ebc18d2a170
mov rcx, qword [rbp + 0x98]
lea rdx, [rbp + 0x40]
call qword [case.0x1400569a6.0]
mov rcx, rbp
call fcn.140015888
inc rdi
add rsi, 0xe8
cmp rdi, qword [rbx + 8]
jb 0x14001700d
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbx + 0x10]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x18]
and qword [rbx + 0x10], 0
test rcx, rcx
je 0x140017097
mov edx, 1
call fcn.140016fb0
and qword [rbx + 0x18], 0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400180e4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x14007c080]
xor rax, rsp
mov qword [rbp + 0x47], rax
and qword [rbp + 0x37], 0
lea rax, [0x14005e420]
and qword [rbp + 0xf], 0
lea r8, [rbp + 7]
mov qword [rbp + 0x17], rax
lea rcx, [rbp + 0x37]
lea rax, [rbp + 0x3f]
mov dword [rbp + 7], 0x30
mov qword [rsp + 0x30], rax
mov rdi, rdx
xorps xmm0, xmm0
mov dword [rsp + 0x28], 4
and qword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0x2001f
mov dword [rbp + 0x1f], 0x40
movdqu xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntdll.dll_NtCreateKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x1400181b2
lea rax, str.onecore_basewcplibraryutil_ccpinterfacekey.cpp
mov dword [rbp - 0x29], 0x5d
mov qword [rbp - 0x39], rax
lea rcx, [rbp - 0x39]
lea rax, str.Windows::WCP::CCPInterfaceKeyUtils::SetProgressKeyUsingNt
mov r8d, ebx
mov qword [rbp - 0x31], rax
lea rax, str.NtCreateKey__Key.GetMutablePointer________0x00020000L_____0x0001____0x0008____0x0010______0x00100000L_________0x00020000L_____0x0002____0x0004______0x00100000L_____ObjectAttributes__0__0___0x00000004L___Disposition_
mov qword [rbp - 0x21], rax
call fcn.140052a48
mov rcx, qword [rbp + 0x37]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
jmp 0x140018225
mov rcx, qword [rbp + 0x37]
lea rdx, [0x14005e440]
mov dword [rsp + 0x28], 0x10
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntdll.dll_NtSetValueKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14001823c
lea rax, str.onecore_basewcplibraryutil_ccpinterfacekey.cpp
mov dword [rbp - 9], 0x66
mov qword [rbp - 0x19], rax
lea rcx, [rbp - 0x19]
lea rax, str.Windows::WCP::CCPInterfaceKeyUtils::SetProgressKeyUsingNt
mov r8d, ebx
mov qword [rbp - 0x11], rax
lea rax, str.NtSetValueKey__Key___PUNICODE_STRING_g_UNICODE_STRING_Progress__0____3ul____Progress__sizeof_CCPProgress__
mov qword [rbp - 1], rax
call fcn.140052a48
mov rcx, qword [rbp + 0x37]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x140018238
and qword [rbp + 0x37], 0
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14001825d
mov rcx, qword [rbp + 0x37]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001825b
and qword [rbp + 0x37], 0
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14005cab0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400254a0
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
or rax, 0xffffffffffffffff
mov rdi, r8
xor ebx, ebx
mov ecx, 0x7ffe0030
inc rax
cmp word [rcx + rax*2], bx
jne 0x1400254b8
add rax, rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
add rax, 2
mov rdx, rdi
mov qword [rsp + 0x28], rax
call fcn.140054ff0
test eax, eax
js 0x1400254f7
mov rcx, rdi
call fcn.1400281f8
test eax, eax
cmovs ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140028040
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rdx]
mov r8d, dword [rcx]
cmp ax, r8w
jb 0x14002810c
movups xmm0, xmmword [rdx]
mov esi, 0xfffe
movdqu xmmword [rsp + 0x10], xmm0
mov word [rsp + 0x10], r8w
movups xmm0, xmmword [rcx]
movaps xmm1, xmmword [rsp + 0x10]
movd r9d, xmm0
movdqa xmmword [rsp + 0x10], xmm1
movups xmmword [rsp], xmm0
movzx eax, r9w
xor ax, r8w
test si, ax
jne 0x140028105
xor edx, edx
test r8w, r8w
je 0x140028101
mov r10, qword [rsp + 0x18]
movzx ebx, word [rsp + 0x12]
movzx r8d, word [rsp + 0x10]
mov r11, qword [rsp + 8]
movzx edi, word [rsp + 2]
movzx eax, word [r10]
movzx ecx, word [r10]
sub ax, 0x41
add cx, 0x20
cmp ax, 0x19
cmova cx, word [r10]
cmp cx, word [r11]
jne 0x140028108
test r8w, r8w
jne 0x1400280de
int3
add r10, 2
add r8w, si
add bx, si
test r9w, r9w
jne 0x1400280f0
int3
add r11, 2
add r9w, si
add di, si
test r8w, r8w
jne 0x1400280b8
mov dl, 1
jmp 0x140028108
xor dx, dx
mov al, dl
jmp 0x14002810e
xor al, al
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret