joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013528
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140027098]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400120c0
xor ebx, ebx
cmp qword [0x1400293a8], rbx
mov rdi, rax
jne 0x14001363a
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140013711
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140013711
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400293a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400293b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1400293b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400293c8], rax
test rax, rax
je 0x140013631
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400293c0], rax
jmp 0x140013641
mov rax, qword [0x1400293c0]
jmp 0x140013648
mov rax, qword [0x1400293c0]
mov r11, qword [0x1400293c8]
cmp rax, rdi
je 0x1400136af
cmp r11, rdi
je 0x1400136af
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400293c8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400136af
test rax, rax
je 0x1400136af
call rsi
test rax, rax
je 0x1400136a9
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400136a9
test byte [rsp + 0x40], 1
jne 0x1400136af
bts ebp, 0x15
jmp 0x1400136ef
mov rcx, qword [0x1400293b0]
cmp rcx, rdi
je 0x1400136ef
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400136ef
call rax
mov rbx, rax
test rax, rax
je 0x1400136ef
mov rcx, qword [0x1400293b8]
cmp rcx, rdi
je 0x1400136ef
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400136ef
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400293a8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140013711
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140013713
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140010528
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140015678
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [rdx + 8]
and qword [r11 + 0x18], 0
and dword [rsp + 0x78], 0
mov rdi, rcx
test rax, rax
je 0x1400156b5
lea r8, [r11 + 0x18]
mov rdx, rax
xor ecx, ecx
call fcn.140015800
mov ebx, eax
test eax, eax
jmp 0x140015717
mov r9d, dword [rdx + 0x1c]
mov r8d, dword [rdx + 0x18]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x50], rax
mov eax, dword [rdx + 0x34]
lea rcx, [rdx + 0x10]
mov dword [rsp + 0x48], eax
mov eax, dword [rdx + 0x30]
mov dword [rsp + 0x40], eax
mov eax, dword [rdx + 0x2c]
mov dword [rsp + 0x38], eax
mov eax, dword [rdx + 0x28]
mov dword [rsp + 0x30], eax
mov eax, dword [rdx + 0x24]
mov dword [rsp + 0x28], eax
mov eax, dword [rdx + 0x20]
mov dl, byte [rdx + 0x16]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140015719
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140015750
mov rdx, qword [rbp + 0x20]
lea r8, [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140015747
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140015750
xor ebx, ebx
cmp dword [rsp + 0x78], ebx
sete bl
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x14001575f
call qword [sym.imp.ADVAPI32.dll_FreeSid]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140015800
Capabilities:
Get user security identifier

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
push rbp
mov rbp, rsp
push r12
push r13
push r14
push r15
sub rsp, 0x50
and qword [rax - 0x30], 0
mov r14d, 0x44
mov r15, rdx
mov r12, rcx
lea edx, [r14 - 0x43]
mov ecx, r14d
mov r13, r8
mov dword [rax - 0x38], r14d
mov dword [rax + 0x20], 0xff
call fcn.140019e30
mov rdi, rax
test rax, rax
jne 0x140015858
mov ebx, 0x8007000e
jmp 0x140015962
mov edx, dword [rbp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.140015a94
mov ebx, eax
test eax, eax
js 0x140015962
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x28]
mov rdx, r15
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x14001595a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140015948
cmp dword [rsp + 0x40], r14d
jbe 0x1400158f1
mov edx, dword [rsp + 0x40]
lea r8d, [rax - 0x79]
mov rcx, rdi
call fcn.140019e70
mov r14, rax
test rax, rax
jne 0x1400158ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140015962
mov rdi, r14
cmp dword [rbp + 0x28], 0xff
jbe 0x14001590d
mov edx, dword [rbp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.140015a94
mov ebx, eax
test eax, eax
js 0x140015962
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x28]
mov rdx, r15
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x14001595a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140015962
mov qword [r13], rdi
xor edi, edi
xor ebx, ebx
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140015971
call fcn.140016048
test rdi, rdi
je 0x14001597e
mov rcx, rdi
call fcn.140019ec4
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret

Function at 0x140016134
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x20
and qword [rdx], 0
mov rbx, rdx
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14001616f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140016179
mov rax, qword [rsp + 0x38]
xor ecx, ecx
mov qword [rbx], rax
mov eax, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rbp
ret
Function at 0x140016218
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x10], rdx
push rbp
mov rbp, rsp
sub rsp, 0x20
xor edi, edi
mov rsi, rcx
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400162e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400162e0
movzx eax, word [rsi]
xor edx, edx
mov rcx, rsi
test ax, ax
je 0x1400162db
lea r8d, [rdi + 0x5c]
cmp ax, r8w
cmove rdi, rcx
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x14001626a
test rdi, rdi
je 0x1400162db
mov word [rdi], dx
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call fcn.140016218
mov ebx, eax
mov eax, 0x5c
mov word [rdi], ax
test ebx, ebx
js 0x1400162e0
mov rdx, qword [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400162d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400162c7
mov ebx, 1
jmp 0x1400162e0
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400162e0
xor ebx, ebx
jmp 0x1400162e0
mov ebx, 0x80070003
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rbp
ret

Function at 0x140016388
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rbp
mov rbp, rsp
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r12, rdx
lea rdx, [rax + 0x20]
and dword [rax + 0x20], ebx
and qword [rax - 0x30], rbx
and dword [rax - 0x38], ebx
mov r15, r8
mov r14, rcx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
jne 0x1400163e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001647a
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
jne 0x1400163fc
mov ebx, 0x8007000e
jmp 0x14001647a
mov edx, dword [rsp + 0x78]
mov r9, rax
mov r8d, esi
mov rcx, r14
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x14001642a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140016471
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
lea rdx, [0x140020d00]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x14001645f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140016471
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rdx + 8]
mov dword [r12], ecx
mov ecx, dword [rdx + 0xc]
mov dword [r15], ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140016494
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rdi, rdx
test r9d, r9d
je 0x1400164f6
mov rdx, rcx
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
jne 0x1400164df
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rbp
ret
mov r8d, ebx
test esi, esi
sete r8b
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400164df
test esi, esi
jne 0x1400164cb
xor edx, edx
mov rcx, rdi
call fcn.140016188
test eax, eax
je 0x1400164cb
lea ebx, [rsi + 1]
jmp 0x1400164df

Function at 0x140016520
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400165c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1400165b9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140016565
mov ebx, 0x80070005
jmp 0x1400165c7
test al, 0x10
je 0x140016570
mov ebx, 0x8000ffff
jmp 0x1400165c7
test al, 1
jne 0x14001657c
test al, 2
jne 0x14001657c
test al, 4
je 0x1400165c7
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400165a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400165c7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400165c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rdi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rbp
ret
Function at 0x1400165dc
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
mov rbp, rsp
push r12
push r13
push r14
push r15
sub rsp, 0x50
and qword [rax - 0x30], 0
and qword [rax - 0x38], 0
mov r13, rcx
mov r12, rdx
mov esi, 0x104
lea rcx, [rax - 0x30]
mov edx, esi
mov r14, r9
mov r15, r8
or rdi, 0xffffffffffffffff
call fcn.140015af8
mov ebx, eax
test eax, eax
js 0x140016717
mov rdx, qword [rsp + 0x48]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xor esi, esi
cmp rdi, 0xffffffffffffffff
jne 0x1400166da
mov r8, qword [rsp + 0x48]
lea rdx, str._s_S_05d._S
lea rcx, [rsp + 0x40]
mov r9, r13
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], esi
call fcn.140015ea4
mov ebx, eax
test eax, eax
js 0x140016717
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x40]
lea eax, [rdi + 2]
mov r8d, eax
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400166cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070050
jne 0x1400166c8
xor ebx, ebx
jmp 0x1400166cc
test ebx, ebx
js 0x140016717
inc esi
cmp esi, 0x3e8
jl 0x14001663e
test r15, r15
je 0x1400166f7
mov rdx, qword [rsp + 0x40]
mov r9d, 0xfde9
xor r8d, r8d
mov rcx, r15
call fcn.140015d30
mov ebx, eax
test r14, r14
je 0x1400166ff
mov qword [r14], rdi
test ebx, ebx
js 0x140016708
test r14, r14
jne 0x140016717
cmp rdi, 0xffffffffffffffff
je 0x140016717
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140016726
call fcn.140016048
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140016735
call fcn.140016048
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140016758
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x278
mov rax, qword [0x140027098]
xor rax, rsp
mov qword [rbp - 0x50], rax
mov r13, rdx
mov r12, rcx
lea rdx, [rsp + 0x50]
xor ebx, ebx
mov ecx, 0x104
mov r14, r9
and qword [rsp + 0x40], rbx
mov r15, r8
or rdi, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1400167c3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140016894
xor esi, esi
cmp rdi, 0xffffffffffffffff
jne 0x140016861
lea r8, [rsp + 0x50]
lea rdx, str._s_s_05d._s
lea rcx, [rsp + 0x40]
mov r9, r12
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], esi
call fcn.140015e7c
mov ebx, eax
test eax, eax
js 0x140016894
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x40]
lea eax, [rdi + 2]
mov r8d, eax
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140016853
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070050
jne 0x14001684f
xor ebx, ebx
jmp 0x140016853
test ebx, ebx
js 0x140016894
inc esi
cmp esi, 0x3e8
jl 0x1400167c5
test r14, r14
je 0x140016869
mov qword [r14], rdi
test r15, r15
je 0x14001687c
mov rax, qword [rsp + 0x40]
and qword [rsp + 0x40], 0
mov qword [r15], rax
test ebx, ebx
js 0x140016885
test r14, r14
jne 0x140016894
cmp rdi, 0xffffffffffffffff
je 0x140016894
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400168a3
call fcn.140016048
mov eax, ebx
mov rcx, qword [rbp - 0x50]
xor rcx, rsp
call fcn.140010528
add rsp, 0x278
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140016afc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rdi, rcx
xor ecx, ecx
call qword [sym.imp.RPCRT4.dll_RpcImpersonateClient]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140016b7c
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r9, rdi
xor r8d, r8d
mov rcx, rax
mov edx, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x140016b5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
call qword [sym.imp.RPCRT4.dll_RpcRevertToSelf]
test eax, eax
je 0x140016b7c
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rdi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rbp
ret
Function at 0x140017a10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
push rbp
mov rbp, rsp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, rcx
mov rcx, rdx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor ebx, ebx
or r10d, 0xffffffff
mov r11d, eax
mov r9, r12
lea rdi, [0x140029420]
add r11d, r11d
cmp dword [0x140029820], ebx
jne 0x140017a9a
mov dword [0x140029820], 1
mov ecx, ebx
mov r8, rdi
mov eax, ecx
mov edx, 8
test al, 1
je 0x140017a81
shr eax, 1
xor eax, 0xedb88320
jmp 0x140017a83
shr eax, 1
dec edx
test edx, edx
jg 0x140017a74
inc ecx
mov dword [r8], eax
add r8, 4
cmp ecx, 0xff
jle 0x140017a6d
test r11d, r11d
je 0x140017ac4
mov edx, r11d
movzx ecx, byte [r9]
mov eax, r10d
inc r9
xor rcx, rax
movzx eax, cl
mov ecx, r10d
mov r10d, dword [rdi + rax*4]
shr ecx, 8
xor r10d, ecx
dec rdx
jne 0x140017aa2
xor edx, edx
not r10d
mov r15d, ebx
mov eax, r10d
div dword [r13 + 0x18]
mov edi, edx
cmp dword [r13 + 0x18], ebx
jbe 0x140017b0f
mov r14, qword [r13 + 0x10]
mov eax, edi
lea rsi, [rax + rax*2]
mov rcx, qword [r14 + rsi*8 + 8]
cmp dword [rsp + 0x70], ebx
je 0x140017b2b
test rcx, rcx
je 0x140017b02
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140017b54
cmp qword [r14 + rsi*8 + 8], rbx
jne 0x140017b3d
cmp dword [r14 + rsi*8], ebx
jne 0x140017b3d
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test rcx, rcx
je 0x140017b54
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140017b54
inc edi
cmp edi, dword [r13 + 0x18]
jb 0x140017b49
sub edi, dword [r13 + 0x18]
inc r15d
cmp r15d, dword [r13 + 0x18]
jb 0x140017adb
jmp 0x140017b0f
mov rax, qword [rsp + 0x78]
mov dword [rax], edi
jmp 0x140017b14
Function at 0x140018600
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x270
mov rax, qword [0x140027098]
xor rax, rsp
mov qword [rbp - 0x10], rax
and qword [rsp + 0x40], 0
mov rdi, rcx
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x48], pe_nt_image_headers64
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x1400186fd
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140018710
mov rcx, qword [rsp + 0x40]
call fcn.140018600
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140018710
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140018710
jmp 0x140018705
cmp ebx, 0x80070103
je 0x14001870e
test ebx, ebx
jne 0x140018710
jmp 0x14001862c
xor ebx, ebx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140018720
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140010528
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x140018744
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x240
mov rax, qword [0x140027098]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
mov r8, rdx
lea rcx, [rsp + 0x20]
or r9, 0xffffffffffffffff
mov edx, 0x104
call fcn.140010790
cmp eax, 0x50
jne 0x14001878c
mov eax, 0x8007007a
jmp 0x1400187ce
xor edi, edi
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov r11d, eax
test eax, eax
jne 0x1400187ef
lea rcx, [rsp + 0x20]
mov edx, 0x5c
call fcn.14001afbc
test rax, rax
je 0x1400187c0
mov word [rax], di
cmp di, word [rax + 2]
je 0x1400187a3
cmp word [rsp + 0x20], di
je 0x1400187cc
test rax, rax
jne 0x14001878e
mov eax, edi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140010528
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
cmp eax, 2
je 0x14001880a
cmp eax, 3
je 0x14001880a
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
jmp 0x14001880c
mov eax, edi
cmp eax, 1
jne 0x1400187ce
jmp 0x14001878e
Function at 0x140018818
Capabilities:
Delete registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x30
and qword [r11 + 0x18], 0
lea rax, [r11 + 0x18]
mov r9d, 0x2001f
xor r8d, r8d
mov rdi, rdx
mov rsi, rcx
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x14001885b
lea ebx, [rax - 1]
jmp 0x1400188a8
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400188a8
mov rcx, qword [rsp + 0x50]
call fcn.140018600
mov ebx, eax
test eax, eax
js 0x1400188a8
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x50], 0
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400188b8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rbp
ret

Function at 0x14001916c
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov r9, r8
mov r10, rdx
cmp ecx, 4
je 0x140019187
cmp dword [0x140027fa0], ecx
jl 0x1400191b1
cmp qword [0x140027f98], 0xffffffffffffffff
je 0x1400191b1
cmp qword [0x140029830], 0
je 0x1400191b1
mov r8d, 1
mov rdx, r9
mov rcx, r10
add rsp, 0x20
pop rbp
jmp fcn.14001955c
mov eax, 1
add rsp, 0x20
pop rbp
ret